Bug#979160: glibc FTBFS on kfreebsd-*: Uses configure option --enable-add-ons=fbtl

2021-01-03 Thread Aurelien Jarno
control: retitle -1 glibc: GNU/kFreeBSD support is completely broken 
control: severity -1 wishlist

Hi,

On 2021-01-03 18:19, Mattias Ellert wrote:
> Source: glibc
> Version: 2.31-7
> Severity: important
> User: debian-...@lists.debian.org
> 
> The builds on kfreebsd-* currently fail during the patching step
> because one of the kfreebsd specific patches fails to apply.
> 
> Fixing this issue is trivial and simply requires a refresh of the patch
> (attached).
> 
> However, this trivial fix is not sufficient. The build then fails with:

The glibc package hasn't been built since version 2.25 more than 3 years
ago. The work to get it building again is *huge* and I don't see the
point in just refreshing a patch to get the package to fail only a few
seconds later.

Instead, please provide a full patch to get it building, we'll include
it. In the meantime, downgrading this bug as a wishlist.

Regards,
Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net


signature.asc
Description: PGP signature


Bug#979160: glibc FTBFS on kfreebsd-*: Uses configure option --enable-add-ons=fbtl

2021-01-03 Thread Samuel Thibault
Hello,

Mattias Ellert, le dim. 03 janv. 2021 18:19:37 +0100, a ecrit:
>   --enable-add-ons=libidn,"fbtl " \
> 
> However, the configure script does not have an --enable-add-ons option,
> so this is ignored. (Option is not listed by ./configure --help, nor
> found by grepping for it.)

FI, in NEWS:

* The add-ons mechanism for building additional packages at the same time as
  glibc has been removed.  The --enable-add-ons configure option is now
  ignored.

So fbtl needs to be included in Makefiles etc. just like htl is for
instance.

Samuel



Bug#979160: glibc FTBFS on kfreebsd-*: Uses configure option --enable-add-ons=fbtl

2021-01-03 Thread Mattias Ellert
Source: glibc
Version: 2.31-7
Severity: important
User: debian-...@lists.debian.org

The builds on kfreebsd-* currently fail during the patching step
because one of the kfreebsd specific patches fails to apply.

Fixing this issue is trivial and simply requires a refresh of the patch
(attached).

However, this trivial fix is not sufficient. The build then fails with:

*** On GNU/kFreeBSD systems it is normal to compile GNU libc with the
*** `fbtl' add-on.  Without that, the library will be
*** incompatible with normal GNU/kFreeBSD systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.

The package build tries to enable the fbtl add-on. The call to
configure contains:

$(CURDIR)/configure \
--host=x86_64-kfreebsd-gnu \
--build=$configure_build --prefix=/usr \
--enable-add-ons=libidn,"fbtl " \

However, the configure script does not have an --enable-add-ons option,
so this is ignored. (Option is not listed by ./configure --help, nor
found by grepping for it.)

Mattias

tst-unique is not supported by the FreeBSD ELF OSABI

--- a/elf/Makefile
+++ b/elf/Makefile
@@ -145,7 +145,7 @@ tests += loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
 	 unload3 unload4 unload5 unload6 unload7 unload8 tst-global1 order2 \
 	 tst-audit1 tst-audit2 tst-audit8 tst-audit9 \
 	 tst-addr1 tst-thrlock \
-	 tst-unique1 tst-unique2 $(if $(CXX),tst-unique3 tst-unique4 \
+	 $(if $(CXX),tst-unique3 tst-unique4 \
 	 tst-nodelete tst-dlopen-nodelete-reloc) \
 	 tst-initorder tst-initorder2 tst-relsort1 tst-null-argv \
 	 tst-tlsalign tst-tlsalign-extern tst-nodelete-opened \
@@ -207,8 +207,6 @@ modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
 		unload7mod1 unload7mod2 \
 		unload8mod1 unload8mod1x unload8mod2 unload8mod3 \
 		order2mod1 order2mod2 order2mod3 order2mod4 \
-		tst-unique1mod1 tst-unique1mod2 \
-		tst-unique2mod1 tst-unique2mod2 \
 		tst-auditmod9a tst-auditmod9b \
 		$(if $(CXX),tst-unique3lib tst-unique3lib2 tst-unique4lib \
 		  tst-nodelete-uniquemod tst-nodelete-rtldmod \


signature.asc
Description: This is a digitally signed message part