Xpra: Ticket #182: Wrong x264 dependency in xpra.spec for Fedora with ATrpms

From your build instructions it looks like ATrpms repo is preferred repository for dependencies on Fedora distribution.

And, it looks like ATrpms changed the way how x264 libraries are distributed. Libraries moved to packages libx264_<version> and new package x264 occurred, plus x264 package makes x264-libs package obsolete.

For me it looks like ATrpms decided to allow multiple x264 libraries installed on the system, so user can upgrade system and x264 libraries even if some piece of software depend on older version of libx264.

Package x264 requires libx264_<same version>, so I think the best way is to require x264 package instead x264-libs or do not require nothing and leave it on auto-require feature of rpm. My patch is designed to require x264 package instead x264-libs package.



Sun, 26 Aug 2012 11:22:23 GMT - xdml: attachment set


Sun, 26 Aug 2012 14:58:12 GMT - Antoine Martin: status changed

I am now using rpmfusion, and I have created a proper repository for Fedora and CentOS - you can find the new instructions there: http://winswitch.org/downloads/rpm-repository.html

Le me know if that works for you and I'll close this ticket.

Note: the only downside is that the version shipped for Fedora 16 is too old so it will need an rpm specfile patch to disable some x264 features.


Sun, 26 Aug 2012 18:50:36 GMT - xdml:

antoine thats great news about repository, but for me it is not working.

First of all I use Fedora 16, after reading instructions, I have disabled ATrpms repository and removed all extra packages installed from ATrpms repository.

x264-libs from rpmfusion-free repository owns libx264.so.116, but xpra depends on libx264.so.118. Looks like rpms for Fedora 16 are build on system, where x264-libs are installed from another source and not from rpmfusion.

Below is my terminal log.

# cat /etc/redhat-release
Fedora release 16 (Verne)
# yum info x264-libs
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
Name        : x264-libs
Arch        : x86_64
Version     : 0.0.0
Release     : 0.31.20110811.fc16
Size        : 761 k
Repo        : installed
From repo   : rpmfusion-free
Summary     : Library for encoding H264/AVC video streams
URL         : http://developers.videolan.org/x264.html
License     : GPLv2+
Description : x264 is a free library for encoding H264/AVC video streams, written from
            : scratch.
Available Packages
Name        : x264-libs
Arch        : i686
Version     : 0.0.0
Release     : 0.31.20110811.fc16
Size        : 388 k
Repo        : rpmfusion-free
Summary     : Library for encoding H264/AVC video streams
URL         : http://developers.videolan.org/x264.html
License     : GPLv2+
Description : x264 is a free library for encoding H264/AVC video streams, written from
            : scratch.
# yum install xpra
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package xpra.x86_64 0:0.5.1-4.fc16 will be installed
--> Processing Dependency: libx264.so.118()(64bit) for package: xpra-0.5.1-4.fc16.x86_64
--> Finished Dependency Resolution
Error: Package: xpra-0.5.1-4.fc16.x86_64 (winswitch)
           Requires: libx264.so.118()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
# rpm -ql x264-libs
/usr/lib64/libx264.so.116

Mon, 27 Aug 2012 05:38:46 GMT - Antoine Martin: status changed; resolution set

You must have missed the part where I said:

Note: the only downside is that the version shipped for Fedora 16 is too old so it will need an rpm specfile patch to disable some x264 features.

And that is now also done:

Tested in a Fedora 16 VM. Enjoy! (feel free to re-open if I have missed anything)

$ yum install xpra
Loaded plugins: langpacks, presto, refresh-packagekit
updates/group_gz                                                           | 435 kB     00:03
Resolving Dependencies
--> Running transaction check
---> Package xpra.i386 0:0.5.1-6.fc16 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================
 Package            Arch               Version                      Repository               Size
==================================================================================================
Installing:
 xpra               i386               0.5.1-6.fc16                 winswitch               1.2 M
Transaction Summary
==================================================================================================
Install  1 Package
Total download size: 1.2 M
Installed size: 3.5 M
Is this ok [y/N]: y
Downloading Packages:
xpra-0.5.1-6.fc16.i386.rpm                                                 | 1.2 MB     00:17
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID f18ad6bb: NOKEY
Public key for xpra-0.5.1-6.fc16.i386.rpm is not installed
Retrieving key from https://winswitch.org/gpg.asc
Importing GPG key 0xF18AD6BB:
 Userid     : "Antoine Martin <antoine@nagafix.co.uk>"
 Fingerprint: c11c 0a4d f702 edf6 c04f 458c 18ad b31c f18a d6bb
 From       : https://winswitch.org/gpg.asc
Is this ok [y/N]: y
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : xpra-0.5.1-6.fc16.i386                                                         1/1
  Verifying  : xpra-0.5.1-6.fc16.i386                                                         1/1
Installed:
  xpra.i386 0:0.5.1-6.fc16
Complete!

Sat, 23 Jan 2021 04:47:45 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/182