Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading from =media-libs/jpeg-6b to =media-libs/jpeg-7.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Wed Sep 16, 2009 4:43 pm    Post subject: Upgrading from =media-libs/jpeg-6b to =media-libs/jpeg-7. Reply with quote

When you upgrade from media-libs/jpeg-6b to media-libs/jpeg-7 you will notice that libjpeg.so.62 isn't present anymore and libjpeg.so.7 is installed instead. A lot of programs will break temporarily, including environments like Gnome or KDE.

So what should you do?

If you have jpeg-compat OR old libjpeg.so.62 installed, remove it.

# emerge -C media-libs/jpeg-compat
# rm -f /usr/lib/libjpeg.so.62*

Fix your system with Portage 2.2*.

# emerge @preserved-rebuild

Fix your system with Portage 2.1*.

# emerge gentoolkit
# revdep-rebuild

Do above until every package except _binary only_ ones are recompiled to use libjpeg.so.7 instead of libjpeg.so.62.

Now, you can install media-libs/jpeg-compat for _binary only_ packages like e.g. games-strategy/savage2-bin.

I'd like to emphatize the fact that media-libs/jpeg-compat isn't meant to be used for fixing source based packages, and it will cause you
problems later on.


Stuck, --kallamej
Unstuck, --Earthwings
Back to top
View user's profile Send private message
allistarM
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 78

PostPosted: Thu Oct 15, 2009 11:06 pm    Post subject: Reply with quote

These instructions don't work for me. I have jpeg-7 and jpeg-compat installed:

Code:
aragorn allistar # emerge -pvt jpeg jpeg-compat

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/jpeg-compat-6b-r1  0 kB
[ebuild   R   ] media-libs/jpeg-7  0 kB


If I remove jpeg-compat and do a revdep-rebuild, there are a lot of packages that need rebuilding (as expected). I emerge kdelibs first, and it dies trying to link to libjpeg-so.62:

Quote:
/usr/qt/3/bin/moc ./kconfigdialogmanager.h -o kconfigdialogmanager.moc
/bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I. -I../kio/kssl -I../kjs -I../kdefx -I../kdecore/network -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I/usr/include/libart-2.0 -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o klockfile.lo klockfile.cpp
/bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I. -I../kio/kssl -I../kjs -I../kdefx -I../kdecore/network -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I/usr/include/libart-2.0 -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kqiodevicegzip_p.lo kqiodevicegzip_p.cpp
/bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I. -I../kio/kssl -I../kjs -I../kdefx -I../kdecore/network -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I/usr/include/libart-2.0 -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o ktimezones.lo ktimezones.cpp
../dcop/dcopidl/dcopidl ./ksycoca.h > ksycoca.kidl || ( rm -f ksycoca.kidl ; false )
../dcop/dcopidl/dcopidl: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
make[4]: *** [ksycoca.kidl] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.10-r6/work/kdelibs-3.5.10/kdecore'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.10-r6/work/kdelibs-3.5.10/kdecore'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.10-r6/work/kdelibs-3.5.10/kdecore'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.10-r6/work/kdelibs-3.5.10'
make: *** [all] Error 2


Should kdelibs-3.5.10-r6 be linking to libjpeg.so.62 or should it be link to the new libjpeg.so.7?

From what I have read, I shouldn't need jpeg-compat installed other than for binary packages, of which I have none.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Oct 15, 2009 11:46 pm    Post subject: Reply with quote

revdep-rebuild doesn't always get the build order correct, that's known issue.

you could use:

Code:
revdep-rebuild -- --keep-going
Back to top
View user's profile Send private message
allistarM
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 78

PostPosted: Thu Oct 15, 2009 11:56 pm    Post subject: Reply with quote

So you think that there is something else that needs to be rebuilt before kdelibs, and that will stop kdelibs from looking for libjpeg.so.62?

It would be good what that package is, because as soon as I uninstall jpeg-compat, my desktop becomes pretty much unusable (at least important things like kontact and kmail stop working).

