Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 727226

Summary: net-fs/autofs-5.1.6-r1 fails src_compile explicitly calling "strip" w/ binutils-config[-native-symlinks]
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED FIXED    
Severity: normal CC: mattst88
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-06-05 09:33:23 UTC
The explicit call of "strip" is itself, something that seems suspicious, ... but I'll leave that up to you.

Makefile.rules has this:

ifdef DONTSTRIP
STRIP     ?= :
else
STRIP     ?= strip --strip-debug
endif

And STRIP appears to be used everywhere else:

> ./lib/Makefile:48:	$(STRIP) mount_clnt.o
> ./lib/Makefile:55:	$(STRIP) mount_xdr.o
> ./daemon/Makefile:39:	$(STRIP) automount
> ./Makefile.rules:23:# The STRIP defined here *must not* remove any dynamic-loading symbols
> ./Makefile.rules:37:ifdef DONTSTRIP
> ./Makefile.rules:38:STRIP     ?= :
> ./Makefile.rules:40:STRIP     ?= strip --strip-debug
> ./Makefile.rules:75:	$(STRIP) $*.so
> ./include/defaults.h:74:#define CONF_DOMAIN_STRIP		0x00002000
> ./include/defaults.h:89:#define DEFAULT_AMD_DOMAIN_STRIP		"yes"
> ./autofs.spec:107:CFLAGS="$RPM_OPT_FLAGS -Wall" LDFLAGS="-Wl,-z,now" make initdir=/etc/rc.d/init.d DONTSTRIP=1
> ./CHANGELOG:486:- remove hard-coded STRIP variable.
> ./CHANGELOG:488:- unbundle NOTSTRIP from DEBUG so they dont depend on each other.
> ./modules/parse_amd.c:792:	if (flags & CONF_DOMAIN_STRIP) {
> ./modules/Makefile:114:	$(STRIP) parse_amd.so
> ./modules/Makefile:122:	$(STRIP) lookup_yp.so
> ./modules/Makefile:127:	$(STRIP) lookup_nisplus.so
> ./modules/Makefile:132:	$(STRIP) lookup_hesiod.so
> ./modules/Makefile:144:	$(STRIP) lookup_ldap.so
> ./modules/Makefile:149:	$(STRIP) mount_nfs.so


> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c rpc_subs.c
> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c master_tok.c
> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c master_parse.tab.c
> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c nss_tok.c
> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c nss_parse.tab.c
> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -o mount_clnt.o -c mount_clnt.c
> x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -march=native -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c
> strip --strip-debug mount_clnt.o
> make[1]: strip: No such file or directory
> make[1]: *** [Makefile:48: mount_clnt.o] Error 127
> make[1]: *** Waiting for unfinished jobs....
> strip --strip-debug mount_xdr.o
> make[1]: strip: No such file or directory
> make[1]: *** [Makefile:55: mount_xdr.o] Error 127
> make[1]: Leaving directory '/var/tmp/portage/net-fs/autofs-5.1.6-r1/work/autofs-5.1.6/lib'
> make: *** [Makefile:14: daemon] Error 2
Comment 1 Yixun Lan gentoo-dev 2020-06-06 13:48:27 UTC
definitely we can improve this, I'll try to fix it without a revision bump.
Comment 2 Larry the Git Cow gentoo-dev 2020-06-06 13:55:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad422b52bba88b5da99a1894e6103a54d1cdcad

commit aad422b52bba88b5da99a1894e6103a54d1cdcad
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2020-06-06 13:52:46 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2020-06-06 13:55:23 +0000

    net-fs/autofs: fix calling 'strip' explicitly
    
    Closes: https://bugs.gentoo.org/727226
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 net-fs/autofs/autofs-5.1.6-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)