Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

add debian packaging #7

Merged
merged 1 commit into from
Jul 11, 2018
Merged

Conversation

vdloo
Copy link
Contributor

@vdloo vdloo commented Jul 11, 2018

Looks like:

vdloo@workstation4:~/code/projects/masquerade$ gbp buildpackage --git-pbuilder --git-dist=xenial --git-arch=amd64 --git-ignore-branch --git-ignore-new
gbp:info: Building with (cowbuilder) for xenial:amd64
Building with cowbuilder for distribution xenial, architecture amd64
Source format 1.0 detected, adding exclude flags
I: using cowbuilder as pbuilder
dpkg-buildpackage: source package masquerade
dpkg-buildpackage: source version 20180711.080851
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by Rick van de Loo <vdloo@workstation4>
 dpkg-source -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git --before-build masquerade
 fakeroot debian/rules clean
dh clean 
   dh_testdir
   dh_auto_clean
   dh_clean
 dpkg-source -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git -b masquerade
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'masquerade' is not <sourcepackage>-<upstreamversion> 'masquerade-20180711.080851'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building masquerade in masquerade_20180711.080851.tar.gz
dpkg-source: info: building masquerade in masquerade_20180711.080851.dsc
 dpkg-genchanges -S >../masquerade_20180711.080851_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git --after-build masquerade
dpkg-buildpackage: source-only upload: Debian-native package
 -> Copying COW directory
  forking: rm -rf /var/cache/pbuilder/build/cow.23552 
  forking: cp -al /var/cache/pbuilder/base-xenial-amd64.cow /var/cache/pbuilder/build/cow.23552 
I: unlink for ilistfile /var/cache/pbuilder/build/cow.23552/.ilist failed, it didn't exist?
  forking: chroot /var/cache/pbuilder/build/cow.23552 cowdancer-ilistcreate /.ilist find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a -links +1 -print0 \) | xargs -0 stat --format '%d %i ' 
 -> Invoking pbuilder
  forking: pbuilder build --debbuildopts  --debbuildopts  -i'(?:^|/)\.git(attributes)?(?:$|/.*$)' -I.git --buildplace /var/cache/pbuilder/build/cow.23552 --buildresult /home/vdloo/code/projects --debbuildopts  -i'(?:^|/)\.git(attributes)?(?:$|/.*$)' -I.git --no-targz --internal-chrootexec chroot /var/cache/pbuilder/build/cow.23552 cow-shell /home/vdloo/code/projects/masquerade_20180711.080851.dsc 
I: Running in no-targz mode
I: using fakeroot in build.
I: pbuilder: network access will be disabled during build
I: Current time: Wed Jul 11 09:31:41 CEST 2018
I: pbuilder-time-stamp: 1531294301
I: copying local configuration
W: No local /etc/mailname to copy, relying on /var/cache/pbuilder/build/cow.23552/etc/mailname to be correct
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <[email protected]>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: debhelper (>= 8.0.0)
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 12251 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 8.0.0); however:
  Package debhelper is not installed.

Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
Building tag database...
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
The following NEW packages will be installed:
  autotools-dev{a} bsdmainutils{a} debhelper{a} dh-strip-nondeterminism{a} 
  file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} 
  libarchive-zip-perl{a} libasprintf0v5{a} libcroco3{a} libffi6{a} 
  libfile-stripnondeterminism-perl{a} libglib2.0-0{a} libicu55{a} 
  libmagic1{a} libpipeline1{a} libtimedate-perl{a} libunistring0{a} 
  libxml2{a} man-db{a} po-debconf{a} 
The following packages are RECOMMENDED but will NOT be installed:
  curl libasprintf-dev libgettextpo-dev libglib2.0-data 
  libmail-sendmail-perl lynx-cur shared-mime-info wget xdg-user-dirs 
  xml-core 
