Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328075 - sci-libs/libecwj2-3.3-r1 fails with NCSTypesWithGnuDefs.h: Command not found
Summary: sci-libs/libecwj2-3.3-r1 fails with NCSTypesWithGnuDefs.h: Command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sci-geo Project
URL: http://pier.unirc.eu/cestino/libecwj2...
Whiteboard:
Keywords: InVCS
: 328077 328079 328083 328085 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-13 09:41 UTC by pier
Modified: 2010-07-17 13:47 UTC (History)
1 user (show)

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


Attachments
patching for libecwj2 ebuild (libecwj2-3.3-r1.ebuild.patch,398 bytes, patch)
2010-07-13 10:06 UTC, François Bissey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pier 2010-07-13 09:41:10 UTC
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
Comment 1 François Bissey 2010-07-13 10:02:53 UTC
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.
Comment 2 François Bissey 2010-07-13 10:06:09 UTC
Created attachment 238601 [details, diff]
patching for libecwj2 ebuild

Applying this patch to the ebuild I have a clean merge.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-07-13 10:25:15 UTC
*** Bug 328077 has been marked as a duplicate of this bug. ***
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-07-13 10:25:24 UTC
*** Bug 328079 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-07-13 10:25:33 UTC
*** Bug 328083 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-07-13 10:25:42 UTC
*** Bug 328085 has been marked as a duplicate of this bug. ***
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-07-13 10:27:08 UTC
(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 ...
Comment 8 pier 2010-07-13 10:45:08 UTC
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.
Comment 9 François Bissey 2010-07-13 10:53:03 UTC
(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.
Comment 10 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-07-17 13:47:27 UTC
+  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.
+