Bug#1091050: libjpeg: FTBFS: dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
Andreas Metzler
ametzler at bebt.de
Sun Dec 22 11:15:50 GMT 2024
Control: tags -1 patch
On 2024-12-22 Lucas Nussbaum <lucas at debian.org> wrote:
[...]
> > dpkg-source -b .
> > dpkg-source: info: using source format '3.0 (quilt)'
> > dpkg-source: info: building libjpeg using existing ./libjpeg_0.0~git20220805.54ec643.orig.tar.xz
> > dpkg-source: info: using patch list from debian/patches/series
> > dpkg-source: warning: ignoring deletion of file configure, use --include-removal to override
> > dpkg-source: info: local changes detected, the modified files are:
> > libjpeg-0.0~git20220805.54ec643/autoconfig.h.in
[...]
Hello,
upstream's custom build system invokes autoheader on "make distclean":
|distclean : realclean
| @ $(MAKE) configure
| @ $(MAKE) autoconfig.h.in
I think the proper way to fix this is to tell dh_auto_clean to avoid this:
diff --git a/debian/rules b/debian/rules
index e41e1ab..661bb0e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,9 @@
override_dh_installdocs: debian/jpeg.1
dh_installdocs
+override_dh_auto_clean:
+ $(MAKE) realclean
+
override_dh_auto_install-arch:
# nothing since I cannot get DESTDIR to work
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
More information about the Pkg-phototools-devel
mailing list