Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560576 - dev-libs/apr: should dep on sec-policy/selinux-base-policy instead of selinux-apache
Summary: dev-libs/apr: should dep on sec-policy/selinux-base-policy instead of selinux...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-15 20:35 UTC by Mira Ressel
Modified: 2019-04-29 07:58 UTC (History)
1 user (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 Mira Ressel 2015-09-15 20:35:01 UTC
As soon as version 2.20141203-r9 of our selinux policy is stable, the dev-libs/apr dependency on sec-policy/selinux-apache (which was introduced to fix #548264) can be dropped, as I've moved the neccessary fc entry to the base policy (cf. commit 4cdea0f in the gentoo policy repository).
Comment 1 Jason Zaman gentoo-dev 2015-10-14 08:02:41 UTC
It is better to switch the dep to -base-policy so it will get relabeled after an upgrade.

@Poly-C: Can you apply something like this next time there is a bump on apr?

diff --git a/dev-libs/apr/apr-1.5.2.ebuild b/dev-libs/apr/apr-1.5.2.ebuild
index 270e6c0..bb01864 100644
--- a/dev-libs/apr/apr-1.5.2.ebuild
+++ b/dev-libs/apr/apr-1.5.2.ebuild
@@ -18,7 +18,7 @@ IUSE="doc elibc_FreeBSD older-kernels-compatibility selinux static-libs +urandom
 CDEPEND="elibc_glibc? ( >=sys-apps/util-linux-2.16 )
        elibc_mintlib? ( >=sys-apps/util-linux-2.18 )"
 RDEPEND="${CDEPEND}
-       selinux? ( sec-policy/selinux-apache )"
+       selinux? ( sec-policy/selinux-base-policy )"
 DEPEND="${CDEPEND}
        >=sys-devel/libtool-2.4.2
        doc? ( app-doc/doxygen )"
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-10-14 08:39:36 UTC
Really? Is waiting for a new apr release sufficient?
Comment 3 Jason Zaman gentoo-dev 2015-10-14 17:25:41 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #2)
> Really? Is waiting for a new apr release sufficient?

Yep thats fine, just next time you do a revbump or version bump to the package. No need to revbump for just this change alone. selinux-apache will always pull in selinux-base-policy so no rush at all for fixing this so better off save the needless rebuild till next version.
Comment 4 Mira Ressel 2017-06-23 13:24:16 UTC
@Poly-C: You'd apparently forgotten this two year old bug when you bumped apr to 1.62 last week. :)

Could you please apply Jason's patch in a revbump?
Comment 5 Mira Ressel 2018-09-28 13:56:43 UTC
Ping.
Comment 6 Larry the Git Cow gentoo-dev 2019-04-29 07:58:53 UTC
The bug has been closed via the following commit(s):

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

commit f9aaa3a61b209b36cb7457a98bcd9477ce0cb7c4
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-04-29 07:58:32 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-04-29 07:58:32 +0000

    dev-libs/apr: Revbumps to fix selinux dependency
    
    Closes: https://bugs.gentoo.org/560576
    Package-Manager: Portage-2.3.65, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 dev-libs/apr/{apr-1.6.3-r3.ebuild => apr-1.6.3-r4.ebuild} | 2 +-
 dev-libs/apr/{apr-1.6.5.ebuild => apr-1.6.5-r1.ebuild}    | 4 ++--
 dev-libs/apr/{apr-1.7.0.ebuild => apr-1.7.0-r1.ebuild}    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)