Hi all, I'm trying to learn how to use pbuilder, but cannot manage to build a simple package. The pbuilder baze.tgz looks OK, it is something about dpkg-source and quilt patches that I cannot grasp. My steps are: 1. Download the source of my package: apt-get source liblcms2-2 It downloads the source, unpacks it and applies all patches to the unpacked source folder. I don't touch anything. 2. Make pbuilder rebuild it for me without any changes: sudo pbuilder build ./lcms*.dsc pbuilder extracts its baze.tgz, installs additional packages and necessary debs, then I see how it begins to build the package: Current status: 0 broken [-1]. -> Finished parsing the build-deps I: Copying back the cached apt archive contents I: Copying source file I: copying [./lcms2_2.2+git20110628-2ubuntu3.dsc] I: copying [./lcms2_2.2+git20110628.orig.tar.gz] I: copying [./lcms2_2.2+git20110628-2ubuntu3.debian.tar.gz] I: Extracting source <...> Then dpkg-source applies patches: dpkg-source: info: extracting lcms2 in lcms2-2.2+git20110628 dpkg-source: info: unpacking lcms2_2.2+git20110628.orig.tar.gz dpkg-source: info: unpacking lcms2_2.2+git20110628-2ubuntu3.debian.tar.gz dpkg-source: info: applying tificc.1 <...> Then dpkg-buildsource builds everything: I: Running cd tmp/buildd/*/ && env PATH="/usr/lib/ccache:/usr/sbin:/usr/bin:/sbin:/bin" dpkg-buildpackage -us -uc -rfakeroot <...> And then it all ends with a message claiming that dpkg-source detected changes to upstream due to the patches it applied itself earlier. dpkg-source -b lcms2-2.2+git20110628 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: warning: Version number suggests Ubuntu changes, but Maintainer: does not have Ubuntu address dpkg-source: warning: Version number suggests Ubuntu changes, but there is no XSBC-Original-Maintainer field dpkg-source: info: building lcms2 using existing ./lcms2_2.2+git20110628.orig.tar.gz dpkg-source: warning: newly created empty file 'config.status' will not be represented in diff dpkg-source: info: local changes detected, the modified files are: lcms2-2.2+git20110628/Makefile <patched files skipped> dpkg-source: info: you can integrate the local changes with dpkg-source --commit dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/lcms2_2.2+git20110628-2ubuntu3.diff.nAswlJ dpkg-buildpackage: error: dpkg-source -b lcms2-2.2+git20110628 gave error exit status 2 E: Failed autobuilding of package Why dpkg-source thinks the patches are a problem and shouldn't be applied? The environment is Ubuntu 12.04, but it shouldn't matter. Complete log file is attached. -Alex
Attachment:
pbuilder-lcms2.log
Description: Binary data