diff options
author | Mart Raudsepp <leio@gentoo.org> | 2020-03-21 18:52:05 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2020-03-21 18:52:15 +0200 |
commit | 9feb8a12c671244c66086921c5f029f1ff763f40 (patch) | |
tree | 80b0d249f5e76c90072161750cc29e7678914716 /gnome-base/libgtop/libgtop-2.40.0-r1.ebuild | |
parent | net-wireless/iwd: x86 stable wrt bug #712292 (diff) | |
download | gentoo-9feb8a12c671244c66086921c5f029f1ff763f40.tar.gz gentoo-9feb8a12c671244c66086921c5f029f1ff763f40.tar.bz2 gentoo-9feb8a12c671244c66086921c5f029f1ff763f40.zip |
gnome-base/libgtop: fix suid handling and reinstall sandbox violation
Closes: https://bugs.gentoo.org/710628
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'gnome-base/libgtop/libgtop-2.40.0-r1.ebuild')
-rw-r--r-- | gnome-base/libgtop/libgtop-2.40.0-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnome-base/libgtop/libgtop-2.40.0-r1.ebuild b/gnome-base/libgtop/libgtop-2.40.0-r1.ebuild new file mode 100644 index 000000000000..0e55b90dd570 --- /dev/null +++ b/gnome-base/libgtop/libgtop-2.40.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_EAUTORECONF="yes" +inherit flag-o-matic gnome2 + +DESCRIPTION="A library that provides top functionality to applications" +HOMEPAGE="https://git.gnome.org/browse/libgtop" +SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz" + +LICENSE="GPL-2+" +SLOT="2/11" # libgtop soname version +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="+introspection" + +RDEPEND=" + >=dev-libs/glib-2.26:2 + introspection? ( >=dev-libs/gobject-introspection-0.6.7:= ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.4 + >=sys-devel/gettext-0.19.6 + virtual/pkgconfig +" + +PATCHES=( + "${WORKDIR}"/patches # patches from master (not stable branch) that seem safe and fix potential eautoreconf problems + "${FILESDIR}"/${PV}-sandbox-workaround.patch # requires suid handling in ebuild - https://gitlab.gnome.org/GNOME/libgtop/issues/48 +) + +src_configure() { + # Add explicit stdc, bug #628256 + append-cflags "-std=c99" + + gnome2_src_configure \ + --disable-static \ + $(use_enable introspection) +} + +src_install() { + gnome2_src_install + chmod 4755 "${ED}"/usr/bin/libgtop_server2 || die +} |