Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527376 - sys-devel/icecream - add systemd unit files
Summary: sys-devel/icecream - add systemd unit files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-10-29 21:06 UTC by Kilian Zott (Foyaxe)
Modified: 2021-12-21 04:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kilian Zott (Foyaxe) 2014-10-29 21:06:41 UTC
There are no systemd unit files provided yet for icecream.
I got it running by stealing a unit file from fedora and put it in /etc/systemd/system/iceccd.service:

[Unit]
Description=Icecream Distributed Compiler
After=network.target nss-lookup.target

[Service]
Type=simple
# Set SHELL so that icecc-create-env does not have to attempt to detect its
# value by reading /etc/passwd. The SELinux policy does not need to allow it.
Environment=SHELL=/bin/bash
SyslogIdentifier=iceccd
ExecStart=/usr/sbin/iceccd -u icecream -b /var/cache/icecream -v
Nice=5

[Install]
WantedBy=multi-user.target

Reproducible: Always
Comment 1 Kilian Zott (Foyaxe) 2014-10-29 22:14:37 UTC
i must admit that i get a segfault when starting iceccd during bootup:

-- Logs begin at Sa 2014-06-14 00:35:59 CEST, end at Mi 2014-10-29 23:13:01 CET. --
Okt 29 22:57:20 sarah iceccd[633]: *** Segmentation fault
Okt 29 22:57:20 sarah systemd[1]: iceccd.service: main process exited, code=killed, status=11/SEGV
Okt 29 22:57:20 sarah systemd[1]: Unit iceccd.service entered failed state.
Okt 29 22:57:20 sarah iceccd[633]: Register dump:
Okt 29 22:57:20 sarah iceccd[633]: RAX: 00007fff582d0c72   RBX: 00007fff582d0dc0   RCX: 0000000000000000
Okt 29 22:57:20 sarah iceccd[633]: RDX: 000000000000006b   RSI: 0000000000000000   RDI: 00007fff582d0c72
Okt 29 22:57:20 sarah iceccd[633]: RBP: 00007fff582d0c70   R8 : 000000000000006b   R9 : 00007fff582d0b15
Okt 29 22:57:20 sarah iceccd[633]: R10: 00007fff582d0a00   R11: 00007f19d5442e30   R12: 00007fff582d0c72
Okt 29 22:57:20 sarah iceccd[633]: R13: 00007fff582d0db0   R14: 0000000000000000   R15: 00007fff582d0f10
Okt 29 22:57:20 sarah iceccd[633]: RSP: 00007fff582d0c48
Okt 29 22:57:20 sarah iceccd[633]: RIP: 00007f19d54430cf   EFLAGS: 00010283
Okt 29 22:57:20 sarah iceccd[633]: CS: 0033   FS: 0000   GS: 0000
Okt 29 22:57:20 sarah iceccd[633]: Trap: 0000000e   Error: 00000004   OldMask: 00000000   CR2: 00000000
Okt 29 22:57:20 sarah iceccd[633]: FPUCW: 0000037f   FPUSW: 00000000   TAG: 00000000
Okt 29 22:57:20 sarah iceccd[633]: RIP: 00000000   RDP: 00000000
Okt 29 22:57:20 sarah iceccd[633]: ST(0) 0000 0000000000000000   ST(1) 0000 0000000000000000
Okt 29 22:57:20 sarah iceccd[633]: ST(2) 0000 0000000000000000   ST(3) 0000 0000000000000000
Okt 29 22:57:20 sarah iceccd[633]: ST(4) 0000 0000000000000000   ST(5) 0000 0000000000000000
Okt 29 22:57:20 sarah iceccd[633]: ST(6) 0000 0000000000000000   ST(7) 0000 0000000000000000
Okt 29 22:57:20 sarah iceccd[633]: mxcsr: 1f80
Okt 29 22:57:20 sarah iceccd[633]: XMM0:  00000000000000000000000000000000 XMM1:  00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM2:  00000000000000000000000000000000 XMM3:  00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM4:  00000000000000000000000000000000 XMM5:  00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM6:  00000000000000000000000000000000 XMM7:  00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM8:  00000000000000000000000000000000 XMM9:  00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM10: 00000000000000000000000000000000 XMM11: 00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM12: 00000000000000000000000000000000 XMM13: 00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: XMM14: 00000000000000000000000000000000 XMM15: 00000000000000000000000000000000
Okt 29 22:57:20 sarah iceccd[633]: Backtrace:
Okt 29 22:57:20 sarah iceccd[633]: /lib64/libc.so.6(+0x9c0cf)[0x7f19d54430cf]
Okt 29 22:57:20 sarah iceccd[633]: /usr/sbin/iceccd[0x407eb8]
Okt 29 22:57:20 sarah iceccd[633]: /usr/sbin/iceccd[0x40746e]
Okt 29 22:57:20 sarah iceccd[633]: /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f19d53cbdb5]
Okt 29 22:57:20 sarah iceccd[633]: /usr/sbin/iceccd[0x407841]
Okt 29 22:57:20 sarah iceccd[633]: Memory map:
Okt 29 22:57:20 sarah iceccd[633]: 00400000-00420000 r-xp 00000000 fe:00 4601053                            /usr/sbin/iceccd
Okt 29 22:57:20 sarah iceccd[633]: 0061f000-00620000 r--p 0001f000 fe:00 4601053                            /usr/sbin/iceccd
Okt 29 22:57:20 sarah iceccd[633]: 00620000-00621000 rw-p 00020000 fe:00 4601053                            /usr/sbin/iceccd
Okt 29 22:57:20 sarah iceccd[633]: 012ae000-012cf000 rw-p 00000000 00:00 0                                  [heap]
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4764000-7f19d4768000 r-xp 00000000 fe:00 4095551                    /lib64/libSegFault.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4768000-7f19d4967000 ---p 00004000 fe:00 4095551                    /lib64/libSegFault.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4967000-7f19d4968000 r--p 00003000 fe:00 4095551                    /lib64/libSegFault.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4968000-7f19d4969000 rw-p 00004000 fe:00 4095551                    /lib64/libSegFault.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4969000-7f19d4975000 r-xp 00000000 fe:00 4095569                    /lib64/libnss_files-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4975000-7f19d4b74000 ---p 0000c000 fe:00 4095569                    /lib64/libnss_files-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4b74000-7f19d4b75000 r--p 0000b000 fe:00 4095569                    /lib64/libnss_files-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4b75000-7f19d4b76000 rw-p 0000c000 fe:00 4095569                    /lib64/libnss_files-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4b76000-7f19d4b80000 r-xp 00000000 fe:00 4095579                    /lib64/libnss_nis-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4b80000-7f19d4d80000 ---p 0000a000 fe:00 4095579                    /lib64/libnss_nis-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4d80000-7f19d4d81000 r--p 0000a000 fe:00 4095579                    /lib64/libnss_nis-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4d81000-7f19d4d82000 rw-p 0000b000 fe:00 4095579                    /lib64/libnss_nis-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4d82000-7f19d4d97000 r-xp 00000000 fe:00 4095287                    /lib64/libnsl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4d97000-7f19d4f96000 ---p 00015000 fe:00 4095287                    /lib64/libnsl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4f96000-7f19d4f97000 r--p 00014000 fe:00 4095287                    /lib64/libnsl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4f97000-7f19d4f98000 rw-p 00015000 fe:00 4095287                    /lib64/libnsl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4f98000-7f19d4f9a000 rw-p 00000000 00:00 0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4f9a000-7f19d4fa2000 r-xp 00000000 fe:00 4095583                    /lib64/libnss_compat-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d4fa2000-7f19d51a1000 ---p 00008000 fe:00 4095583                    /lib64/libnss_compat-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d51a1000-7f19d51a2000 r--p 00007000 fe:00 4095583                    /lib64/libnss_compat-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d51a2000-7f19d51a3000 rw-p 00008000 fe:00 4095583                    /lib64/libnss_compat-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d51a3000-7f19d51a6000 r-xp 00000000 fe:00 4094410                    /lib64/libdl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d51a6000-7f19d53a5000 ---p 00003000 fe:00 4094410                    /lib64/libdl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d53a5000-7f19d53a6000 r--p 00002000 fe:00 4094410                    /lib64/libdl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d53a6000-7f19d53a7000 rw-p 00003000 fe:00 4094410                    /lib64/libdl-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d53a7000-7f19d5545000 r-xp 00000000 fe:00 4095586                    /lib64/libc-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5545000-7f19d5744000 ---p 0019e000 fe:00 4095586                    /lib64/libc-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5744000-7f19d5748000 r--p 0019d000 fe:00 4095586                    /lib64/libc-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5748000-7f19d574a000 rw-p 001a1000 fe:00 4095586                    /lib64/libc-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d574a000-7f19d574e000 rw-p 00000000 00:00 0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d574e000-7f19d5763000 r-xp 00000000 fe:00 4471481                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5763000-7f19d5962000 ---p 00015000 fe:00 4471481                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5962000-7f19d5963000 r--p 00014000 fe:00 4471481                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5963000-7f19d5964000 rw-p 00015000 fe:00 4471481                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5964000-7f19d5a64000 r-xp 00000000 fe:00 4094386                    /lib64/libm-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5a64000-7f19d5c63000 ---p 00100000 fe:00 4094386                    /lib64/libm-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5c63000-7f19d5c64000 r--p 000ff000 fe:00 4094386                    /lib64/libm-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5c64000-7f19d5c65000 rw-p 00100000 fe:00 4094386                    /lib64/libm-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5c65000-7f19d5d4d000 r-xp 00000000 fe:00 4471361                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libstdc++.so.6.0.17
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5d4d000-7f19d5f4d000 ---p 000e8000 fe:00 4471361                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libstdc++.so.6.0.17
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5f4d000-7f19d5f55000 r--p 000e8000 fe:00 4471361                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libstdc++.so.6.0.17
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5f55000-7f19d5f57000 rw-p 000f0000 fe:00 4471361                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libstdc++.so.6.0.17
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5f57000-7f19d5f6c000 rw-p 00000000 00:00 0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5f6c000-7f19d5f70000 r-xp 00000000 fe:00 3934954                    /usr/lib64/libcap-ng.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d5f70000-7f19d616f000 ---p 00004000 fe:00 3934954                    /usr/lib64/libcap-ng.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d616f000-7f19d6170000 r--p 00003000 fe:00 3934954                    /usr/lib64/libcap-ng.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d6170000-7f19d6171000 rw-p 00004000 fe:00 3934954                    /usr/lib64/libcap-ng.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d6171000-7f19d618c000 r-xp 00000000 fe:00 4601132                    /usr/lib64/libicecc.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d618c000-7f19d638c000 ---p 0001b000 fe:00 4601132                    /usr/lib64/libicecc.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d638c000-7f19d638d000 r--p 0001b000 fe:00 4601132                    /usr/lib64/libicecc.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d638d000-7f19d638e000 rw-p 0001c000 fe:00 4601132                    /usr/lib64/libicecc.so.0.0.0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d638e000-7f19d63af000 r-xp 00000000 fe:00 4095413                    /lib64/ld-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d6576000-7f19d657c000 rw-p 00000000 00:00 0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d65ad000-7f19d65ae000 rw-p 00000000 00:00 0
Okt 29 22:57:20 sarah iceccd[633]: 7f19d65ae000-7f19d65af000 r--p 00020000 fe:00 4095413                    /lib64/ld-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d65af000-7f19d65b0000 rw-p 00021000 fe:00 4095413                    /lib64/ld-2.19.so
Okt 29 22:57:20 sarah iceccd[633]: 7f19d65b0000-7f19d65b1000 rw-p 00000000 00:00 0
Okt 29 22:57:20 sarah iceccd[633]: 7fff582b1000-7fff582d2000 rw-p 00000000 00:00 0                          [stack]
Okt 29 22:57:20 sarah iceccd[633]: 7fff58304000-7fff58305000 r-xp 00000000 00:00 0                          [vdso]
Okt 29 22:57:20 sarah iceccd[633]: ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


