Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42568 - media-libs/giblib-1.2.3 ebuild fails on setup
Summary: media-libs/giblib-1.2.3 ebuild fails on setup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 42646 42688 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-23 02:49 UTC by Duane Healing
Modified: 2004-09-08 21:11 UTC (History)
5 users (show)

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


Attachments
patch to inherit gcc.eclass (giblib.patch,545 bytes, patch)
2004-02-23 02:57 UTC, Duane Healing
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duane Healing 2004-02-23 02:49:52 UTC
Attempting to emerge giblib-1.2.3 results in the following error:

/usr/sbin/ebuild.sh: line 1: gcc-getCC: command not found
/usr/sbin/ebuild.sh: line 20: /usr/portage/media-libs/giblib/files/imlib-x-test.c: Permission denied

!!! ERROR: media-libs/giblib-1.2.3 failed.
!!! Function pkg_setup, Line 21, Exitcode 126
!!! You need to re-emerge Imlib2 with USE=X


Despite what the last part says, Imlib2 has been emerged with USE=X.

Reproducible: Always
Steps to Reproduce:
1. emerge giblib

Actual Results:  
/usr/sbin/ebuild.sh: line 1: gcc-getCC: command not found 
/usr/sbin/ebuild.sh: line 
20: /usr/portage/media-libs/giblib/files/imlib-x-test.c: Permission denied 
 
!!! ERROR: media-libs/giblib-1.2.3 failed. 
!!! Function pkg_setup, Line 21, Exitcode 126 
!!! You need to re-emerge Imlib2 with USE=X 

Expected Results:  
I expected it to emerge correctly :) 

I figured out how to fix it as well. It's not inheriting the values 
from /usr/portage/eclass/gcc.eclass.  To correct this, apply the following 
patch:  
 
--- /old/usr/portage/media-libs/giblib/giblib-1.2.3.ebuild      2004-02-22 
17:15:02.000000000 -0800 
+++ /new/usr/portage/media-libs/giblib/giblib-1.2.3.ebuild      2004-02-23 
02:43:17.570039416 -0800 
@@ -2,6 +2,8 @@ 
 # Distributed under the terms of the GNU General Public License v2 
 # $Header: /home/cvsroot/gentoo-x86/media-libs/giblib/giblib-1.2.3.ebuild,v 
1.2 2004/02/23 01:06:11 vapier Exp $ 
  
+inherit gcc 
+ 
 DESCRIPTION="Giblib, graphics library" 
 HOMEPAGE="http://www.linuxbrit.co.uk/" 
 SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz" 
 
 
Here's my 'emerge info' just so my report is complete: 
Gentoo Base System version 1.4.3.13 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-love3) 
================================================================= 
System uname: 2.6.3-love3 i686 AMD Athlon(tm) Processor 
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.7.7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -O2 -pipe -mmmx -m3dnow 
-fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/env.d" 
CXXFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -O2 -pipe -mmmx -m3dnow 
-fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox userpriv" 
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo 
http://planetmirror.com/pub/gentoo 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://192.168.23.1/gentoo-portage" 
USE="3dnow X aalib alsa apm avi berkdb cdr crypt cups curl dvd encode flac 
foomaticdb gif gimpprint gphoto2 gstreamer gtk gtk2 imagemagick imap imlib java 
jpeg kde libg++ libwww mad maildir mmx moznocompose moznoirc moznomail mpeg 
ncurses oggvorbis opengl pam pda pdflib perl png python qt quicktime readline 
samba sdl slang spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
Comment 1 Duane Healing 2004-02-23 02:57:50 UTC
Created attachment 26151 [details, diff]
patch to inherit gcc.eclass
Comment 2 SpanKY gentoo-dev 2004-02-23 12:44:05 UTC
bleh, sorry guys, fixed in cvs
Comment 3 SpanKY gentoo-dev 2004-02-23 14:01:57 UTC
*** Bug 42646 has been marked as a duplicate of this bug. ***
Comment 4 Arlo 2004-02-23 20:08:22 UTC
*** Bug 42688 has been marked as a duplicate of this bug. ***
Comment 5 Aniruddha Shankar 2004-09-08 21:04:45 UTC
This bug still seems to be present. Giblib built okay (as far as I can tell) but it fails at the "extracting info" step, complaining about needing to emerge Imlib2 with "X" in the USEflags.

./usr/include/giblib/gib_hash.h
./usr/include/giblib/giblib.h
./usr/include/giblib/gib_list.h
./usr/include/giblib/gib_utils.h
>>> Done.
>>> extracting info
gcc: /var/tmp/portage-pkg/giblib-1.2.3/inf/files/imlib-x-test.c: No such file or directory

!!! ERROR: giblib-1.2.3/giblib-1.2.3 failed.
!!! Function pkg_setup, Line 22, Exitcode 1
!!! You need to re-emerge Imlib2 with USE=X

!!! Error running pkg_setup

But I HAVE emerged imlib2 with USE="X", as the following output will show:

genone root # emerge -vp imlib2
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild   R   ] media-libs/imlib2-1.1.2  +X -doc +gif +jpeg +mmx +nls +png +tiff  0 kB 

emerge info: 

genone root # emerge info
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-gentoo-r14)
=================================================================
System uname: 2.6.7-gentoo-r14 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -mmmx -msse -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -mmmx -msse -mfpmath=sse"
DISTDIR="/mnt/tmp/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid audiofile avi berkdb bzlib cdparanoia cdr cpdflib crypt cups curl dga dnd dv dvb dvd dvdr edl encode esd exif faad fam fftw flac flash fltk foomaticdb ftp gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml i8x0 imagemagick imap imlib imlib2 java javascript jbig jpeg kde lcms libcaca libg++ libwww linguas_hi lzo mad mailbox maildir mbox mmx mng motif mozilla mozsvg mpeg mpi mysql nas ncurses nethack network nis nls ntlm oav oggvorbis openal opengl oss pam pdf pdflib perl pic png ppds python qt quicktime readline recode rtc samba scanner sdl slang slp speex spell sse ssl svga tcltk tcpd tga theora tiff truetype unicode usb vim-with-x wmf x86 xml xml2 xmms xpm xprint xv xvid zlib"
Comment 6 SpanKY gentoo-dev 2004-09-08 21:11:57 UTC
no, the bug you're seeing is a portage problem, not giblib

search bugzilla for it, i dont remember the # offhand