[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63527] [PATCH 0/3] Initial attempt at rumpdisk support for the Hurd
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#63527] [PATCH 0/3] Initial attempt at rumpdisk support for the Hurd. |
Date: |
Fri, 19 May 2023 10:21:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Ludovic Courtès writes:
Hi!
> Awesome patch series!!
Thanks!
> Janneke Nieuwenhuizen <janneke@gnu.org> skribis:
>
>> +++ b/gnu/packages/cross-base.scm
[..]
>> + ;; TODO: move to glibc in the next rebuild cycle
>> + (add-after 'unpack 'patch-libc/hurd
>> + (lambda* (#:key inputs #:allow-other-keys)
>> + (for-each
>> + (lambda (name)
>> + (let ((patch (assoc-ref inputs name)))
>> + (invoke "patch" "-p1" "--force" "-R" "-i"
>> patch)))
>> + '("hurd-monotonic.patch"
>> + "hurd-centiseconds.patch"))
>
> Since this should also be applied when building glibc natively on
> i586-gnu, should this phase go to ‘glibc’ in (gnu packages base)
> instead?
Yes, but I don't know how to do that without triggering a world
rebuild, or (re)creating a glibc/hurd, and currently the native build is
broken on the hurd. It tried, in glibc
#:phases (modify-phases %standard-phases
,@(if (and (hurd-target?)
(equal? (package-version this-package) "2.35"))
;; TODO: move to glibc in the next rebuild cycle
'((add-after 'unpack 'patch-libc/hurd
(lambda* (#:key inputs #:allow-other-keys)
(define* (apply-patch patch #:key reverse?)
(let ((patch (assoc-ref inputs name)))
(invoke "patch" "-p1" "--force"
(if reverse? "-R" "-N")
"-i" patch)))
(for-each (cut apply-patch <> #:reverse #t)
'("hurd-monotonic.patch"
"hurd-centiseconds.patch"))
(for-each apply-patch
'("2.35-hurd-centiseconds.patch"
"2.35-hurd-monotonic.patch")))))
'())
but that isn't being picked-up for cross-libc. I heard talk about
glibc/hurd, should we maybe keep this patch until we create glibc/hurd,
or make glibc/hurd sooner?
> Also, in general, we should move away from quasiquote/unquote to
> gexp/ungexp, which will allow us to not add inputs for patches (as is
> done with ‘gcc-11’ in (gnu packages gcc)).
Ah, right; nice! Would that work for cross-libc without triggering a
world rebuild?
>> + ;; TODO: move to glibc in the next rebuild
>> cycle
>> + ("hurd-monotonic.patch"
>> + ,@(search-patches
>> +
>> "glibc-hurd-clock_gettime_monotonic.patch"))
[..]
> Let’s hope these patches will soon make it upstream!
Yeah!
Greetings
Janneke
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
- [bug#63527] [PATCH v3 6/7] services: childhurd: Bump default qemu memory to 2048MB., (continued)
- [bug#63527] [PATCH v4 0/8] Rumpdisk support for the Hurd, really!, Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 3/8] gnu: hurd: Update libpciaccess to 0.17., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 2/8] gnu: Add libpciaccess-0.17., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 5/8] gnu: hurd: Add rumpkernel., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 1/8] gnu: glibc: Update time patches for the Hurd., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 6/8] hurd-boot: Setup pci-arbiter and rumpdisk translators., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 8/8] system: hurd: Boot with pci.arbiter and rumpdisk., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 7/8] services: childhurd: Bump default qemu memory to 2048MB., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 4/8] gnu: Add rumpkernel., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v5 00/11] Rumpdisk support for the Hurd, really, *really*!, Janneke Nieuwenhuizen, 2023/05/23