Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 303429 Details for
Bug 405973
sys-process/lsof: please review Prefix changes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
lsof-prefix-changes-to-gx86.patch (text/plain), 9.70 KB, created by
Dan Wallis
on 2012-02-26 23:36:28 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Dan Wallis
Created:
2012-02-26 23:36:28 UTC
Size:
9.70 KB
patch
obsolete
>diff -urN old/files/lsof-4.81-aix.patch new/files/lsof-4.81-aix.patch >--- old/files/lsof-4.81-aix.patch 1970-01-01 12:00:00.000000000 +1200 >+++ new/files/lsof-4.81-aix.patch 2012-02-20 17:09:32.000000000 +1300 >@@ -0,0 +1,13 @@ >+Don't ask on stdin for changing the value of HASXOPT_ROOT. >+ >+--- Customize.orig 2009-07-28 11:59:23 +0200 >++++ Customize 2009-07-28 12:58:41 +0200 >+@@ -860,7 +860,7 @@ >+ do >+ echo "" >+ echo $EO "Do you want to $HXR HASXOPT_ROOT (y|n) [n]? $EC" >+- read ANS EXCESS >++ ANS= # read ANS EXCESS >+ if test "X$ANS" = "Xy" -o "X$ANS" = "XY" >+ then >+ HXRA=1 >diff -urN old/lsof-4.84.ebuild new/lsof-4.84.ebuild >--- old/lsof-4.84.ebuild 2012-02-27 11:59:41.000000000 +1300 >+++ new/lsof-4.84.ebuild 2012-02-27 12:09:46.000000000 +1300 >@@ -2,7 +2,7 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.84.ebuild,v 1.2 2010/08/11 17:59:33 josejx Exp $ > >-inherit flag-o-matic toolchain-funcs >+inherit flag-o-matic toolchain-funcs eutils > > MY_P=${P/-/_} > DESCRIPTION="Lists open files for running Unix processes" >@@ -13,7 +13,7 @@ > > LICENSE="lsof" > SLOT="0" >-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" >+KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~ppc-aix ~ppc-macos ~s390 ~sh ~sparc ~sparc-solaris ~x64-solaris ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~x86-solaris" > IUSE="static selinux" > > DEPEND="selinux? ( sys-libs/libselinux )" >@@ -24,10 +24,26 @@ > unpack ${A} > cd ${MY_P} > unpack ./${MY_P}_src.tar >+ cd "${S}" >+ epatch "${FILESDIR}"/${PN}-4.81-aix.patch #278831 > } > > yesno() { use $1 && echo y || echo n ; } >-target() { use kernel_FreeBSD && echo freebsd || echo linux ; } >+target() { >+ case ${CHOST} in >+ *-darwin*) echo darwin ;; >+ *-freebsd*) echo freebsd ;; >+ *-solaris*) echo solaris ;; >+ *-aix*) echo aixgcc ;; >+ *) echo linux ;; >+ esac >+} >+ar() { >+ case ${CHOST} in >+ *-aix*) echo "ar -X32_64 -v -q" ;; >+ *) echo "$(tc-getAR) rc" ;; >+ esac >+} > > src_compile() { > use static && append-ldflags -static >@@ -35,7 +51,7 @@ > touch .neverInv > LINUX_HASSELINUX=$(yesno selinux) \ > LSOF_CC=$(tc-getCC) \ >- LSOF_AR="$(tc-getAR) rc" \ >+ LSOF_AR="$(ar)" \ > LSOF_RANLIB=$(tc-getRANLIB) \ > LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ > LSOF_CFGL="${CFLAGS} ${LDFLAGS}" \ >@@ -53,3 +69,10 @@ > doman lsof.8 > dodoc 00* > } >+ >+pkg_postinst() { >+ if [[ ${CHOST} == *-solaris* ]] ; then >+ einfo "Note: to use lsof on Solaris you need read permissions on" >+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" >+ fi >+} >diff -urN old/lsof-4.84-r1.ebuild new/lsof-4.84-r1.ebuild >--- old/lsof-4.84-r1.ebuild 2012-02-27 11:59:41.000000000 +1300 >+++ new/lsof-4.84-r1.ebuild 2012-02-27 12:19:54.000000000 +1300 >@@ -4,7 +4,7 @@ > > EAPI="2" > >-inherit flag-o-matic toolchain-funcs >+inherit flag-o-matic toolchain-funcs eutils > > MY_P=${P/-/_} > DESCRIPTION="Lists open files for running Unix processes" >@@ -15,7 +15,7 @@ > > LICENSE="lsof" > SLOT="0" >-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" >+KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~ppc-aix ~ppc-macos ~s390 ~sh ~sparc ~sparc-solaris ~x64-solaris ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~x86-solaris" > IUSE="ipv6 rpc selinux static" > > RDEPEND="rpc? ( net-libs/libtirpc ) >@@ -28,6 +28,8 @@ > unpack ${A} > cd ${MY_P} > unpack ./${MY_P}_src.tar >+ cd "${S}" >+ epatch "${FILESDIR}"/${PN}-4.81-aix.patch #278831 > } > > src_prepare() { >@@ -40,7 +42,21 @@ > } > > usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; } >-target() { usex kernel_FreeBSD freebsd linux ; } >+target() { >+ case ${CHOST} in >+ *-darwin*) echo darwin ;; >+ *-freebsd*) echo freebsd ;; >+ *-solaris*) echo solaris ;; >+ *-aix*) echo aixgcc ;; >+ *) echo linux ;; >+ esac >+} >+ar() { >+ case ${CHOST} in >+ *-aix*) echo "ar -X32_64 -v -q" ;; >+ *) echo "$(tc-getAR) rc" ;; >+ esac >+} > src_configure() { > use static && append-ldflags -static > >@@ -56,7 +72,7 @@ > LINUX_HASSELINUX=$(usex selinux y n) \ > LSOF_INCLUDE=${T} \ > LSOF_CC=$(tc-getCC) \ >- LSOF_AR="$(tc-getAR) rc" \ >+ LSOF_AR="$(ar)" \ > LSOF_RANLIB=$(tc-getRANLIB) \ > LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ > ./Configure -n $(target) || die >@@ -75,3 +91,10 @@ > doman lsof.8 || die > dodoc 00* > } >+ >+pkg_postinst() { >+ if [[ ${CHOST} == *-solaris* ]] ; then >+ einfo "Note: to use lsof on Solaris you need read permissions on" >+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" >+ fi >+} >diff -urN old/lsof-4.85.ebuild new/lsof-4.85.ebuild >--- old/lsof-4.85.ebuild 2012-02-27 11:59:41.000000000 +1300 >+++ new/lsof-4.85.ebuild 2012-02-27 12:23:45.000000000 +1300 >@@ -15,7 +15,7 @@ > > LICENSE="lsof" > SLOT="0" >-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" >+KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~ppc-aix ~ppc-macos ~s390 ~sh ~sparc ~sparc-solaris ~x64-solaris ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~x86-solaris" > IUSE="ipv6 rpc selinux static" > > RDEPEND="rpc? ( net-libs/libtirpc ) >@@ -28,6 +28,8 @@ > unpack ${A} > cd ${MY_P} > unpack ./${MY_P}_src.tar >+ cd "${S}" >+ epatch "${FILESDIR}"/${PN}-4.81-aix.patch #278831 > } > > src_prepare() { >@@ -38,7 +40,21 @@ > Configure || die > } > >-target() { usex kernel_FreeBSD freebsd linux ; } >+target() { >+ case ${CHOST} in >+ *-darwin*) echo darwin ;; >+ *-freebsd*) echo freebsd ;; >+ *-solaris*) echo solaris ;; >+ *-aix*) echo aixgcc ;; >+ *) echo linux ;; >+ esac >+} >+ar() { >+ case ${CHOST} in >+ *-aix*) echo "ar -X32_64 -v -q" ;; >+ *) echo "$(tc-getAR) rc" ;; >+ esac >+} > src_configure() { > use static && append-ldflags -static > >@@ -54,7 +70,7 @@ > LINUX_HASSELINUX=$(usex selinux y n) \ > LSOF_INCLUDE=${T} \ > LSOF_CC=$(tc-getCC) \ >- LSOF_AR="$(tc-getAR) rc" \ >+ LSOF_AR="$(ar)" \ > LSOF_RANLIB=$(tc-getRANLIB) \ > LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ > ./Configure -n $(target) || die >@@ -73,3 +89,10 @@ > doman lsof.8 || die > dodoc 00* > } >+ >+pkg_postinst() { >+ if [[ ${CHOST} == *-solaris* ]] ; then >+ einfo "Note: to use lsof on Solaris you need read permissions on" >+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" >+ fi >+} >diff -urN old/lsof-4.85-r1.ebuild new/lsof-4.85-r1.ebuild >--- old/lsof-4.85-r1.ebuild 2012-02-27 11:59:41.000000000 +1300 >+++ new/lsof-4.85-r1.ebuild 2012-02-27 12:26:03.000000000 +1300 >@@ -15,7 +15,7 @@ > > LICENSE="lsof" > SLOT="0" >-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" >+KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~ppc-aix ~ppc-macos ~s390 ~sh ~sparc ~sparc-solaris ~x64-solaris ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~x86-solaris" > IUSE="ipv6 rpc selinux static" > > RDEPEND="rpc? ( net-libs/libtirpc ) >@@ -28,6 +28,8 @@ > unpack ${A} > cd ${MY_P} > unpack ./${MY_P}_src.tar >+ cd "${S}" >+ epatch "${FILESDIR}"/${PN}-4.81-aix.patch #278831 > } > > src_prepare() { >@@ -39,7 +41,21 @@ > Configure || die > } > >-target() { usex kernel_FreeBSD freebsd linux ; } >+target() { >+ case ${CHOST} in >+ *-darwin*) echo darwin ;; >+ *-freebsd*) echo freebsd ;; >+ *-solaris*) echo solaris ;; >+ *-aix*) echo aixgcc ;; >+ *) echo linux ;; >+ esac >+} >+ar() { >+ case ${CHOST} in >+ *-aix*) echo "ar -X32_64 -v -q" ;; >+ *) echo "$(tc-getAR) rc" ;; >+ esac >+} > src_configure() { > use static && append-ldflags -static > >@@ -55,7 +71,7 @@ > LINUX_HASSELINUX=$(usex selinux y n) \ > LSOF_INCLUDE=${T} \ > LSOF_CC=$(tc-getCC) \ >- LSOF_AR="$(tc-getAR) rc" \ >+ LSOF_AR="$(ar)" \ > LSOF_RANLIB=$(tc-getRANLIB) \ > LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ > ./Configure -n $(target) || die >@@ -74,3 +90,10 @@ > doman lsof.8 || die > dodoc 00* > } >+ >+pkg_postinst() { >+ if [[ ${CHOST} == *-solaris* ]] ; then >+ einfo "Note: to use lsof on Solaris you need read permissions on" >+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" >+ fi >+} >diff -urN old/lsof-4.85-r2.ebuild new/lsof-4.85-r2.ebuild >--- old/lsof-4.85-r2.ebuild 2012-02-27 11:59:41.000000000 +1300 >+++ new/lsof-4.85-r2.ebuild 2012-02-27 12:27:53.000000000 +1300 >@@ -15,7 +15,7 @@ > > LICENSE="lsof" > SLOT="0" >-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" >+KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~ppc-aix ~ppc-macos ~s390 ~sh ~sparc ~sparc-solaris ~x64-solaris ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~x86-solaris" > IUSE="examples ipv6 rpc selinux static" > > RDEPEND="rpc? ( net-libs/libtirpc ) >@@ -28,6 +28,8 @@ > unpack ${A} > cd ${MY_P} > unpack ./${MY_P}_src.tar >+ cd "${S}" >+ epatch "${FILESDIR}"/${PN}-4.81-aix.patch #278831 > } > > src_prepare() { >@@ -39,7 +41,21 @@ > Configure || die > } > >-target() { usex kernel_FreeBSD freebsd linux ; } >+target() { >+ case ${CHOST} in >+ *-darwin*) echo darwin ;; >+ *-freebsd*) echo freebsd ;; >+ *-solaris*) echo solaris ;; >+ *-aix*) echo aixgcc ;; >+ *) echo linux ;; >+ esac >+} >+ar() { >+ case ${CHOST} in >+ *-aix*) echo "ar -X32_64 -v -q" ;; >+ *) echo "$(tc-getAR) rc" ;; >+ esac >+} > src_configure() { > use static && append-ldflags -static > >@@ -55,7 +71,7 @@ > LINUX_HASSELINUX=$(usex selinux y n) \ > LSOF_INCLUDE=${T} \ > LSOF_CC=$(tc-getCC) \ >- LSOF_AR="$(tc-getAR) rc" \ >+ LSOF_AR="$(ar)" \ > LSOF_RANLIB=$(tc-getRANLIB) \ > LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ > ./Configure -n $(target) || die >@@ -76,3 +92,10 @@ > doman lsof.8 || die > dodoc 00* > } >+ >+pkg_postinst() { >+ if [[ ${CHOST} == *-solaris* ]] ; then >+ einfo "Note: to use lsof on Solaris you need read permissions on" >+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" >+ fi >+}
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 405973
:
303427
|
303429
|
303431
|
308521
|
308751
|
309911