Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303263 - media-gfx/jpegoptim-1.2.3 fails to install with parallel MAKEOPTS="-j2"
Summary: media-gfx/jpegoptim-1.2.3 fails to install with parallel MAKEOPTS="-j2"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 20:38 UTC by Ian Abbott
Modified: 2010-02-02 22:30 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 Ian Abbott 2010-02-02 20:38:19 UTC
Cf. bug 301976, media-gfx/jpegoptim-1.2.3 fails during the install phase when MAKEOPTS="-j2":

>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/jpegoptim-1.2.3

>>> Install jpegoptim-1.2.3 into /var/tmp/portage/media-gfx/jpegoptim-1.2.3/image/ category media-gfx
make -j2 INSTALL_ROOT=/var/tmp/portage/media-gfx/jpegoptim-1.2.3/image/ install 
/usr/bin/install -c -d -m 755 /var/tmp/portage/media-gfx/jpegoptim-1.2.3/image///usr/share/man/man1
/usr/bin/install -c -m 644 jpegoptim.1 /var/tmp/portage/media-gfx/jpegoptim-1.2.3/image///usr/share/man/man1/jpegoptim.1
/usr/bin/install: cannot create regular file `/var/tmp/portage/media-gfx/jpegoptim-1.2.3/image///usr/share/man/man1/jpegoptim.1': No such file or directory
make: *** [install.man] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/install -c -d -m 755 /var/tmp/portage/media-gfx/jpegoptim-1.2.3/image///usr/bin
 * ERROR: media-gfx/jpegoptim-1.2.3 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 839:  Called die
 * The specific snippet of code:
 *       emake INSTALL_ROOT="${D}" install || die;
 * 
 * If you need support, post the output of 'emerge --info =media-gfx/jpegoptim-1.2.3',
 * the complete build log and the output of 'emerge -pqv =media-gfx/jpegoptim-1.2.3'.
 * The complete build log is located at '/var/tmp/portage/media-gfx/jpegoptim-1.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/jpegoptim-1.2.3/temp/environment'.
 * S: '/var/tmp/portage/media-gfx/jpegoptim-1.2.3/work/jpegoptim-1.2.3'



It's fine with MAKEOPTS="-j1" so the same fix as in the jpegoptim-1.2.2 ebuild could be used to fix it.

$ emerge --info
Portage 2.1.7.17 (default/linux/x86/10.0/server, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1-ija1 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-ija1-i686-VIA_Samuel_2-with-gentoo-2.0.1
Timestamp of tree: Sat, 30 Jan 2010 07:45:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-Os -march=c3 -fomit-frame-pointer -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=c3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.blueyonder.co.uk "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow acl apache2 berkdb bzip2 cdb cli cracklib crypt ctype cups cxx dba dbus dri foomaticdb fortran gd gdbm gmp gnutls gpm hal iconv idn ipv6 javascript jpeg ldap mmx modules mudflap mysql mysqli ncurses nptl nptlonly openmp pam pcre perl png pppd python quicktime radius readline reflection ruby samba session slang snmp spell spl sqlite ssl subversion svg sysfs tcpd tiff truetype unicode win32codecs x86 xml xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Johan Bergström 2010-02-02 20:50:31 UTC
Related bug for 1.2.2 fix: http://bugs.gentoo.org/301976 

Changelog mentions 1.2.3 bump together with a 1.2.2 fix, so this must've slipped through.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-02-02 20:52:46 UTC
+  02 Feb 2010; Samuli Suominen <ssuominen@gentoo.org>
+  jpegoptim-1.2.3.ebuild, +files/jpegoptim-1.2.3-parallel_make.patch:
+  Fix install with high MAKEOPTS wrt #303263, thanks to Ian Abbott for
+  reporting.

This worked for me with -j2, -j3, and -j9 on quadcore.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-02-02 20:54:07 UTC
It didn't slip though, I dropped the -j1 in 1.2.3 intentionally since it worked for me with -j9, never tried -j2 or -j3, so I just assumed it's fixed...

And forcing -j1 is not a fix, it's a ugly workaround
Comment 4 Ian Abbott 2010-02-02 21:19:00 UTC
Thanks for the speedy fix.  I reported the problem to the author.

If you're in a fixing mood, I see the jpeginfo program by the same author uses a similarly dirty hack in the ebuild. ;)
Comment 5 Johan Bergström 2010-02-02 22:30:02 UTC
(In reply to comment #3)
> It didn't slip though, I dropped the -j1 in 1.2.3 intentionally since it worked
> for me with -j9, never tried -j2 or -j3, so I just assumed it's fixed...
> 
> And forcing -j1 is not a fix, it's a ugly workaround
> 

Sorry, didn't mean "slip" in a negative tense. Just that it perhaps was overlooked. Anyway, thanks for the quick turnaround. Appreciate it.