Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83044 - analog 5.32 failed to build due to ebuild bug
Summary: analog 5.32 failed to build due to ebuild bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 02:12 UTC by Peter Spikings
Modified: 2005-02-23 18:14 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 Peter Spikings 2005-02-23 02:12:42 UTC
pkg_setup method in ebuild incorrect as it fails to detect jpeg being present in the media-libs/gd use flags. The if statement in pkg_setup (if [ ! "`has jpeg ${gd_use}`" ] ;) compares the output of the command rather than the return code!

Reproducible: Always
Steps to Reproduce:
emerge app-admin/analog :)
Actual Results:  
myth app-admin # emerge app-admin/analog
Calculating dependencies ...done!
>>> emerge (1 of 1) app-admin/analog-5.32 to /
>>> md5 src_uri ;-) analog-5.32.tar.gz
 * libgd is missing jpeg support. Please add
 * 'jpeg' to your USE flags, and re-emerge libgd.


I changed it as follows and it worked. How did this get past testing? :)

pkg_setup() {
        local gd_use="$(</var/db/pkg/`best_version media-libs/gd`/USE)"
        if ! has jpeg ${gd_use} ; then
                eerror "libgd is missing jpeg support. Please add"
                eerror "'jpeg' to your USE flags, and re-emerge libgd."
                die "libgd needs jpeg support"
        fi

        return 0
}

Can't see how this will help but I'll paste in the emerge info output for
completeness.

myth app-admin # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 18 2005, 16:05:41)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.9.4, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer -mmmx -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer -mmmx -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.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://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups curl dvd
emboss encode f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2
imlib ipv6 jpeg kde libg++ libwww lirc mad mikmod motif mpeg mysql ncurses nls
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl
spell ssl svga tcpd tiff transcode truetype truetype-fonts type1-fonts usb xml2
xmms xv xvidinfo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-02-23 18:14:46 UTC
well that was just ugly.  Fixed in cvs.  Thanks for the bug report.