Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/guix/, sys-apps/guix/files/
Date: Fri, 03 May 2019 09:14:51
Message-Id: 1556874881.c4446d1bf3b886e7253aaa79ea11e1e89d79d67a.slyfox@gentoo
1 commit: c4446d1bf3b886e7253aaa79ea11e1e89d79d67a
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 3 09:11:28 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri May 3 09:14:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4446d1b
7
8 sys-apps/guix: drop old
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-apps/guix/Manifest | 1 -
14 .../guix/files/guix-0.13.0-default-daemon.patch | 74 ----------
15 sys-apps/guix/guix-0.15.0.ebuild | 151 ---------------------
16 3 files changed, 226 deletions(-)
17
18 diff --git a/sys-apps/guix/Manifest b/sys-apps/guix/Manifest
19 index 28dc1b1ce3a..055e5cf67d2 100644
20 --- a/sys-apps/guix/Manifest
21 +++ b/sys-apps/guix/Manifest
22 @@ -1,4 +1,3 @@
23 -DIST guix-0.15.0.tar.gz 22704560 BLAKE2B 6abd50c0436abedaa3a20ba9649ccf8af0efeeac8d975171befb4e9a231be99bfcebed34f08d66b4ddaedfd64a9916f176e96bf810dba3bbc13cc6856828b5be SHA512 5e85ed03cde979d625df11d02d4f2ac7128bd944d11a763754e10a8e980f1eaeb721053fa12547bbc4289b33b3c7818bf992c7bfe79233f3a9555c96b8d52d7f
24 DIST guix-0.16.0.tar.gz 24365691 BLAKE2B 7581f21fc9ccd4813b5e35b6a56980ffcd1ef9b02d5091679c33aaa91edf80acdc2bb9bd1a73acdde71b74d88e990ebbd824267756d9e7b27f94061cfd5a1429 SHA512 fdfa431547a283947147fde67e0dab27361a34caf7862c10659b17f74c63a07e6e834281be48a3dbe05cccd8ef46db5b8a19a6d42668ae2258d696058283724f
25 DIST guix-1.0.0.tar.gz 30707058 BLAKE2B 061aaa7068b2da641a613c36838d9853eeefd6ab6a2d9d9645a86fbeb9a7dcd370cc6a0d2ff45469235c2296edde540471675ed858522dcd6351e853a8617ff8 SHA512 45af6f80d1d4f4a63d00741070904acbb4986241561f52b4e81ce92fcdab6806a9ee10cbabfb6eddf88c4132cf9d678640d3a2c9895f170f8e6cbbf4d2128419
26 DIST guix-bootstrap-aarch64-linux-20170217-guile-2.0.14.tar.xz.bootstrap 2948976 BLAKE2B 3337e52c2db259af98a6ed0eb418a6cd388e11e09c277c460e14edb7065d0170fd544415ccb72db1b1b2559fe700ce313698aed11846271052460f9af51f499a SHA512 b3a5b457017357dedb71db98ef089ac90ca2b88ec5dbf0cec6c829dff7167c5478797a8d14850dd2d951713632c2859950be6c5eb029e6f6c224eecef97efd27
27
28 diff --git a/sys-apps/guix/files/guix-0.13.0-default-daemon.patch b/sys-apps/guix/files/guix-0.13.0-default-daemon.patch
29 deleted file mode 100644
30 index 7a02f702115..00000000000
31 --- a/sys-apps/guix/files/guix-0.13.0-default-daemon.patch
32 +++ /dev/null
33 @@ -1,74 +0,0 @@
34 -Don't require user to create profile manually even before guix-daemon runs.
35 -
36 -Default install should provide working basic environment.
37 -
38 -Revert "build: Don't embed absolute paths in .service and .conf service files."
39 -This reverts commit 613d0895b92c677e0639d5e77c55043e38e020c8.
40 -diff --git a/etc/guix-daemon.conf.in b/etc/guix-daemon.conf.in
41 -index 09c70cde3..8f833cb69 100644
42 ---- a/etc/guix-daemon.conf.in
43 -+++ b/etc/guix-daemon.conf.in
44 -@@ -9,4 +9,4 @@ stop on runlevel [016]
45 -
46 - task
47 -
48 --exec @localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild
49 -+exec @bindir@/guix-daemon --build-users-group=guixbuild
50 -diff --git a/etc/guix-daemon.service.in b/etc/guix-daemon.service.in
51 -index 988cf90c0..7a3f02b27 100644
52 ---- a/etc/guix-daemon.service.in
53 -+++ b/etc/guix-daemon.service.in
54 -@@ -6,7 +6,7 @@
55 - Description=Build daemon for GNU Guix
56 -
57 - [Service]
58 --ExecStart=@localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild
59 -+ExecStart=@bindir@/guix-daemon --build-users-group=guixbuild
60 - Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
61 - RemainAfterExit=yes
62 - StandardOutput=syslog
63 -diff --git a/etc/guix-publish.conf.in b/etc/guix-publish.conf.in
64 -index 241c59455..498fa295b 100644
65 ---- a/etc/guix-publish.conf.in
66 -+++ b/etc/guix-publish.conf.in
67 -@@ -9,4 +9,4 @@ stop on runlevel [016]
68 -
69 - task
70 -
71 --exec @localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix publish --user=nobody --port=8181
72 -+exec @bindir@/guix publish --user=nobody --port=8181
73 -diff --git a/etc/guix-publish.service.in b/etc/guix-publish.service.in
74 -index 8aaf09e3c..fc4e3c21f 100644
75 ---- a/etc/guix-publish.service.in
76 -+++ b/etc/guix-publish.service.in
77 -@@ -6,7 +6,7 @@
78 - Description=Publish the GNU Guix store
79 -
80 - [Service]
81 --ExecStart=@localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix publish --user=nobody --port=8181
82 -+ExecStart=@bindir@/guix publish --user=nobody --port=8181
83 - Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
84 - RemainAfterExit=yes
85 - StandardOutput=syslog
86 -diff --git a/nix/local.mk b/nix/local.mk
87 -index 9e0c457be..eb70d266f 100644
88 ---- a/nix/local.mk
89 -+++ b/nix/local.mk
90 -@@ -190,7 +190,7 @@ nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-publish.service
91 - etc/guix-%.service: etc/guix-%.service.in \
92 - $(top_builddir)/config.status
93 - $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \
94 -- $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \
95 -+ $(SED) -e 's|@''bindir''@|$(bindir)|' < \
96 - "$<" > "$@.tmp"; \
97 - mv "$@.tmp" "$@"
98 -
99 -@@ -201,7 +201,7 @@ nodist_upstartjob_DATA = etc/guix-daemon.conf etc/guix-publish.conf
100 - etc/guix-%.conf: etc/guix-%.conf.in \
101 - $(top_builddir)/config.status
102 - $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \
103 -- $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' < \
104 -+ $(SED) -e 's|@''bindir''@|$(bindir)|' < \
105 - "$<" > "$@.tmp"; \
106 - mv "$@.tmp" "$@"
107 -
108
109 diff --git a/sys-apps/guix/guix-0.15.0.ebuild b/sys-apps/guix/guix-0.15.0.ebuild
110 deleted file mode 100644
111 index 45aca6b4d2c..00000000000
112 --- a/sys-apps/guix/guix-0.15.0.ebuild
113 +++ /dev/null
114 @@ -1,151 +0,0 @@
115 -# Copyright 1999-2018 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -
118 -EAPI=6
119 -
120 -inherit autotools readme.gentoo-r1 user
121 -
122 -DESCRIPTION="GNU package manager (nix sibling)"
123 -HOMEPAGE="https://www.gnu.org/software/guix/"
124 -
125 -# taken from gnu/local.mk and gnu/packages/bootstrap.scm
126 -BOOT_GUILE=(
127 - "aarch64-linux 20170217 guile-2.0.14.tar.xz"
128 - "armhf-linux 20150101 guile-2.0.11.tar.xz"
129 - "i686-linux 20131110 guile-2.0.9.tar.xz"
130 - "mips64el-linux 20131110 guile-2.0.9.tar.xz"
131 - "x86_64-linux 20131110 guile-2.0.9.tar.xz"
132 -)
133 -
134 -binary_src_uris() {
135 - local system_date_guilep uri
136 - for system_date_guilep in "${BOOT_GUILE[@]}"; do
137 - # $1 $2 $3
138 - # "armhf-linux 20150101 guile-2.0.11.tar.xz"
139 - set -- ${system_date_guilep}
140 - uri="mirror://gnu-alpha/${PN}/bootstrap/$1/$2/$3"
141 - # ${uri} -> guix-bootstrap-armhf-linux-20150101-guile-2.0.11.tar.xz.bootstrap
142 - echo "${uri} -> guix-bootstrap-$1-$2-$3.bootstrap"
143 - done
144 -}
145 -
146 -# copy bootstrap binaries from DISTDIR to ${S}
147 -copy_boot_guile_binaries() {
148 - local system_date_guilep
149 - for system_date_guilep in "${BOOT_GUILE[@]}"; do
150 - # $1 $2 $3
151 - # "armhf-linux 20150101 guile-2.0.11.tar.xz"
152 - set -- ${system_date_guilep}
153 - cp "${DISTDIR}"/guix-bootstrap-$1-$2-$3.bootstrap gnu/packages/bootstrap/$1/$3 || die
154 - done
155 -}
156 -
157 -SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz
158 - $(binary_src_uris)"
159 -
160 -LICENSE="GPL-3"
161 -SLOT="0"
162 -KEYWORDS="~amd64 ~x86"
163 -IUSE=""
164 -
165 -RESTRICT=test # complains about size of config.log and refuses to start tests
166 -
167 -RDEPEND="
168 - dev-libs/libgcrypt:0=
169 - >=dev-scheme/guile-2:=[regex,networking,threads]
170 - dev-scheme/bytestructures
171 - dev-scheme/guile-git
172 - dev-scheme/guile-json
173 - dev-scheme/guile-sqlite3
174 - net-libs/gnutls[guile]
175 - sys-libs/zlib
176 - app-arch/bzip2
177 - dev-db/sqlite
178 -"
179 -
180 -DEPEND="${RDEPEND}
181 -"
182 -
183 -PATCHES=("${FILESDIR}"/${PN}-0.13.0-default-daemon.patch)
184 -
185 -QA_PREBUILT="usr/share/guile/site/*/gnu/packages/bootstrap/*"
186 -
187 -DISABLE_AUTOFORMATTING=yes
188 -DOC_CONTENTS="Quick start user guide on Gentoo:
189 -
190 -[as root] allow binary substitution to be downloaded (optional)
191 - # guix archive --authorize < /usr/share/guix/hydra.gnu.org.pub
192 -[as root] enable guix-daemon service:
193 - [systemd] # systemctl enable guix-daemon
194 - [openrc] # rc-update add guix-daemon
195 -[as a user] ln -sf /var/guix/profiles/per-user/\$USER/guix-profile \$HOME/.guix-profile
196 -[as a user] install guix packages:
197 - \$ guix package -i hello
198 -[as a user] configure environment:
199 - Somewhere in .bash_profile you might want to set
200 - export GUIX_LOCPATH=\$HOME/.guix-profile/lib/locale
201 -
202 -Next steps:
203 - guix package manager user manual: https://www.gnu.org/software/guix/manual/guix.html
204 -"
205 -
206 -pkg_setup() {
207 - enewgroup guixbuild
208 - for i in {1..10}; do
209 - # we list 'guixbuild' twice to
210 - # both assign a primary group for user
211 - # and add a user to /etc/group
212 - enewuser guixbuilder${i} -1 -1 /var/empty guixbuild,guixbuild
213 - done
214 -}
215 -
216 -src_prepare() {
217 - copy_boot_guile_binaries
218 -
219 - default
220 - # build system is very eager to run automake itself: bug #625166
221 - eautoreconf
222 -
223 - # guile is trying to avoid recompilation by checking if file
224 - # /usr/lib64/guile/2.2/site-ccache/guix/modules.go
225 - # is newer than
226 - # guix/modules.scm
227 - # In case it is instead of using 'guix/modules.scm' guile
228 - # loads system one (from potentially older version of guix).
229 - # To work it around we bump last modification timestamp of
230 - # '*.scm' files.
231 - find "${S}" -name "*.scm" -exec touch {} + || die
232 -}
233 -
234 -src_configure() {
235 - # to be compatible with guix from /gnu/store
236 - econf \
237 - --localstatedir="${EPREFIX}"/var
238 -}
239 -
240 -src_compile() {
241 - # guile occasionally fails with 'bad address'
242 - emake -j1
243 -}
244 -
245 -src_install() {
246 - # TODO: emacs highlighter
247 - default
248 -
249 - readme.gentoo_create_doc
250 -
251 - keepdir /etc/guix
252 - # TODO: will need a tweak for prefix
253 - keepdir /gnu/store
254 - fowners root:guixbuild /gnu/store
255 - fperms 1775 /gnu/store
256 -
257 - keepdir /var/guix/profiles/per-user
258 - fperms 1777 /var/guix/profiles/per-user
259 -
260 - newinitd "${FILESDIR}"/guix-daemon.initd guix-daemon
261 -}
262 -
263 -pkg_postinst() {
264 - readme.gentoo_print_elog
265 -}