[jhalfs] 02/02: Make runtime dependencies optional "before" dependencies

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Thu, 27 Nov 2025 18:27:54 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit 6fe4b8a3bc6b2573f77d430d0f6b104dc4b7476b
Author: Pierre Labastie <[email protected]>
AuthorDate: Thu Nov 27 19:22:16 2025 +0100

    Make runtime dependencies optional "before" dependencies
    
    The problem is that some runtime dependencies may be used in tests.
    To have them built for tests (which means including optional
    dependencies), move an "after" dependency to "before" "optional".
    This way, the runtime dependency will be built before if
    possible. Note that we don't move them to optional if they
    depend on the package that declares them as runtime dependencies.
    THe cycle breaker may also not consider them if it creates a
    circular dependency...
---
 BLFS/libs/func_dependencies | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/BLFS/libs/func_dependencies b/BLFS/libs/func_dependencies
index a945cee..ba5a3ab 100644
--- a/BLFS/libs/func_dependencies
+++ b/BLFS/libs/func_dependencies
@@ -401,6 +401,10 @@ for node in $(grep -l ' a ' *.dep); do
   } <$node
   for id_of_dep in $lines_to_remove; do
     sed "/a\ $id_of_dep\$/d" -i $node
+    # if a runtime dependency is required or recommended, it means it should
+    # be installed when running the tests. Normally, test dependencies are
+    # optional, so add an optional "before" dep here
+    sed "\$a3 b $id_of_dep" -i $node
   done
 done
 for node in $(grep -l ' f ' *.dep); do

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page