PS: starting manually works fine!
Comment 2 Larry the Git Cow gentoo-dev 2021-12-21 04:19:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b133beeb3fd21ef368c3fe9b8b05b026ec5cd562

commit b133beeb3fd21ef368c3fe9b8b05b026ec5cd562
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-21 04:10:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-21 04:19:19 +0000

    sys-devel/icecream: update EAPI 7 -> 8, post-review fixes
    
    - Use EAPI 8
    - Use conventional double quotes everywhere
    - Unconditionally install systemd units (see small files policy)
    - Adapt pkg_* for EAPI 7+ (${ROOT} suffix)
    - Style changes (place eclass variables before inherit in general, whitespace)
    - Drop unnecessary econf arg (--enable-fast-install)
    - Add missing dependencies (libarchive, lzo)
    
    Bug: https://bugs.gentoo.org/602492
    Closes: https://bugs.gentoo.org/527376
    Closes: https://bugs.gentoo.org/642674
    Closes: https://bugs.gentoo.org/828135
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/icecream/icecream-1.3.1.ebuild | 64 +++++++++++++++-----------------
 1 file changed, 29 insertions(+), 35 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a857ea599201b42ab12a2919badfd7b34997cbbb

commit a857ea599201b42ab12a2919badfd7b34997cbbb
Author:     Lucas Yamanishi <lucas.yamanishi@gmail.com>
AuthorDate: 2020-05-26 17:58:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-21 04:19:18 +0000

    sys-devel/icecream: Bump to 1.3.1, various fixes
    
    * Fixes bug #602492
    * Adds systemd support
    * Installs firewalld service files
    
    Bug: https://bugs.gentoo.org/602492
    Closes: https://bugs.gentoo.org/527376
    Closes: https://bugs.gentoo.org/642674
    Closes: https://github.com/gentoo/gentoo/pull/15975
    Signed-off-by: Lucas Yamanishi <lucas.yamanishi@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/icecream/Manifest                      |  1 +
 sys-devel/icecream/files/icecc-scheduler.service | 12 ++++
 sys-devel/icecream/files/iceccd.service          | 12 ++++
 sys-devel/icecream/files/icecream-tmpfiles.conf  |  2 +
 sys-devel/icecream/files/icecream.openrc         | 55 +++++++++++++++
 sys-devel/icecream/icecream-1.3.1.ebuild         | 85 ++++++++++++++++++++++++
 6 files changed, 167 insertions(+)