Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386697 - media-libs/gst-plugins-bad-0.10.22 should have more USE flags
Summary: media-libs/gst-plugins-bad-0.10.22 should have more USE flags
Status: RESOLVED DUPLICATE of bug 386897
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL: http://gstreamer.freedesktop.org/data...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 00:55 UTC by Otávio Cipriani
Modified: 2011-10-13 05:56 UTC (History)
0 users

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


Attachments
Ebuild that honors "kate" USE flag (gst-plugins-bad-0.10.22-r1.ebuild,1.36 KB, text/plain)
2011-10-11 02:21 UTC, Otávio Cipriani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Otávio Cipriani 2011-10-11 00:55:09 UTC
I wanted the "kateenc" GStreamer plugin, but as far as I know there is currently no way of telling that to "emerge". The opposite is also true (I cannot prevent a GStreamer plugin from being built).

Checking the build log from "media-libs/gst-plugins-bad-0.10.22" I could see that "--disable-kate" is being passed to "configure", along with various other "--disable" options.

I have no idea where those "disable" options are coming from, but I sure would like to change that "--disabe-kate" option to "--enable-kate".

I tried compiling gst-plugins-bad-0.10.22 from source and passing "--enable-kate" to "configure". The script detected that neither KATE nor TIGER where installed and automatically disabled the Kate plugin.

Then I emerged "media-libs/libkate-0.3.7" and executed the configure script again. This time the Kate plugin was enabled and compiled without errors.

Reproducible: Always

Steps to Reproduce:
1. Emerge "media-libs/gst-plugins-bad-0.10.22".
Actual Results:  
The BAD set of GStreamer plugins is very limited.

Expected Results:  
The BAD set of GStreamer plugins should have USE flags to control what should be installed or not.

Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 10 Oct 2011 23:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --nospinner"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=core2 -O2 -pipe"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo http://gentoo.c3sl.ufpr.br http://gentoo.lcc.ufmg.br http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt pt_BR en en_US"
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 --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-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 route share 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_owner authz_user autoindex cache cgi cgid 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 negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_BR en en_US" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Otávio Cipriani 2011-10-11 02:21:07 UTC
Created attachment 289491 [details]
Ebuild that honors "kate" USE flag

I found out that "gst-plugins-bad.eclass" is the one responsible for adding those various "--disabe" options on the "configure" command line.

It has a list of GStreamer plugins to NOT build ("my_gst_plugins_bad") and accepts a list of plugins to build ("GST_PLUGINS_BUILD").

I changed the "gst-plugins-bad-0.10.22.ebuild" to add the "kate" plugin if the "kate" USE flag is set.

I tested the ebuild with "ebuild --skip-manifest gst-plugins-bad-0.10.22-r1.ebuild clean compile" and it compiled perfectly and with the kate plugin enabled.

This is the first time I changed an ebuild file, so the quality of the code may not be up to par with those of experienced Gentoo programmers, but the idea was to show how this could be implemented.

I really do not expct this file to go into the main Portage tree (at least not exactly how I sent it).
Comment 2 Otávio Cipriani 2011-10-12 12:53:04 UTC
I created another ebuild (bug #386897) for installing the Kate plugins.

I think that bug #386897 is a better solution for this bug.
Comment 3 Mart Raudsepp gentoo-dev 2011-10-13 05:56:59 UTC
(In reply to comment #2)
> I think that bug #386897 is a better solution for this bug.

Yes

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