[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001457: openvdb: FTBFS: help2man: can't get `--help' info from ./debian/tmp/usr/bin/vdb_view



Control: unblock 997080 by 1001457

On Tue, 23 Aug 2022 10:11:17 +0200 Tobias Frost <tobi@debian.org> wrote:
> Source: openvdb
> Followup-For: Bug #997080
> Control: tags -1 +patch
> 
> MR at https://salsa.debian.org/multimedia-team/openvdb/-/merge_requests/1 fixes this FTBFS,
> (MR made for the version currently in experimental)
> 
> -- 
> tobi
> 
> 
(For Documentation as the MR for #997080 was closed without merging)

I was debugging into this, and IMHO this is not a compiler issue, but a packaging problem:
It seems help2man is executed before dh_auto_install, so help2man just won't find
the binary when it tries to create the manpages. I could confirm that in a local pbuilder
environment.

The patch (attached for references, as I wll delete my fork on salsa soon ) 
makes d/rules to look into cmake's build directory. With that patch, the package
is built successfully. The attached build should be able to proof that.

As this is NOT a libstd++ bug, I'm removing the indication that #1001457 blocks
this bug. There might be another bug in openvdb triggered by #1001457, but it
is not this one.

--
tobi


Attachment: openvdb_9.1.0-1_amd64.build.xz
Description: application/xz

diff --git a/debian/rules b/debian/rules
index fce647f9d8ea618722d1b88b8a4cc97375afa3c4..b4fa52e29c1631d0a6462ed17373424750a930e4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -127,16 +127,16 @@ override_dh_clean:
 
 # man page cannot be automatically generated since we need to cleanup help2man output
 debian/vdb_print.1: debian/vdb_print.1.in
-	LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./debian/tmp/usr/bin/vdb_print
+	help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./obj-$(DEB_HOST_MULTIARCH)/openvdb_cmd/vdb_print/vdb_print
 
 debian/vdb_view.1: debian/vdb_view.1.in
-	LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./debian/tmp/usr/bin/vdb_view
+	help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./obj-$(DEB_HOST_MULTIARCH)/openvdb_cmd/vdb_view/vdb_view
 
 debian/vdb_render.1: debian/vdb_render.1.in
-	LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./debian/tmp/usr/bin/vdb_render
+	help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./obj-$(DEB_HOST_MULTIARCH)/openvdb_cmd/vdb_render/vdb_render
 
 debian/vdb_lod.1: debian/vdb_lod.1.in
-	LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./debian/tmp/usr/bin/vdb_lod
+	help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info --no-discard-stderr ./obj-$(DEB_HOST_MULTIARCH)/openvdb_cmd/vdb_lod/vdb_lod
 
 .PHONY: manpages
 

Attachment: signature.asc
Description: PGP signature


Reply to: