Change in osmo-gsm-tester[master]: util: adds the feature to force the rpath when patching files.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

alealcon gerrit-no-reply at lists.osmocom.org
Wed Jun 2 19:36:52 UTC 2021


alealcon has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24272 )

Change subject: util: adds the feature to force the rpath when patching files.
......................................................................


Patch Set 1:

Quick question Pau. I was looking at the function parameters of the "change_elf_rapth". What do you think of modifying the arguments to accept a bool that adds the "--force-rpath" option instead of writing a new function? It would look like something like this:

def change_elf_rpath(binary, paths, run_dir, force_rpath=false):
    '''
    Change RPATH field in ELF executable binary.
    This feature can be used to tell the loaded to load the trial libraries, as
    LD_LIBRARY_PATH is disabled for paths with modified capabilities.
    '''
    from .process import Process
    args = '--force-rpath --set-rpath' if force_rpath else '--set-rpath'
    proc = Process('patchelf', run_dir, ['patchelf', args, paths, binary])
    proc.launch_sync()


-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24272
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I2d4a105d4843c0d31d6b5d8f8d4195247b290aec
Gerrit-Change-Number: 24272
Gerrit-PatchSet: 1
Gerrit-Owner: alealcon <alejandro.leal at srs.io>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Wed, 02 Jun 2021 19:36:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210602/7d0599c5/attachment.htm>


More information about the gerrit-log mailing list