Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516968 - media-tv/mythtv-0.27_p20140321 USE=-perl - /usr/share/mythtv/contrib/maintenance/optimize_mythdb.pl: Can't locate MythTV.pm in @INC
Summary: media-tv/mythtv-0.27_p20140321 USE=-perl - /usr/share/mythtv/contrib/maintena...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: MythTV Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-12 16:39 UTC by John Klug
Modified: 2015-09-16 17:57 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 John Klug 2014-07-12 16:39:17 UTC
When running /usr/share/mythtv/contrib/maintenance/optimize_mythdb.pl, an error occurs indicating MythTV.pm is missing.

MythTV.pm is not listed as one of the files in the installation, nor was it produced by my installation.

Reproducible: Always

Steps to Reproduce:
1.perl /usr/share/mythtv/contrib/maintenance/optimize_mythdb.pl

Actual Results:  
Can't locate MythTV.pm in @INC (@INC contains: /etc/perl /usr/local/lib64/perl5/5.16.3/x86_64-linux /usr/local/lib64/perl5/5.16.3 /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux /usr/lib64/perl5/vendor_perl/5.16.3 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.16.3/x86_64-linux /usr/lib64/perl5/5.16.3 .) at optimize_mythdb.pl line 15.
BEGIN failed--compilation aborted at optimize_mythdb.pl line 15.


Expected Results:  
Optimized (shortened) mythtv database
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-12 17:11:48 UTC
Please post your `emerge --info media-tv/mythtv' output in a comment.
Comment 2 John Klug 2014-07-29 03:40:11 UTC
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.12.20-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.20-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.2
KiB Mem:     3982572 total,     45628 free
KiB Swap:   14844048 total,  14817584 free
Timestamp of tree: Sun, 06 Jul 2014 05:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo tvscribe_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirrors.cs.wmich.edu/gentoo ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/bigr0/usr_portage"
PORTDIR_OVERLAY="/var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 audiofile automount autostart avahi bash-completion berkdb bidi bzip2 cairo caps cdda cdio cdr cli consolekit cracklib crciprec crypt cxx dbus device-mapper devinput divx dri dts dvb dvd dvdnav dvdr dvdread encode exif expat extras ffmpeg fftw firefox flac fluidsynth fortran ftp gdbm gif gnome gnome-print gnutls gstreamer gtk guile httpd iconv icu ipv6 isc java jpeg kde lame lcd libsamplerate lirc live lua mad matroska mdnsresponder-compat melt midi mjpeg mmx modules moviepack moviesounds mp3 mpeg mplayer multilib mysql mytharchive mythbrowser mythgallery mythmusic mythnews mythweather na_dd na_icons ncurses networking nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit postscript pulseaudio python qmail-spp qt3support qt4 quicktime raw readline realmedia regex samba sdl server session smbclient sound soundex sounds soundtouch spell sql sse sse2 ssl stream svg tcpd theora threads tiff transcode truetype tv_check tv_combiner tv_pick_cgi twolame udev unicode vcd videos vim-syntax vlm vnc vorbis vorbis-psy wav wavpack webkit winbind wma wmp wxwindows x264 xcb xcomposite xinerama xiph xml xsettings xulrunner xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="imon" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-tv/mythtv-0.27_p20140321 was built with the following:
USE="alsa autostart dvb dvd fftw hls lcd lirc pulseaudio python theora vorbis xml xvid (-altivec) -bluray -cec -crystalhd -debug -egl -ieee1394 -jack -libass -perl -raop -vaapi -vdpau -xmltv" INPUT_DEVICES="-joystick"

>>> Attempting to run pkg_info() for 'media-tv/mythtv-0.27_p20140321'
Please attach all output as a file in bug reports.
MythTV Version : 317d5b7
MythTV Branch : tag: v0.27
Network Protocol : 77
Library API : 0.27.20140303-1
QT Version : 4.8.5
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_python using_bindings_php using_dvb using_frontend using_hdhomerun using_ceton using_hdpvr using_ivtv using_libcrypto using_libfftw3 using_libxml2 using_libudf using_lirc using_mheg using_opengl using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_mythlogserver using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads using_mheg using_libxml2 using_libudf
Comment 3 John Klug 2014-07-29 03:48:38 UTC
The following work-around does the perl build, which is missing:


cd /usr/portage/media-tv/mythtv
ebuild  mythtv-0.27_p20140321.ebuild configure
find . -name Makefile.PL
cd work/mythtv-0.27/mythtv/bindings/perl
perl Makefile.PL
make install
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2015-09-05 03:57:10 UTC
(In reply to John Klug from comment #3)
> The following work-around does the perl build, which is missing:
> 
> 
> cd /usr/portage/media-tv/mythtv
> ebuild  mythtv-0.27_p20140321.ebuild configure
> find . -name Makefile.PL
> cd work/mythtv-0.27/mythtv/bindings/perl
> perl Makefile.PL
> make install

You built the MythTV package with the following USE flags:

USE="alsa autostart dvb dvd fftw hls lcd lirc pulseaudio python theora vorbis xml xvid (-altivec) -bluray -cec -crystalhd -debug -egl -ieee1394 -jack -libass -perl -raop -vaapi -vdpau -xmltv" INPUT_DEVICES="-joystick"

So you can see -perl was provided so the ebuild did not build the perl components so this is expected behavior. In the future we won't install scripts if the Perl bindings are missing.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2015-09-16 17:57:51 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ada29b52010e465a522fdc68d4eee0da6eaa349