Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guix build pod #50

Open
maflcko opened this issue May 31, 2021 · 0 comments
Open

guix build pod #50

maflcko opened this issue May 31, 2021 · 0 comments
Labels

Comments

@maflcko
Copy link
Owner

maflcko commented May 31, 2021

docker run --privileged -it --rm debian:bullseye

fallocate -l 12G /swapfile_ci && chmod 600 /swapfile_ci && mkswap /swapfile_ci && swapon /swapfile_ci && ( echo '/swapfile_ci none swap sw 0 0' | tee -a /etc/fstab )

1.4 git

export DEBIAN_FRONTEND=noninteractive && cd && sed -i 's|# deb-src|deb-src|g' /etc/apt/sources.list && apt update && apt-get build-dep -y guix && apt install vim netbase ca-certificates git -y && git clone --depth=1 --branch=v1.4.0 https://git.savannah.gnu.org/git/guix.git && cd guix && groupadd --system guixbuild && for i in `seq -w 1 10`; do useradd -g guixbuild -G guixbuild -d /var/empty -s `which nologin` -c "Guix build user $i" --system guixbuilder$i; done
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index f1e844b..1077c4b 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -493,6 +493,7 @@ (define-public openssl-1.1
     (native-inputs (list perl))
     (arguments
      `(#:parallel-tests? #f
+       #:tests? #f
        #:test-target "test"
 
        ;; Changes to OpenSSL sometimes cause Perl to "sneak in" to the closure,
./bootstrap && ./configure --localstatedir=/var && make clean && make -j $( nproc ) && make install && ( guix-daemon --build-users-group=guixbuild & )
EDITOR=vim  guix edit openssl

guix install bash

guix time-machine --commit=bbec79fd55ba8efe4cb015bd07e4f40fb7d252d1 -- install --cores=$( nproc )  --dry-run   rust

...

manual setup

export DEBIAN_FRONTEND=noninteractive && cd && apt update && apt install -y netbase xz-utils curl && curl -L -O https://ftp.gnu.org/gnu/guix/guix-binary-1.3.0.x86_64-linux.tar.xz && tar -xf ./guix-binary-1.3.0.x86_64-linux.tar.xz && mv var/guix /var/ && mv gnu / && mkdir -p /config_guix/ && ln -sf /var/guix/profiles/per-user/root/current-guix /config_guix/current && source /config_guix/current/etc/profile && groupadd --system guixbuild && for i in `seq -w 1 10`; do useradd -g guixbuild -G guixbuild -d /var/empty -s `which nologin` -c "Guix build user $i" --system guixbuilder$i; done

guix-daemon --build-users-group=guixbuild &

guix install hello

guix archive --authorize < /config_guix/current/share/guix/ci.guix.info.pub 

debian:bullseye or ubuntu:jammy

export DEBIAN_FRONTEND=noninteractive && apt update && apt install git vim htop guix bash curl make -y && git clone https://github.com/bitcoin/bitcoin.git --depth=1 /bitcoin-core && cd /bitcoin-core && groupadd --system guixbuild && for i in `seq -w 1 10`; do useradd -g guixbuild -G guixbuild -d /var/empty -s `which nologin` -c "Guix build user $i" --system guixbuilder$i; done

guix-daemon --build-users-group=guixbuild &

guix install hello

run

V=1 VERBOSE=1 MAX_JOBS=$(nproc) HOSTS=arm-linux-gnueabihf ./contrib/guix/guix-build

curl -L -O 'https://bitcoincore.org/depends-sources/sdks/Xcode-15.0-15A240d-extracted-SDK-with-libcxx-headers.tar.gz'

mkdir -p ./depends/SDKs/ && tar -xvf ./Xcode-*-extracted-SDK-with-libcxx-headers.tar.gz --directory ./depends/SDKs/

uname --machine && find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
@maflcko maflcko added the blog label May 31, 2021
@maflcko maflcko changed the title guix build in privileged pod guix build pod Jun 1, 2021
maflcko pushed a commit that referenced this issue Sep 29, 2021
0d624261ef Merge bitcoin-core/crc32c-subtree#2: Merge upstream
cac7ca830b Merge commit 'fa5ade41ee480003d9c5af6f43567ba22e4e17e6' into bitcoin-fork
fa5ade41ee Fix compilation warnings on ARM64 with old GCC versions. (#52)
db08d22129 Updated Travis-CI configuration. (#51)
e31619a5b7 Fix GitHub links. (#50)
7fa4c263e8 Update Travis CI config. (#49)
a3d9e6d1a4 Updated third_party/ and Travis CI config. (#48)

git-subtree-dir: src/crc32c
git-subtree-split: 0d624261ef83ab08c953c196540ed18f355add4c
maflcko pushed a commit that referenced this issue Oct 20, 2021
a44caf65fe Merge bitcoin-core/univalue-subtree#28: Import fixes for sanitizer reported issues
135254331e Import fixes for sanitizer reported issues
d5fb86940e refactor: use c++11 range based for loop in checkObject
ff9c379304 refactor: Use nullptr (c++11) instead of NULL
08a99754d5 build: use ax_cxx_compile_stdcxx.m4 to check for C++11 support
66d3713ce7 Merge bitcoin-core/univalue-subtree#29: ci: travis -> cirrus
808d487292 ci: travis -> cirrus
c390ac375f Merge bitcoin-core/univalue-subtree#19: Split sources for easier buildsystem integration
4a5b0a1c65 build: Move source entries out to sources.mk
6c7d94b33c build: cleanup wonky gen usage
a222637c6d Merge #23: Merge changes from jgarzik/univalue@1ae6a23
f77d0f718d Merge commit '1ae6a231a0169938eb3972c1d48dd17cba5947e1' into HEAD
1ae6a231a0 Merge pull request #57 from MarcoFalke/test_fix
92bdd11f0b univalue_write: remove unneeded sstream.h include
ffb621c130 Merge pull request #56 from drodil/remove_sstream_header
f33acf9fe8 Merge commit '7890db9~' into HEAD
66e0adec4d Remove unnecessary sstream header from univalue.h
88967f6586 Version 1.0.4
1dc113dbef Merge pull request #50 from luke-jr/pushKV_bool
72392fb227 [tests] test pushKV for boolean values
c23132bcf4 Pushing boolean value to univalue correctly
81faab26a1 Merge pull request #48 from fwolfst/47-UPDATE_MIT_LINK_TO_HTTPS
b17634ef24 Update URLs to MIT license.
88ab64f6b5 Merge pull request #46 from jasonbcox/master
35ed96da31 Merge pull request #44 from MarcoFalke/Mf1709-univalue-cherrypick-explicit
420c226290 Merge pull request #45 from MarcoFalke/Mf1710-univalue-revert-test

git-subtree-dir: src/univalue
git-subtree-split: a44caf65fe55b9dd8ddb08f04c0f70409efd53b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant