Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup environment to follow tutorial #223

Open
general-kroll-4-life opened this issue Aug 28, 2024 · 0 comments
Open

Setup environment to follow tutorial #223

general-kroll-4-life opened this issue Aug 28, 2024 · 0 comments

Comments

@general-kroll-4-life
Copy link

general-kroll-4-life commented Aug 28, 2024

Hi @stapelberg

Background

I am trying to package my repository (stackql) for source distribution and before doing so I followed the dh-make-golang tutorial, using v0.7.0 of dh-make-golang, on an ubuntu 22.04 VM.

The issue

When I run the gbp buildpackage --git-pbuilder step, I get the stuff below in Figure E1. I've tried setting up cowbuilder and the suggestions rooted at #48, to no avail.

A couple of things I naively ask:

  • Can you please guide me how to set up a machine or container so that the tutorial will work for me?
  • Is there some end to end automation of the entire process now available?

Many Thanks,

Kieran

Supporting evidence


$ gbp buildpackage --git-pbuilder
gbp:info: Building with (cowbuilder) for debian_sid
gbp:info: Performing the build
Building with cowbuilder for distribution debian_sid
W: /home/azureuser/.pbuilderrc does not exist
I: using cowbuilder as pbuilder
dh clean --builddirectory=_build --buildsystem=golang
   dh_auto_clean -O--builddirectory=_build -O--buildsystem=golang
   dh_autoreconf_clean -O--builddirectory=_build -O--buildsystem=golang
   dh_clean -O--builddirectory=_build -O--buildsystem=golang
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building golang-github-jacobsa-ratelimit using existing ./golang-github-jacobsa-ratelimit_0.0~git20150904.f5e4703.orig.tar.xz
dpkg-source: info: building golang-github-jacobsa-ratelimit in golang-github-jacobsa-ratelimit_0.0~git20150904.f5e4703-1.debian.tar.xz
dpkg-source: info: building golang-github-jacobsa-ratelimit in golang-github-jacobsa-ratelimit_0.0~git20150904.f5e4703-1.dsc
I: Generated dsc will be overwritten by build result; not generating changes file
I: Copying COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.81726
I: forking: cp -al /var/cache/pbuilder/base-debian_sid.cow /var/cache/pbuilder/build/cow.81726
I: unlink for ilistfile /var/cache/pbuilder/build/cow.81726/.ilist failed, it didn't exist?
I: forking: chroot /var/cache/pbuilder/build/cow.81726 cowdancer-ilistcreate /.ilist 'find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a -links +1 -print0 \) | xargs -0 stat --format '%d %i ''
chroot: failed to run command 'cowdancer-ilistcreate': No such file or directory
W: cowdancer-ilistcreate failed to run within chroot, falling back to old method
stat: missing operand
Try 'stat --help' for more information.
E: cowbuilder: pclose returned non-zero, probably the directory contains no hardlinked file, don't bother using cow-shell here.
I: Invoking pbuilder
I: forking: pbuilder build --debbuildopts  --debbuildopts  --buildplace /var/cache/pbuilder/build/cow.81726 --buildresult /home/azureuser/demo/ratelimit --mirror http://azure.archive.ubuntu.com/ubuntu/ --distribution devel --no-targz --internal-chrootexec 'chroot /var/cache/pbuilder/build/cow.81726 cow-shell' /home/azureuser/demo/ratelimit/golang-github-jacobsa-ratelimit_0.0~git20150904.f5e4703-1.dsc
W: /home/azureuser/.pbuilderrc does not exist
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Wed Aug 28 22:25:37 UTC 2024
I: pbuilder-time-stamp: 1724883937
I: copying local configuration
cp: cannot create regular file '/var/cache/pbuilder/build/cow.81726/etc/hosts': No such file or directory
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.81726
gbp:error: 'git-pbuilder' failed: it exited with 1

Figure E1: Errors from the gbp buildpackage --git-pbuilder step.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant