Emerging sci-libs/libecwj2-3.3-r1 fails with NCSTypesWithGnuDefs.h: Command not found. Emerge log can be found at: http://pier.unirc.eu/cestino/libecwj2-3.3-r1.log Reproducible: Always Steps to Reproduce: 1.emerge libecwj2 Actual Results: Emerge of the package fails Expected Results: Successful emerging of the package. emerge --info Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.30-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-1.12.13 Timestamp of tree: Fri, 09 Jul 2010 09:00:20 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.5.4-r3, 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=x86-64 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" 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/terminfo /etc/texmf/language.t.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=x86-64 -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://distfiles.gentoo.org http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ ftp://trumpetti.atm.tut.fi/geoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/" LANG="it_IT@euro" LDFLAGS="-Wl,-O1" LINGUAS="it en" 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 --exclu=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl aiglx alsa amr apm arts avi berkdb blas bluetooth bzip2 cairo caps ccache cddb cdparanoia cdr cdrom cli cracklib crypt css cups curl cxx dga directfb drdvd dvdr dvdread encode expat fbcon fbdev ffmpeg fftw fortran gdbm gif gimpprint glitz glut glx gpm gs gtk hddtemp hdf5 httpd iconv ipv6 java jpeg kpathsea libwww lm_sensors logech-mouse mad modules mp3 mpeg mpi mpi-threads mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin objc objc++ objc-gc ogg oggvorbis openal opengl openmp oss pam pcre perl g postscript ppds pppd preview-latex python quicktime readline reflection reiserfs romio samba scanner sensord session slang sound sox spl ssl stream svg svga sysfs tcltk tcpd tex threads tiff tk truetype unicode usb v4l v4l2 vcd vesa vidix vorbis wavpack wifi win32codecs wma wma123 wmf wxwindows x264 x86 xorg xplanet xulrunner xv xvid zlib" ALSA_CARDShda-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 routehare 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_owr authz_user autoindex cache 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 gotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayracfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan ngth2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ------------------------------------------------------------------------------ dmidecode Apple Inc. MacBook4,1 MB41.88Z.00C1.B00.0802091535 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz
I can reproduce this on x86. The strange bit seems to be in Source/NCSBuildGnu/Makefile.am install-data-local: NCSTypesWithGnuDefs.h $(includeHEADERS_INSTALL) NCSTypesWithGnuDefs.h \ $(DESTDIR)$(includedir)/NCSTypes.h --------- Not sure what $(includeHEADERS_INSTALL) is supposed to be, but the final result is that it is expanded to nothing, so NCSTypesWithGnuDefs.h is taken as a command rather than an argument. I suspect it should be $(INSTALL) but include_HEADERS may have been intended as a dependency.
Created attachment 238601 [details, diff] patching for libecwj2 ebuild Applying this patch to the ebuild I have a clean merge.
*** Bug 328077 has been marked as a duplicate of this bug. ***
*** Bug 328079 has been marked as a duplicate of this bug. ***
*** Bug 328083 has been marked as a duplicate of this bug. ***
*** Bug 328085 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > install-data-local: NCSTypesWithGnuDefs.h > $(includeHEADERS_INSTALL) NCSTypesWithGnuDefs.h \ > $(DESTDIR)$(includedir)/NCSTypes.h Looks like a missing \ after the first line ...
Following kiwifb advice, from irc channel freenode gentoo-science, I altered the ebuild as follow: in src_prepare() between rm -rf Source/C/libjpeg Source/C/NCSEcw/lcms and: eautoreconf add the following line: sed -i "s:includeHEADERS_INSTALL:INSTALL:" Source/NCSBuildGnu/Makefile.am || die "sed failed." After digesting the altered ebuild, libecwj2 emerged successfully. Re-emerging gdal enabled ecw support which wasn't working beforehand.
(In reply to comment #7) > (In reply to comment #1) > > install-data-local: NCSTypesWithGnuDefs.h > > $(includeHEADERS_INSTALL) NCSTypesWithGnuDefs.h \ > > $(DESTDIR)$(includedir)/NCSTypes.h > > Looks like a missing \ after the first line ... > Tried that. Failed earlier during compilation phase. The reported problem occurs during installation phase. For info, I am kiwifb on irc.
+ 17 Jul 2010; Kacper Kowalik <xarthisius@gentoo.org> + libecwj2-3.3-r1.ebuild: + Fix install of the header file wrt bug 328075. Thanks to pier + <pier_carla@yahoo.it> for report and Francois Bissey + <f.r.bissey@massey.ac.nz> for the fix. +