-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi,
I'm rebuilding libpam-krb5 from the Ubuntu package source and including a patch for the man page. The compile fails:
make[4]: Entering directory '/build/Rebuilds/libpam-krb5/work/libpam-krb5-4.11/build-mit'
make all-am
make[5]: Entering directory '/build/Rebuilds/libpam-krb5/work/libpam-krb5-4.11/build-mit'
pod2man --release="4.11" --center=pam-krb5 -s 5 \
../docs/pam_krb5.pod > docs/pam_krb5.5
/bin/bash: line 1: docs/pam_krb5.5: No such file or directory
make[5]: *** [Makefile:2077: docs/pam_krb5.5] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/build/Rebuilds/libpam-krb5/work/libpam-krb5-4.11/build-mit'
make[4]: *** [Makefile:855: all] Error 2
make[4]: Leaving directory '/build/Rebuilds/libpam-krb5/work/libpam-krb5-4.11/build-mit'
dh_auto_build: error: cd build-mit && make -j8 returned exit code 2
make[3]: *** [debian/rules:33: override_dh_auto_build] Error 2
make[3]: Leaving directory '/build/Rebuilds/libpam-krb5/work/libpam-krb5-4.11'
make[2]: *** [debian/rules:12: binary] Error 2
make[2]: Leaving directory '/build/Rebuilds/libpam-krb5/work/libpam-krb5-4.11'
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [../Makefile.rebuild:42: build-exec] Error 2
make[1]: Leaving directory '/build/ci/jdingwall/zynstra/Rebuilds/libpam-krb5'
make: *** [/build/ci/jdingwall/zynstra/Makefile.pkg:253: build-exec-do] Error 2
make: Leaving directory '/build/ci/jdingwall/zynstra/Rebuilds/libpam-krb5'
I'm not sure if this is a result of the debian packaging or that the Makefile.am is missing something which should create the docs directory. In build-mit/Makefile there are blocks such as:
pam-util/$(am__dirstamp):
@$(MKDIR_P) pam-util
@: > pam-util/$(am__dirstamp)
which create the other directories under build-mit but no similar rule for docs/$(am__dirstamp). If I create the docs directory during the build then the man page is rebuilt from the .pod and the file ends up being included as part of the .deb. If I add the mkdir line in to Makefile.am then the build works. I don't know automake so possibly there is a more correct way to achieve this.
# The manual page is normally generated by the bootstrap script, but add a
# Makefile rule to regenerate it if it is modified.
docs/pam_krb5.5: $(srcdir)/docs/pam_krb5.pod
$(MKDIR_P) docs
pod2man --release="$(VERSION)" --center=pam-krb5 -s 5 \
$(srcdir)/docs/pam_krb5.pod > $@
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels