Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91568 - xmltv ebuild has wrong/dangerous customize system iso USE flags
Summary: xmltv ebuild has wrong/dangerous customize system iso USE flags
Status: RESOLVED DUPLICATE of bug 95166
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-05 06:21 UTC by Melle Geers
Modified: 2005-12-25 22:27 UTC (History)
1 user (show)

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


Attachments
Ebuild to use USE flags instead of XMLOPTS (xmltv-0.5.39-r1.ebuild,4.74 KB, patch)
2005-06-02 22:59 UTC, Kurt Hindenburg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Melle Geers 2005-05-05 06:21:33 UTC
The xmltv ebuilds create dependencies based on an environment variable (XMLTV_OPTS). This variable is used to make a selection of the available `backends'.

Problem 1: there is no documentation on this, apart from reading the ebuild source 
Problem 2: if not set, everything will be enabled, including somthing that relies on TK, which pulls in a dependency on xorg
Problem 3: if this happened once, the deps are cached in the portage cache, so even with the envvar set, it still wants to get xorg

The solution would be of course to use proper (local) use-flags, which is what everybody would expect and which are in fact designed to handle this kind of customisation.
I am not sure if that solves problem 3 though (is there any logic in gentoo that updates the cached deps when use flags change? I hope so).

Reproducible: Always
Steps to Reproduce:
1. emerge -pvt xmltv
2.
3.

Actual Results:  
If the box is configured without X, xorg and a whole slew of unwanted packages
are pulled in.

Expected Results:  
Enable selection of backends with local USE flags.

$ emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 19:53:46)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.4.19-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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/alias
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm bash-completion berkdb bitmap-fonts bzlib cdr crypt cups
curl doc emboss encode foomaticdb gd gdbm gif gpm imagemagick imap imlib innodb
jpeg libg++ libwww lirc maildir mikmod mmx motif mp3 mysql ncurses offensive pam
pdflib perl png pop3 ppds readline samba sasl sdl snmp spell ssl tcpd tetex tiff
truetype truetype-fonts type1-fonts xml xml2 zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Melle Geers 2005-05-05 06:29:09 UTC
BTW, for now, as a quick fix, it would be nice if the ebuilds honors a -X useflag, so people with a headless box don't have to worrow about remembering to set a ^%$# envvar when portage emerges xmltv (due to a regular update or whatever).
Comment 2 Kurt Hindenburg 2005-06-02 22:59:34 UTC
Created attachment 60503 [details, diff]
Ebuild to use USE flags instead of XMLOPTS

Here's a quick conversion to using USE.  Note that the 2 it grabbers have been
remmoved and the pt has been added.  I tested this rather quickly...

For 0.5.39 version.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-12-25 22:27:28 UTC

*** This bug has been marked as a duplicate of 95166 ***