Print

Print


Hi Vladimir.

On Wed, 1 Aug 2018, Vladimir Lomov wrote:

>> on an RH build it works as expected (i.e. no references to these)
>
> thanks for checking. Could you give a bit more details: do you use 
cmake, do you use the distribution tools for packaging (I don't know how 
RPM packages are created, of course, not "manually"), version of tools: 
gcc, cmake, glibc?
We use a standard RPM script to build the RPM. You can find it in

xrootd/packaging/makesrpm.sh

it is driven off gthe particular platform in question as you will see in 
the enclosing directory. There is nothing magical about it. All the 
standad toold you mentioned are used. Be aware that when cmake creates 
artifacts in the "src" directory, it also sets runpath and a few other 
references so that you can run he executabes in he "src" directory and be 
sure you are not referencing anthing out side ot it. These get stripped 
off when you build an RPM and we strip them off manually for other kinds 
of builds. So, perhaps, you are concerned with the stuff in the "src" 
build of cmake. The non-essential refernces are supposed  to be 
eliminated when a actual distribution package is created.

> I suspect this might be due to cmake (I opened issue for xxHash program 
with the same question and the author replied that it is ok with make).
Yes, I suspect that is what the case is here.
>> That aside, why is this causing a problem?
>
> First: it is useless. Secondly, I don't understand how these paths are 
passed to the binaries, so I not sure what consequences it can cause.
The are not supposed to be. The paths are forced by cmake to make sure 
that when you run something out of the cmake artifact directory (i.e. 
"src") you only reference things that are relevant to the build. When you 
create the distribution package, all of that stuff is stripped out so no 
side-effects should remain.

Andy


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/790#issuecomment-409852974

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1