Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

Question about portage


AlfredChen

Question

Recently, portage pop up keyword changes needed for some pkg, but it seems it is not reasonable for me.

 

Let's take openjpeg for example here, highlight in blod

emerge -1avt ffmpeg

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

Calculating dependencies... done!
[ebuild  rR   ~] media-video/mpv-0.3.10  USE="X alsa enca iconv jpeg libass mpg123 opengl postproc shm vaapi wayland xscreensaver xv -bluray -bs2b -cdio -doc-pdf -dvb -dvd -dvdnav -encode -jack -joystick -ladspa -lcms -libcaca -libguess -lirc -lua -luajit -openal -oss -portaudio -pulseaudio -pvr -quvi -radio -samba -sdl (-selinux) -v4l -vcd -vdpau -vf-dlopen -xinerama" 0 kB
[ebuild   R   ~]  media-video/ffmpeg-2.2.3-r1:0/52.55.55  USE="X aac aacplus alsa bzip2 hardcoded-tables iconv jpeg2k libass mmx mp3 network opengl sse sse2 sse3 sse4 ssse3 threads truetype vaapi vorbis x264 xvid zlib -3dnow -3dnowext (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -avx -avx2 -bindist -bluray -cdio -celt -cpudetection -debug -doc -encode -examples -faac -fdk -flite -fma3 -fma4 -fontconfig -frei0r -gme -gnutls -gsm -iec61883 -ieee1394 -jack -ladspa -libcaca -libsoxr -libv4l (-mips32r2) (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -mmxext -modplug (-neon) -openal -openssl -opus -oss -pic -pulseaudio -quvi -rtmp -schroedinger -sdl -speex -sse4_2 -ssh -static-libs {-test} -theora -twolame -v4l -vdpau -vpx -wavpack -webp -x265 -zvbi" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 0 kB
[ebuild  r  U ~]   media-libs/libass-0.11.2:0/5 [0.10.1:0/0] USE="enca fontconfig harfbuzz -static-libs" 291 kB
[ebuild     U ~]    media-libs/harfbuzz-0.9.28:0/0.9.18 [0.9.23:0/0.9.18] USE="cairo glib graphite icu truetype -introspection -static-libs {-test%}" 1,039 kB
[ebuild     U ~]     media-libs/freetype-2.5.0.1:2 [2.4.11:2] USE="X adobe-cff%* bzip2 infinality png%* -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 1,730 kB
[ebuild     U ~]   media-libs/openjpeg-1.5.1-r1 [1.4-r1] USE="-doc -static-libs% {-test}" 0 kB
[nomerge       ] www-plugins/adobe-flash-11.2.202.378  USE="sse2 (-debug) -kde (-selinux)"
[nomerge       ]  x11-libs/pango-1.36.3  USE="X -debug -introspection"
[nomerge       ]   media-libs/harfbuzz-0.9.28:0/0.9.18 [0.9.23:0/0.9.18] USE="cairo glib graphite icu truetype -introspection -static-libs {-test%}"
[ebuild     U ~]    media-gfx/graphite2-1.2.4-r1 [1.2.1] USE="-perl {-test}" 6,777 kB
[nomerge       ] app-text/fbreader-0.99.4-r1  USE="-debug"
[ebuild     U ~]  dev-libs/fribidi-0.19.6 [0.19.5-r1] USE="-static-libs" 625 kB
[nomerge       ] media-video/ffmpeg-2.2.3-r1:0/52.55.55  USE="X aac aacplus alsa bzip2 hardcoded-tables iconv jpeg2k libass mmx mp3 network opengl sse sse2 sse3 sse4 ssse3 threads truetype vaapi vorbis x264 xvid zlib -3dnow -3dnowext (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -avx -avx2 -bindist -bluray -cdio -celt -cpudetection -debug -doc -encode -examples -faac -fdk -flite -fma3 -fma4 -fontconfig -frei0r -gme -gnutls -gsm -iec61883 -ieee1394 -jack -ladspa -libcaca -libsoxr -libv4l (-mips32r2) (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -mmxext -modplug (-neon) -openal -openssl -opus -oss -pic -pulseaudio -quvi -rtmp -schroedinger -sdl -speex -sse4_2 -ssh -static-libs {-test} -theora -twolame -v4l -vdpau -vpx -wavpack -webp -x265 -zvbi" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
[ebuild     U  ]  media-libs/libvorbis-1.3.4 [1.3.3] USE="-static-libs" 1,066 kB
[ebuild     U *]   virtual/pkgconfig-0-r1 [0] 0 kB
[ebuild     U ~]    dev-util/pkgconf-0.9.3-r1 [0.9.2] USE="(pkg-config) -strict" 81 kB
[nomerge       ] media-video/mpv-0.3.10  USE="X alsa enca iconv jpeg libass mpg123 opengl postproc shm vaapi wayland xscreensaver xv -bluray -bs2b -cdio -doc-pdf -dvb -dvd -dvdnav -encode -jack -joystick -ladspa -lcms -libcaca -libguess -lirc -lua -luajit -openal -oss -portaudio -pulseaudio -pvr -quvi -radio -samba -sdl (-selinux) -v4l -vcd -vdpau -vf-dlopen -xinerama"
[ebuild     U ~]  app-i18n/enca-1.14-r1 [1.13-r3] USE="recode -doc" 548 kB

