Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552020 - >=sys-libs/glibc-2.16 fails install phase if dev-lang/perl is not installed
Summary: >=sys-libs/glibc-2.16 fails install phase if dev-lang/perl is not installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/ml/libc-alpha/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-13 17:30 UTC by Nikoli
Modified: 2015-08-21 21:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2015-06-13 17:30:58 UTC
Build system tries to execute '/var/tmp/portage/sys-libs/glibc-2.20-r2/work/glibc-2.20/manual/libm-err-tab.pl' using 'no' instead of 'perl' interpretor and fails:

# grep perl /var/tmp/portage/sys-libs/glibc-2.20-r2/temp/build.log
checking for perl... no

# grep -e 'not found' /var/tmp/portage/sys-libs/glibc-2.20-r2/temp/build.log -a9
pwd=`pwd`; \
no libm-err-tab.pl $pwd/.. > /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/libm-err-tmp
mv -f /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/filecli.c.texi.new /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/filecli.c.texi
sed -e '1,/^\*\/$/d'                            \
    -e 's,[{}],@&,g'                            \
    -e 's,/\*\(@.*\)\*/,\1,g'                   \
    -e 's,/\*  *,/* @r{,g' -e 's,  *\*/,} */,'  \
    -e 's/\(@[a-z][a-z]*\)@{\([^}]*\)@}/\1{\2}/g'\
    examples/timeval_subtract.c | expand > /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/timeval_subtract.c.texi.new
/bin/sh: line 1: no: command not found
Makefile:107: recipe for target '/var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/stamp-libm-err' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/stamp-libm-err] Error 127
make[2]: *** Waiting for unfinished jobs....
mv -f /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/termios.c.texi.new /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/termios.c.texi
mv -f /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/timeval_subtract.c.texi.new /var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/timeval_subtract.c.texi
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.20-r2/work/glibc-2.20/manual'
Makefile:214: recipe for target 'manual/subdir_install' failed
make[1]: *** [manual/subdir_install] Error 2


'manual/Makefile' is not using 'ifneq ($(PERL),no)':
glibc-2.20 # grep PERL `find|grep Makefile|sort`
./conform/Makefile:      $(PERL) conformtest.pl --tmpdir=$(@D)/scratch --cc='$(CC)' \
./iconvdata/Makefile:ifneq (no,$(PERL))
./intl/Makefile:ifneq (no,$(PERL))
./localedata/Makefile:ifneq (no,$(PERL))
./locale/Makefile:      $(PERL) gen-translit.pl < $< > $@.tmp
./Makefile:ifneq (no,$(PERL))
./Makefile:     LD_SO=$(ld.so-version) CC="$(CC)" $(PERL) scripts/test-installation.pl $(common-objpfx)
./Makefile:ifneq ($(PERL),no)
./Makefile:     $(PERL) scripts/begin-end-check.pl $(installed-headers) > $@; \
./malloc/Makefile:ifneq ($(PERL),no)
./malloc/Makefile:ifneq ($(PERL),no)
./malloc/Makefile:ifneq ($(PERL),no)
./malloc/Makefile:      sed -e 's|@PERL@|$(PERL)|' -e 's|@XXX@|$(address-width)|' \
./manual/Makefile:      $(PERL) $< $$pwd/.. > $(objpfx)libm-err-tmp
./math/Makefile:ifneq (no,$(PERL))
./math/Makefile:        $(PERL) gen-libm-test.pl -u $< -o "$(objpfx)"
./math/Makefile:ifneq (no,$(PERL))
./math/Makefile:        $(PERL) gen-libm-test.pl -o $(objpfx) -n -u $(objpfx)libm-test-ulps; \
./resolv/Makefile:ifneq (no,$(PERL))
Comment 1 SpanKY gentoo-dev 2015-08-21 17:12:59 UTC
we dropped 1030_all_glibc-manual-no-perl.patch in the 2.16 timeframe because this really only mattered to bootstrapping where we didn't have perl

https://sources.gentoo.org/gentoo/src/patchsets/glibc/2.16.0/1030_all_glibc-manual-no-perl.patch?view=log
Comment 2 SpanKY gentoo-dev 2015-08-21 17:18:56 UTC
i reposted the patch that i originally sent back in 2006 :x
Comment 3 SpanKY gentoo-dev 2015-08-21 21:15:33 UTC
got the patch into upstream much faster this time.  should be fixed in glibc-2.22 and later.  don't plan on backporting it though.

http://sources.gentoo.org/gentoo/src/patchsets/glibc/2.22/00_all_0020-manual-skip-build-when-perl-is-unavailable.patch?rev=1.1