diff options
author | Sam James <sam@gentoo.org> | 2021-04-15 02:24:59 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-15 02:31:06 +0100 |
commit | eb7a00e00ea5619385930a3893bb6c40928a2c4a (patch) | |
tree | 5992dc8603b1bbd8d0c849f4fe6407a6beabe784 /app-admin | |
parent | dev-libs/gom: Add Python 3.9 support (diff) | |
download | gentoo-eb7a00e00ea5619385930a3893bb6c40928a2c4a.tar.gz gentoo-eb7a00e00ea5619385930a3893bb6c40928a2c4a.tar.bz2 gentoo-eb7a00e00ea5619385930a3893bb6c40928a2c4a.zip |
app-admin/openrc-settingsd: fix build with non-Bash
Thanks-to: Kerin Millar
Closes: https://bugs.gentoo.org/754987
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/openrc-settingsd/files/openrc-settingsd-1.0.1-remove-bashisms.patch | 81 | ||||
-rw-r--r-- | app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild | 4 |
2 files changed, 85 insertions, 0 deletions
diff --git a/app-admin/openrc-settingsd/files/openrc-settingsd-1.0.1-remove-bashisms.patch b/app-admin/openrc-settingsd/files/openrc-settingsd-1.0.1-remove-bashisms.patch new file mode 100644 index 000000000000..7723a44af677 --- /dev/null +++ b/app-admin/openrc-settingsd/files/openrc-settingsd-1.0.1-remove-bashisms.patch @@ -0,0 +1,81 @@ +https://bugs.gentoo.org/754987 +--- a/Makefile.am ++++ b/Makefile.am +@@ -123,31 +123,31 @@ + $(NULL) + + $(hostnamed_built_sources) : data/org.freedesktop.hostname1.xml +- $(AM_V_GEN)( pushd "$(srcdir)/src" > /dev/null; \ ++ $(AM_V_GEN)( cd "$(srcdir)/src" && \ + $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdHostnamed \ + --generate-c-code hostname1-generated \ + $(abs_srcdir)/data/org.freedesktop.hostname1.xml; \ +- popd > /dev/null ) ++ ) + + $(localed_built_sources) : data/org.freedesktop.locale1.xml +- $(AM_V_GEN)( pushd "$(srcdir)/src" > /dev/null; \ ++ $(AM_V_GEN)( cd "$(srcdir)/src" && \ + $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdLocaled \ + --generate-c-code locale1-generated \ + $(abs_srcdir)/data/org.freedesktop.locale1.xml; \ +- popd > /dev/null ) ++ ) + + $(timedated_built_sources) : data/org.freedesktop.timedate1.xml +- $(AM_V_GEN)( pushd "$(srcdir)/src" > /dev/null; \ ++ $(AM_V_GEN)( cd "$(srcdir)/src" && \ + $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdTimedated \ + --generate-c-code timedate1-generated \ + $(abs_srcdir)/data/org.freedesktop.timedate1.xml; \ +- popd > /dev/null ) ++ ) + + BUILT_SOURCES = \ + $(hostnamed_built_sources) \ +--- a/Makefile.in ++++ b/Makefile.in +@@ -1315,31 +1315,31 @@ + $(do_subst) < $(srcdir)/$< > $(srcdir)/$@ + + $(hostnamed_built_sources) : data/org.freedesktop.hostname1.xml +- $(AM_V_GEN)( pushd "$(srcdir)/src" > /dev/null; \ ++ $(AM_V_GEN)( cd "$(srcdir)/src" && \ + $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdHostnamed \ + --generate-c-code hostname1-generated \ + $(abs_srcdir)/data/org.freedesktop.hostname1.xml; \ +- popd > /dev/null ) ++ ) + + $(localed_built_sources) : data/org.freedesktop.locale1.xml +- $(AM_V_GEN)( pushd "$(srcdir)/src" > /dev/null; \ ++ $(AM_V_GEN)( cd "$(srcdir)/src" && \ + $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdLocaled \ + --generate-c-code locale1-generated \ + $(abs_srcdir)/data/org.freedesktop.locale1.xml; \ +- popd > /dev/null ) ++ ) + + $(timedated_built_sources) : data/org.freedesktop.timedate1.xml +- $(AM_V_GEN)( pushd "$(srcdir)/src" > /dev/null; \ ++ $(AM_V_GEN)( cd "$(srcdir)/src" && \ + $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdTimedated \ + --generate-c-code timedate1-generated \ + $(abs_srcdir)/data/org.freedesktop.timedate1.xml; \ +- popd > /dev/null ) ++ ) + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild b/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild index e4a68aca3d92..fe4a85bc57b2 100644 --- a/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild +++ b/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild @@ -28,6 +28,10 @@ DEPEND="${COMMON_DEPEND} virtual/pkgconfig " +PATCHES=( + "${FILESDIR}"/${PN}-1.0.1-remove-bashisms.patch +) + src_prepare() { default sed -i -e 's:/sbin/runscript:/sbin/openrc-run:g' data/init.d/openrc-settingsd.in || die |