On Thu, 02 May 2024 12:28:29 +0800 Paul Wise <p...@debian.org> wrote:

The jbig2 manual page is broken. Looks like it was generated via
help2man using the binary in the build tree but without using
LD_LIBRARY_PATH so the binary could not find libraries it uses,
so jbig2 could not start, so it didn't print the usage statement
and help2man did not convert the usage statement to a manual page.
The help2man conversion in debian/rules may have some kind of problem.



Hello,
it looks like make is not exporting the variable by default
to the environment of subprocesses.

This could be achieved by adding the below export [1].

Another way would be to move the LD_LIBRARY_PATH assignment
to the same line of help2man [2].

Kind regards,
Bernhard



[1]
--- orig/jbig2enc-0.29/debian/rules     2024-02-28 14:02:09.000000000 +0100
+++ try5/jbig2enc-0.29/debian/rules     2024-05-18 11:13:29.796407931 +0200
@@ -53,2 +53,3 @@ override_dh_installchangelogs:
 jbig2.1: LD_LIBRARY_PATH = src/.libs
+export LD_LIBRARY_PATH
 jbig2.1: %.1: src/%


[2]
--- orig/jbig2enc-0.29/debian/rules     2024-02-28 14:02:09.000000000 +0100
+++ try2/jbig2enc-0.29/debian/rules     2024-05-18 10:07:46.877615011 +0200
@@ -52,5 +52,4 @@ override_dh_installchangelogs:
 # build manpages
-jbig2.1: LD_LIBRARY_PATH = src/.libs
 jbig2.1: %.1: src/%
-       help2man --section 1 --no-info --no-discard-stderr \
+       LD_LIBRARY_PATH=src/.libs help2man --section 1 --no-info 
--no-discard-stderr \
                --name "encoder for JBIG2" \

Reply via email to