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

Lua 5.1 alongside with 5.2


PeGa!

Question

Hey folks,

 

I've recently run into a dependency conflict that forced me to remove lua 5.2 from my box. 

 

This is the situation:

  • mplayer, ffmpeg and other packages with the libquvi USE and podofo (needed by the pdf USE of krenamer) asked for lua >=5.2.
  • vlc and other programs (I can't recall now) asked for lua <5.2

I ended removing the libquvi USE and the pdf USE of krenamer, but I don't like that as a solution; I tried to slot the new version of lua (and I succeeded) but after doing that somehow the blockage persists as if I never had slotted lua in first place.

 

I saw that this issue appeared in Gentoo forums as well, but in my case, I have programs that rely on both versions.

 

I'm not a lua fanboy (in fact, I didn't knew that so many programs relied on lua) but yes, I'm a fanboy of satisfying every needed dependency on my system in order to provide the best funcionality and user experience available, so I would like to regain the libquvi flag (although it is not a priority) without breaking the system.

 

This is the status of my box right now:

sakura pega # equery d dev-lang/lua
 * These packages depend on dev-lang/lua:
app-arch/rpm-4.11.2 (lua ? >=dev-lang/lua-5.1.0[deprecated])
app-editors/vim-7.4.326 (!luajit ? dev-lang/lua[deprecated])
app-editors/vim-qt-20131004 (!luajit ? dev-lang/lua)
app-text/podofo-0.9.2 (dev-lang/lua)
dev-util/geany-plugins-1.24-r1 (lua ? dev-lang/lua)
media-libs/libquvi-0.4.1-r1 (>=dev-lang/lua-5.1[deprecated])
media-video/vlc-2.1.4 (lua ? >=dev-lang/lua-5.1:0)
net-analyzer/nmap-6.25 (lua ? >=dev-lang/lua-5.1.4-r1[deprecated])
www-client/elinks-0.12_pre6 (lua ? >=dev-lang/lua-5)

I'd really appreciate a hint regarding how to deal with lua and achieve the coexistence between the two versions of lua (5.1 and 5.2).

 

Thanks in advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi Oleg,

 

After a couple of syncs the issue with lua didn't solve, so I removed the lua USE from vlc. Thus, I upgraded my whole system, and now I'm with the system upgraded and stable.

 

Now I want to re-add the lua flag to vlc. This is what happens:

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

Calculating dependencies... done!
[ebuild   R    ] media-video/vlc-2.1.4:0/5-7  USE="X a52 alsa avcodec avformat bluray cdda cddb dbus dts dvbpsi dvd encode flac fontconfig gcrypt gnutls kde libnotify lua* matroska mmx mp3 mpeg mtp musepack ncurses ogg opengl png postproc qt4 samba sdl sftp shout sse svg swscale taglib theora truetype udev v4l vaapi vdpau vnc vorbis x264 xcb xml xv -aalib (-altivec) -atmo (-audioqueue) -avahi -bidi -chromaprint -dc1394 -debug -dirac -directfb (-directx) -dvb (-dxva2) -egl -faad -fdk -ffmpeg -fluidsynth -gme -gnome -growl -httpd -ieee1394 (-ios-vout) -jack -kate -libass -libcaca -libsamplerate -libtar -libtiger -linsys -lirc -live (-macosx) (-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) (-media-library) -modplug (-neon) -omxil -opencv -optimisememory -opus -projectm -pulseaudio (-qt5) -rdp -rtsp -run-as-root -schroedinger -sdl-image -sid -skins -speex {-test} -tremor -twolame -upnp -vcdx -vlm -wma-fixed -zvbi" 0 kB
[ebuild  NS    ]  dev-lang/lua-5.1.5-r3:0 [5.2.3-r1:5.2] USE="deprecated readline -emacs -static" 0 kB
[blocks B      ] dev-lang/lua:0 ("dev-lang/lua:0" is blocking dev-lang/lua-5.2.3-r1)

