Re: OpenJDK packaging bug in Fedora 19

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/11/2013 08:41 PM, Chris Adams wrote:
Once upon a time, Tom Horsley <horsley1953@xxxxxxxxx> said:
On Thu, 11 Jul 2013 12:54:36 -0500
Rex Dieter wrote:
Ditto.  I've been meaning to write a packaging draft to the alternatives
guidelines to enforce the idea that packages MUST own their 'alternatives'
targets

But how can multiple packages trade ownership of the same file?

It isn't a file, it is a symlink, and all the packages should have the
same symlink (pointing to /etc/alternatives).
Almost.

These alternatives-symlinks are created post-install, i.e. rpm doesn't know about them.

This allows %ghost-ing them, i.e. letting rpm know about the fact these symlinks are present, while the contents of these files/symlinks is not known to rpm.

In other words, the java rpms could use something along the lines of this:

%files
%ghost /usr/bin/java

%post
[...]
/usr/sbin/alternatives --install /usr/bin/java [...]
[...]

I am using this approach, e.g. Coin2-devel to handle /usr/bin/coin-config, which may point to different versions of "config-scripts".

Ralf

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux