Skip to contentSkip to conversation

ref-manual: mention PREPROCESS_RELOCATE_DIRS variable

PATCH In review Martin Jansa 2 participants 4 messages Aug 12, 2019 – Dec 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: mention PREPROCESS_RELOCATE_DIRS variable

---
 documentation/ref-manual/ref-classes.xml   |  5 ++++-
 documentation/ref-manual/ref-variables.xml | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
documentation/ref-manual/ref-classes.xml +4 -1
index ece47e757..159efb3b1 100644
@@ -413,7 +413,10 @@
         <filename>cross</filename>, and
         <filename>cross-canadian</filename> recipes to change
         <filename>RPATH</filename> records within binaries in order to make
-        them relocatable.
+        them relocatable. To extend the list of directories where it searches
+        for binaries to relocate, you can set
+        <link linkend='var-PREPROCESS_RELOCATE_DIRS'><filename>PREPROCESS_RELOCATE_DIRS</filename></link>
+        variable in your recipe.
     </para>
 </section>
 
documentation/ref-manual/ref-variables.xml +21 -0
index 9470a780a..5ac766658 100644
@@ -11424,6 +11424,27 @@
             </glossdef>
         </glossentry>
 
+        <glossentry id='var-PREPROCESS_RELOCATE_DIRS'><glossterm>PREPROCESS_RELOCATE_DIRS</glossterm>
+            <info>
+                PREPROCESS_RELOCATE_DIRS[doc] = "List of extra directories where to search for binaries which should be relocatable."
+            </info>
+            <glossdef>
+                <para role="glossdeffirst">
+<!--                <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
+                    List of extra directories with binaries.
+                </para>
+
+                <para>
+                    <filename>PREPROCESS_RELOCATE_DIRS</filename> is used by
+                    chrpath.bbclass to allow extending the list where it searches
+                    for binaries. By default it searches in:
+                    ${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${libexecdir}
+                    Thus, <filename>PREPROCESS_RELOCATE_DIRS</filename> usually doesn't
+                    need to be set withing recipes.
+                </para>
+            </glossdef>
+        </glossentry>
+
         <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
             <info>
                 PRIORITY[doc] = "Indicates the importance of a package.  The default value is 'optional'.  Other standard values are 'required', 'standard', and 'extra'."
Signature · 1 line
2.17.1
#1 lore raw

✗ patchtest: failure for ref-manual: mention PREPROCESS_RELOCATE_DIRS variable

== Series Details ==

Series: ref-manual: mention PREPROCESS_RELOCATE_DIRS variable
Revision: 1
URL : https://patchwork.openembedded.org/series/19243/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists [test_target_mailing_list]

  Suggested fix    Send the series again to the correct mailing list (ML)
  Suggested ML     [email protected] [http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/]
  Patch's path:    documentation/ref-manual/ref-classes.xml

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at e5f8c1facf)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
#2 lore raw
In reply to Martin Jansa
Quoted 1 line · Martin Jansa

ping

Quoted 56 lines
---
 documentation/ref-manual/ref-classes.xml   |  5 ++++-
 documentation/ref-manual/ref-variables.xml | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
documentation/ref-manual/ref-classes.xml +4 -1
index ece47e757..159efb3b1 100644
@@ -413,7 +413,10 @@
         <filename>cross</filename>, and
         <filename>cross-canadian</filename> recipes to change
         <filename>RPATH</filename> records within binaries in order to make
-        them relocatable.
+        them relocatable. To extend the list of directories where it searches
+        for binaries to relocate, you can set
+        <link linkend='var-PREPROCESS_RELOCATE_DIRS'><filename>PREPROCESS_RELOCATE_DIRS</filename></link>
+        variable in your recipe.
     </para>
 </section>
 
documentation/ref-manual/ref-variables.xml +21 -0
index 9470a780a..5ac766658 100644
@@ -11424,6 +11424,27 @@
             </glossdef>
         </glossentry>
 
+        <glossentry id='var-PREPROCESS_RELOCATE_DIRS'><glossterm>PREPROCESS_RELOCATE_DIRS</glossterm>
+            <info>
+                PREPROCESS_RELOCATE_DIRS[doc] = "List of extra directories where to search for binaries which should be relocatable."
+            </info>
+            <glossdef>
+                <para role="glossdeffirst">
+<!--                <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
+                    List of extra directories with binaries.
+                </para>
+
+                <para>
+                    <filename>PREPROCESS_RELOCATE_DIRS</filename> is used by
+                    chrpath.bbclass to allow extending the list where it searches
+                    for binaries. By default it searches in:
+                    ${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${libexecdir}
+                    Thus, <filename>PREPROCESS_RELOCATE_DIRS</filename> usually doesn't
+                    need to be set withing recipes.
+                </para>
+            </glossdef>
+        </glossentry>
+
         <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
             <info>
                 PRIORITY[doc] = "Indicates the importance of a package.  The default value is 'optional'.  Other standard values are 'required', 'standard', and 'extra'."
Signature · 1 line
2.17.1
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

ping again

Quoted 79 lines · Martin Jansa
Quoted 1 line · Martin Jansa

ping

Review

Quoted 6 lines
---
 documentation/ref-manual/ref-classes.xml   |  5 ++++-
 documentation/ref-manual/ref-variables.xml | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/documentation/ref-manual/ref-classes.xml

documentation/ref-manual/ref-classes.xml line 415

Quoted 7 lines

index ece47e757..159efb3b1 100644

documentation/ref-manual/ref-classes.xml +0 -0
@@ -413,7 +413,10 @@
         <filename>cross</filename>, and
         <filename>cross-canadian</filename> recipes to change
         <filename>RPATH</filename> records within binaries in order to

make

documentation/ref-manual/ref-classes.xml line 416

Quoted 2 lines
documentation/ref-manual/ref-classes.xml +1 -1
-        them relocatable.
+        them relocatable. To extend the list of directories where it

searches

documentation/ref-manual/ref-classes.xml line 418

Quoted 2 lines
documentation/ref-manual/ref-classes.xml +2 -0
+        for binaries to relocate, you can set
+        <link

linkend='var-PREPROCESS_RELOCATE_DIRS'><filename>PREPROCESS_RELOCATE_DIRS</filename></link>

Review

Quoted 5 lines
documentation/ref-manual/ref-classes.xml +1 -0
+        variable in your recipe.
     </para>
 </section>
 
(quoted diff) +0 -0

b/documentation/ref-manual/ref-variables.xml

documentation/ref-manual/ref-variables.xml line 11427

Quoted 8 lines

index 9470a780a..5ac766658 100644

documentation/ref-manual/ref-variables.xml +1 -0
@@ -11424,6 +11424,27 @@
             </glossdef>
         </glossentry>
 
+        <glossentry

id='var-PREPROCESS_RELOCATE_DIRS'><glossterm>PREPROCESS_RELOCATE_DIRS</glossterm>

documentation/ref-manual/ref-variables.xml line 11429

Quoted 2 lines
documentation/ref-manual/ref-variables.xml +2 -0
+            <info>
+                PREPROCESS_RELOCATE_DIRS[doc] = "List of extra

directories where to search for binaries which should be relocatable."

documentation/ref-manual/ref-variables.xml

Quoted 4 lines
documentation/ref-manual/ref-variables.xml +4 -0
+            </info>
+            <glossdef>
+                <para role="glossdeffirst">
+<!--                <para role="glossdeffirst"><imagedata

fileref="figures/define-generic.png" /> -->

documentation/ref-manual/ref-variables.xml

Quoted 5 lines
documentation/ref-manual/ref-variables.xml +5 -0
+                    List of extra directories with binaries.
+                </para>
+
+                <para>
+                    <filename>PREPROCESS_RELOCATE_DIRS</filename> is

used by

documentation/ref-manual/ref-variables.xml line 11439

Quoted 1 line
documentation/ref-manual/ref-variables.xml +1 -0
+                    chrpath.bbclass to allow extending the list where

it searches

documentation/ref-manual/ref-variables.xml line 11441

Quoted 2 lines
documentation/ref-manual/ref-variables.xml +2 -0
+                    for binaries. By default it searches in:
+                    ${bindir} ${sbindir} ${base_sbindir} ${base_bindir}

${libdir} ${base_libdir} ${libexecdir}

documentation/ref-manual/ref-variables.xml line 11442

Quoted 1 line
documentation/ref-manual/ref-variables.xml +1 -0
+                    Thus, <filename>PREPROCESS_RELOCATE_DIRS</filename>

usually doesn't

documentation/ref-manual/ref-variables.xml

Quoted 8 lines
documentation/ref-manual/ref-variables.xml +5 -0
+                    need to be set withing recipes.
+                </para>
+            </glossdef>
+        </glossentry>
+
         <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
             <info>
                 PRIORITY[doc] = "Indicates the importance of a

package. The default value is 'optional'. Other standard values are 'required', 'standard', and 'extra'."

Quoted 3 lines

--
2.17.1

--
Martin 'JaMa' Jansa jabber: [email protected]