Bug#432088: pbuilder: please use APTCACHE on --create

2019-03-14 Thread Hideki Yamane
Hi,

 As Mattia pointed out, 
https://salsa.debian.org/pbuilder-team/pbuilder/merge_requests/6
 is the patch for it. Please review, test and merge it :)

-- 
Hideki Yamane 



Bug#432088: pbuilder: please use APTCACHE on --create

2016-11-12 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On Mon, 2016-10-03 at 19:24 +, Mattia Rizzolo wrote:
> > Please reassign if you think/agree that this is beyond pbuilder's scope
> > and should be assigned to debootstrap.
> 
> rather than reassigning what is needed is a new bug asking for a way for
> specifying a cache place for debootstrap.  Could you perhaps file one
> describing the needs (in particular, it would be handy if just passing
> and apt cache directory could be enough for it to try it out).

I had hopes of doing this myself. But my initial, limited look at the code
wasn't very fruitful. And I didn't make an attempt again.

So, instead, I've filed a bug report. 844118. You may want to block this bug
report with that one.

Thanks

- -- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEQCVDstmIVAB/Yn02pjpYo/LhdWkFAlgnSmQACgkQpjpYo/Lh
dWlNwA/8CzwaxCCnpN3VziaVmFETgG889gHC7UtvuAFz4c9MyfPwgXwbpj9ZzGyr
ihl91+YlBSPJjEz3DG88xmDC6Sbg6WYAiZOgEGSJoI+FHfneMJJLYwLTTT0PpM71
le1MY2glTFmDiK21J6odSbk8berYwmiF6yuTvX5QIfzKiclRa2FUrV+jIObxEuRy
OchFtdAiNJAslrLo2LiA6jhfbA3s+8ocBIpb/HDd1iO89xa5dMQzT8OaGq/RQmA1
Jm4svb/xMROcaGr5d1tDpO8iQ633zHcS56bAVoERlodBh9TWY5L3ePqE0Akbzcwj
hSgFsdTKiUBNjGGG4g1fK0vy9UIonaTcK8UMZxD+jSAWTiF+jrn8gQo7FSGNfiiL
Hnjrsit7EUXtnSL04DpkNooZTTh4B8zE5f/xNqnTAWMRJxaugi2cT420BwNXuhHD
MRglSsdfnKZJHmrgwpzC7CjqQx9XU2lKER/uLvvNp+k+9s9qs4t0mEeImUjbT1In
rnb5tK1f/YpIhMIQ2wtulU+75d/XQ9POsW307JB6PYjdYz1/+AMfmXO0W0y5csOK
DckyyFAgtOxnA60pb6hXkGNQjn3T+ZRGpY3orS0HwqmrK9KT/W3I9WuFve5kds0D
4BiqV6mkYEoIXh32e/XKnNxW7yO4JeRjKbD2P/ECZrnumV3aMXA=
=ZjuD
-END PGP SIGNATURE-



Bug#432088: pbuilder: please use APTCACHE on --create

2016-10-03 Thread Mattia Rizzolo
On Mon, Oct 03, 2016 at 11:37:03PM +0530, Ritesh Raj Sarraf wrote:
> Is there any way to solve this bug ?
> 
> On --create, it really is annoying. Because even a single deb failure
> will result in the whole thing to be downloaded again.

I concur with you, this is really annoying.
Since quite some time I have a local squid caching all of my http so I
don't have that trouble anymore, but I can see how I can't ask everybody
to spare 150 GB of disk for a squid cache like mine :D

> Ideally, APTCACHE should be used. But looking at the code, it seems the
> download is done by debootstrap, which does not seem to have that
> intelligence.

Yeah, indeed.
I'm not aware of any way to tell debootstrap to use an apt cache, also
consider that debootstrap doesn't use apt at all for its job.
This is further complicated by the fact that a user could specify its
own debootstraper.

> Please reassign if you think/agree that this is beyond pbuilder's scope
> and should be assigned to debootstrap.