Total: 12 packages (10 upgrades, 2 reinstalls), Size of downloads: 12,154 kB

From the ebuild file we can see

hp ffmpeg # grep openjpeg ffmpeg-2.2.3-r1.ebuild
    jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
    ffuse+=( amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg )

And ffmpeg is the only pkg which depends on openjpeg in my system

hp ffmpeg # equery d openjpeg
 * These packages depend on openjpeg:
media-video/ffmpeg-2.2.3-r1 (jpeg2k ? >=media-libs/openjpeg-1.5.0:0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?])

check the version of openjpeg in portage tree

hp ffmpeg # equery l -p openjpeg
 * Searching for openjpeg ...
[IP-] [  ] media-libs/openjpeg-1.4-r1:0
[-P-] [  ] media-libs/openjpeg-1.5.0:0
[-P-] [  ] media-libs/openjpeg-1.5.1:0
[-P-] [ ~] media-libs/openjpeg-1.5.1-r1:0
[-P-] [  ] media-libs/openjpeg-2.0.0:2
[-P-] [ -] media-libs/openjpeg-9999:2

So, media-libs/openjpeg-1.5.0 and media-libs/openjpeg-1.5.1 and event media-libs/openjpeg-2.0.0 can satisfy ffmpeg-2.2.3-r1.ebuild jpeg2k use flag, why portage just pickup media-libs/openjpeg-1.5.1-r1 which require a keyword change?

 

 

Porage I am using is

sys-apps/portage-2.3.6-r8, and I am use stable branch, *not the current branch*.

 

Thanks.

 

BR Alfred
 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

using stable branch is a root case. In your merge list some package requesting a package that using newer multilib versions, including ffmpeg, which are available only with ~keywords. What will change if you set amd64 x86 keywords for ffmpeg in /etc/portage/package.keywords?

Ok, got this, the "[${MULTILIB_USEDEP}]" is something new to me.

 

Set amd64 x86 keyword for ffmpeg will cause it downgrade to 1.2.6, I am not really want to do this. I just set the ~amd64 to ffmpeg-2.2.3, which doesn't use [${MULTILIB_USEDEP}] yet.

 

There are other pkgs which has same keyword issues caused by ${MULTILIB_USEDEP}, it seems that it will be a long existed issue till newer multilib versions are make as stable, any plan we going to this? PS, is this multilib version introduced by gentoo or funtoo?

 

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...