[R-pkg-team] Bug#1028123: r-cran-hunspell: fails to build two times in a row

Rene Engelhard rene at debian.org
Sat Jan 7 13:59:18 GMT 2023


Package: r-cran-hunspell
Version: 3.0.2+dfsg-1
Severity: important
Tags: patch

Dear Maintainer,

rene at frodo:~$ apt-get source r-cran-hunspell
[...]
rene at frodo:~$ cd r-cran-hunspell-3.0.2+dfsg
[...]
dpkg-deb: building package 'r-cran-hunspell-dbgsym' in '../r-cran-hunspell-dbgsym_3.0.2+dfsg-1.1_amd64.deb'.
dpkg-deb: building package 'r-cran-hunspell' in '../r-cran-hunspell_3.0.2+dfsg-1.1_amd64.deb'.
 dpkg-genbuildinfo --build=binary -O../r-cran-hunspell_3.0.2+dfsg-1.1_amd64.buildinfo
 dpkg-genchanges --build=binary -O../r-cran-hunspell_3.0.2+dfsg-1.1_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
Now signing changes and any dsc files...

so far so good

rene at frodo:~/r-cran-hunspell-3.0.2+dfsg$ debuild -S -i
$ debuild -S -i
 dpkg-buildpackage -us -uc -ui -S -i
dpkg-buildpackage: info: source package r-cran-hunspell
dpkg-buildpackage: info: source version 3.0.2+dfsg-1.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Rene Engelhard <rene at debian.org>
 dpkg-source -i --before-build .
 debian/rules clean
dh clean --buildsystem R
   dh_auto_clean -O--buildsystem=R
   dh_autoreconf_clean -O--buildsystem=R
   dh_clean -O--buildsystem=R
 dpkg-source -i -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building r-cran-hunspell using existing ./r-cran-hunspell_3.0.2+dfsg.orig.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: error: cannot represent change to src/hunspell/libstathunspell.a: binary file contents changed
dpkg-source: error: add src/hunspell/libstathunspell.a in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to src/parsers/htmlparser.o: binary file contents changed
dpkg-source: error: add src/parsers/htmlparser.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to src/parsers/latexparser.o: binary file contents changed
dpkg-source: error: add src/parsers/latexparser.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to src/parsers/manparser.o: binary file contents changed
dpkg-source: error: add src/parsers/manparser.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to src/parsers/textparser.o: binary file contents changed
dpkg-source: error: add src/parsers/textparser.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to src/parsers/xmlparser.o: binary file contents changed
dpkg-source: error: add src/parsers/xmlparser.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -i -b . subprocess returned exit status 1
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -S -i failed
rene at frodo:~/r-cran-hunspell-3.0.2+dfsg$ rm -f src/hunspell/libstathunspell.a src/parsers/htmlparser.o src/parsers/latexparser.o src/parsers/manparser.o src/parsers/textparser.o src/parsers/xmlparser.o
rene at frodo:~/r-cran-hunspell-3.0.2+dfsg$ debuild -S -i
 dpkg-buildpackage -us -uc -ui -S -i
dpkg-buildpackage: info: source package r-cran-hunspell
dpkg-buildpackage: info: source version 3.0.2+dfsg-1.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Rene Engelhard <rene at debian.org>
 dpkg-source -i --before-build .
 debian/rules clean
dh clean --buildsystem R
   dh_auto_clean -O--buildsystem=R
   dh_autoreconf_clean -O--buildsystem=R
   dh_clean -O--buildsystem=R
 dpkg-source -i -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building r-cran-hunspell using existing ./r-cran-hunspell_3.0.2+dfsg.orig.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: local changes detected, the modified files are:
 r-cran-hunspell-3.0.2+dfsg/src/hunspell/csutil.hxx
 r-cran-hunspell-3.0.2+dfsg/src/hunspell/htypes.hxx
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/r-cran-hunspell_3.0.2+dfsg-1.1.diff.doj2kX
dpkg-source: info: Hint: make sure the version in debian/changelog matches the unpacked source tree
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-buildpackage: error: dpkg-source -i -b . subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -S -i failed

Ah, the copied headers...

rene at frodo:~/r-cran-hunspell-3.0.2+dfsg$ rm -f src/hunspell/csutil.hxx src/hunspell/htypes.hxx
rene at frodo:~/r-cran-hunspell-3.0.2+dfsg$ debuild -S -i
 dpkg-buildpackage -us -uc -ui -S -i
dpkg-buildpackage: info: source package r-cran-hunspell
dpkg-buildpackage: info: source version 3.0.2+dfsg-1.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Rene Engelhard <rene at debian.org>
 dpkg-source -i --before-build .
 debian/rules clean
dh clean --buildsystem R
   dh_auto_clean -O--buildsystem=R
   dh_autoreconf_clean -O--buildsystem=R
   dh_clean -O--buildsystem=R
 dpkg-source -i -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building r-cran-hunspell using existing ./r-cran-hunspell_3.0.2+dfsg.orig.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building r-cran-hunspell in r-cran-hunspell_3.0.2+dfsg-1.1.debian.tar.xz
dpkg-source: info: building r-cran-hunspell in r-cran-hunspell_3.0.2+dfsg-1.1.dsc
 dpkg-genbuildinfo --build=source -O../r-cran-hunspell_3.0.2+dfsg-1.1_source.buildinfo
 dpkg-genchanges --build=source -O../r-cran-hunspell_3.0.2+dfsg-1.1_source.changes
dpkg-genchanges: info: not including original source code in upload
 dpkg-source -i --after-build .
dpkg-buildpackage: info: source-only, diff-only upload (original source NOT included)
Now signing changes and any dsc files...

I suggest adding

override_dh_auto_clean:
        dh_auto_clean
        rm -f src/hunspell/*

Regards,

Rene



More information about the R-pkg-team mailing list