GNU bug report logs -
#57625
gnu: Add pnet.
Previous Next
Reported by: Adam Faiz <adam.faiz <at> disroot.org>
Date: Tue, 6 Sep 2022 14:55:02 UTC
Severity: normal
Tags: patch
Merged with 74609
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 06-09-2022 17:34, Adam Faiz via Guix-patches via wrote:
> +(define-public libgc-private-headers-for-pnet
> + (hidden-package
> + (package
> + (name "libgc-private-headers")
> + (version (package-version libgc))
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> "https://github.com/ivmai/bdwgc/releases"
> + "/download/v" version "/gc-"
> version ".tar.gz"))
> + (sha256
> + (base32
> + "1798rp3mcfkgs38ynkbg2p47bq59pisrc6mn0l20pb5iczf0ssj3"))))
Try (source (package-source libgc)) instead. That way, the hash and URL
remains correct even if libgc is updated.
'(("include/config.h.in" "include/private/config.h")
I'd think you need to install include/config.h instead (*).
+ (license (x11-style (string-append home-page "license.txt"))))))
(license (package-license libgc)), in case the license of libgc ever
changes.
(*) Untested proposal:
(define-public libgc-all-headers ; TODO(core-updates) merge into libgc
(package
(inherit libgc)
(name "libgc-all-headers")
(outputs "out")
(arguments
(append (package-arguments libgc)
(list #:imported-modules
'((guix build gnu-build-system) (guix build
copy-build-system))
#:phases
#~(modify-phases
(add-after 'install 'delete-library
(lambda _
(delete-file-recursively (string-append
#$output "/lib"))))
(add-after 'install 'delete-private-header
(lambda _
(delete-file-recursively (string-append
#$output "/lib"))))
(add-after 'install 'install-private
(lambda arguments
((@ (guix build copy-build-system) install)
(append (list #:install-plan
'(("include/config.h" [...]) [...]))
arguments))))))))
(synopsis ...)
(description ...)))
Also, why a hidden package?
Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]
This bug report was last modified 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.