Here is the list of things revdep-rebuild wants to rebuild:

Code:
[ebuild   R   ] kde-base/arts-3.5.10
[ebuild   R   ] kde-base/libkmime-3.5.10
[ebuild   R   ] kde-base/libkonq-3.5.10
[ebuild   R   ] media-libs/lcms-1.18-r1
[ebuild   R   ] kde-base/libkdenetwork-3.5.10-r1
[ebuild   R   ] media-libs/jasper-1.900.1-r3
[ebuild   R   ] media-libs/libquicktime-1.1.3
[ebuild   R   ] dev-libs/poppler-0.10.7
[ebuild   R   ] kde-base/ktnef-3.5.10
[ebuild   R   ] kde-base/kwin-3.5.10
[ebuild   R   ] kde-base/libkcddb-3.5.10
[ebuild   R   ] kde-base/libkpgp-3.5.10
[ebuild   R   ] media-gfx/sane-backends-1.0.19-r2
[ebuild   R   ] media-libs/libmng-1.0.10
[ebuild   R   ] app-office/koffice-libs-1.6.3_p20090204
[ebuild   R   ] dev-python/PyQt-3.18.1
[ebuild   R   ] kde-base/cervisia-3.5.10
[ebuild   R   ] kde-base/kate-3.5.10
[ebuild   R   ] kde-base/kcminit-3.5.10
[ebuild   R   ] kde-base/khelpcenter-3.5.10
[ebuild   R   ] kde-base/khotkeys-3.5.10
[ebuild   R   ] kde-base/kmailcvt-3.5.10
[ebuild   R   ] kde-base/kmenuedit-3.5.10
[ebuild   R   ] kde-base/kode-3.5.10
[ebuild   R   ] kde-base/libkholidays-3.5.10
[ebuild   R   ] kde-base/libksieve-3.5.10
[ebuild   R   ] media-libs/imlib-1.9.15-r2
[ebuild   R   ] media-libs/vigra-1.6.0
[ebuild   R   ] app-text/kchmviewer-3.1_p2-r1
[ebuild   R   ] dev-perl/perl-tk-804.028-r2
[ebuild   R   ] kde-base/ark-3.5.10
[ebuild   R   ] kde-base/kamera-3.5.10
[ebuild   R   ] kde-base/kcalc-3.5.10
[ebuild   R   ] kde-base/kcharselect-3.5.10
[ebuild   R   ] kde-base/kdeaddons-kfile-plugins-3.5.10
[ebuild   R   ] kde-base/kdeadmin-kfile-plugins-3.5.10
[ebuild   R   ] kde-base/kdeartwork-styles-3.5.10
[ebuild   R   ] kde-base/kdegraphics-kfile-plugins-3.5.10
[ebuild   R   ] kde-base/kdemultimedia-kfile-plugins-3.5.10
[ebuild   R   ] kde-base/kdenetwork-filesharing-3.5.10
[ebuild   R   ] kde-base/kdenetwork-kfile-plugins-3.5.10
[ebuild   R   ] kde-base/kdesdk-kfile-plugins-3.5.10
[ebuild   R   ] kde-base/kdesdk-kioslaves-3.5.10
[ebuild   R   ] kde-base/kedit-3.5.10
[ebuild   R   ] kde-base/kfilereplace-3.5.10
[ebuild   R   ] kde-base/kgamma-3.5.10
[ebuild   R   ] kde-base/kgpg-3.5.10
[ebuild   R   ] kde-base/khexedit-3.5.10
[ebuild   R   ] kde-base/kimagemapeditor-3.5.10
[ebuild   R   ] kde-base/klinkstatus-3.5.10
[ebuild   R   ] kde-base/kmag-3.5.10
[ebuild   R   ] kde-base/kmix-3.5.10
[ebuild   R   ] kde-base/kommander-3.5.10
[ebuild   R   ] kde-base/kompare-3.5.10
[ebuild   R   ] kde-base/kpersonalizer-3.5.10
[ebuild   R   ] kde-base/kreadconfig-3.5.10
[ebuild   R   ] kde-base/krfb-3.5.10
[ebuild   R   ] kde-base/ksmserver-3.5.10
[ebuild   R   ] kde-base/ksnapshot-3.5.10
[ebuild   R   ] kde-base/ksplashml-3.5.10
[ebuild   R   ] kde-base/ksysguard-3.5.10
[ebuild   R   ] kde-base/ksystraycmd-3.5.10-r1
[ebuild   R   ] kde-base/kuser-3.5.10
[ebuild   R   ] kde-base/kwalletmanager-3.5.10
[ebuild   R   ] kde-base/kweather-3.5.10
[ebuild   R   ] kde-base/kworldclock-3.5.10
[ebuild   R   ] kde-base/kxsldbg-3.5.10
[ebuild   R   ] kde-base/librss-3.5.10
[ebuild   R   ] kde-base/nsplugins-3.5.10
[ebuild   R   ] kde-base/quanta-3.5.10
[ebuild   R   ] kde-base/renamedlg-audio-3.5.10
[ebuild   R   ] kde-base/renamedlg-images-3.5.10
[ebuild   R   ] kde-base/superkaramba-3.5.10
[ebuild   R   ] kde-misc/filelight-1.0-r2
[ebuild     U ] media-gfx/xloadimage-4.1-r10 [4.1-r4] USE="tiff*"
[ebuild   R   ] media-gfx/xv-3.10a-r15
[ebuild     U ] media-libs/imlib2-1.4.2-r1 [1.3.0] USE="bzip2* tiff*"
[ebuild     U ] media-libs/libkexif-0.2.5-r1 [0.2.5]
[ebuild   R   ] sci-astronomy/stellarium-0.10.2
[ebuild   R   ] www-client/links-2.2
[ebuild   R   ] x11-libs/fltk-1.1.7-r2
[ebuild   R   ] x11-libs/openmotif-2.3.2
[ebuild   R   ] kde-base/libkcal-3.5.10
[ebuild   R   ] kde-base/certmanager-3.5.10-r1
[ebuild   R   ] kde-base/kicker-3.5.10-r1
[ebuild   R   ] x11-wm/compiz-0.8.2-r3
[ebuild   R   ] dev-libs/poppler-qt3-0.10.7
[ebuild   R   ] kde-base/kdemultimedia-arts-3.5.10
[ebuild   R   ] kde-base/kdemultimedia-kioslaves-3.5.10
[ebuild   R   ] kde-base/kdepasswd-3.5.10
[ebuild   R   ] kde-base/kdepim-kioslaves-3.5.10
[ebuild   R   ] kde-base/kfind-3.5.10
[ebuild   R   ] kde-base/kscreensaver-3.5.10
[ebuild   R   ] kde-base/libkscan-3.5.10
[ebuild   R   ] media-gfx/imagemagick-6.5.2.9  USE="jpeg2k*"
[ebuild   R   ] media-video/mjpegtools-1.9.0
[ebuild   R   ] media-video/transcode-1.0.7
[ebuild   R   ] app-cdr/kiso-0.8.3
[ebuild   R   ] app-office/kivio-1.6.3_p20090204
[ebuild   R   ] app-pda/ipodslave-0.7.3
[ebuild   R   ] dev-util/kdevelop-3.5.4-r1
[ebuild   R   ] games-emulation/xmame-0.106
[ebuild   R   ] kde-base/kate-plugins-3.5.10
[ebuild   R   ] kde-base/kdeartwork-kwin-styles-3.5.10
[ebuild   R   ] kde-base/ksvg-3.5.10
[ebuild   R   ] kde-base/kuickshow-3.5.10
[ebuild   R   ] kde-misc/ksensors-0.7.3
[ebuild   R   ] media-gfx/dcraw-8.73
[ebuild   R   ] media-libs/libkdcraw-0.1.4-r2
[ebuild   R   ] media-libs/libkipi-0.1.5
[ebuild   R   ] media-video/dvgrab-3.1
[ebuild   R   ] media-video/mplayer-1.0_rc2_p20090731
[ebuild   R   ] net-p2p/ktorrent-2.2.8-r2
[ebuild   R   ] kde-base/libkdepim-3.5.10
[ebuild   R   ] kde-base/kcontrol-3.5.10
[ebuild   R   ] kde-base/libkpimexchange-3.5.10
[ebuild   R   ] app-cdr/k3b-1.0.5-r6
[ebuild   R   ] kde-base/kaudiocreator-3.5.10
[ebuild   R   ] kde-base/kicker-applets-3.5.10
[ebuild   R   ] kde-base/kooka-3.5.10
[ebuild   R   ] kde-base/krec-3.5.10
[ebuild   R   ] media-video/cinelerra-20090210
[ebuild   R   ] media-video/dvdauthor-0.6.14
[ebuild   R   ] x11-libs/compizconfig-backend-kconfig-0.8.2
[ebuild   R   ] x11-plugins/compiz-plugins-main-0.8.2-r1
[ebuild   R   ] kde-base/konqueror-3.5.10
[ebuild   R   ] kde-base/libkpimidentities-3.5.10
[ebuild   R   ] kde-base/kontact-3.5.10
[ebuild   R   ] kde-base/kdesktop-3.5.10
[ebuild   R   ] kde-base/konq-plugins-3.5.10
[ebuild   R   ] media-sound/amarok-1.4.10_p20090130-r3
[ebuild   R   ] net-misc/smb4k-0.9.9
[ebuild   R   ] kde-base/kaddressbook-3.5.10
[ebuild   R   ] kde-base/akregator-3.5.10
[ebuild   R   ] kde-base/kdm-3.5.10
[ebuild   R   ] kde-base/kmail-3.5.10
[ebuild   R   ] kde-base/knode-3.5.10
[ebuild   R   ] kde-base/knotes-3.5.10
[ebuild   R   ] kde-base/kdepim-kresources-3.5.10
[ebuild   R   ] kde-base/kaddressbook-plugins-3.5.10
[ebuild   R   ] kde-base/konqueror-akregator-3.5.10
[ebuild   R   ] kde-base/korganizer-3.5.10
[ebuild   R   ] net-print/cups-1.3.10-r2
[ebuild   R   ] x11-libs/gtk+-2.16.6  USE="jpeg2k*"
[ebuild   R   ] app-text/ghostscript-gpl-8.64-r3  USE="jpeg2k*"
[ebuild   R   ] net-libs/xulrunner-1.9.0.14
[ebuild   R   ] kde-base/kghostview-3.5.10
[ebuild   R   ] media-libs/gegl-0.0.22
[ebuild   R   ] net-libs/xulrunner-1.8.1.19
[ebuild   R   ] x11-misc/xscreensaver-5.08-r2
[ebuild   R   ] app-office/scribus-1.3.3.11
[ebuild   R   ] media-gfx/xsane-0.996
[ebuild   R   ] net-print/gutenprint-5.1.4
[ebuild   R   ] kde-base/kdeprint-3.5.10
[ebuild   R   ] app-office/openoffice-3.1.1
[ebuild   R   ] kde-base/kdeartwork-kscreensaver-3.5.10
[ebuild   R   ] media-gfx/gimp-2.6.4
[ebuild   R   ] media-video/vlc-1.0.2
[ebuild   R   ] www-client/mozilla-firefox-3.0.14
[ebuild   R   ] kde-base/kpdf-3.5.10-r1
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Oct 16, 2009 12:20 am    Post subject: Reply with quote

allistarM wrote:
So you think that there is something else that needs to be rebuilt before kdelibs, and that will stop kdelibs from looking for libjpeg.so.62?

It would be good what that package is, because as soon as I uninstall jpeg-compat, my desktop becomes pretty much unusable (at least important things like kontact and kmail stop working).


Indeed, quite a long list. Perhaps try keeping both, jpeg-7 and jpeg-compat, and,

Code:
revdep-rebuild -L libjpeg.so.62 -- --keep-going
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum