[opensuse-packaging] Making more packages relocatable?
Hello, The documention "Maximum RPM: Taking the Red Hat Package Manager to the Limit" contains a description like the following. http://rpm.org/max-rpm/ch-rpm-reloc.html "… Chapter 15. Making a Relocatable Package RPM has the ability to give users some latitude in deciding where packages are to be installed on their systems. …" I would like to use this functionality more often. Example: elfring@Sonne:~> rpm --install --prefix ~/Probe http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Factory/x86_64/... error: package Mesa-libGL1 is not relocatable Would any more software builders like to design their packages in a way so that they give various users such an installation freedom by the usual package management interfaces? https://forums.opensuse.org/showthread.php/513334-Installation-into-an-alter... Regards, Markus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Friday 2016-02-05 16:21, SF Markus Elfring wrote:
The documention "Maximum RPM: Taking the Red Hat Package Manager to the Limit" contains a description like the following. http://rpm.org/max-rpm/ch-rpm-reloc.html "… Chapter 15. Making a Relocatable Package
RPM has the ability to give users some latitude in deciding where packages are to be installed on their systems.
Would any more software builders like to design their packages in a way so that they give various users such an installation freedom by the usual package management interfaces?
No one supports that feature, and one reason is that paths get hardcoded in various places at the time of compilation, thwarting the usefulness of RPM relocations. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Would any more software builders like to design their packages in a way so that they give various users such an installation freedom by the usual package management interfaces?
No one supports that feature,
I am surprised by such a feedback.
and one reason is that paths get hardcoded in various places at the time of compilation, thwarting the usefulness of RPM relocations.
Does this information point any further software development challenges out? Regards, Markus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 05.02.2016 um 16:21 schrieb SF Markus Elfring:
RPM has the ability to give users some latitude in deciding where packages are > to be installed on their systems. > …" > > > I would like to use this functionality more often.
Would any more software builders like to design their packages in a way so that > they give various users such an installation freedom by the usual
I would also like to see this more often, e.g. to have an alternative to Gentoo's Project:Prefix. But it does not work at the moment, so one problem is that most libraries will not be found by the dynamic liker because of missing RPATH (you will need a relativ rpath like using $ORIGIN...). So at the moment you will have to recompile each src.rpm with a own rpmbuild version (prefix set in rpm macros and some custom rpath stuff) and of cause change a lot of package because /sbin/ldconfig will not always be preset (and some maintainers use hardcoded paths in their spec files). But this is a different story. package > management interfaces? I do not think this is possible with at least the official openSUSE packages (there is even a strip-rpath when building on build.opensuse.org). Regards, Ferdiannd -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
* Ferdinand Thiessen (f.thiessen@gmx.de) [20160205 17:22]:
But it does not work at the moment, so one problem is that most libraries will not be found by the dynamic liker because of missing RPATH (you will need a relativ rpath like using $ORIGIN...).
Such packages would have to come from a different repo as a) the majority of users just install into the standard directories and b) we try to minimise the use of rpath for standard directories. If you have a non-standard system wide directories you can just drop a file into /etc/ld.so.conf.d that lists these, run ldconfig and you're done. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Such packages would have to come from a different repo as
Really?
a) the majority of users just install into the standard directories
Did you ever check if any more users get a need for alternative installation directories because of special software requirements?
and b) we try to minimise the use of rpath for standard directories.
Is there any other fine-tuning needed in advanced system configurations? Regards, Markus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Ferdinand Thiessen
-
Jan Engelhardt
-
Philipp Thomas
-
SF Markus Elfring