rather than reassigning what is needed is a new bug asking for a way for
specifying a cache place for debootstrap.  Could you perhaps file one
describing the needs (in particular, it would be handy if just passing
and apt cache directory could be enough for it to try it out).

In conclusion, I have no path on how to progress with this bug.

-- 
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#432088: pbuilder: please use APTCACHE on --create

2016-10-03 Thread Ritesh Raj Sarraf
Package: pbuilder
Version: 0.226.1
Followup-For: Bug #432088

Hello Mattia,

Is there any way to solve this bug ?

On --create, it really is annoying. Because even a single deb failure
will result in the whole thing to be downloaded again.

Ideally, APTCACHE should be used. But looking at the code, it seems the
download is done by debootstrap, which does not seem to have that
intelligence.

Please reassign if you think/agree that this is beyond pbuilder's scope
and should be assigned to debootstrap.


rrs@chutzpah:~$ sudo ARCH=mips pbuilder --create
[sudo] password for rrs: 
I: Distribution is sid.
I: Current time: Mon Oct  3 23:15:25 IST 2016
I: pbuilder-time-stamp: 1475516725
I: Building the build environment
I: running qemu-debootstrap
/usr/sbin/qemu-debootstrap
I: Running command: debootstrap --arch mips --foreign --include=apt 
--variant=buildd --force-check-gpg 
--keyring=/usr/share/keyrings/debian-archive-keyring.gpg sid 
/var/tmp/Debian-Build/Build//3281 http://ftp.debian.org/debian/
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
I: Valid Release signature (key id 126C0D24BD8A2942CC7DF8AC7638D0442B90D010)
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 
libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 libncursesw5 
libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1 
I: Found additional base dependencies: adduser binutils bzip2 cpp cpp-6 
debian-archive-keyring dpkg-dev g++ g++-6 gcc gcc-6 gpgv libapt-pkg5.0 
libatomic1 libc-dev-bin libc6-dev libcc1-0 libdpkg-perl libgcc-6-dev libgdbm3 
libgmp10 libgomp1 libisl15 liblz4-1 libmpc3 libmpfr4 libperl5.24 
libstdc++-6-dev libstdc++6 linux-libc-dev make patch perl perl-modules-5.24 
xz-utils 
I: Checking component main on http://ftp.debian.org/debian...
I: Retrieving libacl1 2.2.52-3
I: Validating libacl1 2.2.52-3
..snipped
I: Retrieving coreutils 8.25-2


W: Couldn't download package coreutils (ver 8.25-2 arch mips)
I: Retrieving dash 0.5.8-2.3
I: Validating dash 0.5.8-2.3

..snipped

I: Validating liblzma5 5.1.1alpha+20120614-2.1+b1
I: Retrieving xz-utils 5.1.1alpha+20120614-2.1+b1
I: Validating xz-utils 5.1.1alpha+20120614-2.1+b1
I: Retrieving zlib1g 1:1.2.8.dfsg-2+b2
I: Validating zlib1g 1:1.2.8.dfsg-2+b2
E: Couldn't download packages: coreutils cpp-6 gcc libpam-runtime libpam0g 
libpcre3 libsystemd0 libudev1
E: qemu-debootstrap failed
W: Aborting with an error
I: cleaning the build env 
I: removing directory /var/tmp/Debian-Build/Build//3281 and its subdirectories





-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (990, 'testing'), (500, 'unstable-debug'), 
(500, 'testing-debug'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.4axb+ (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pbuilder depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  debootstrap1.0.83
ii  dpkg-dev   1.18.10
ii  wget   1.18-4

Versions of packages pbuilder recommends:
ii  devscripts  2.16.8
ii  eatmydata   105-3
ii  fakeroot1.21-2
ii  iproute24.6.0-4
ii  net-tools   1.60+git20150829.73cef8a-2
ii  sudo1.8.17p1-2

Versions of packages pbuilder suggests:
ii  cowdancer   0.81
ii  gdebi-core  0.9.5.7

-- debconf information:
  pbuilder/rewrite: false
  pbuilder/nomirror:
  pbuilder/mirrorsite: http://ftp.debian.org/debian/