[elbe-devel] [PATCH v2 3/3] elbepack: elbeproject.py: build sources with pbuilder

Bastian Germann bage at linutronix.de
Thu Sep 15 14:18:36 CEST 2022


Am 15.09.22 um 13:07 schrieb viraj:
> On 9/15/22 12:49, Bastian Germann wrote:
>> Am 15.09.22 um 12:40 schrieb viraj:
>>> On 8/30/22 02:28, Bastian Germann wrote:
>>>> Am 01.08.22 um 16:32 schrieb Viraj Shah:
>>>>> ... @@ -439,7 +439,15 @@ class ElbeProject:
>>>>>                 apt_args = '--yes -q --download-only'
>>>>>                 if self.xml.prj.has('noauth'):
>>>>>                     apt_args += ' --allow-unauthenticated'
>>>>> ...
>> Please answer the question first why you would want to install
>> dpkg-dev here.
>> Without this, the apt-get call is void.
> 
> minicoredumper gives this error of dpkg-source , I don't know if it
> should be considered generic
> or package specific.
> 
> apt source minicoredumper

This is not the command that is run here. It is:
/bin/apt-get source --yes -q --download-only minicoredumper

With --download-only, apt-get does not trigger dpkg-source.

> Reading package lists... Done
> NOTICE: 'minicoredumper' packaging is maintained in the 'Git' version
> control system at:
> https://salsa.debian.org/jogness-guest/minicoredumper.git
> Please use:
> git clone https://salsa.debian.org/jogness-guest/minicoredumper.git
> to retrieve the latest (possibly unreleased) updates to the package.
> Need to get 308 kB of source archives.
> Get:1 http://cdn-fastly.deb.debian.org/debian buster/main minicoredumper
> 2.0.1-1 (dsc) [2461 B]
> Get:2 http://cdn-fastly.deb.debian.org/debian buster/main minicoredumper
> 2.0.1-1 (tar) [292 kB]
> Get:3 http://cdn-fastly.deb.debian.org/debian buster/main minicoredumper
> 2.0.1-1 (asc) [490 B]
> Get:4 http://cdn-fastly.deb.debian.org/debian buster/main minicoredumper
> 2.0.1-1 (diff) [13.4 kB]
> Fetched 308 kB in 2s (129 kB/s)
> sh: 1: dpkg-source: not found
> W: Download is performed unsandboxed as root as file
> 'minicoredumper_2.0.1-1.dsc' couldn't be accessed b
> y user '_apt'. - pkgAcquire::Run (13: Permission denied)
> E: Unpack command 'dpkg-source --no-check -x minicoredumper_2.0.1-1.dsc'
> failed.
> N: Check if the 'dpkg-dev' package is installed.
> 
>>
>>>
>>>>
>>>>> +            chroot(self.chrootpath, cmd)
>>>>> +            cmd = ('/bin/apt-get source %s "%s"'% (apt_args,
>>>>> src_uri))
>>>>> +            chroot(self.chrootpath, cmd)
>>>>> +            do('mv "%s"/%s* "%s"' % (self.chrootpath, src_uri,
>>>>> pdb_path))
>>>>> +            do('rm -rf "%s"' % (self.chrootpath))
>>>>>                   do('dpkg-source -x %s/*.dsc "%s"' % (pdb_path,
>>>>> src_path))

This dpkg-source is not run in the chroot and should be installed in that context (initvm).


More information about the elbe-devel mailing list