Changeset View
Changeset View
Standalone View
Standalone View
contrib/guix/manifest.scm
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | package-with-extra-configure-variable ( | ||||
"--enable-initfini-array" "yes") | "--enable-initfini-array" "yes") | ||||
"--enable-default-ssp" "yes") | "--enable-default-ssp" "yes") | ||||
"--enable-default-pie" "yes")) | "--enable-default-pie" "yes")) | ||||
(define* (make-bitcoin-cross-toolchain target | (define* (make-bitcoin-cross-toolchain target | ||||
#:key | #:key | ||||
(base-gcc-for-libc base-gcc) | (base-gcc-for-libc base-gcc) | ||||
(base-kernel-headers base-linux-kernel-headers) | (base-kernel-headers base-linux-kernel-headers) | ||||
(base-libc (hardened-glibc (make-glibc-without-werror glibc-2.27))) | (base-libc (hardened-glibc (make-glibc-without-werror glibc-2.28))) | ||||
(base-gcc (make-gcc-rpath-link (hardened-gcc base-gcc)))) | (base-gcc (make-gcc-rpath-link (hardened-gcc base-gcc)))) | ||||
"Convenience wrapper around MAKE-CROSS-TOOLCHAIN with default values | "Convenience wrapper around MAKE-CROSS-TOOLCHAIN with default values | ||||
desirable for building Bitcoin ABC release binaries." | desirable for building Bitcoin ABC release binaries." | ||||
(make-cross-toolchain target | (make-cross-toolchain target | ||||
base-gcc-for-libc | base-gcc-for-libc | ||||
base-kernel-headers | base-kernel-headers | ||||
base-libc | base-libc | ||||
base-gcc)) | base-gcc)) | ||||
▲ Show 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | |||||
;; https://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html | ;; https://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html | ||||
(define (hardened-glibc glibc) | (define (hardened-glibc glibc) | ||||
(package-with-extra-configure-variable ( | (package-with-extra-configure-variable ( | ||||
package-with-extra-configure-variable glibc | package-with-extra-configure-variable glibc | ||||
"--enable-stack-protector" "all") | "--enable-stack-protector" "all") | ||||
"--enable-bind-now" "yes")) | "--enable-bind-now" "yes")) | ||||
(define-public glibc-2.27 | (define-public glibc-2.28 | ||||
(package | (package | ||||
(inherit glibc-2.31) | (inherit glibc-2.31) | ||||
(version "2.27") | (version "2.28") | ||||
(source (origin | (source (origin | ||||
(method git-fetch) | (method git-fetch) | ||||
(uri (git-reference | (uri (git-reference | ||||
(url "https://sourceware.org/git/glibc.git") | (url "https://sourceware.org/git/glibc.git") | ||||
(commit "73886db6218e613bd6d4edf529f11e008a6c2fa6"))) | (commit "c9e58ae23402eb82877de90fd8a18519c086ed87"))) | ||||
(file-name (git-file-name "glibc" "73886db6218e613bd6d4edf529f11e008a6c2fa6")) | (file-name (git-file-name "glibc" "c9e58ae23402eb82877de90fd8a18519c086ed87")) | ||||
(sha256 | (sha256 | ||||
(base32 | (base32 | ||||
"0azpb9cvnbv25zg8019rqz48h8i2257ngyjg566dlnp74ivrs9vq")) | "0wm0if2n4z48kpn85va6yb4iac34crds2f55ddpz1hykx6jp1pb6")) | ||||
(patches (search-our-patches "glibc-ldd-x86_64.patch" | (patches (search-our-patches "glibc-ldd-x86_64.patch" | ||||
"glibc-versioned-locpath.patch" | "glibc-versioned-locpath.patch" | ||||
"glibc-2.27-fcommon.patch" | "glibc-2.28-fcommon.patch" | ||||
"glibc-2.27-guix-prefix.patch")))))) | "glibc-2.28-guix-prefix.patch")))))) | ||||
(packages->manifest | (packages->manifest | ||||
(append | (append | ||||
(list ;; The Basics | (list ;; The Basics | ||||
bash-minimal | bash-minimal | ||||
which | which | ||||
coreutils-minimal | coreutils-minimal | ||||
util-linux | util-linux | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |