Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 250161 Details for
Bug 316965
sys-process/audit: Verify and potentially improve Python-related code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for ebuilds
audit.patch (text/plain), 3.45 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2010-10-10 21:16:09 UTC
(
hide
)
Description:
Patch for ebuilds
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2010-10-10 21:16:09 UTC
Size:
3.45 KB
patch
obsolete
>--- audit-1.7.4.ebuild >+++ audit-1.7.4.ebuild >@@ -2,6 +2,9 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.7.4.ebuild,v 1.3 2010/08/24 13:56:22 ssuominen Exp $ > >+EAPI="3" >+PYTHON_DEPEND="2" >+ > inherit autotools multilib toolchain-funcs python > > DESCRIPTION="Userspace utilities for storing and processing auditing records" >@@ -16,17 +19,18 @@ > # kernels. > RESTRICT="test" > >-RDEPEND=">=dev-lang/python-2.4 >- ldap? ( net-nds/openldap )" >+RDEPEND="ldap? ( net-nds/openldap )" > DEPEND="${RDEPEND} > dev-lang/swig > >=sys-kernel/linux-headers-2.6.23" > # Do not use os-headers as this is linux specific > >-src_unpack() { >- unpack ${A} >- cd "${S}" >+pkg_setup() { >+ python_set_active_version 2 >+ python_pkg_setup >+} > >+src_prepare() { > # Old patch applies fine > #EPATCH_OPTS="-p0 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-build.patch > >@@ -57,14 +61,19 @@ > > epatch "${FILESDIR}"/${P}-glibc212.patch > >+ # Don't build static version of Python module. >+ epatch "${FILESDIR}"/${P}-python.patch >+ > # Regenerate autotooling > eautoreconf >+ >+ # Disable byte-compilation of Python modules. >+ echo "#!/bin/sh" > py-compile > } > >-src_compile() { >+src_configure() { > #append-flags -D'__attribute__(x)=' >- econf --sbindir=/sbin --without-prelude || die >- emake || die "emake failed" >+ econf --sbindir=/sbin --without-prelude > } > > src_install() { >@@ -95,15 +104,18 @@ > > # Security > lockdown_perms "${D}" >+ >+ # Don't install .la files in Python directories. >+ python_clean_installation_image > } > > pkg_postinst() { > lockdown_perms "${ROOT}" >- python_mod_optimize >+ python_mod_optimize audit.py > } > > pkg_postrm() { >- python_mod_cleanup >+ python_mod_cleanup audit.py > } > > lockdown_perms() { >--- audit-1.7.17.ebuild >+++ audit-1.7.17.ebuild >@@ -2,6 +2,9 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.7.17.ebuild,v 1.2 2010/05/29 17:40:26 armin76 Exp $ > >+EAPI="3" >+PYTHON_DEPEND="2" >+ > inherit autotools multilib toolchain-funcs python > > DESCRIPTION="Userspace utilities for storing and processing auditing records" >@@ -16,17 +19,18 @@ > # kernels. > RESTRICT="test" > >-RDEPEND=">=dev-lang/python-2.4 >- ldap? ( net-nds/openldap )" >+RDEPEND="ldap? ( net-nds/openldap )" > DEPEND="${RDEPEND} > dev-lang/swig > >=sys-kernel/linux-headers-2.6.23" > # Do not use os-headers as this is linux specific > >-src_unpack() { >- unpack ${A} >- cd "${S}" >+pkg_setup() { >+ python_set_active_version 2 >+ python_pkg_setup >+} > >+src_prepare() { > # Old patch applies fine > #EPATCH_OPTS="-p0 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-build.patch > >@@ -55,14 +59,19 @@ > "${S}"/audisp/plugins/Makefile.am > fi > >+ # Don't build static version of Python module. >+ epatch "${FILESDIR}"/${P}-python.patch >+ > # Regenerate autotooling > eautoreconf >+ >+ # Disable byte-compilation of Python modules. >+ echo "#!/bin/sh" > py-compile > } > >-src_compile() { >+src_configure() { > #append-flags -D'__attribute__(x)=' >- econf --sbindir=/sbin --without-prelude || die >- emake || die "emake failed" >+ econf --sbindir=/sbin --without-prelude > } > > src_install() { >@@ -93,15 +102,18 @@ > > # Security > lockdown_perms "${D}" >+ >+ # Don't install .la files in Python directories. >+ python_clean_installation_image > } > > pkg_postinst() { > lockdown_perms "${ROOT}" >- python_mod_optimize >+ python_mod_optimize audit.py > } > > pkg_postrm() { >- python_mod_cleanup >+ python_mod_cleanup audit.py > } > > lockdown_perms() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 316965
:
250155
|
250159
|
250161
|
250171
|
261757