Total: 2 packages (1 in new slot, 1 reinstall), Size of downloads: 0 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-lang/lua-5.2.3-r1::gentoo, installed) pulled in by
    dev-lang/lua:5.2/5.2= required by (app-text/podofo-0.9.2::gentoo, installed)
    dev-lang/lua:= required by (app-text/podofo-0.9.2::gentoo, installed)

  (dev-lang/lua-5.1.5-r3::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-lang/lua-5.1:0 required by (media-video/vlc-2.1.4::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

As you previously said, the problem with libquvi seems to have disappeared, but podofo still is complaining about the version conflict.

 

This is my system right now:

[I] app-text/podofo
     Available versions:  0.9.2 {+boost debug idn test}
     Installed versions:  0.9.2(10:59:21 25/07/14)(boost -debug -idn -test)
     Homepage:            http://sourceforge.net/projects/podofo/
     Description:         PoDoFo is a C++ library to work with the PDF file format.



[I] media-video/vlc
     Available versions:  [M]2.0.5 [M]2.0.7 [M](~)2.0.8 [M](~)2.0.8a [M](~)2.0.9 [M]**2.0.9999 [M](~)2.1.0 [M](~)2.1.1(0/core7.0.0-vlc5.4.0) 2.1.2(0/5-7) (~)2.1.4(0/5-7) **2.1.9999(0/5-7) **9999(0/5-7) {+X a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug dirac direct2d directfb directx dshow dts dvb +dvbpsi dvd dxva2 egl +encode faad fbosd fdk +ffmpeg flac fluidsynth fontconfig +gcrypt gme gnome gnutls growl httpd ieee1394 ios-vout jack jpeg kate kde libass libcaca libnotify libproxy libsamplerate libtar libtiger linsys lirc live lua +macosx +macosx-audio (+)macosx-dialog-provider (+)macosx-eyetv (+)macosx-qtkit (+)macosx-quartztext +macosx-vout matroska media-library mmx modplug mp3 mpeg mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus oss png portaudio +postproc projectm pulseaudio pvr +qt4 qt5 rdp rtsp run-as-root samba schroedinger sdl sdl-image sftp shine shout sid skins speex sqlite sse svg switcher +swscale taglib test theora tremor truetype twolame udev upnp v4l vaapi vcdx vdpau visual vlm vnc vorbis vpx waveout wingdi wma-fixed x264 +xcb xml xosd xv zvbi ELIBC="glibc"}
     Installed versions:  2.1.4(07:26:39 26/07/14)(X a52 alsa avcodec avformat bluray cdda cddb dbus dts dvbpsi dvd encode flac fontconfig gcrypt gnutls kde libnotify matroska mmx mp3 mpeg mtp musepack ncurses ogg opengl png postproc qt4 samba sdl sftp shout sse svg swscale taglib theora truetype udev v4l vaapi vdpau vnc vorbis x264 xcb xml xv -aalib -altivec -atmo -audioqueue -avahi -bidi -chromaprint -dc1394 -debug -dirac -directfb -directx -dvb -dxva2 -egl -faad -fdk -ffmpeg -fluidsynth -gme -gnome -growl -httpd -ieee1394 -ios-vout -jack -kate -libass -libcaca -libsamplerate -libtar -libtiger -linsys -lirc -live -lua -macosx -macosx-audio -macosx-dialog-provider -macosx-eyetv -macosx-qtkit -macosx-quartztext -macosx-vout -media-library -modplug -neon -omxil -opencv -optimisememory -opus -projectm -pulseaudio -qt5 -rdp -rtsp -run-as-root -schroedinger -sdl-image -sid -skins -speex -test -tremor -twolame -upnp -vcdx -vlm -wma-fixed -zvbi ELIBC="glibc")
     Homepage:            http://www.videolan.org/vlc/
     Description:         VLC media player - Video player and streamer



[I] dev-lang/lua
     Available versions:  
     (0)    5.1.4-r8 5.1.5 (~)5.1.5-r1 (~)5.1.5-r3
     (5.1)  [M](~)5.1.5-r2 [M](~)5.1.5-r100
     (5.2)  [M](~)5.2.3 {M}(~)5.2.3-r1
       {+deprecated emacs readline static ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  5.2.3-r1(5.2)(10:52:46 25/07/14)(deprecated readline -emacs -static ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://www.lua.org/
     Description:         A powerful light-weight programming language designed for extending applications

Portage 2.3.6-r8 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.8.2, glibc-2.18-r1, 3.15.0-pf4 x86_64)
=================================================================
System uname: Linux-3.15.0-pf4-x86_64-AMD_Phenom-tm-_II_X2_550_Processor-with-gentoo-2.2.0
KiB Mem:    12309972 total,   1657892 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45-r1
dev-lang/python:          2.7.8-r1000, 3.3.5-r1000
dev-util/cmake:           2.8.12.2-r1
sys-apps/baselayout:      2.2.0-r6
sys-apps/openrc:          0.12.3-r3
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2-r2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo owncloud-client gamerlay
Installed sets: @kde-light-custom
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=amdfam10 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j4"                                                                                                                                                                                                                                                                 
PKGDIR="/usr/portage/packages"                                                                                                                                                                                                                                                 
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                                                                                         
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                                                                                      
PORTDIR="/usr/portage"                                                                                                                                                                                                                                                         
PORTDIR_OVERLAY="/var/lib/layman/owncloud-client /var/lib/layman/gamerlay"                                                                                                                                                                                                     
SYNC="git://github.com/funtoo/ports-2012.git"                                                                                                                                                                                                                                  
SYNC_USER="root"                                                                                                                                                                                                                                                               
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr ao bash-completion berkdb bluetooth bluray bzip2 cairo calendar cdda cddb cdparanoia cdr cjk colordiff cracklib crypt css cups cxx dbus dhcpcd dri dts dvd dvdr dvdread encode exif flac fontconfig ftp fuse gamin gd gdbm gif gimp git glamor glitz gnutls gphoto2 gpm gstreamer gtk iconv icq icu imagemagick imap imlib jabber jingle joystick jpeg jpeg2k kde lame libav libgda libnotify lm_sensors loop-aes mad matroska mime mmx modules mp3 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz ncurses networkmanager nls nptl nvidia offensive ogg openal opengl openmp oscar pam pcre pdf plasma png policykit posix python qt qt3support qt4 quicktime rdesktop readline resolvconf rss samba scanner sdl semantic-desktop sftp smp sqlite sqlite3 sse sse2 ssl startup-notification subversion svg symlink syslog sysvipc szip taglib theora threads tiff truetype udev udisks unicode upower usb vaapi vcd vdpau video vim-syntax vnc vorbis wavpack wifi win32codecs x264 xattr xcb xcomposite xine xinerama xml xosd xpm xprint xscreensaver xv xvid xvmc yahoo zlib" ABI_X86="64" 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 authn_core authz_core socache_shmcb unixd" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21" 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, SYNC_UMASK                                                                                                                            

Thanks in advance.

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...