Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303037 - app-admin/python-updater-0.8: Improve error message for missing PVR
Summary: app-admin/python-updater-0.8: Improve error message for missing PVR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-01-31 22:27 UTC by Juergen Rose
Modified: 2011-05-16 23:57 UTC (History)
8 users (show)

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


Attachments
python-updater.patch (python-updater.patch,628 bytes, patch)
2010-02-02 17:58 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
Patch for /sbin/python-updater listing all missing PVR variables (python-updater.patch,1.26 KB, text/plain)
2010-02-18 13:26 UTC, Bernd Feige
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-01-31 22:27:11 UTC
python-updater fails at three computers fails with:

root@grizzly:/usr/src(73)# python-updater -v
 * Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     3.1
 * check "shared_linking" enabled.
 * check "static_linking" enabled.
 * check "pylibdir" enabled.
 * check "manual" enabled.
 * check "need_rebuild" enabled.
 *   Adding to list: app-office/dia:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: app-office/gnumeric:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: dev-libs/boost:1.41
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: dev-python/cython:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: 2.6, new Python ABIs: 2.6 3.1 ]
 *   Adding to list: dev-python/httplib2:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: 2.6, new Python ABIs: 2.6 3.1 ]
 * PVR missing


Reproducible: Always




root@grizzly:/usr/src(77)# emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32.1 x86_64)
=================================================================
System uname: Linux-2.6.32.1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.1
Timestamp of tree: Sun, 31 Jan 2010 03:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=k8"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ "
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
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="/var/lib/layman/dotnet /var/lib/layman/java-overlay /var/lib/layman/lordvan /var/lib/layman/science /var/lib/layman/zugaina /var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi administrator afs alsa amd64 ao aotuv apache2 asf aspell atlas audacious audiofile automount bash-completion beagle berkdb blas bluetooth boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany esd evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kdrive kerberos kexi kpathsea ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper math matroska mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session slang slp smbclient sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="AC'97" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="tda10046 saa7134" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" LIRC_DEVICES="hauppauge_dvb" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-02 17:58:22 UTC
Created attachment 218197 [details, diff]
python-updater.patch

Your VDB seems to contain broken entries.
You can apply this patch to check which environment.bz2 files are broken. Please reinstall appropriate packages.
Comment 2 Bernd Feige 2010-02-18 11:26:02 UTC
(In reply to comment #1)
> Created an attachment (id=218197) [details]
> python-updater.patch
> 
> Your VDB seems to contain broken entries.
> You can apply this patch to check which environment.bz2 files are broken.
> Please reinstall appropriate packages.

Thank you! I see the same problem, here I get the response
PVR missing in /var/db/pkg/app-admin/eselect-cblas-0.1/environment.bz2

Comment 3 Bernd Feige 2010-02-18 11:28:33 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=218197) [details] [details]
> > python-updater.patch
> > 
> > Your VDB seems to contain broken entries.
> > You can apply this patch to check which environment.bz2 files are broken.
> > Please reinstall appropriate packages.
> 
> Thank you! I see the same problem, here I get the response
> PVR missing in /var/db/pkg/app-admin/eselect-cblas-0.1/environment.bz2

... Wanted to add: Fixed after emerge -1 eselect-cblas ...!
> 

Comment 4 Bernd Feige 2010-02-18 13:26:33 UTC
Created attachment 220149 [details]
Patch for /sbin/python-updater listing all missing PVR variables
Comment 5 Bernd Feige 2010-02-18 13:32:42 UTC
> > Thank you! I see the same problem, here I get the response
> > PVR missing in /var/db/pkg/app-admin/eselect-cblas-0.1/environment.bz2

Oh well, I was a bit too quick. Further packages I had to re-emerge were =dev-libs/glib-1.2.10-r5 media-fonts/font-schumacher-misc net-misc/x11-ssh-askpass virtual/blas virtual/cblas virtual/lapack x11-misc/imake

