Skip to content

Commit 6b3f2e0

Browse files
committed
Make sys-apps/openrc dep conditional on !system USE
NB systemd is not yet formally supported; for example almost all of the custom init scripts do not have unit file equivalents; however this change at least allows a system to be built with systemd global USE. PRs to add missing units etc. welcome ^-^ Closes sakaki-/gentoo-on-rpi-64bit#105
1 parent c199f1d commit 6b3f2e0

24 files changed

+144
-42
lines changed

dev-embedded/rpi-64bit-meta/rpi-64bit-meta-1.5.2-r3.ebuild renamed to dev-embedded/rpi-64bit-meta/rpi-64bit-meta-1.5.2-r4.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SRC_URI=""
1111
LICENSE="metapackage"
1212
SLOT="0"
1313
KEYWORDS="~arm64"
14-
IUSE="+boot-fw +kernel-bin -porthash +weekly-genup +innercore +core +xfce pitop apps"
14+
IUSE="apps +boot-fw +core +innercore +kernel-bin pitop -porthash -systemd +weekly-genup +xfce"
1515
REQUIRED_USE="
1616
core? ( innercore )
1717
xfce? ( core )
@@ -22,7 +22,8 @@ REQUIRED_USE="
2222
S="${WORKDIR}"
2323

2424
DEPEND="
25-
>=sys-apps/openrc-0.42.1-r2[swclock-fix(-)]
25+
systemd? ( >=sys-apps/systemd-242-r6 )
26+
!systemd? ( >=sys-apps/openrc-0.42.1-r2[swclock-fix(-)] )
2627
>=app-shells/bash-5.0"
2728
# pi3multiboot flag pulls in matching bcmrpi3-kernel{,-bis}-bin package also
2829
RDEPEND="
@@ -315,4 +316,9 @@ pkg_postinst() {
315316
# otherwise assume user knows what they are doing and is using the
316317
# main gentoo repo or similar
317318
fi
319+
if use systemd; then
320+
ewarn "You are running with the systemd USE flag set!"
321+
ewarn "However, this package does not yet formally support systemd, so"
322+
ewarn "you are on your own to get things working ><"
323+
fi
318324
}

media-video/pi-ffcam/pi-ffcam-1.0.5.ebuild renamed to media-video/pi-ffcam/pi-ffcam-1.0.5-r1.ebuild

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ RDEPEND="${DEPEND}
2727
>=gnome-extra/zenity-3.28.1
2828
>=media-video/ffmpeg-4.1.1-r2[sdl,v4l]
2929
>=media-libs/raspberrypi-userland-1.20190114
30-
>=sys-apps/openrc-0.21
3130
"
3231

3332
src_install() {

media-video/pi-ffplay/pi-ffplay-1.0.6.ebuild renamed to media-video/pi-ffplay/pi-ffplay-1.0.6-r1.ebuild

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ RDEPEND="${DEPEND}
2626
>=gnome-extra/zenity-3.28.1
2727
>=media-video/ffmpeg-4.1.1-r2[sdl,v4l]
2828
>=media-libs/raspberrypi-userland-1.20190114
29-
>=sys-apps/openrc-0.21
3029
>=sys-process/procps-3.3.15-r1
3130
"
3231

net-misc/rpi3-ethfix/rpi3-ethfix-1.0.0-r1.ebuild renamed to net-misc/rpi3-ethfix/rpi3-ethfix-1.0.0-r2.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
@@ -20,7 +20,8 @@ S="${WORKDIR}"
2020
DEPEND=""
2121
RDEPEND="${DEPEND}
2222
>=sys-apps/ethtool-4.16
23-
>=sys-apps/openrc-0.21
23+
systemd? ( >=sys-apps/systemd-242-r6 )
24+
!systemd? ( >=sys-apps/openrc-0.41 )
2425
>=app-shells/bash-4.0"
2526

2627
src_install() {
@@ -32,4 +33,9 @@ pkg_postinst() {
3233
rc-update add "${PN}" default
3334
elog "The ${PN} service has been added to your default runlevel."
3435
fi
36+
if use systemd; then
37+
ewarn "You are running with the systemd USE flag set!"
38+
ewarn "However, this package does not yet formally support systemd, so"
39+
ewarn "you are on your own to get things working ><"
40+
fi
3541
}

net-wireless/rpi3-bluetooth/rpi3-bluetooth-1.1-r6.ebuild renamed to net-wireless/rpi3-bluetooth/rpi3-bluetooth-1.1-r7.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ HOMEPAGE="https://aur.archlinux.org/packages/pi-bluetooth/"
1212
SRC_URI=""
1313
LICENSE="GPL-3+"
1414
SLOT="0"
15-
IUSE=""
15+
IUSE="-systemd"
1616
RESTRICT="mirror"
1717

1818
EGIT_REPO_URI="https://aur.archlinux.org/pi-bluetooth.git"
@@ -24,7 +24,8 @@ DEPEND=""
2424
RDEPEND="
2525
${DEPEND}
2626
~sys-firmware/bcm4340a1-firmware-${PV}
27-
>=sys-apps/openrc-0.21
27+
systemd? ( >=sys-apps/systemd-242-r6 )
28+
!systemd? ( >=sys-apps/openrc-0.41 )
2829
|| ( ~net-wireless/bluez-5.43
2930
>=net-wireless/bluez-5.44[deprecated] )
3031
>=virtual/udev-215
@@ -48,4 +49,9 @@ pkg_postinst() {
4849
elog " rc-update add ${PN} default"
4950
elog "to enable the ${PN} service"
5051
fi
52+
if use systemd; then
53+
ewarn "You are running with the systemd USE flag set!"
54+
ewarn "However, this package does not yet formally support systemd, so"
55+
ewarn "you are on your own to get things working ><"
56+
fi
5157
}

net-wireless/rpi3-wifi-regdom/rpi3-wifi-regdom-1.1.ebuild renamed to net-wireless/rpi3-wifi-regdom/rpi3-wifi-regdom-1.1-r1.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
@@ -20,7 +20,8 @@ S="${WORKDIR}"
2020
DEPEND=""
2121
RDEPEND="${DEPEND}
2222
>=net-wireless/iw-4.9
23-
>=sys-apps/openrc-0.21
23+
systemd? ( >=sys-apps/systemd-242-r6 )
24+
!systemd? ( >=sys-apps/openrc-0.41 )
2425
>=app-shells/bash-4.0"
2526

2627
src_install() {
@@ -37,4 +38,9 @@ pkg_postinst() {
3738
elog "Please check /etc/conf.d/${PN}, and set an"
3839
elog "appropriate ISO / IEC 3166 alpha2 country code therein."
3940
fi
41+
if use systemd; then
42+
ewarn "You are running with the systemd USE flag set!"
43+
ewarn "However, this package does not yet formally support systemd, so"
44+
ewarn "you are on your own to get things working ><"
45+
fi
4046
}

sys-apps/pitop-poweroff/pitop-poweroff-1.0.2-r5.ebuild renamed to sys-apps/pitop-poweroff/pitop-poweroff-1.0.2-r6.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
1818
S="${WORKDIR}"
1919

2020
RDEPEND="
2121
>=dev-embedded/pitop-utils-1.20170723-r1
22-
>=sys-apps/openrc-0.21"
22+
systemd? ( >=sys-apps/systemd-242-r6 )
23+
!systemd? ( >=sys-apps/openrc-0.41 )"
2324
DEPEND="${RDEPEND}"
2425

2526
src_install() {
@@ -36,5 +37,10 @@ pkg_postinst() {
3637
elog "You will also need SPI turned on"
3738
elog "(set 'dtparam=spi=on' in /boot/config.txt)."
3839
fi
40+
if use systemd; then
41+
ewarn "You are running with the systemd USE flag set!"
42+
ewarn "However, this package does not yet formally support systemd, so"
43+
ewarn "you are on your own to get things working ><"
44+
fi
3945
}
4046

sys-apps/pyconfig_gen/pyconfig_gen-1.1.9.ebuild renamed to sys-apps/pyconfig_gen/pyconfig_gen-1.1.9-r1.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ RESTRICT="mirror"
1616
SLOT="0"
1717
LICENSE="GPL-3+"
1818
KEYWORDS="~arm ~arm64"
19-
IUSE=""
19+
IUSE="-systemd"
2020

2121
DEPEND="${PYTHON_DEPS}
2222
>=xfce-base/xfce4-meta-4.12
2323
"
2424

2525
RDEPEND="${DEPEND}
26-
>=sys-apps/openrc-0.21
26+
systemd? ( >=sys-apps/systemd-242-r6 )
27+
!systemd? ( >=sys-apps/openrc-0.41 )
2728
>=app-shells/bash-4.0
2829
dev-python/PyQt5[${PYTHON_USEDEP}]
2930
>=media-libs/raspberrypi-userland-1.20190808
@@ -63,6 +64,11 @@ pkg_postinst() {
6364
elog "Both autostart and regular .desktop files have also"
6465
elog "been installed."
6566
fi
67+
if use systemd; then
68+
ewarn "You are running with the systemd USE flag set!"
69+
ewarn "However, this package does not yet formally support systemd, so"
70+
ewarn "you are on your own to get things working ><"
71+
fi
6672
}
6773

6874
pkg_postrm() {

sys-apps/rpi-gpio/rpi-gpio-1.0.0.ebuild renamed to sys-apps/rpi-gpio/rpi-gpio-1.0.0-r1.ebuild

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ ACCT_DEPEND="
2222
"
2323
DEPEND="
2424
${ACCT_DEPEND}
25-
>=sys-apps/openrc-0.21
2625
>=virtual/udev-215
2726
>=app-shells/bash-4.0"
2827
RDEPEND="${DEPEND}"

sys-apps/rpi-i2c/rpi-i2c-1.0.0-r2.ebuild renamed to sys-apps/rpi-i2c/rpi-i2c-1.0.0-r3.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
@@ -23,7 +23,8 @@ ACCT_DEPEND="
2323
DEPEND="
2424
${ACCT_DEPEND}
2525
!sys-apps/rpi3-i2cdev
26-
>=sys-apps/openrc-0.21
26+
systemd? ( >=sys-apps/systemd-242-r6 )
27+
!systemd? ( >=sys-apps/openrc-0.41 )
2728
>=virtual/udev-215
2829
>=app-shells/bash-4.0"
2930
RDEPEND="${DEPEND}"
@@ -53,4 +54,9 @@ pkg_postinst() {
5354
elog "in /boot/config.txt, and reboot."
5455
fi
5556
fi
57+
if use systemd; then
58+
ewarn "You are running with the systemd USE flag set!"
59+
ewarn "However, this package does not yet formally support systemd, so"
60+
ewarn "you are on your own to get things working ><"
61+
fi
5662
}

sys-apps/rpi-onetime-startup/rpi-onetime-startup-1.0-r3.ebuild renamed to sys-apps/rpi-onetime-startup/rpi-onetime-startup-1.0-r4.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
1818
S="${WORKDIR}"
1919

2020
DEPEND=""
2121
RDEPEND="${DEPEND}
22-
>=sys-apps/openrc-0.21
22+
systemd? ( >=sys-apps/systemd-242-r6 )
23+
!systemd? ( >=sys-apps/openrc-0.41 )
2324
>=app-shells/bash-4.0"
2425

2526
src_install() {
@@ -34,4 +35,9 @@ pkg_postinst() {
3435
rc-update add "${PN}" default
3536
elog "The ${PN} service has been added to your default runlevel."
3637
fi
38+
if use systemd; then
39+
ewarn "You are running with the systemd USE flag set!"
40+
ewarn "However, this package does not yet formally support systemd, so"
41+
ewarn "you are on your own to get things working ><"
42+
fi
3743
}

sys-apps/rpi-serial/rpi-serial-1.0.0.ebuild renamed to sys-apps/rpi-serial/rpi-serial-1.0.0-r1.ebuild

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RESTRICT="mirror"
1818
S="${WORKDIR}"
1919

2020
DEPEND="
21-
>=sys-apps/openrc-0.21
2221
>=virtual/udev-215
2322
>=app-shells/bash-4.0"
2423
RDEPEND="${DEPEND}"

sys-apps/rpi-spi/rpi-spi-1.0.0-r1.ebuild renamed to sys-apps/rpi-spi/rpi-spi-1.0.0-r2.ebuild

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ACCT_DEPEND="
2323
DEPEND="
2424
${ACCT_DEPEND}
2525
!sys-apps/rpi3-spidev
26-
>=sys-apps/openrc-0.21
2726
>=virtual/udev-215
2827
>=app-shells/bash-4.0"
2928
RDEPEND="${DEPEND}"

sys-apps/rpi-video/rpi-video-1.0.0.ebuild renamed to sys-apps/rpi-video/rpi-video-1.0.0-r1.ebuild

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ ACCT_DEPEND="
2222
"
2323
DEPEND="
2424
${ACCT_DEPEND}
25-
>=sys-apps/openrc-0.21
2625
>=virtual/udev-215
2726
>=app-shells/bash-4.0"
2827
RDEPEND="${DEPEND}"

sys-apps/rpi3-expand-swap/rpi3-expand-swap-1.0-r4.ebuild renamed to sys-apps/rpi3-expand-swap/rpi3-expand-swap-1.0-r5.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
1818
S="${WORKDIR}"
1919

2020
DEPEND=""
2121
RDEPEND="${DEPEND}
22-
>=sys-apps/openrc-0.21
22+
systemd? ( >=sys-apps/systemd-242-r6 )
23+
!systemd? ( >=sys-apps/openrc-0.41 )
2324
>=app-shells/bash-4.0"
2425

2526
src_install() {
@@ -33,4 +34,9 @@ pkg_postinst() {
3334
elog "The ${PN} service has been added to your default runlevel."
3435
elog "Please check /etc/conf.d/${PN} for settings."
3536
fi
37+
if use systemd; then
38+
ewarn "You are running with the systemd USE flag set!"
39+
ewarn "However, this package does not yet formally support systemd, so"
40+
ewarn "you are on your own to get things working ><"
41+
fi
3642
}

sys-apps/rpi3-i2cdev/rpi3-i2cdev-1.0.1-r2.ebuild renamed to sys-apps/rpi3-i2cdev/rpi3-i2cdev-1.0.1-r3.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
1818
S="${WORKDIR}"
1919

2020
DEPEND="
21-
>=sys-apps/openrc-0.21
21+
systemd? ( >=sys-apps/systemd-242-r6 )
22+
!systemd? ( >=sys-apps/openrc-0.41 )
2223
>=virtual/udev-215
2324
>=app-shells/bash-4.0"
2425
RDEPEND="${DEPEND}"
@@ -39,4 +40,9 @@ pkg_postinst() {
3940
elog "in /boot/config.txt, and reboot."
4041
fi
4142
fi
43+
if use systemd; then
44+
ewarn "You are running with the systemd USE flag set!"
45+
ewarn "However, this package does not yet formally support systemd, so"
46+
ewarn "you are on your own to get things working ><"
47+
fi
4248
}

sys-apps/rpi3-init-scripts/rpi3-init-scripts-1.1.5.ebuild renamed to sys-apps/rpi3-init-scripts/rpi3-init-scripts-1.1.5-r1.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616
AR_SVCNAME="autoexpand-root"
1717

@@ -22,7 +22,8 @@ DEPEND=""
2222
RDEPEND="${DEPEND}
2323
>=net-misc/networkmanager-1.8.2
2424
>=x11-apps/xdm-1.1.11-r3
25-
>=sys-apps/openrc-0.21
25+
systemd? ( >=sys-apps/systemd-242-r6 )
26+
!systemd? ( >=sys-apps/openrc-0.41 )
2627
>=app-shells/bash-4.0"
2728

2829
src_install() {
@@ -53,5 +54,10 @@ pkg_postinst() {
5354
elog "New managed version is in /usr/share/X11/xorg.conf.d"
5455
rm "${OLDRULE}"
5556
fi
57+
if use systemd; then
58+
ewarn "You are running with the systemd USE flag set!"
59+
ewarn "However, this package does not yet formally support systemd, so"
60+
ewarn "you are on your own to get things working ><"
61+
fi
5662
}
5763

sys-apps/rpi3-ondemand-cpufreq/rpi3-ondemand-cpufreq-1.1.1.ebuild renamed to sys-apps/rpi3-ondemand-cpufreq/rpi3-ondemand-cpufreq-1.1.1-r1.ebuild

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi3-64bit"
1111
SRC_URI=""
1212
LICENSE="GPL-3+"
1313
SLOT="0"
14-
IUSE=""
14+
IUSE="-systemd"
1515
RESTRICT="mirror"
1616

1717
# required by Portage, as we have no SRC_URI...
1818
S="${WORKDIR}"
1919

2020
DEPEND=""
2121
RDEPEND="${DEPEND}
22-
>=sys-apps/openrc-0.21
22+
systemd? ( >=sys-apps/systemd-242-r6 )
23+
!systemd? ( >=sys-apps/openrc-0.41 )
2324
>=app-shells/bash-4.0"
2425

2526
src_install() {
@@ -32,5 +33,10 @@ pkg_postinst() {
3233
elog " rc-update add rpi3-ondemand sysinit"
3334
elog "to enable on-demand CPU frequency scaling"
3435
fi
36+
if use systemd; then
37+
ewarn "You are running with the systemd USE flag set!"
38+
ewarn "However, this package does not yet formally support systemd, so"
39+
ewarn "you are on your own to get things working ><"
40+
fi
3541
}
3642

0 commit comments

Comments
 (0)