Accepting request 1146875 from devel:languages:misc
OBS-URL: https://build.opensuse.org/request/show/1146875 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/guix?expand=0&rev=21
This commit is contained in:
commit
a735e992ad
12
guix-user.conf
Normal file
12
guix-user.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#Type Name ID GECOS Home directory Shell
|
||||||
|
g guixbuild -
|
||||||
|
u guix-builder1 -:guixbuild "Guix builder 1" /var/empty /sbin/nologin
|
||||||
|
m guix-builder1 guixbuild
|
||||||
|
u guix-builder2 -:guixbuild "Guix builder 2" /var/empty /sbin/nologin
|
||||||
|
m guix-builder2 guixbuild
|
||||||
|
u guix-builder3 -:guixbuild "Guix builder 3" /var/empty /sbin/nologin
|
||||||
|
m guix-builder3 guixbuild
|
||||||
|
u guix-builder4 -:guixbuild "Guix builder 4" /var/empty /sbin/nologin
|
||||||
|
m guix-builder4 guixbuild
|
||||||
|
u guix-builder5 -:guixbuild "Guix builder 5" /var/empty /sbin/nologin
|
||||||
|
m guix-builder5 guixbuild
|
11
guix.changes
11
guix.changes
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 15 11:46:20 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
|
||||||
|
|
||||||
|
- Modify guix-user.conf so that /etc/group is modify, otherwise guix doesn't find the users of the guixbuild group.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 10 21:12:36 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
|
||||||
|
|
||||||
|
- Create the users and group with systemd-sysusers. It automatically gives the
|
||||||
|
Provides tag required for RPM 4.19.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 2 13:51:22 UTC 2023 - Jonathan Brielmaier <jbrielmaier@opensuse.org>
|
Mon Jan 2 13:51:22 UTC 2023 - Jonathan Brielmaier <jbrielmaier@opensuse.org>
|
||||||
|
|
||||||
|
16
guix.spec
16
guix.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package guix
|
# spec file for package guix
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
# Copyright (c) 2023 Jonathan Brielmaier <j.brielmaier@opensuse.org>
|
# Copyright (c) 2023 Jonathan Brielmaier <j.brielmaier@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -45,6 +45,7 @@ Source12: aarch64-linux-guile-2.0.14.tar.xz
|
|||||||
Source13: aarch64-linux-guile-2.0.14.tar.xz.sig
|
Source13: aarch64-linux-guile-2.0.14.tar.xz.sig
|
||||||
Source20: run_guix_daemon.sh
|
Source20: run_guix_daemon.sh
|
||||||
Source21: run_guix_publish.sh
|
Source21: run_guix_publish.sh
|
||||||
|
Source22: %{name}-user.conf
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gnutls-guile
|
BuildRequires: gnutls-guile
|
||||||
BuildRequires: guile-charting
|
BuildRequires: guile-charting
|
||||||
@ -62,10 +63,12 @@ BuildRequires: libgit2-devel
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: shepherd
|
BuildRequires: shepherd
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: pkgconfig(bzip2)
|
BuildRequires: pkgconfig(bzip2)
|
||||||
BuildRequires: pkgconfig(gnutls)
|
BuildRequires: pkgconfig(gnutls)
|
||||||
BuildRequires: pkgconfig(libgcrypt)
|
BuildRequires: pkgconfig(libgcrypt)
|
||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
%sysusers_requires
|
||||||
Requires: gnutls-guile
|
Requires: gnutls-guile
|
||||||
Requires: guile
|
Requires: guile
|
||||||
Requires: guile-gcrypt
|
Requires: guile-gcrypt
|
||||||
@ -100,6 +103,7 @@ cp %{SOURCE6} gnu/packages/bootstrap/armhf-linux/guile-2.0.11.tar.xz
|
|||||||
cp %{SOURCE12} gnu/packages/bootstrap/aarch64-linux/guile-2.0.14.tar.xz
|
cp %{SOURCE12} gnu/packages/bootstrap/aarch64-linux/guile-2.0.14.tar.xz
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%sysusers_generate_pre %{SOURCE22} %{name} %{name}-user.conf
|
||||||
export GUILE_WARN_DEPRECATED
|
export GUILE_WARN_DEPRECATED
|
||||||
%configure \
|
%configure \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
@ -121,14 +125,9 @@ install -m 0755 -t %{buildroot}%{_bindir} %{SOURCE20}
|
|||||||
install -m 0755 -t %{buildroot}%{_bindir} %{SOURCE21}
|
install -m 0755 -t %{buildroot}%{_bindir} %{SOURCE21}
|
||||||
sed -i 's@^ExecStart=.*@ExecStart=/usr/bin/run_guix_daemon.sh@' %{buildroot}%{_unitdir}/guix-daemon.service
|
sed -i 's@^ExecStart=.*@ExecStart=/usr/bin/run_guix_daemon.sh@' %{buildroot}%{_unitdir}/guix-daemon.service
|
||||||
sed -i 's@^ExecStart=.*@ExecStart=/usr/bin/run_guix_publish.sh@' %{buildroot}%{_unitdir}/guix-publish.service
|
sed -i 's@^ExecStart=.*@ExecStart=/usr/bin/run_guix_publish.sh@' %{buildroot}%{_unitdir}/guix-publish.service
|
||||||
|
install -D -m 0644 %{SOURCE22} %{buildroot}%{_sysusersdir}/%{name}-user.conf
|
||||||
|
|
||||||
%pre
|
%pre -f %{name}.pre
|
||||||
%{_sbindir}/groupadd -r %{guix_builder_group} >/dev/null 2>/dev/null || :
|
|
||||||
for i in `seq 1 5`; do
|
|
||||||
%{_sbindir}/useradd -r -o -g %{guix_builder_group} -G %{guix_builder_group} \
|
|
||||||
-u $((60+$i)) -c "Guix builder $i" -s /sbin/nologin \
|
|
||||||
-d %{_localstatedir}/empty guix-builder$i 2> /dev/null || :
|
|
||||||
done
|
|
||||||
%service_add_pre guix-daemon.service
|
%service_add_pre guix-daemon.service
|
||||||
%service_add_pre guix-publish.service
|
%service_add_pre guix-publish.service
|
||||||
|
|
||||||
@ -175,5 +174,6 @@ done
|
|||||||
%{_unitdir}/gnu-store.mount
|
%{_unitdir}/gnu-store.mount
|
||||||
%attr(755,root,root) %dir /gnu
|
%attr(755,root,root) %dir /gnu
|
||||||
%attr(775,root,%{guix_builder_group}) %dir /gnu/store
|
%attr(775,root,%{guix_builder_group}) %dir /gnu/store
|
||||||
|
%{_sysusersdir}/%{name}-user.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user