unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: zamfofex <zamfofex@twdb.moe>
Cc: Maxime Devos <maximedevos@telenet.be>, 54832@debbugs.gnu.org
Subject: [bug#54832] [patch] update glibc to 2.35
Date: Sun, 15 May 2022 23:31:53 +0200	[thread overview]
Message-ID: <87r14ubhyu.fsf@gnu.org> (raw)
In-Reply-To: <935236349.13698.1649553391613@privateemail.com> (zamfofex@twdb.moe's message of "Sat, 9 Apr 2022 22:16:31 -0300 (BRT)")

Hello!

zamfofex <zamfofex@twdb.moe> skribis:

> Hello! I have decided I wanted to work on updating glibc. I tested the updated glibc with the packages ‘hello’, ‘coreutils’, ‘grep’, ‘sed’ and ‘guile’, and they all built successfully!

Yay!

>               (base32
> -              "1zvp0qdfbdyqrzydz18d9zg3n5ygy8ps7cmny1bvsp8h1q05c99f"))
> -            (patches (search-patches "glibc-ldd-powerpc.patch"
> -                                     "glibc-ldd-x86_64.patch"
> -                                     "glibc-dl-cache.patch"

Could you confirm that these patches are no longer needed?

> +                     (define empty-static-libraries '("libpthread.a" "libdl.a" "libutil.a" "libanl.a"))
> +                     (define (empty-static-library? file)
> +                       (any (lambda (s) (string=? file s)) empty-static-libraries))

[...]

>                              (files  (scandir lib static-library?))
> +                            (files2 (scandir lib empty-static-library?))
>                              (static (assoc-ref outputs "static"))
>                              (slib   (string-append static "/lib")))
>                         (mkdir-p slib)
> @@ -876,6 +883,10 @@ (define (linker-script? file)
>                                     (rename-file (string-append lib "/" base)
>                                                  (string-append slib "/" base)))
>                                   files)
> +                       (for-each (lambda (base)
> +                                   (copy-file (string-append lib "/" base)
> +                                              (string-append slib "/" base)))
> +                                 files2)

Like Maxime wrote, this needs comments in the code.

Could you explain why the empty .a files need special treatment?  In the
end, it seems we’re copying them to the “static” output anyway, so why
not let them in ‘files’?

>  (define-public m4
>    (package
>     (name "m4")
> -   (version "1.4.18")
> +   (version "1.4.19")

This should be done in a separate patch.

> +++ b/gnu/packages/patches/m4-failing-test-bug.patch
> @@ -0,0 +1,7 @@
> +--- a/tests/test-execute.sh
> ++++ b/tests/test-execute.sh

Like Maxime wrote, please start the patch with a short comment
explaining what it does, and with a link to the upstream commit or bug
report.

One last thing: could you use ‘git format-patch’ and (optionally) ‘git
send-email’ to send a revised patch?

  https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html

Thanks in advance, and apologies for the delay!

Ludo’.




  parent reply	other threads:[~2022-05-15 21:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-10  1:16 [bug#54832] [patch] update glibc to 2.35 zamfofex
2022-04-10 10:16 ` Maxime Devos
     [not found]   ` <1497835452.18920.1649591936889@privateemail.com>
2022-04-24 14:19     ` [bug#54832] Fwd: " zamfofex
2022-04-10 10:17 ` Maxime Devos
2022-04-10 10:18 ` Maxime Devos
2022-05-15 21:31 ` Ludovic Courtès [this message]
2022-06-06 12:06   ` zamfofex
2022-07-17 10:06     ` Ludovic Courtès
2022-07-19 14:12       ` zamfofex
2022-07-19 19:16         ` Greg Hogan
2022-09-01 22:32           ` bug#54832: " Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r14ubhyu.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=54832@debbugs.gnu.org \
    --cc=maximedevos@telenet.be \
    --cc=zamfofex@twdb.moe \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).