[debian-mysql] Bug#793358: mysql-5.6: FTBFS on HURD: error: 'RTLD_DEFAULT' undeclared

Samuel Thibault sthibault at debian.org
Sun Dec 20 12:42:37 UTC 2015


Hello,

Robie Basak, on Sun 20 Dec 2015 10:58:50 +0000, wrote:
> Hi,
> 
> On Sun, Dec 20, 2015 at 11:17:03AM +0100, Samuel Thibault wrote:
> > Samuel Thibault, on Fri 18 Sep 2015 09:20:39 +0200, wrote:
> > > merely putting the definition of _GNU_SOURCE before #includes (as it
> > > should always be) fixes the build, here is a tested patch.
> > 
> > Ping?
> 
> Thank you for the reminder.
> 
> Upstream don't want to carry the patch as they can't test it,

Well, the thing is: it does not even make *sense* to define _GNU_SOURCE
after having included headers!...

> But then I noticed that _GNU_SOURCE is alreadying being set in the
> current "hurd.patch" quilt patch. Is the current patch no longer
> working? Can it be updated or removed?

Apparently this is due to something new in the dh_auto_clean rule:

rm -f cmake/os/GNU.cmake

Since that's invoked between applying quilt patches and the build, then
hurd.patch's GNU.cmake has no effect indeed.

Also, I see that dh_auto_clean removes the .pc directory.  This
is really not how things are working with quilt patches: yes,
./debian/rules clean does not unapply patches, that's how it works: one
has to run dh_quilt_unpatch after that, and then the .pc directory and
GNU.cmake files will have disappeared.

Please apply the attached patch to fix it.

Samuel
-------------- next part --------------
--- debian/rules.original	2015-12-20 11:40:00.000000000 +0000
+++ debian/rules	2015-12-20 11:40:06.000000000 +0000
@@ -50,10 +50,9 @@
 	dh_testdir 
 	dh_testroot
 	[ ! -d mysql-test/var ] || rm -rf mysql-test/var
-	rm -rf $(BUILDDIR) $(BUILDDIR_PIC) .pc
+	rm -rf $(BUILDDIR) $(BUILDDIR_PIC)
 	debconf-updatepo
 	rm -f $(EXPORTED_SOURCE_TARBALL)
-	rm -f cmake/os/GNU.cmake
 
 override_dh_prep: 
 


More information about the pkg-mysql-maint mailing list