Summary: | net-wireless/yatebts-5.0.0: configure script is horribly broken | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ostree <ostree> |
Component: | Current packages | Assignee: | Gentoo Radio project <radio> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | vapier, zerochaos |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge.info
build.log config.log config.log make.conf |
Description
ostree
2017-01-20 11:36:49 UTC
Created attachment 460736 [details]
build.log
Created attachment 460740 [details]
config.log
Created attachment 460742 [details]
config.log
Created attachment 460744 [details]
make.conf
Hi, removed -ggdb from make.conf and I can complete compilation now I get the same issue with -ggdb using sys-libs/glibc-2.23-r3 Given that this happens in configure I'm going to suggest that it's a glibc issue and not yatebts. For now I'll simply strip the flag and transfer ownership in the hopes that the glibc crew has a clue what is happening here. Please reassign to radio if this isn't a toolchain issue. Just for fun I tried -ggdb, -ggdb1, -ggdb2, -ggdb3 and they all failed. -g works fine. Using gcc 4.9.4 (stable on amd64 for this moment) (In reply to Rick Farina (Zero_Chaos) from comment #6) i'm not sure how the configure->glibc logic works ... glibc is a C library, but configure is an autoconf generated shell script at any rate, the bug is here is def in yate-bts. if you read the config.log, it's full of broken compiles, and not just this last one: configure:4188: x86_64-pc-linux-gnu-gcc -c -Os -march=native -pipe -frecord-gcc-switchesgdb conftest.c >&5 x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-frecord-gcc-switchesgdb' so if you read the configure.ac script, you'll see that it's stupid: # Delete -g as we handle debug info at build time CFLAGS=`echo "$CFLAGS" | sed 's/\(^\| \+\)-g[[0-9]]*//' 2>/dev/null` that code needs to be deleted. in fact, reading this script makes me cry because it's full of bad code. just below that are these lines: # Helper to check by pkgconfig including local paths function pkgconfig_check() { res=`(pkg-config "$@") 2>/dev/null` [[ -z "$res" ]] && res=`(PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig pkg-config "$@") 2>/dev/null` [[ -z "$res" ]] && res=`(PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config "$@") 2>/dev/null` printf '%s\n' "$res" 2>/dev/null } that is terrible terrible code, and all of the callers of `pkgconfig_check` are also broken. this needs to be gutted and replaced with the standard pkg-config m4 macros. looking up is more bad code: # We may need the host OS type but avoid the overhead of AC_CANONICAL_SYSTEM AC_MSG_CHECKING([for local operating system type]) uname_os=`uname -s` test -x "$uname_os" && uname_os=Unknown AC_MSG_RESULT([$uname_os]) that comment is so misguided. i guess we should be thankful that the file doesn't actually use uname_os anywhere ? (In reply to SpanKY from comment #8) thanks for setting me straight, and especially thanks for all the notes. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83833850a05453001e883fd4cd56ba601b4ecb37 commit 83833850a05453001e883fd4cd56ba601b4ecb37 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-04-15 13:05:25 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-04-15 13:07:22 +0000 net-wireless/yatebts: treeclean Closes: https://bugs.gentoo.org/606598 Closes: https://bugs.gentoo.org/770739 Closes: https://bugs.gentoo.org/809542 Closes: https://bugs.gentoo.org/727958 Closes: https://bugs.gentoo.org/741082 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> net-wireless/yatebts/Manifest | 1 - .../yatebts/files/yatebts-5.0.0-gcc6.patch | 31 ------------- .../yatebts-6.0.0-dont-mess-with-cflags.patch | 12 ----- .../yatebts-sgsnggsn-inetutils-hostname-fix.diff | 14 ------ net-wireless/yatebts/metadata.xml | 14 ------ net-wireless/yatebts/yatebts-6.0.0-r1.ebuild | 53 ---------------------- net-wireless/yatebts/yatebts-9999.ebuild | 53 ---------------------- profiles/package.mask | 7 --- 8 files changed, 185 deletions(-) |