Bug#904336: pbuilder: pbuilder-satisfydepends: line 29: 14820 Segmentation fault

2018-07-23 Thread Phil Morrell
On Mon, Jul 23, 2018 at 03:10:45PM +0200, Mattia Rizzolo wrote:
> On Mon, Jul 23, 2018 at 01:32:50PM +0100, Phil Morrell wrote:
> > Hi, I got this error while trying to cross-build (amd64->armhf) a local
> > 
> > ARCH=armhf DIST=stretch-backports git-pbuilder create --debootstrap 
> > qemu-debootstrap
> 
> That's *NOT* a cross build.  What you tried to do was to do a native
> build in an *emulated* environment.

Thank you (both) for correcting my misunderstanding and merging the bug
report, sorry for the noise.
--
Phil Morrell


signature.asc
Description: PGP signature


Bug#904336: pbuilder: pbuilder-satisfydepends: line 29: 14820 Segmentation fault

2018-07-23 Thread Mattia Rizzolo
On Mon, Jul 23, 2018 at 01:32:50PM +0100, Phil Morrell wrote:
> Hi, I got this error while trying to cross-build (amd64->armhf) a local
> backport of the latest pydenticon. I don't know why I tried
> cross-building an arch all package, but hey ho. The basepath was
> originally created with:
> 
> ARCH=armhf DIST=stretch-backports git-pbuilder create --debootstrap 
> qemu-debootstrap
> ARCH=armhf DIST=stretch-backports git-pbuilder update

That's *NOT* a cross build.  What you tried to do was to do a native
build in an *emulated* environment.

> /usr/lib/pbuilder/pbuilder-satisfydepends: line 29: 14820 Segmentation fault  
> $CHROOTEXEC env XDG_CACHE_HOME=/root aptitude -y --without-recommends -o 
> APT::Install-Recommends=false "${APTITUDEOPT[@]}" -o 
> Aptitude::ProblemResolver::StepScore=100 -o 
> "Aptitude::ProblemResolver::Hints::KeepDummy=reject 
> pbuilder-satisfydepends-dummy :UNINST" -o 
> Aptitude::ProblemResolver::Keep-All-Level=55000 -o 
> Aptitude::ProblemResolver::Remove-Essential-Level=maximum install 
> pbuilder-satisfydepends-dummy

