Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 527738

Summary: dev-db/postgresql-server should only use RDEPEND for SELinux policy package dependency
Product: Gentoo Linux Reporter: Sven Vermeulen (RETIRED) <swift>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED OBSOLETE    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 527698    

Description Sven Vermeulen (RETIRED) gentoo-dev 2014-11-01 10:14:43 UTC
Please remove the "selinux? ( sec-policy/selinux-* )" dependency in the DEPEND variable (not RDEPEND). Take this into account with your next package bump - if after 6 months there have been no need for other package upgrades, we will be bumping the package(s) ourselves with just this change.

For more information, see our tracker Bug #527698 [1]. The requested change will be posted as a separate comment/patch. Note that if the package also depends on libselinux, libselinux itself should still remain in DEPEND and RDEPEND.

[1] https://bugs.gentoo.org/show_bug.cgi?id=527698


Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2014-11-01 10:15:24 UTC
Index: postgresql-server-9.3.5.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.3.5.ebuild,v
retrieving revision 1.10
diff -u -B -r1.10 postgresql-server-9.3.5.ebuild
--- postgresql-server-9.3.5.ebuild      19 Sep 2014 10:40:07 -0000      1.10
+++ postgresql-server-9.3.5.ebuild      1 Nov 2014 10:14:54 -0000
@@ -40,17 +40,17 @@
        echo -n ${enable_langs}
 }
 
-RDEPEND="
+CDEPEND="
 ~dev-db/postgresql-base-${PV}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=]
 perl? ( >=dev-lang/perl-5.8 )
 python? ( ${PYTHON_DEPS} )
-selinux? ( sec-policy/selinux-postgresql )
 tcl? ( >=dev-lang/tcl-8 )
 uuid? ( dev-libs/ossp-uuid )
 xml? ( dev-libs/libxml2 dev-libs/libxslt )
 "
-
-DEPEND="${RDEPEND}
+RDEPEND="${CDEPEND}
+       selinux? ( sec-policy/selinux-postgresql )"
+DEPEND="${CDEPEND}
 sys-devel/flex
 xml? ( virtual/pkgconfig )
 "
Index: postgresql-server-9.4_beta3.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.4_beta3.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 postgresql-server-9.4_beta3.ebuild
--- postgresql-server-9.4_beta3.ebuild  10 Oct 2014 04:26:17 -0000      1.1
+++ postgresql-server-9.4_beta3.ebuild  1 Nov 2014 10:14:54 -0000
@@ -43,17 +43,17 @@
        echo -n ${enable_langs}
 }
 
-RDEPEND="
+CDEPEND="
 ~dev-db/postgresql-base-${PV}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=]
 perl? ( >=dev-lang/perl-5.8 )
 python? ( ${PYTHON_DEPS} )
-selinux? ( sec-policy/selinux-postgresql )
 tcl? ( >=dev-lang/tcl-8 )
 uuid? ( dev-libs/ossp-uuid )
 xml? ( dev-libs/libxml2 dev-libs/libxslt )
 "
-
-DEPEND="${RDEPEND}
+RDEPEND="${CDEPEND}
+       selinux? ( sec-policy/selinux-postgresql )"
+DEPEND="${CDEPEND}
 sys-devel/flex
 xml? ( virtual/pkgconfig )
 "
Index: postgresql-server-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9999.ebuild,v
retrieving revision 1.14
diff -u -B -r1.14 postgresql-server-9999.ebuild
--- postgresql-server-9999.ebuild       26 Jun 2014 06:50:21 -0000      1.14
+++ postgresql-server-9999.ebuild       1 Nov 2014 10:14:54 -0000
@@ -41,17 +41,17 @@
        echo -n ${enable_langs}
 }
 
-RDEPEND="
+CDEPEND="
 ~dev-db/postgresql-base-${PV}:${SLOT}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=]
 perl? ( >=dev-lang/perl-5.8 )
 python? ( ${PYTHON_DEPS} )
-selinux? ( sec-policy/selinux-postgresql )
 tcl? ( >=dev-lang/tcl-8 )
 uuid? ( dev-libs/ossp-uuid )
 xml? ( dev-libs/libxml2 dev-libs/libxslt )
 "
-
-DEPEND="${RDEPEND}
+RDEPEND="${CDEPEND}
+       selinux? ( sec-policy/selinux-postgresql )"
+DEPEND="${CDEPEND}
 sys-devel/flex
 xml? ( virtual/pkgconfig )
 "
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2014-11-02 08:15:08 UTC
After checking with a few colleague developers it seems that this change does not need a revision bump after all. As such, I will make the necessary changes to the packages myself.

My apologies for the noise.