Summary: | Clone of bug 262647. "emerge texlive-latexextra" still fails with error message "[Errno 7] Argument list too long" | ||
---|---|---|---|
Product: | Portage Development | Reporter: | John Burkett <burkett> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | 1i5t5.duncan, aballier, burkett, gpvos+gnt, ps |
Priority: | High | ||
Version: | 2.1 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
John Burkett
2009-05-17 21:16:27 UTC
This comment has been removed because it contained spam. -- idl0r Your portage version is rather old, so don't you try the latest portage? The latest stable is currently 2.1.10.44: http://packages.gentoo.org/package/sys-apps/portage i'm stuck with updating latex as well, the error is cryptic: >>> Install texlive-latexextra-2011-r2 into /var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/image/ category dev-texlive * Installing texmf-dist/scripts/perltex/perltex.pl as perltex bin wrapper * Installing texmf-dist/scripts/pst-pdf/ps4pdf as ps4pdf bin wrapper * ERROR: dev-texlive/texlive-latexextra-2011-r2 failed (install phase): * Trying to install a non existing or non executable symlink to /usr/bin: texmf-dist/scripts/pst-pdf/ps4pdf * * Call stack: * ebuild.sh, line 85: Called src_install * environment, line 2015: Called texlive-module_src_install * environment, line 2658: Called dobin_texmf_scripts 'texmf-dist/scripts/perltex/perltex.pl' 'texmf-dist/scripts/pst-pdf/ps4pdf' 'texmf-dist/scripts/splitindex/perl/splitindex.pl' 'texmf-dist/scripts/svn-multi/svn-multi.pl' 'texmf-dist/scripts/vpe/vpe.pl' 'texmf-dist/scripts/authorindex/authorindex' * environment, line 429: Called die * The specific snippet of code: * [ -x "${D}/usr/share/${1}" ] || die "Trying to install a non existing or non executable symlink to /usr/bin: ${1}"; * * If you need support, post the output of 'emerge --info =dev-texlive/texlive-latexextra-2011-r2', * the complete build log and the output of 'emerge -pqv =dev-texlive/texlive-latexextra-2011-r2'. * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/temp/environment'. * S: '/var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/work' ps4pdf is not in texmf-dist indeed. after while i found more probable cause, which is hidden error within unpacking various modules: ... >>> Unpacking texlive-module-zwgetfdate-2011.tar.xz to /var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/work >>> Unpacking texlive-module-zwpagelayout-2011.tar.xz to /var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/work >>> Unpacking texlive-module-collection-latexextra-2011.tar.xz to /var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/work /var/tmp/portage/dev-texlive/texlive-latexextra-2011-r2/temp/environment: line 2663: /bin/grep: Argument list too long Indeed, my kernel on this box is old&patched 2.6.19 and can't be reasonably updated due to hardware issues. checking arg_max gives: $ getconf ARG_MAX 131072 which is pretty standard for these old guys. Is there any workaround for this issue? Updating kernel is no option for this box... emerge info: Portage 2.1.10.49 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.19-suspend2-r3 i686) ================================================================= System uname: Linux-2.6.19-suspend2-r3-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-1.12.11.1 Timestamp of tree: Wed, 02 May 2012 14:30:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.2_p20 dev-java/java-config: 1.3.7, 2.1.11-r3 dev-lang/python: 2.5.4-r4, 2.6.5-r2 dev-util/ccache: 2.4-r7::<unknown repository> dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13::<unknown repository>, 2.68 sys-devel/automake: 1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.2, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.1.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.23-r3 (virtual/os-headers) sys-libs/glibc: 2.8_p20080602-r1 Repositories: gentoo rebutia x-portage sunrise ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/rebutia /usr/local/portage /usr/local/portage/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg latex lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis wxwidgets x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON running emerge in debug mode shows that error is in this part of code: + grep RELOC tlpkg/tlpobj/2up.tlpobj tlpkg/tlpobj/AkkTeX.tlpobj ..... (looong list) OK, I fixed my problem by editing the critical line in texlive-module.eclass. Alexis (you are the maintainer, right?) please consider to rewrite: grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" via xargs solution (i wanted fast solution and used: (cd tlpkg/tlpobj/; ls * | xargs -n 1 grep RELOC) |cut -f 2 -d ' '| sed 's#^RELOC/##' > "${T}/reloclist" but it can be rewritten via single find -uglyparams instead of cd,ls,cut, i think ;) *** This bug has been marked as a duplicate of bug 719202 *** |