That's a very old issue that I don't remember anymore if people decided
it's in aptitude or in qemu.  Basically you can't use the aptitude
depedency solver with qemu; I recommend you try to use the apt one
(except that it wouldn't be able to handle dependencies from backports).


There should already be a bug report somewhere for this issue (that I
don't have the time to search for now and mark as a duplicate).

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Bug#904336: pbuilder: pbuilder-satisfydepends: line 29: 14820 Segmentation fault

2018-07-23 Thread James Clarke
Control: reassign -1 qemu-user-static
Control: forcemerge 816097 -1

On Mon, Jul 23, 2018 at 1:32 PM, Phil Morrell  wrote:
> Package: pbuilder
> Version: 0.228.7
> Severity: important
>
>
> Hi, I got this error while trying to cross-build (amd64->armhf) a local
> backport of the latest pydenticon. I don't know why I tried
> cross-building an arch all package, but hey ho.

No you didn't, that's a native build, and this is a known deficiency with
qemu-user-static. Please use a different resolver instead (if in doubt, use
pbuilder-satisfydepends-apt).

James

> The basepath was
> originally created with:
>
> ARCH=armhf DIST=stretch-backports git-pbuilder create --debootstrap 
> qemu-debootstrap
> ARCH=armhf DIST=stretch-backports git-pbuilder update
> --
> Phil Morrell
>
>
> $ gbp buildpackage --git-dist=stretch-backports --git-arch=armhf
> gbp:info: Building with (cowbuilder) for stretch-backports:armhf
> [...]
> /usr/lib/pbuilder/pbuilder-satisfydepends: line 29: 14820 Segmentation fault  
> $CHROOTEXEC env XDG_CACHE_HOME=/root aptitude -y --without-recommends -o 
> APT::Install-Recommends=false "${APTITUDEOPT[@]}" -o 
> Aptitude::ProblemResolver::StepScore=100 -o 
> "Aptitude::ProblemResolver::Hints::KeepDummy=reject 
> pbuilder-satisfydepends-dummy :UNINST" -o 
> Aptitude::ProblemResolver::Keep-All-Level=55000 -o 
> Aptitude::ProblemResolver::Remove-Essential-Level=maximum install 
> pbuilder-satisfydepends-dummy
> E: pbuilder-satisfydepends failed.
> [...]



Bug#904336: pbuilder: pbuilder-satisfydepends: line 29: 14820 Segmentation fault

2018-07-23 Thread Phil Morrell
Package: pbuilder
Version: 0.228.7
Severity: important


Hi, I got this error while trying to cross-build (amd64->armhf) a local
backport of the latest pydenticon. I don't know why I tried
cross-building an arch all package, but hey ho. The basepath was
originally created with:

ARCH=armhf DIST=stretch-backports git-pbuilder create --debootstrap 
qemu-debootstrap
ARCH=armhf DIST=stretch-backports git-pbuilder update
--
Phil Morrell


$ gbp buildpackage --git-dist=stretch-backports --git-arch=armhf
gbp:info: Building with (cowbuilder) for stretch-backports:armhf
Building with cowbuilder for distribution stretch-backports, architecture armhf
+ pdebuild --buildresult ../ --pbuilder cowbuilder --debbuildopts '' -- 
--architecture armhf --basepath 
/var/cache/pbuilder/base-stretch-backports-armhf.cow
W: /home/emorrp1/.pbuilderrc does not exist
I: using cowbuilder as pbuilder
dpkg-source: info: using options from pydenticon/debian/source/options: 
--extend-diff-ignore=\.egg-info
dh clean --with python2,python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py clean 
running clean
removing 
'/home/emorrp1/debian/backports/matrix/pydenticon/.pybuild/pythonX.Y_2.7/build' 
(and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:184: python3.5 setup.py clean 
running clean
removing 
'/home/emorrp1/debian/backports/matrix/pydenticon/.pybuild/pythonX.Y_3.5/build' 
(and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.5' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild
dpkg-source: info: using options from pydenticon/debian/source/options: 
--extend-diff-ignore=\.egg-info
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building pydenticon using existing 
./pydenticon_0.3.1.orig.tar.gz
dpkg-source: info: building pydenticon in 
pydenticon_0.3.1-1~bpo9+1.debian.tar.xz
dpkg-source: info: building pydenticon in pydenticon_0.3.1-1~bpo9+1.dsc
I: Generated dsc will be overwritten by build result; not generating changes 
file
dpkg-source: info: using options from pydenticon/debian/source/options: 
--extend-diff-ignore=\.egg-info
I: Copying COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.14308
I: forking: cp -al /var/cache/pbuilder/base-stretch-backports-armhf.cow 
/var/cache/pbuilder/build/cow.14308
I: removed stale ilistfile /var/cache/pbuilder/build/cow.14308/.ilist
I: forking: chroot /var/cache/pbuilder/build/cow.14308 cowdancer-ilistcreate 
/.ilist 'find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a 
-links +1 -print0 \) | xargs -0 stat --format '%d %i ''
I: Invoking pbuilder
I: forking: pbuilder build --debbuildopts  --debbuildopts  --buildplace 
/var/cache/pbuilder/build/cow.14308 --buildresult 
/home/emorrp1/debian/backports/matrix --architecture armhf --no-targz 
--internal-chrootexec 'chroot /var/cache/pbuilder/build/cow.14308 cow-shell' 
/home/emorrp1/debian/backports/matrix/pydenticon_0.3.1-1~bpo9+1.dsc
W: /home/emorrp1/.pbuilderrc does not exist
I: Running in no-targz mode
I: using fakeroot in build.
I: pbuilder: network access will be disabled during build
I: Current time: Mon Jul 23 13:08:59 BST 2018
I: pbuilder-time-stamp: 1532347739
I: copying local configuration
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [/home/emorrp1/debian/backports/matrix/pydenticon_0.3.1-1~bpo9+1.dsc]
I: copying [/home/emorrp1/debian/backports/matrix/pydenticon_0.3.1.orig.tar.gz]
I: copying 
[/home/emorrp1/debian/backports/matrix/pydenticon_0.3.1-1~bpo9+1.debian.tar.xz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package 
(pydenticon_0.3.1-1~bpo9+1.dsc)
dpkg-source: info: extracting pydenticon in pydenticon-0.3.1
dpkg-source: info: unpacking pydenticon_0.3.1.orig.tar.gz
dpkg-source: info: unpacking pydenticon_0.3.1-1~bpo9+1.debian.tar.xz
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: armhf
Maintainer: Debian Pbuilder Team 
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 (>= 9), dh-python, python-all (>= 2.6.6-3), 
python-setuptools (>= 0.6.24), python3-all, python3-setuptools (>= 0.6.24), 
python-mock, python-pil, python3-mock, python3-pil
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in 
'/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously