Building binary package with files missing from source package
I'm having trouble figuring out how to make a properly implemented Debian package instead of using dpkg-deb --build. I can build the source packages fine but when I build the binary package the files are missing in the final package.
debian/control
Source: myapp
Section: devel
Priority: optional
Maintainer: Ubuntu Developers <webmaster@johndoe.com>
XSBC-Original-Maintainer: John Doe <webmaster@johndoe.com>
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 7)
Vcs-Bzr: lp:ubuntu/hello
Homepage: https://github.com/johndoe/myapp
Package: myapp
Version: 1.8
Architecture: amd64
Depends: python-gi
Description: myapp
debian/myapp.dirs
usr/bin
usr/lib
usr/share/applications
debian/myapp.install
usr/bin/*
usr/lib/*
usr/share/applications/*
debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@
My source build log
Started by user John Doe
Building in workspace /var/lib/jenkins/jobs/myapp-source/workspace
No credentials specified
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git://github.com/johndoe/myapp.git # timeout=10
Fetching upstream changes from git://github.com/johndoe/myapp.git
> git --version # timeout=10
> git fetch --tags --progress git://github.com/johndoe/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 56e6dd883f4a9117969ede29eef6ff780dc5d4ac (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 56e6dd883f4a9117969ede29eef6ff780dc5d4ac # timeout=10
Commit message: "Update rules"
> git rev-list --no-walk ca2af76592882846a67fcd5bbdb84112847fa65b # timeout=10
> git tag -a -f -m Jenkins Build #11 jenkins-myapp-source-11 # timeout=10
[workspace] $ /bin/sh -xe /tmp/jenkins2128150088780715646.sh
+ rm -f ./lintian.txt ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.dsc ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.tar.gz ./myapp_0.8+0~20190207095814.10~1.gbpca2af7_source.buildinfo ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
[workspace] $ /bin/sh -xe /tmp/jenkins1914057638505351054.sh
+ /usr/bin/generate-git-snapshot
+ set -e
+ set -u
+ '[' -r /etc/jenkins/debian_glue ']'
+ . /etc/jenkins/debian_glue
+ '[' -n '' ']'
++ hostname -f
+ DEBEMAIL='jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>'
+ export DEBEMAIL
+ '[' -n '' ']'
+ SOURCE_DIRECTORY=source
+ '[' '!' -d source ']'
+ '[' -z 11 ']'
+ '[' -z 56e6dd883f4a9117969ede29eef6ff780dc5d4ac ']'
++ which gbp
+ '[' -x /usr/bin/gbp ']'
+ GBP_DCH='gbp dch'
+ GBP_BUILDPACKAGE='gbp buildpackage'
++ awk '/^ii/ {print $3}'
++ dpkg --list jenkins-debian-glue
+ JENKINS_DEBIAN_GLUE_VERSION=0.20.0+0~20190115165532.341~1.gbpab2578
+ '[' -n 0.20.0+0~20190115165532.341~1.gbpab2578 ']'
+ echo '*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***'
*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***
+ '[' -n '' -a -z '' ']'
+ echo '*** source package build phase ***'
*** source package build phase ***
+ rm -f ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
+ '[' -n '' ']'
+ cd source
+ git_cleanup
+ '[' -n '' ']'
+ echo '*** Cleaning git repository to make sure there are no modified files ***'
*** Cleaning git repository to make sure there are no modified files ***
+ echo '*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***
+ git clean -fxd
Removing debian/files
+ git reset --hard HEAD
HEAD is now at 56e6dd8 Update rules
+ source_format_opts
+ '[' -f debian/source/format ']'
+ echo '*** WARNING: Source format is not specified in debian/source/format! ***'
*** WARNING: Source format is not specified in debian/source/format! ***
+ return 0
+ identify_source_build_opts
+ DBP_OPTS=
+ '[' -r debian/source/format ']'
+ '[' -r debian/source/options ']'
+ echo '*** Enabling '''-i -I''' options as building for dpkg source format 1.0 ***'
*** Enabling '-i -I' options as building for dpkg source format 1.0 ***
+ DBP_OPTS='-i -I'
+ '[' '' '!=' true ']'
+ gbp_conf
+ '[' '' = true ']'
+ gbp_conf_files=(/etc/git-buildpackage/gbp.conf ~/.gbp.conf .gbp.conf debian/gbp.conf .git/gbp.conf)
+ UPSTREAM_BRANCH=upstream
+ DEBIAN_BRANCH=debian
+ PRISTINE_TAR=false
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /etc/git-buildpackage/gbp.conf ']'
+ local value
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.upstream-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.debian-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --bool --get DEFAULT.pristine-tar
++ true
+ value=
+ '[' -n '' ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /var/lib/jenkins/.gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f debian/gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .git/gbp.conf ']'
+ create_local_branch upstream
+ '[' -n upstream ']'
+ local BRANCH=upstream
+ grep -q 'remotes/origin/upstream$'
+ git branch -a
+ echo 'NOTE: branch upstream does not exist, ignoring request to checkout therefore.'
NOTE: branch upstream does not exist, ignoring request to checkout therefore.
+ create_local_branch debian
+ '[' -n debian ']'
+ local BRANCH=debian
+ grep -q 'remotes/origin/debian$'
+ git branch -a
+ echo 'NOTE: branch debian does not exist, ignoring request to checkout therefore.'
NOTE: branch debian does not exist, ignoring request to checkout therefore.
+ '[' false = true ']'
+ branch_checkout
+ random_branch=jenkins-debian-glue-buildbranch65
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo 'Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist'
Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist
+ git branch -D jenkins-debian-glue-buildbranch65
error: branch 'jenkins-debian-glue-buildbranch65' not found.
+ true
+ echo 'Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac'
Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
+ git checkout -b jenkins-debian-glue-buildbranch65 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
Switched to a new branch 'jenkins-debian-glue-buildbranch65'
+ '[' -n '' ']'
+ version_information
+ '[' -r debian/changelog ']'
++ awk '/^Version/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ ORIG_VERSION=0.8
++ awk '/^Distribution/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ DISTRIBUTION=cosmic
+ APPLY_VERSION_WORKAROUND=false
+ '[' '' = true ']'
++ increase-version-number 0.8
+ INCREASED_VERSION=0.8+0
+ '[' -n '' ']'
++ date -u +%Y%m%d%H%M%S
+ TIMESTAMP=20190207190036
+ BUILD_VERSION=20190207190036.11
+ '[' cosmic = UNRELEASED ']'
+ VERSION_STRING=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo '*** Version string set to 0.8+0~20190207190036.11 ***'
*** Version string set to 0.8+0~20190207190036.11 ***
+ dch_opts
+ '[' -n '' ']'
+ DCH_OPTS='-S --multimaint-merge --ignore-branch'
+ echo 'Using default gbp dch options (-S --multimaint-merge --ignore-branch)'
Using default gbp dch options (-S --multimaint-merge --ignore-branch)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch'
+ '[' -n '' ']'
+ DCH_EXTRA_OPTS=--new-version=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo 'Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)'
Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11'
+ '[' -n '' ']'
+ changelog_generation
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' '' = identify ']'
+ '[' -r debian/gbp.conf ']'
+ echo 'Using gbp dch with auto mode.'
Using gbp dch with auto mode.
+ git_dch_auto
+ false
+ gbp dch --auto -S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11
gbp:info: Changelog last touched at '766602a2c459450b242de16a69102075b40315e2'
gbp:info: Changelog 0.8+0~20190207190036.11~1.gbp56e6dd (snapshot #1) prepared up to 56e6dd8
+ '[' -z '' ']'
+ local debchange_opts
+ '[' -n '' ']'
+ debchange --release ''
+ '[' '' = true ']'
+ gbp_opts
+ '[' -n '' ']'
+ GBP_OPTS=' -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir= '
+ echo 'Using git-buildpackage default options provided by jenkins-debian-glue'
Using git-buildpackage default options provided by jenkins-debian-glue
+ gbp buildpackage -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir=
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: /bin/true
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/jenkins-debian-glue-buildbranch65']
gbp:info: Performing the build
gbp:debug: /bin/true ['-nc', '-S', '-us', '-uc']
+ quilt_cleanup
+ '[' -n '' ']'
+ echo '*** Unapplying all possibly applied quilt patches and removing quilt directory ***'
*** Unapplying all possibly applied quilt patches and removing quilt directory ***
+ echo '*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***
+ quilt pop -a
No patch removed
+ true
+ rm -rf .pc
+ dpkg-buildpackage -uc -us -nc -d -S -i -I
dpkg-buildpackage: info: source package myapp
dpkg-buildpackage: info: source version 0.8+0~20190207190036.11~1.gbp56e6dd
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
dpkg-source -i -I --before-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: warning: building a source package without cleaning up as you asked; it might contain undesired files
dpkg-source -i -I -b source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'source' is not <sourcepackage>-<upstreamversion> 'myapp-0.8+0~20190207190036.11~1.gbp56e6dd'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.tar.gz
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
dpkg-genbuildinfo --build=source
dpkg-genbuildinfo: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genbuildinfo: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges --build=source >../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
dpkg-genchanges: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genchanges: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges: info: including full source code in upload
dpkg-source -i -I --after-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: info: source-only upload: Debian-native package
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo '*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***'
*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***
+ rm -f ../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
++ readlink -f debian/changelog
+ git checkout -- /var/lib/jenkins/jobs/myapp-source/workspace/source/debian/changelog
+ git checkout -f origin/master
Note: checking out 'origin/master'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 56e6dd8 Update rules
+ git branch -D jenkins-debian-glue-buildbranch65
Deleted branch jenkins-debian-glue-buildbranch65 (was 56e6dd8).
[workspace] $ /bin/sh -xe /tmp/jenkins2211155313795989483.sh
+ mkdir -p report
+ /usr/bin/lintian-junit-report myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
Archiving artifacts
Recording fingerprints
Recording test results
Triggering a new build of myapp-binaries
Finished: SUCCESS
apt package-management debian jenkins
New contributor
add a comment |
I'm having trouble figuring out how to make a properly implemented Debian package instead of using dpkg-deb --build. I can build the source packages fine but when I build the binary package the files are missing in the final package.
debian/control
Source: myapp
Section: devel
Priority: optional
Maintainer: Ubuntu Developers <webmaster@johndoe.com>
XSBC-Original-Maintainer: John Doe <webmaster@johndoe.com>
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 7)
Vcs-Bzr: lp:ubuntu/hello
Homepage: https://github.com/johndoe/myapp
Package: myapp
Version: 1.8
Architecture: amd64
Depends: python-gi
Description: myapp
debian/myapp.dirs
usr/bin
usr/lib
usr/share/applications
debian/myapp.install
usr/bin/*
usr/lib/*
usr/share/applications/*
debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@
My source build log
Started by user John Doe
Building in workspace /var/lib/jenkins/jobs/myapp-source/workspace
No credentials specified
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git://github.com/johndoe/myapp.git # timeout=10
Fetching upstream changes from git://github.com/johndoe/myapp.git
> git --version # timeout=10
> git fetch --tags --progress git://github.com/johndoe/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 56e6dd883f4a9117969ede29eef6ff780dc5d4ac (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 56e6dd883f4a9117969ede29eef6ff780dc5d4ac # timeout=10
Commit message: "Update rules"
> git rev-list --no-walk ca2af76592882846a67fcd5bbdb84112847fa65b # timeout=10
> git tag -a -f -m Jenkins Build #11 jenkins-myapp-source-11 # timeout=10
[workspace] $ /bin/sh -xe /tmp/jenkins2128150088780715646.sh
+ rm -f ./lintian.txt ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.dsc ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.tar.gz ./myapp_0.8+0~20190207095814.10~1.gbpca2af7_source.buildinfo ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
[workspace] $ /bin/sh -xe /tmp/jenkins1914057638505351054.sh
+ /usr/bin/generate-git-snapshot
+ set -e
+ set -u
+ '[' -r /etc/jenkins/debian_glue ']'
+ . /etc/jenkins/debian_glue
+ '[' -n '' ']'
++ hostname -f
+ DEBEMAIL='jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>'
+ export DEBEMAIL
+ '[' -n '' ']'
+ SOURCE_DIRECTORY=source
+ '[' '!' -d source ']'
+ '[' -z 11 ']'
+ '[' -z 56e6dd883f4a9117969ede29eef6ff780dc5d4ac ']'
++ which gbp
+ '[' -x /usr/bin/gbp ']'
+ GBP_DCH='gbp dch'
+ GBP_BUILDPACKAGE='gbp buildpackage'
++ awk '/^ii/ {print $3}'
++ dpkg --list jenkins-debian-glue
+ JENKINS_DEBIAN_GLUE_VERSION=0.20.0+0~20190115165532.341~1.gbpab2578
+ '[' -n 0.20.0+0~20190115165532.341~1.gbpab2578 ']'
+ echo '*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***'
*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***
+ '[' -n '' -a -z '' ']'
+ echo '*** source package build phase ***'
*** source package build phase ***
+ rm -f ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
+ '[' -n '' ']'
+ cd source
+ git_cleanup
+ '[' -n '' ']'
+ echo '*** Cleaning git repository to make sure there are no modified files ***'
*** Cleaning git repository to make sure there are no modified files ***
+ echo '*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***
+ git clean -fxd
Removing debian/files
+ git reset --hard HEAD
HEAD is now at 56e6dd8 Update rules
+ source_format_opts
+ '[' -f debian/source/format ']'
+ echo '*** WARNING: Source format is not specified in debian/source/format! ***'
*** WARNING: Source format is not specified in debian/source/format! ***
+ return 0
+ identify_source_build_opts
+ DBP_OPTS=
+ '[' -r debian/source/format ']'
+ '[' -r debian/source/options ']'
+ echo '*** Enabling '''-i -I''' options as building for dpkg source format 1.0 ***'
*** Enabling '-i -I' options as building for dpkg source format 1.0 ***
+ DBP_OPTS='-i -I'
+ '[' '' '!=' true ']'
+ gbp_conf
+ '[' '' = true ']'
+ gbp_conf_files=(/etc/git-buildpackage/gbp.conf ~/.gbp.conf .gbp.conf debian/gbp.conf .git/gbp.conf)
+ UPSTREAM_BRANCH=upstream
+ DEBIAN_BRANCH=debian
+ PRISTINE_TAR=false
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /etc/git-buildpackage/gbp.conf ']'
+ local value
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.upstream-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.debian-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --bool --get DEFAULT.pristine-tar
++ true
+ value=
+ '[' -n '' ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /var/lib/jenkins/.gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f debian/gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .git/gbp.conf ']'
+ create_local_branch upstream
+ '[' -n upstream ']'
+ local BRANCH=upstream
+ grep -q 'remotes/origin/upstream$'
+ git branch -a
+ echo 'NOTE: branch upstream does not exist, ignoring request to checkout therefore.'
NOTE: branch upstream does not exist, ignoring request to checkout therefore.
+ create_local_branch debian
+ '[' -n debian ']'
+ local BRANCH=debian
+ grep -q 'remotes/origin/debian$'
+ git branch -a
+ echo 'NOTE: branch debian does not exist, ignoring request to checkout therefore.'
NOTE: branch debian does not exist, ignoring request to checkout therefore.
+ '[' false = true ']'
+ branch_checkout
+ random_branch=jenkins-debian-glue-buildbranch65
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo 'Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist'
Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist
+ git branch -D jenkins-debian-glue-buildbranch65
error: branch 'jenkins-debian-glue-buildbranch65' not found.
+ true
+ echo 'Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac'
Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
+ git checkout -b jenkins-debian-glue-buildbranch65 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
Switched to a new branch 'jenkins-debian-glue-buildbranch65'
+ '[' -n '' ']'
+ version_information
+ '[' -r debian/changelog ']'
++ awk '/^Version/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ ORIG_VERSION=0.8
++ awk '/^Distribution/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ DISTRIBUTION=cosmic
+ APPLY_VERSION_WORKAROUND=false
+ '[' '' = true ']'
++ increase-version-number 0.8
+ INCREASED_VERSION=0.8+0
+ '[' -n '' ']'
++ date -u +%Y%m%d%H%M%S
+ TIMESTAMP=20190207190036
+ BUILD_VERSION=20190207190036.11
+ '[' cosmic = UNRELEASED ']'
+ VERSION_STRING=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo '*** Version string set to 0.8+0~20190207190036.11 ***'
*** Version string set to 0.8+0~20190207190036.11 ***
+ dch_opts
+ '[' -n '' ']'
+ DCH_OPTS='-S --multimaint-merge --ignore-branch'
+ echo 'Using default gbp dch options (-S --multimaint-merge --ignore-branch)'
Using default gbp dch options (-S --multimaint-merge --ignore-branch)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch'
+ '[' -n '' ']'
+ DCH_EXTRA_OPTS=--new-version=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo 'Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)'
Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11'
+ '[' -n '' ']'
+ changelog_generation
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' '' = identify ']'
+ '[' -r debian/gbp.conf ']'
+ echo 'Using gbp dch with auto mode.'
Using gbp dch with auto mode.
+ git_dch_auto
+ false
+ gbp dch --auto -S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11
gbp:info: Changelog last touched at '766602a2c459450b242de16a69102075b40315e2'
gbp:info: Changelog 0.8+0~20190207190036.11~1.gbp56e6dd (snapshot #1) prepared up to 56e6dd8
+ '[' -z '' ']'
+ local debchange_opts
+ '[' -n '' ']'
+ debchange --release ''
+ '[' '' = true ']'
+ gbp_opts
+ '[' -n '' ']'
+ GBP_OPTS=' -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir= '
+ echo 'Using git-buildpackage default options provided by jenkins-debian-glue'
Using git-buildpackage default options provided by jenkins-debian-glue
+ gbp buildpackage -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir=
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: /bin/true
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/jenkins-debian-glue-buildbranch65']
gbp:info: Performing the build
gbp:debug: /bin/true ['-nc', '-S', '-us', '-uc']
+ quilt_cleanup
+ '[' -n '' ']'
+ echo '*** Unapplying all possibly applied quilt patches and removing quilt directory ***'
*** Unapplying all possibly applied quilt patches and removing quilt directory ***
+ echo '*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***
+ quilt pop -a
No patch removed
+ true
+ rm -rf .pc
+ dpkg-buildpackage -uc -us -nc -d -S -i -I
dpkg-buildpackage: info: source package myapp
dpkg-buildpackage: info: source version 0.8+0~20190207190036.11~1.gbp56e6dd
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
dpkg-source -i -I --before-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: warning: building a source package without cleaning up as you asked; it might contain undesired files
dpkg-source -i -I -b source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'source' is not <sourcepackage>-<upstreamversion> 'myapp-0.8+0~20190207190036.11~1.gbp56e6dd'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.tar.gz
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
dpkg-genbuildinfo --build=source
dpkg-genbuildinfo: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genbuildinfo: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges --build=source >../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
dpkg-genchanges: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genchanges: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges: info: including full source code in upload
dpkg-source -i -I --after-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: info: source-only upload: Debian-native package
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo '*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***'
*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***
+ rm -f ../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
++ readlink -f debian/changelog
+ git checkout -- /var/lib/jenkins/jobs/myapp-source/workspace/source/debian/changelog
+ git checkout -f origin/master
Note: checking out 'origin/master'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 56e6dd8 Update rules
+ git branch -D jenkins-debian-glue-buildbranch65
Deleted branch jenkins-debian-glue-buildbranch65 (was 56e6dd8).
[workspace] $ /bin/sh -xe /tmp/jenkins2211155313795989483.sh
+ mkdir -p report
+ /usr/bin/lintian-junit-report myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
Archiving artifacts
Recording fingerprints
Recording test results
Triggering a new build of myapp-binaries
Finished: SUCCESS
apt package-management debian jenkins
New contributor
add a comment |
I'm having trouble figuring out how to make a properly implemented Debian package instead of using dpkg-deb --build. I can build the source packages fine but when I build the binary package the files are missing in the final package.
debian/control
Source: myapp
Section: devel
Priority: optional
Maintainer: Ubuntu Developers <webmaster@johndoe.com>
XSBC-Original-Maintainer: John Doe <webmaster@johndoe.com>
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 7)
Vcs-Bzr: lp:ubuntu/hello
Homepage: https://github.com/johndoe/myapp
Package: myapp
Version: 1.8
Architecture: amd64
Depends: python-gi
Description: myapp
debian/myapp.dirs
usr/bin
usr/lib
usr/share/applications
debian/myapp.install
usr/bin/*
usr/lib/*
usr/share/applications/*
debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@
My source build log
Started by user John Doe
Building in workspace /var/lib/jenkins/jobs/myapp-source/workspace
No credentials specified
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git://github.com/johndoe/myapp.git # timeout=10
Fetching upstream changes from git://github.com/johndoe/myapp.git
> git --version # timeout=10
> git fetch --tags --progress git://github.com/johndoe/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 56e6dd883f4a9117969ede29eef6ff780dc5d4ac (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 56e6dd883f4a9117969ede29eef6ff780dc5d4ac # timeout=10
Commit message: "Update rules"
> git rev-list --no-walk ca2af76592882846a67fcd5bbdb84112847fa65b # timeout=10
> git tag -a -f -m Jenkins Build #11 jenkins-myapp-source-11 # timeout=10
[workspace] $ /bin/sh -xe /tmp/jenkins2128150088780715646.sh
+ rm -f ./lintian.txt ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.dsc ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.tar.gz ./myapp_0.8+0~20190207095814.10~1.gbpca2af7_source.buildinfo ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
[workspace] $ /bin/sh -xe /tmp/jenkins1914057638505351054.sh
+ /usr/bin/generate-git-snapshot
+ set -e
+ set -u
+ '[' -r /etc/jenkins/debian_glue ']'
+ . /etc/jenkins/debian_glue
+ '[' -n '' ']'
++ hostname -f
+ DEBEMAIL='jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>'
+ export DEBEMAIL
+ '[' -n '' ']'
+ SOURCE_DIRECTORY=source
+ '[' '!' -d source ']'
+ '[' -z 11 ']'
+ '[' -z 56e6dd883f4a9117969ede29eef6ff780dc5d4ac ']'
++ which gbp
+ '[' -x /usr/bin/gbp ']'
+ GBP_DCH='gbp dch'
+ GBP_BUILDPACKAGE='gbp buildpackage'
++ awk '/^ii/ {print $3}'
++ dpkg --list jenkins-debian-glue
+ JENKINS_DEBIAN_GLUE_VERSION=0.20.0+0~20190115165532.341~1.gbpab2578
+ '[' -n 0.20.0+0~20190115165532.341~1.gbpab2578 ']'
+ echo '*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***'
*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***
+ '[' -n '' -a -z '' ']'
+ echo '*** source package build phase ***'
*** source package build phase ***
+ rm -f ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
+ '[' -n '' ']'
+ cd source
+ git_cleanup
+ '[' -n '' ']'
+ echo '*** Cleaning git repository to make sure there are no modified files ***'
*** Cleaning git repository to make sure there are no modified files ***
+ echo '*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***
+ git clean -fxd
Removing debian/files
+ git reset --hard HEAD
HEAD is now at 56e6dd8 Update rules
+ source_format_opts
+ '[' -f debian/source/format ']'
+ echo '*** WARNING: Source format is not specified in debian/source/format! ***'
*** WARNING: Source format is not specified in debian/source/format! ***
+ return 0
+ identify_source_build_opts
+ DBP_OPTS=
+ '[' -r debian/source/format ']'
+ '[' -r debian/source/options ']'
+ echo '*** Enabling '''-i -I''' options as building for dpkg source format 1.0 ***'
*** Enabling '-i -I' options as building for dpkg source format 1.0 ***
+ DBP_OPTS='-i -I'
+ '[' '' '!=' true ']'
+ gbp_conf
+ '[' '' = true ']'
+ gbp_conf_files=(/etc/git-buildpackage/gbp.conf ~/.gbp.conf .gbp.conf debian/gbp.conf .git/gbp.conf)
+ UPSTREAM_BRANCH=upstream
+ DEBIAN_BRANCH=debian
+ PRISTINE_TAR=false
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /etc/git-buildpackage/gbp.conf ']'
+ local value
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.upstream-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.debian-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --bool --get DEFAULT.pristine-tar
++ true
+ value=
+ '[' -n '' ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /var/lib/jenkins/.gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f debian/gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .git/gbp.conf ']'
+ create_local_branch upstream
+ '[' -n upstream ']'
+ local BRANCH=upstream
+ grep -q 'remotes/origin/upstream$'
+ git branch -a
+ echo 'NOTE: branch upstream does not exist, ignoring request to checkout therefore.'
NOTE: branch upstream does not exist, ignoring request to checkout therefore.
+ create_local_branch debian
+ '[' -n debian ']'
+ local BRANCH=debian
+ grep -q 'remotes/origin/debian$'
+ git branch -a
+ echo 'NOTE: branch debian does not exist, ignoring request to checkout therefore.'
NOTE: branch debian does not exist, ignoring request to checkout therefore.
+ '[' false = true ']'
+ branch_checkout
+ random_branch=jenkins-debian-glue-buildbranch65
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo 'Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist'
Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist
+ git branch -D jenkins-debian-glue-buildbranch65
error: branch 'jenkins-debian-glue-buildbranch65' not found.
+ true
+ echo 'Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac'
Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
+ git checkout -b jenkins-debian-glue-buildbranch65 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
Switched to a new branch 'jenkins-debian-glue-buildbranch65'
+ '[' -n '' ']'
+ version_information
+ '[' -r debian/changelog ']'
++ awk '/^Version/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ ORIG_VERSION=0.8
++ awk '/^Distribution/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ DISTRIBUTION=cosmic
+ APPLY_VERSION_WORKAROUND=false
+ '[' '' = true ']'
++ increase-version-number 0.8
+ INCREASED_VERSION=0.8+0
+ '[' -n '' ']'
++ date -u +%Y%m%d%H%M%S
+ TIMESTAMP=20190207190036
+ BUILD_VERSION=20190207190036.11
+ '[' cosmic = UNRELEASED ']'
+ VERSION_STRING=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo '*** Version string set to 0.8+0~20190207190036.11 ***'
*** Version string set to 0.8+0~20190207190036.11 ***
+ dch_opts
+ '[' -n '' ']'
+ DCH_OPTS='-S --multimaint-merge --ignore-branch'
+ echo 'Using default gbp dch options (-S --multimaint-merge --ignore-branch)'
Using default gbp dch options (-S --multimaint-merge --ignore-branch)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch'
+ '[' -n '' ']'
+ DCH_EXTRA_OPTS=--new-version=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo 'Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)'
Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11'
+ '[' -n '' ']'
+ changelog_generation
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' '' = identify ']'
+ '[' -r debian/gbp.conf ']'
+ echo 'Using gbp dch with auto mode.'
Using gbp dch with auto mode.
+ git_dch_auto
+ false
+ gbp dch --auto -S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11
gbp:info: Changelog last touched at '766602a2c459450b242de16a69102075b40315e2'
gbp:info: Changelog 0.8+0~20190207190036.11~1.gbp56e6dd (snapshot #1) prepared up to 56e6dd8
+ '[' -z '' ']'
+ local debchange_opts
+ '[' -n '' ']'
+ debchange --release ''
+ '[' '' = true ']'
+ gbp_opts
+ '[' -n '' ']'
+ GBP_OPTS=' -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir= '
+ echo 'Using git-buildpackage default options provided by jenkins-debian-glue'
Using git-buildpackage default options provided by jenkins-debian-glue
+ gbp buildpackage -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir=
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: /bin/true
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/jenkins-debian-glue-buildbranch65']
gbp:info: Performing the build
gbp:debug: /bin/true ['-nc', '-S', '-us', '-uc']
+ quilt_cleanup
+ '[' -n '' ']'
+ echo '*** Unapplying all possibly applied quilt patches and removing quilt directory ***'
*** Unapplying all possibly applied quilt patches and removing quilt directory ***
+ echo '*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***
+ quilt pop -a
No patch removed
+ true
+ rm -rf .pc
+ dpkg-buildpackage -uc -us -nc -d -S -i -I
dpkg-buildpackage: info: source package myapp
dpkg-buildpackage: info: source version 0.8+0~20190207190036.11~1.gbp56e6dd
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
dpkg-source -i -I --before-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: warning: building a source package without cleaning up as you asked; it might contain undesired files
dpkg-source -i -I -b source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'source' is not <sourcepackage>-<upstreamversion> 'myapp-0.8+0~20190207190036.11~1.gbp56e6dd'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.tar.gz
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
dpkg-genbuildinfo --build=source
dpkg-genbuildinfo: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genbuildinfo: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges --build=source >../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
dpkg-genchanges: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genchanges: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges: info: including full source code in upload
dpkg-source -i -I --after-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: info: source-only upload: Debian-native package
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo '*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***'
*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***
+ rm -f ../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
++ readlink -f debian/changelog
+ git checkout -- /var/lib/jenkins/jobs/myapp-source/workspace/source/debian/changelog
+ git checkout -f origin/master
Note: checking out 'origin/master'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 56e6dd8 Update rules
+ git branch -D jenkins-debian-glue-buildbranch65
Deleted branch jenkins-debian-glue-buildbranch65 (was 56e6dd8).
[workspace] $ /bin/sh -xe /tmp/jenkins2211155313795989483.sh
+ mkdir -p report
+ /usr/bin/lintian-junit-report myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
Archiving artifacts
Recording fingerprints
Recording test results
Triggering a new build of myapp-binaries
Finished: SUCCESS
apt package-management debian jenkins
New contributor
I'm having trouble figuring out how to make a properly implemented Debian package instead of using dpkg-deb --build. I can build the source packages fine but when I build the binary package the files are missing in the final package.
debian/control
Source: myapp
Section: devel
Priority: optional
Maintainer: Ubuntu Developers <webmaster@johndoe.com>
XSBC-Original-Maintainer: John Doe <webmaster@johndoe.com>
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 7)
Vcs-Bzr: lp:ubuntu/hello
Homepage: https://github.com/johndoe/myapp
Package: myapp
Version: 1.8
Architecture: amd64
Depends: python-gi
Description: myapp
debian/myapp.dirs
usr/bin
usr/lib
usr/share/applications
debian/myapp.install
usr/bin/*
usr/lib/*
usr/share/applications/*
debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@
My source build log
Started by user John Doe
Building in workspace /var/lib/jenkins/jobs/myapp-source/workspace
No credentials specified
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git://github.com/johndoe/myapp.git # timeout=10
Fetching upstream changes from git://github.com/johndoe/myapp.git
> git --version # timeout=10
> git fetch --tags --progress git://github.com/johndoe/myapp.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 56e6dd883f4a9117969ede29eef6ff780dc5d4ac (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 56e6dd883f4a9117969ede29eef6ff780dc5d4ac # timeout=10
Commit message: "Update rules"
> git rev-list --no-walk ca2af76592882846a67fcd5bbdb84112847fa65b # timeout=10
> git tag -a -f -m Jenkins Build #11 jenkins-myapp-source-11 # timeout=10
[workspace] $ /bin/sh -xe /tmp/jenkins2128150088780715646.sh
+ rm -f ./lintian.txt ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.dsc ./myapp_0.8+0~20190207095814.10~1.gbpca2af7.tar.gz ./myapp_0.8+0~20190207095814.10~1.gbpca2af7_source.buildinfo ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
[workspace] $ /bin/sh -xe /tmp/jenkins1914057638505351054.sh
+ /usr/bin/generate-git-snapshot
+ set -e
+ set -u
+ '[' -r /etc/jenkins/debian_glue ']'
+ . /etc/jenkins/debian_glue
+ '[' -n '' ']'
++ hostname -f
+ DEBEMAIL='jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>'
+ export DEBEMAIL
+ '[' -n '' ']'
+ SOURCE_DIRECTORY=source
+ '[' '!' -d source ']'
+ '[' -z 11 ']'
+ '[' -z 56e6dd883f4a9117969ede29eef6ff780dc5d4ac ']'
++ which gbp
+ '[' -x /usr/bin/gbp ']'
+ GBP_DCH='gbp dch'
+ GBP_BUILDPACKAGE='gbp buildpackage'
++ awk '/^ii/ {print $3}'
++ dpkg --list jenkins-debian-glue
+ JENKINS_DEBIAN_GLUE_VERSION=0.20.0+0~20190115165532.341~1.gbpab2578
+ '[' -n 0.20.0+0~20190115165532.341~1.gbpab2578 ']'
+ echo '*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***'
*** Running jenkins-debian-glue version 0.20.0+0~20190115165532.341~1.gbpab2578 ***
+ '[' -n '' -a -z '' ']'
+ echo '*** source package build phase ***'
*** source package build phase ***
+ rm -f ./report ./source
rm: cannot remove './report': Is a directory
rm: cannot remove './source': Is a directory
+ true
+ '[' -n '' ']'
+ cd source
+ git_cleanup
+ '[' -n '' ']'
+ echo '*** Cleaning git repository to make sure there are no modified files ***'
*** Cleaning git repository to make sure there are no modified files ***
+ echo '*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_GIT_CLEANUP=true ***
+ git clean -fxd
Removing debian/files
+ git reset --hard HEAD
HEAD is now at 56e6dd8 Update rules
+ source_format_opts
+ '[' -f debian/source/format ']'
+ echo '*** WARNING: Source format is not specified in debian/source/format! ***'
*** WARNING: Source format is not specified in debian/source/format! ***
+ return 0
+ identify_source_build_opts
+ DBP_OPTS=
+ '[' -r debian/source/format ']'
+ '[' -r debian/source/options ']'
+ echo '*** Enabling '''-i -I''' options as building for dpkg source format 1.0 ***'
*** Enabling '-i -I' options as building for dpkg source format 1.0 ***
+ DBP_OPTS='-i -I'
+ '[' '' '!=' true ']'
+ gbp_conf
+ '[' '' = true ']'
+ gbp_conf_files=(/etc/git-buildpackage/gbp.conf ~/.gbp.conf .gbp.conf debian/gbp.conf .git/gbp.conf)
+ UPSTREAM_BRANCH=upstream
+ DEBIAN_BRANCH=debian
+ PRISTINE_TAR=false
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /etc/git-buildpackage/gbp.conf ']'
+ local value
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.upstream-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --get DEFAULT.debian-branch
++ true
+ value=
+ '[' -n '' ']'
++ git config --file /etc/git-buildpackage/gbp.conf --bool --get DEFAULT.pristine-tar
++ true
+ value=
+ '[' -n '' ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f /var/lib/jenkins/.gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f debian/gbp.conf ']'
+ for gbp_conf_file in "${gbp_conf_files[@]}"
+ '[' -f .git/gbp.conf ']'
+ create_local_branch upstream
+ '[' -n upstream ']'
+ local BRANCH=upstream
+ grep -q 'remotes/origin/upstream$'
+ git branch -a
+ echo 'NOTE: branch upstream does not exist, ignoring request to checkout therefore.'
NOTE: branch upstream does not exist, ignoring request to checkout therefore.
+ create_local_branch debian
+ '[' -n debian ']'
+ local BRANCH=debian
+ grep -q 'remotes/origin/debian$'
+ git branch -a
+ echo 'NOTE: branch debian does not exist, ignoring request to checkout therefore.'
NOTE: branch debian does not exist, ignoring request to checkout therefore.
+ '[' false = true ']'
+ branch_checkout
+ random_branch=jenkins-debian-glue-buildbranch65
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo 'Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist'
Making sure that random_branch jenkins-debian-glue-buildbranch65 does not exist
+ git branch -D jenkins-debian-glue-buildbranch65
error: branch 'jenkins-debian-glue-buildbranch65' not found.
+ true
+ echo 'Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac'
Checking out branch jenkins-debian-glue-buildbranch65 based on commit 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
+ git checkout -b jenkins-debian-glue-buildbranch65 56e6dd883f4a9117969ede29eef6ff780dc5d4ac
Switched to a new branch 'jenkins-debian-glue-buildbranch65'
+ '[' -n '' ']'
+ version_information
+ '[' -r debian/changelog ']'
++ awk '/^Version/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ ORIG_VERSION=0.8
++ awk '/^Distribution/ {print $2}'
++ dpkg-parsechangelog --count 1
dpkg-parsechangelog: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-parsechangelog: warning: debian/changelog(l5): found end of file where expected more change data or trailer
+ DISTRIBUTION=cosmic
+ APPLY_VERSION_WORKAROUND=false
+ '[' '' = true ']'
++ increase-version-number 0.8
+ INCREASED_VERSION=0.8+0
+ '[' -n '' ']'
++ date -u +%Y%m%d%H%M%S
+ TIMESTAMP=20190207190036
+ BUILD_VERSION=20190207190036.11
+ '[' cosmic = UNRELEASED ']'
+ VERSION_STRING=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo '*** Version string set to 0.8+0~20190207190036.11 ***'
*** Version string set to 0.8+0~20190207190036.11 ***
+ dch_opts
+ '[' -n '' ']'
+ DCH_OPTS='-S --multimaint-merge --ignore-branch'
+ echo 'Using default gbp dch options (-S --multimaint-merge --ignore-branch)'
Using default gbp dch options (-S --multimaint-merge --ignore-branch)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch'
+ '[' -n '' ']'
+ DCH_EXTRA_OPTS=--new-version=0.8+0~20190207190036.11
+ '[' -n '' ']'
+ echo 'Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)'
Using extra gbp dch options (--new-version=0.8+0~20190207190036.11)
+ DCH_COMBINED_OPTS='-S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11'
+ '[' -n '' ']'
+ changelog_generation
+ '[' '' = true ']'
+ '[' -n '' ']'
+ '[' '' = identify ']'
+ '[' -r debian/gbp.conf ']'
+ echo 'Using gbp dch with auto mode.'
Using gbp dch with auto mode.
+ git_dch_auto
+ false
+ gbp dch --auto -S --multimaint-merge --ignore-branch --new-version=0.8+0~20190207190036.11
gbp:info: Changelog last touched at '766602a2c459450b242de16a69102075b40315e2'
gbp:info: Changelog 0.8+0~20190207190036.11~1.gbp56e6dd (snapshot #1) prepared up to 56e6dd8
+ '[' -z '' ']'
+ local debchange_opts
+ '[' -n '' ']'
+ debchange --release ''
+ '[' '' = true ']'
+ gbp_opts
+ '[' -n '' ']'
+ GBP_OPTS=' -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir= '
+ echo 'Using git-buildpackage default options provided by jenkins-debian-glue'
Using git-buildpackage default options provided by jenkins-debian-glue
+ gbp buildpackage -nc --git-force-create --git-ignore-new --git-ignore-branch -S -us -uc --git-verbose --git-builder=/bin/true --git-cleaner=/bin/true --git-export-dir=
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: /bin/true
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/jenkins-debian-glue-buildbranch65']
gbp:info: Performing the build
gbp:debug: /bin/true ['-nc', '-S', '-us', '-uc']
+ quilt_cleanup
+ '[' -n '' ']'
+ echo '*** Unapplying all possibly applied quilt patches and removing quilt directory ***'
*** Unapplying all possibly applied quilt patches and removing quilt directory ***
+ echo '*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***'
*** Note: You can skip this step by setting SKIP_QUILT_CLEANUP=true ***
+ quilt pop -a
No patch removed
+ true
+ rm -rf .pc
+ dpkg-buildpackage -uc -us -nc -d -S -i -I
dpkg-buildpackage: info: source package myapp
dpkg-buildpackage: info: source version 0.8+0~20190207190036.11~1.gbp56e6dd
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by jenkins-debian-glue Autobuilder <jenkins@ip-172-31-23-247.eu-west-1.compute.internal>
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
dpkg-source -i -I --before-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: warning: building a source package without cleaning up as you asked; it might contain undesired files
dpkg-source -i -I -b source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'source' is not <sourcepackage>-<upstreamversion> 'myapp-0.8+0~20190207190036.11~1.gbp56e6dd'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.tar.gz
dpkg-source: info: building myapp in myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
dpkg-genbuildinfo --build=source
dpkg-genbuildinfo: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genbuildinfo: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges --build=source >../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
dpkg-genchanges: warning: debian/changelog(l27): badly formatted heading line
LINE: -- Jane Doe <packager@example.com> Thu, 21 Oct 2013 11:12:00 -0400
dpkg-genchanges: warning: debian/changelog(l27): found end of file where expected more change data or trailer
dpkg-genchanges: info: including full source code in upload
dpkg-source -i -I --after-build source
dpkg-source: warning: unknown information field 'Version' in input data in package's section of control info file
dpkg-buildpackage: info: source-only upload: Debian-native package
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo '*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***'
*** Removing ../*_source.changes because KEEP_SOURCE_CHANGES is not set ***
+ rm -f ../myapp_0.8+0~20190207190036.11~1.gbp56e6dd_source.changes
++ readlink -f debian/changelog
+ git checkout -- /var/lib/jenkins/jobs/myapp-source/workspace/source/debian/changelog
+ git checkout -f origin/master
Note: checking out 'origin/master'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 56e6dd8 Update rules
+ git branch -D jenkins-debian-glue-buildbranch65
Deleted branch jenkins-debian-glue-buildbranch65 (was 56e6dd8).
[workspace] $ /bin/sh -xe /tmp/jenkins2211155313795989483.sh
+ mkdir -p report
+ /usr/bin/lintian-junit-report myapp_0.8+0~20190207190036.11~1.gbp56e6dd.dsc
Archiving artifacts
Recording fingerprints
Recording test results
Triggering a new build of myapp-binaries
Finished: SUCCESS
apt package-management debian jenkins
apt package-management debian jenkins
New contributor
New contributor
edited yesterday
Unix8475e
New contributor
asked yesterday
Unix8475eUnix8475e
11
11
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Unix8475e is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116483%2fbuilding-binary-package-with-files-missing-from-source-package%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Unix8475e is a new contributor. Be nice, and check out our Code of Conduct.
Unix8475e is a new contributor. Be nice, and check out our Code of Conduct.
Unix8475e is a new contributor. Be nice, and check out our Code of Conduct.
Unix8475e is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116483%2fbuilding-binary-package-with-files-missing-from-source-package%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown