xpra icon
Bug tracker and wiki

Opened 7 years ago

Closed 7 years ago

#182 closed defect (fixed)

Wrong x264 dependency in xpra.spec for Fedora with ATrpms

Reported by: xdml Owned by: Antoine Martin
Priority: trivial Milestone: 0.5
Component: packaging Version: trunk
Keywords: rpm specfile Cc:

Description

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.

Attachments (1)

spec.patch (424 bytes) - added by xdml 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by xdml

Attachment: spec.patch added

comment:1 Changed 7 years ago by Antoine Martin

Status: newaccepted

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.

comment:2 Changed 7 years ago by 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
Last edited 7 years ago by xdml (previous) (diff)

comment:3 Changed 7 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

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!
Note: See TracTickets for help on using tickets.