I attached another patch to python-updater that, instead of dying after the first missing PVR, continues to collect a list of environment files with missing PVRs and outputs it when all packages were processed, so that a single emerge command should suffice to fix all PVRs.
Comment 6 Dan White 2010-06-08 19:10:25 UTC
Having the same problem(s), and it sounds like I just need to apply this patch and then re-emerge any packages which are identified as "PVR Missing" after running python-updater again?

I'm unsure how to use the attached .patch file though - can anyone give me a 2 sentence primer, or point to a reference on how to proceed?

RACK ~ # python-updater -v
 * Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     3.1
 * check "shared_linking" enabled.
 * check "static_linking" enabled.
 * check "pylibdir" enabled.
 * check "manual" enabled.
 * check "need_rebuild" enabled.
 *   Adding to list: dev-python/pylibacl:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: 2.6, new Python ABIs: 2.6 3.1 ]
 *   Adding to list: dev-python/setuptools:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: 2.6, new Python ABIs: 2.6 3.1 ]
 * PVR missing

THANKS!
Comment 7 Bernd Feige 2010-06-09 08:44:25 UTC
(In reply to comment #6)

Hi Dan,

> Having the same problem(s), and it sounds like I just need to apply this patch
> and then re-emerge any packages which are identified as "PVR Missing" after
> running python-updater again?
> 
> I'm unsure how to use the attached .patch file though - can anyone give me a 2
> sentence primer, or point to a reference on how to proceed?

Say you saved the patch to /tmp/python-updater.patch. You'd do:
cd /usr/sbin
patch </tmp/python-updater.patch

Best regards,
Bernd
Comment 8 Dan White 2010-06-09 14:28:26 UTC
(In reply to comment #7)
> (In reply to comment #6)
> Hi Dan,
> > Having the same problem(s), and it sounds like I just need to apply this patch
> > and then re-emerge any packages which are identified as "PVR Missing" after
> > running python-updater again?
> > 
> > I'm unsure how to use the attached .patch file though - can anyone give me a 2
> > sentence primer, or point to a reference on how to proceed?
> Say you saved the patch to /tmp/python-updater.patch. You'd do:
> cd /usr/sbin
> patch </tmp/python-updater.patch
> Best regards,
> Bernd

That worked perfectly, and python-updater was able to identify one package (livecd-kernel) which I unmerged.  That allowed python-updater to complete on it's next run without issues.

Thanks for taking the time to write the patch, and instruct me on it's use!

Comment 9 Tiger 2010-07-14 19:53:24 UTC
Why this patch isn't applied after many month now ?

I've got the same error witch stop python-updater.
Comment 10 Thomas Capricelli 2010-09-17 01:26:01 UTC
hit by this bug today, using app-admin/python-updater-0.8.... will this patch be applied ?
Comment 11 Frossie 2010-09-26 04:01:09 UTC
+1 for this very useful patch, it bailed me out today.

Comment 12 jannis 2010-11-29 20:25:50 UTC
I would also like to see new release with this patch applied
Comment 13 Frank Hsieh 2011-01-19 15:21:06 UTC
(In reply to comment #4)
> Created an attachment (id=220149) [details]
> Patch for /sbin/python-updater listing all missing PVR variables
> 

+1 Thanks for the patch.
I found that my problem is :
 * Error: PVR missing in  /var/db/pkg/sys-kernel/livecd-kernel-1/environment.bz2. Please re-emerge the corresponding packages.

According to the advise from internet, I unmerge livecd-kernel.
Everything is OK.
Comment 14 William L. Thomson Jr. 2011-02-22 01:45:53 UTC
+1 to pvr patch
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-22 20:17:02 UTC
I'm against overcomplicated handling of error messages. I have committed a different fix in r435.
Comment 16 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-16 23:57:58 UTC
Fixed in app-admin/python-updater-0.9.