[Bug 1965438] [NEW] tar_1.29b-2ubuntu0.3 fails to build with nodoc build profile
Alex Kompel
1965438 at bugs.launchpad.net
Thu Mar 17 19:06:29 UTC 2022
Public bug reported:
tar source package fails to build with nodoc build profile
(DEB_BUILD_PROFILES="nodoc")
$ lsb_release -rd
Description: Ubuntu 18.04.6 LTS
Release: 18.04
$ apt-get source tar
$ cd tar-1.29b
$ DEB_BUILD_PROFILES="nodoc nocheck" debuild -us -uc
...
dh_testdir
dh_testroot
dh_installdocs
mv -f debian/tar/usr/share/doc/tar/ChangeLog \
debian/tar/usr/share/doc/tar/changelog
mv: cannot stat 'debian/tar/usr/share/doc/tar/ChangeLog': No such file or directory
debian/rules:87: recipe for target 'binary-arch' failed
make: *** [binary-arch] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
-----
dh_installdocs and dh_installman are no-op under nodoc profile so build
script should not assume that doc files are present:
diff -ru tar-1.29b.orig/debian/rules tar-1.29b/debian/rules
--- tar-1.29b.orig/debian/rules 2022-03-17 10:58:33.940191507 -0700
+++ tar-1.29b/debian/rules 2022-03-17 11:29:57.061510969 -0700
@@ -88,15 +88,15 @@
dh_testroot
dh_installdocs
mv -f debian/tar/usr/share/doc/tar/ChangeLog \
- debian/tar/usr/share/doc/tar/changelog
+ debian/tar/usr/share/doc/tar/changelog || true
mv -f debian/tar/usr/share/doc/tar/ChangeLog.1 \
- debian/tar/usr/share/doc/tar/changelog.1
+ debian/tar/usr/share/doc/tar/changelog.1 || true
dh_installexamples
dh_installmenu
dh_installcron
dh_installman doc/tar.1 doc/rmt.8 debian/tarcat.1
mv debian/tar/usr/share/man/man8/rmt.8 \
- debian/tar/usr/share/man/man8/rmt-tar.8
+ debian/tar/usr/share/man/man8/rmt-tar.8 || true
dh_installinfo
rm -f debian/tar/usr/share/info/dir*
dh_installmime
** Affects: tar (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tar in Ubuntu.
https://bugs.launchpad.net/bugs/1965438
Title:
tar_1.29b-2ubuntu0.3 fails to build with nodoc build profile
Status in tar package in Ubuntu:
New
Bug description:
tar source package fails to build with nodoc build profile
(DEB_BUILD_PROFILES="nodoc")
$ lsb_release -rd
Description: Ubuntu 18.04.6 LTS
Release: 18.04
$ apt-get source tar
$ cd tar-1.29b
$ DEB_BUILD_PROFILES="nodoc nocheck" debuild -us -uc
...
dh_testdir
dh_testroot
dh_installdocs
mv -f debian/tar/usr/share/doc/tar/ChangeLog \
debian/tar/usr/share/doc/tar/changelog
mv: cannot stat 'debian/tar/usr/share/doc/tar/ChangeLog': No such file or directory
debian/rules:87: recipe for target 'binary-arch' failed
make: *** [binary-arch] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
-----
dh_installdocs and dh_installman are no-op under nodoc profile so
build script should not assume that doc files are present:
diff -ru tar-1.29b.orig/debian/rules tar-1.29b/debian/rules
--- tar-1.29b.orig/debian/rules 2022-03-17 10:58:33.940191507 -0700
+++ tar-1.29b/debian/rules 2022-03-17 11:29:57.061510969 -0700
@@ -88,15 +88,15 @@
dh_testroot
dh_installdocs
mv -f debian/tar/usr/share/doc/tar/ChangeLog \
- debian/tar/usr/share/doc/tar/changelog
+ debian/tar/usr/share/doc/tar/changelog || true
mv -f debian/tar/usr/share/doc/tar/ChangeLog.1 \
- debian/tar/usr/share/doc/tar/changelog.1
+ debian/tar/usr/share/doc/tar/changelog.1 || true
dh_installexamples
dh_installmenu
dh_installcron
dh_installman doc/tar.1 doc/rmt.8 debian/tarcat.1
mv debian/tar/usr/share/man/man8/rmt.8 \
- debian/tar/usr/share/man/man8/rmt-tar.8
+ debian/tar/usr/share/man/man8/rmt-tar.8 || true
dh_installinfo
rm -f debian/tar/usr/share/info/dir*
dh_installmime
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tar/+bug/1965438/+subscriptions
More information about the foundations-bugs
mailing list