0 packages upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/14.6 MB of archives. After unpacking 57.1 MB will be used.
Writing extended state information...
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package groff-base.
(Reading database ... 12251 files and directories currently installed.)
Preparing to unpack .../groff-base_1.22.3-7_amd64.deb ...
Unpacking groff-base (1.22.3-7) ...
Selecting previously unselected package bsdmainutils.
Preparing to unpack .../bsdmainutils_9.0.6ubuntu3_amd64.deb ...
Unpacking bsdmainutils (9.0.6ubuntu3) ...
Selecting previously unselected package libpipeline1:amd64.
Preparing to unpack .../libpipeline1_1.4.1-2_amd64.deb ...
Unpacking libpipeline1:amd64 (1.4.1-2) ...
Selecting previously unselected package man-db.
Preparing to unpack .../man-db_2.7.5-1_amd64.deb ...
Unpacking man-db (2.7.5-1) ...
Selecting previously unselected package libunistring0:amd64.
Preparing to unpack .../libunistring0_0.9.3-5.2ubuntu1_amd64.deb ...
Unpacking libunistring0:amd64 (0.9.3-5.2ubuntu1) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../libmagic1_1%3a5.25-2ubuntu1_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.25-2ubuntu1) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.25-2ubuntu1_amd64.deb ...
Unpacking file (1:5.25-2ubuntu1) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.2.1-4_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-4) ...
Selecting previously unselected package libasprintf0v5:amd64.
Preparing to unpack .../libasprintf0v5_0.19.7-2ubuntu3_amd64.deb ...
Unpacking libasprintf0v5:amd64 (0.19.7-2ubuntu3) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../gettext-base_0.19.7-2ubuntu3_amd64.deb ...
Unpacking gettext-base (0.19.7-2ubuntu3) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.48.0-1ubuntu4_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.48.0-1ubuntu4) ...
Selecting previously unselected package libicu55:amd64.
Preparing to unpack .../libicu55_55.1-7_amd64.deb ...
Unpacking libicu55:amd64 (55.1-7) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../libxml2_2.9.3+dfsg1-1_amd64.deb ...
Unpacking libxml2:amd64 (2.9.3+dfsg1-1) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../autotools-dev_20150820.1_all.deb ...
Unpacking autotools-dev (20150820.1) ...
Selecting previously unselected package libcroco3:amd64.
Preparing to unpack .../libcroco3_0.6.11-1_amd64.deb ...
Unpacking libcroco3:amd64 (0.6.11-1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../gettext_0.19.7-2ubuntu3_amd64.deb ...
Unpacking gettext (0.19.7-2ubuntu3) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../intltool-debian_0.35.0+20060710.4_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.4) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../po-debconf_1.0.19_all.deb ...
Unpacking po-debconf (1.0.19) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../libarchive-zip-perl_1.56-2_all.deb ...
Unpacking libarchive-zip-perl (1.56-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../libfile-stripnondeterminism-perl_0.015-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (0.015-1) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../libtimedate-perl_2.3000-2_all.deb ...
Unpacking libtimedate-perl (2.3000-2) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../dh-strip-nondeterminism_0.015-1_all.deb ...
Unpacking dh-strip-nondeterminism (0.015-1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../debhelper_9.20160115ubuntu3_all.deb ...
Unpacking debhelper (9.20160115ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up groff-base (1.22.3-7) ...
Setting up bsdmainutils (9.0.6ubuntu3) ...
update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode
update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode
Setting up libpipeline1:amd64 (1.4.1-2) ...
Setting up man-db (2.7.5-1) ...
Building database of manual pages ...
Setting up libunistring0:amd64 (0.9.3-5.2ubuntu1) ...
Setting up libmagic1:amd64 (1:5.25-2ubuntu1) ...
Setting up file (1:5.25-2ubuntu1) ...
Setting up libffi6:amd64 (3.2.1-4) ...
Setting up libasprintf0v5:amd64 (0.19.7-2ubuntu3) ...
Setting up gettext-base (0.19.7-2ubuntu3) ...
Setting up libglib2.0-0:amd64 (2.48.0-1ubuntu4) ...
No schema files found: doing nothing.
Setting up libicu55:amd64 (55.1-7) ...
Setting up libxml2:amd64 (2.9.3+dfsg1-1) ...
Setting up autotools-dev (20150820.1) ...
Setting up libcroco3:amd64 (0.6.11-1) ...
Setting up gettext (0.19.7-2ubuntu3) ...
Setting up intltool-debian (0.35.0+20060710.4) ...
Setting up po-debconf (1.0.19) ...
Setting up libarchive-zip-perl (1.56-2) ...
Setting up libfile-stripnondeterminism-perl (0.015-1) ...
Setting up libtimedate-perl (2.3000-2) ...
Setting up dh-strip-nondeterminism (0.015-1) ...
Setting up debhelper (9.20160115ubuntu3) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...
 -> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libfakeroot
The following NEW packages will be installed:
  fakeroot libfakeroot
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/87.3 kB of archives.
After this operation, 441 kB of additional disk space will be used.
Selecting previously unselected package libfakeroot:amd64.
(Reading database ... 13702 files and directories currently installed.)
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
I: Copying back the cached apt archive contents
I: Copying source file
I: copying [/home/vdloo/code/projects/masquerade_20180711.080851.dsc]
I: copying [/home/vdloo/code/projects/masquerade_20180711.080851.tar.gz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package (masquerade_20180711.080851.dsc)
dpkg-source: info: extracting masquerade in masquerade-20180711.080851
dpkg-source: info: unpacking masquerade_20180711.080851.tar.gz
I: Building the package
I: Running cd /build/*/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us -uc  -i'(?:^|/)\.git(attributes)?(?:$|/.*$)' -I.git  -i'(?:^|/)\.git(attributes)?(?:$|/.*$)' -I.git -rfakeroot
dpkg-buildpackage: source package masquerade
dpkg-buildpackage: source version 20180711.080851
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by Rick van de Loo <vdloo@workstation4>
 dpkg-source -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git --before-build masquerade-20180711.080851
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh clean 
   dh_testdir
   dh_auto_clean
   dh_clean
 dpkg-source -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git -b masquerade-20180711.080851
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format '1.0'
dpkg-source: info: building masquerade in masquerade_20180711.080851.tar.gz
dpkg-source: info: building masquerade in masquerade_20180711.080851.dsc
 debian/rules build
dh build 
   dh_testdir
   dh_update_autotools_config
   dh_auto_configure
   dh_auto_build
   dh_auto_test
 fakeroot debian/rules binary
dh binary 
   dh_testroot
   dh_prep
   dh_auto_install
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: Depends field of package masquerade: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'masquerade' in '../masquerade_20180711.080851_all.deb'.
 dpkg-genchanges  >../masquerade_20180711.080851_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git -i(?:^|/)\.git(attributes)?(?:$|/.*$) -I.git --after-build masquerade-20180711.080851
dpkg-buildpackage: full upload; Debian-native package (full source is included)
I: copying local configuration
I: Copying back the cached apt archive contents
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: Current time: Wed Jul 11 09:32:02 CEST 2018
I: pbuilder-time-stamp: 1531294322
 -> Cleaning COW directory
  forking: rm -rf /var/cache/pbuilder/build/cow.23552 
vdloo@workstation4:~/code/projects/masquerade$ ls ../masquerade_20180711.080851*
../masquerade_20180711.080851_all.deb      ../masquerade_20180711.080851_amd64.changes  ../masquerade_20180711.080851.tar.gz
../masquerade_20180711.080851_amd64.build  ../masquerade_20180711.080851.dsc
root@83f03u-testalex-magweb-do ~ # dpkg -I masquerade_20180711.080851_all.deb 
 new debian package, version 2.0.
 size 2689990 bytes: control archive=582 bytes.
     304 bytes,     9 lines      control              
     208 bytes,     3 lines      md5sums              
     121 bytes,     4 lines   *  postinst             #!/bin/sh
      49 bytes,     3 lines   *  prerm                #!/bin/sh
 Package: masquerade
 Version: 20180711.080851
 Architecture: all
 Maintainer: Peter Jaap Blaakmeer <[email protected]>
 Installed-Size: 14056
 Section: libs
 Priority: optional
 Homepage: https://github.com/elgentos/masquerade
 Description: Faker-driven, platform-agnostic, locale compatible data faker tool
root@83f03u-testalex-magweb-do ~ # dpkg -i masquerade_20180711.080851_all.deb 
Selecting previously unselected package masquerade.
(Reading database ... 119371 files and directories currently installed.)
Preparing to unpack masquerade_20180711.080851_all.deb ...
Unpacking masquerade (20180711.080851) ...
Setting up masquerade (20180711.080851) ...
root@83f03u-testalex-magweb-do ~ # apt-cache policy masquerade
masquerade:
  Installed: 20180711.080851
  Candidate: 20180711.080851
  Version table:
 *** 20180711.080851 100
        100 /var/lib/dpkg/status
root@83f03u-testalex-magweb-do ~ # dpkg -L masquerade
/.
/usr
/usr/local
/usr/local/bin
/usr/local/bin/masquerade.phar
/usr/share
/usr/share/doc
/usr/share/doc/masquerade
/usr/share/doc/masquerade/changelog.gz
/usr/share/doc/masquerade/README.md.gz
app@83f03u-testalex-magweb-do:~$ masquerade --help
Description:
  List of tables (and columns) to be faked

Usage:
  list [options]

Options:
      --platform=PLATFORM  
  -h, --help               Display this help message
  -q, --quiet              Do not output any message
  -V, --version            Display this application version
      --ansi               Force ANSI output
      --no-ansi            Disable ANSI output
  -n, --no-interaction     Do not ask any interactive question
  -v|vv|vvv, --verbose     Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
app@83f03u-testalex-magweb-do:~$ which masquerade
/usr/local/bin/masquerade
app@83f03u-testalex-magweb-do:~$ which masquerade.phar
/usr/local/bin/masquerade.phar

@peterjaap if you merge this can you please tag and push 20180711.080851?

git tag 20180711.080851

@peterjaap peterjaap merged commit d1b8a08 into elgentos:master Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants