Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Fedora Core: no rpath

Closed / Fixed1231022fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 19 years ago
Descriptionplain2005-07-01 15:28:35
Contributed patch from
Fedora Core distributors.

Applies to 8.4.11.
dgpplain2005-07-01 22:28:35
File Added - 140525: tcl-8.4-no_rpath.patch
dkfplain2005-07-02 06:07:03
Logged In: YES 
user_id=79902

FWIW, the -rpath option is extremely useful in my
installations on Linux because I install Tcl in a per-user
location and not in a system library directory. (And no,
futzing around with LD_LIBRARY_PATH is *so* not an option!)

Can we have some justification for removal of -rpath before
applying this patch please? Otherwise it thoughtlessly hurts
non-vendors a lot...
mdejongplain2005-07-27 02:47:02
Logged In: YES 
user_id=90858

And the justification for this change is what exactly? This
patch includes
no description of what it is good for. I can't see any
reason to apply it.
dkfplain2005-07-27 04:02:44
Logged In: YES 
user_id=79902

dkf_tcl build people: why did RH want Tcl to stop using
-rpath in its builds?
jenglishdkf -- Linux systems generally discourage using
-rpath --
jenglishin particular, it makes RPMs nonrelocatable.
jenglishAt least one of the *BSDs (OpenBSD?  Maybe all of
them) encourage the opposite --
dkf_Sure, but the linux distributor "cure" is not something
that's suited for anyone other than a vendor
dgpdoes that suggest a configuration option as a solution?
dkf_Good point
dkf_--disable-rpath
julien_dumontplain2006-12-05 13:22:58
Logged In: YES 
user_id=1622754
Originator: NO

It very usefull when we need use tcl in another soft.
On NFS/autofs system, the rpath can be dramatic. It force the system to try to resolve build path before running. If the is a build done in /home/build localy we can't provide the soft to another people in another compagny without make sure they have no the same path localy /home/build.
It make the soft harder to provide.

It's only usefull for a local usage and not for a distribution usage.
mmaslanoplain2007-11-15 16:22:16
Logged In: YES 
user_id=1580598
Originator: NO

I don't say removing rpath is the best solution for every distro, but in Fedora is rpath forbiden by guide lines:
'Sometimes, code will hardcode specific library paths when linking binaries (using the -rpath or -R flag). This is commonly referred to as an rpath, and in Fedora it is forbidden. Normally, the dynamic linker and loader (ld.so) resolve the executable's dependencies on shared libraries and load what is required. However, when -rpath or -R is used, the location information is then hardcoded into the binary and is examined by ld.so in the beginning of the execution. Since the Linux dynamic linker is usually smarter than a hardcoded path, we do not permit the use of rpath in Fedora.'
dkfplain2007-11-15 17:58:42
Logged In: YES 
user_id=79902
Originator: NO

Added configure option to allow turning off of -rpath. Only added on HEAD.
Log in (anonymous is fine) to add a comment.

Attachments: