Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49654 - mrtg-2.9.29.ebuild doesn't compile. needs USE FLAGS
Summary: mrtg-2.9.29.ebuild doesn't compile. needs USE FLAGS
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 15:16 UTC by Gabriele Scigliano
Modified: 2004-05-04 02: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 Gabriele Scigliano 2004-05-01 15:16:09 UTC
I've found that mrtg doesn't compile. Emerging mrtg stops at configure time. It claims for no gd presence. I have found that to make mrtg compile correctly these USE flags are needed: gd png jpeg
May be jpeg is not necessary. I don't know. But by adding those three USE flags I was able to build correctly mrtg.

Hope this is useful.
Gabriele Scigliano.

Reproducible: Always
Steps to Reproduce:
1.emerge -pD mrtg (here it will show, if you have no gd,jpeg,png USE flag) that libgd and mrtg should be emerged. In fact /usr/portage/net-analyzer/mrtg/mrtg-2.9.29.ebuild is like this:
DEPEND="virtual/glibc
    dev-lang/perl
    >=media-libs/libgd-1.8.3"
2.Only libgd will compile correctly. Mrtg compilation will fail.
3.Add "gd png jpeg" to USE in /etc/make.conf
May be "gd png" should work too. But not tested.
Actual Results:  
Compilation did work.

Expected Results:  
I think you should modify mrtg ebuild adding this:
IUSE="gd png jpeg"

emerge info
Portage 2.0.50-r6 (hardened-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24-
hardened)
=================================================================
System uname: 2.4.24-hardened i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O -march=pentium2 -fomit-frame-pointer -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O -march=pentium2 -fomit-frame-pointer -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb crypt gd hardened ipv6 jpeg libwww maildir nls pam perl pic 
png python readline ssl tcpd x86 zlib"
Comment 1 Michael Boman (RETIRED) gentoo-dev 2004-05-03 21:08:02 UTC
This is a limitation in portage, where you can't check if a dependency has been compiled with certain USE options.
Comment 2 Gabriele Scigliano 2004-05-03 23:05:40 UTC
The matter is not what USE flags was a certain package compiled with, but the libnpg dependency.
I suggested use of USE flags to acquaintance of the libpng dependency. Ok a very bad way. btw
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-unix-guide.html
"libpng

Is required by gd in order to produce PNG graphics files. Get it from: 
 http://www.libpng.org/pub/png/src/
"

So now the ebuild's DEPEND is set like this:
DEPEND="virtual/glibc
        dev-lang/perl
        >=media-libs/libgd-1.8.3"

I suggest
DEPEND="virtual/glibc
        dev-lang/perl
        >=media-libs/libgd-1.8.3
        media-libs/libpng"


Gabriele Scigliano.
Comment 3 Michael Boman (RETIRED) gentoo-dev 2004-05-04 01:45:24 UTC
That still does not garantee that libgd is built with PNG support, and introduces a dependency that doesn't exist.

Until portage has a way to check what USE flags something was built with, this bug (and many like it) have no solution.
Comment 4 Gabriele Scigliano 2004-05-04 02:30:43 UTC
Ok, thanks for your answer. Then I hope this feature will be soon in portage :)

Gabriele Scigliano