Skip to contentSkip to conversation

ref-manual: add glossary entry, INHIBIT_PACKAGE_STRIP_FILES

PATCH In review Robert P. J. Day 2 participants 2 messages May 21, 2021 – May 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: add glossary entry, INHIBIT_PACKAGE_STRIP_FILES

---

documentation/ref-manual/variables.rst +10 -0
index 0b61f77cb..b1774d22a 100644
@@ -3446,6 +3446,16 @@ system and gives an overview of their function and contents.
       Consequently, you should not set ``INHIBIT_PACKAGE_STRIP`` when you
       plan to debug in general.
 
+   :term:`INHIBIT_PACKAGE_STRIP_FILES`
+      List of files to avoid stripping, to retain the ability to run
+      certain tests on them. A small example from current ``elfutils``
+      recipe file::
+
+         INHIBIT_PACKAGE_STRIP_FILES = "\
+             ${PKGD}${PTEST_PATH}/tests/test-nlist \
+             ${PKGD}${PTEST_PATH}/tests/elfstrmerge \
+             ... snip ...
+
    :term:`INHIBIT_SYSROOT_STRIP`
       If set to "1", causes the build to not strip binaries in the
       resulting sysroot.
Signature · 6 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw

Hi Robert,

Quoted 10 lines · Robert P. J. Day

---

documentation/ref-manual/variables.rst +0 -0
index 0b61f77cb..b1774d22a 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 3453

Quoted 8 lines
documentation/ref-manual/variables.rst +5 -0
@@ -3446,6 +3446,16 @@ system and gives an overview of their function and contents.
       Consequently, you should not set ``INHIBIT_PACKAGE_STRIP`` when you
       plan to debug in general.
 
+   :term:`INHIBIT_PACKAGE_STRIP_FILES`
+      List of files to avoid stripping, to retain the ability to run
+      certain tests on them. A small example from current ``elfutils``
+      recipe file::
+

Would it make sense to replicate more or less what was written for INHIBIT_PACKAGE_STRIP? The behavior is very similar so I feel like it'd be a good thing to have. I think we could even go for adding a word or two in INHIBIT_PACKAGE_STRIP to say that if you only want to debug one file, you can use INHIBIT_PACKAGE_STRIP_FILES instead.

I think it's also important to specify that ${PKGD} should be used as prefix to the path (and not, e.g. ${D}). At least.. from my understanding of the code below.

Thanks for the patch!
Cheers,
Quentin