GNU bug report logs -
#57857
[PATCH] gnu: busybox: fix the cross build.
Previous Next
Reported by: 路辉 <luhux76 <at> gmail.com>
Date: Fri, 16 Sep 2022 12:36:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57857 in the body.
You can then email your comments to 57857 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#57857
; Package
guix-patches
.
(Fri, 16 Sep 2022 12:36:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
路辉 <luhux76 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 16 Sep 2022 12:36:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
[0001-gnu-busybox-fix-the-cross-build.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57857
; Package
guix-patches
.
(Fri, 16 Sep 2022 15:10:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 57857 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 16-09-2022 14:35, 路辉 wrote:
>
+ (if tests?
+ (apply invoke "make"
+ ;; "V=1"
+ "SKIP_KNOWN_BUGS=1"
+ "SKIP_INTERNET_TESTS=1"
+ "check" make-flags)
+ #t)))
Can be simplified to
(when tests?
(apply invoke "make"
;; "V=1"
"SKIP_KNOWN_BUGS=1"
"SKIP_INTERNET_TESTS=1"
"check" make-flags))
+ `(#:tests? (if ,(%current-target-system) #f #t)
That's the default, no need to mention it again here.
+ #:make-flags
+ (let ((target ,(%current-target-system)))
+ (if target
+ (list (string-append "CROSS_COMPILE=" target "-"))
+ (list)))
Can be simplified:
#:make-flags
,(let ((target ,(%current-target-system)))
(if target
#~(list (string-append "CROSS_COMPILE=" ,target))
#~'()))
(the #~ makes the phasing more explicit, if you go for that, I recommend
turning the arguments into (arguments (list #:phases #~(modify-phases
...) #:make-flags ...)), instead of using ` / , , to remain consistent.)
Greetings,
Maxime
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57857
; Package
guix-patches
.
(Fri, 16 Sep 2022 15:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 57857 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
2022-09-16 15:08 GMT, Maxime Devos <maximedevos <at> telenet.be>:
>
>
> On 16-09-2022 14:35, 路辉 wrote:
>>
>
>
> + (if tests?
> + (apply invoke "make"
> + ;; "V=1"
> + "SKIP_KNOWN_BUGS=1"
> + "SKIP_INTERNET_TESTS=1"
> + "check" make-flags)
> + #t)))
>
> Can be simplified to
>
> (when tests?
> (apply invoke "make"
> ;; "V=1"
> "SKIP_KNOWN_BUGS=1"
> "SKIP_INTERNET_TESTS=1"
> "check" make-flags))
>
>
> + `(#:tests? (if ,(%current-target-system) #f #t)
>
> That's the default, no need to mention it again here.
>
> + #:make-flags
> + (let ((target ,(%current-target-system)))
> + (if target
> + (list (string-append "CROSS_COMPILE=" target "-"))
> + (list)))
>
> Can be simplified:
>
> #:make-flags
> ,(let ((target ,(%current-target-system)))
> (if target
> #~(list (string-append "CROSS_COMPILE=" ,target))
> #~'()))
>
> (the #~ makes the phasing more explicit, if you go for that, I recommend
> turning the arguments into (arguments (list #:phases #~(modify-phases
> ...) #:make-flags ...)), instead of using ` / , , to remain consistent.)
>
> Greetings,
> Maxime
>
new patch vvvv
[0001-gnu-busybox-fix-the-cross-build.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57857
; Package
guix-patches
.
(Sun, 25 Sep 2022 17:56:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 57857 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 16-09-2022 17:53, 路辉 wrote:
>> Can be simplified:
>>
>> #:make-flags
>> ,(let ((target ,(%current-target-system)))
Oops the , before (%current-target-system) shouldn't be there
>> (if target
>> #~(list (string-append "CROSS_COMPILE=" ,target))
OOps, ,target -> #$target
>> #~'()))
>>
>> (the #~ makes the phasing more explicit, if you go for that, I recommend
>> turning the arguments into (arguments (list #:phases #~(modify-phases
>> ...) #:make-flags ...)), instead of using ` / , , to remain consistent.)
>>
>> Greetings,
>> Maxime
>>
>
> new patch vvvv
The #:make-flags simplification is missing (it can help with avoiding
rebuilds (e.g. if a particular architecture needs some different
#:make-flags than usual), but otherwise looks good.
Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 26 Sep 2022 21:29:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
路辉 <luhux76 <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 26 Sep 2022 21:29:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 57857-done <at> debbugs.gnu.org (full text, mbox):
Hi,
路辉 <luhux76 <at> gmail.com> skribis:
> * gnu/packages/busybox.scm (busybox): fix cross build
Applied! Thank you and thanks Maxime for reviewing.
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 25 Oct 2022 11:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 177 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.