guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#55608] [PATCH v2] gnu: Add pbuilder.


From: Efraim Flashner
Subject: [bug#55608] [PATCH v2] gnu: Add pbuilder.
Date: Wed, 25 May 2022 11:41:52 +0300

On Tue, May 24, 2022 at 12:09:36PM +0200, Maxime Devos wrote:
> Efraim Flashner schreef op di 24-05-2022 om 10:59 [+0300]:
> > +           (add-after 'install-more 'wrap-programs
> > +             (lambda* (#:key native-inputs inputs outputs 
> > #:allow-other-keys)
> > +               (for-each
> > +                 (lambda (file)
> > +                   (wrap-script file
> > +                    `("PATH" ":" prefix
> > +                      (,(dirname (search-input-file (or native-inputs 
> > inputs) "/bin/cut"))
> > +                       ,(dirname (search-input-file (or native-inputs 
> > inputs) "/bin/dpkg"))
> > +                       ,(dirname (search-input-file (or native-inputs 
> > inputs) "/bin/grep"))
> > +                       ,(dirname (search-input-file (or native-inputs 
> > inputs) "/bin/perl"))
> > +                       ,(dirname (search-input-file (or native-inputs 
> > inputs) "/bin/sed"))
> > +                       ,(dirname (search-input-file (or native-inputs 
> > inputs) "/bin/which"))
> > +                       ,(dirname (search-input-file (or native-inputs 
> > inputs) "/sbin/debootstrap"))))))
> 
> Shouldn't these be inputs instead of native-inputs, because they will
> end up being run when pbuilder is run?  Likewise for'patch-source'.

I figured using (or native-inputs inputs) would help with
cross-building, but I've changed it to just inputs. Also in the other
spot where I used that. I tried cross building it before but got stuck
in one of the dependencies.

> Also, can be simplified to
> 
> [...] "PATH" ":" prefix ,(map (compose dirname (cut search-input-file inputs 
> <>)) '("/bin/cut" "/bin/dpkg" ...)) [...]

Thanks, I knew there was some way to make it much cleaner.

I've made the changes you've suggested and also adjusted
#$output/etc/pbuilderrc to use /run/setuid-programs/sudo if it's
available and removed the note from the bottom of the package
description since it's no longer necessary.



-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: v2-0001-gnu-Add-pbuilder.patch
Description: Text document

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]