diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-28 06:09:00 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-28 06:09:00 +0000 |
commit | 166b741a42658f60cf73d0ecf351c9655a948c33 (patch) | |
tree | 5f00071099671190a653fc5e9bc1321b60b989ea /sys-process/psmisc | |
parent | Add alsa-lib dependency, bug 375035 (diff) | |
download | historical-166b741a42658f60cf73d0ecf351c9655a948c33.tar.gz historical-166b741a42658f60cf73d0ecf351c9655a948c33.tar.bz2 historical-166b741a42658f60cf73d0ecf351c9655a948c33.zip |
Version bump. Backport -COMM_LEN-to-18.patch from git to prevent pstree crashing.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'sys-process/psmisc')
-rw-r--r-- | sys-process/psmisc/ChangeLog | 9 | ||||
-rw-r--r-- | sys-process/psmisc/Manifest | 19 | ||||
-rw-r--r-- | sys-process/psmisc/files/psmisc-22.15-COMM_LEN-to-18.patch | 85 | ||||
-rw-r--r-- | sys-process/psmisc/psmisc-22.15.ebuild | 67 |
4 files changed, 171 insertions, 9 deletions
diff --git a/sys-process/psmisc/ChangeLog b/sys-process/psmisc/ChangeLog index 926fd4da470c..6c31c4bd3276 100644 --- a/sys-process/psmisc/ChangeLog +++ b/sys-process/psmisc/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-process/psmisc # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/psmisc/ChangeLog,v 1.120 2012/01/26 13:30:44 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/psmisc/ChangeLog,v 1.121 2012/01/28 06:09:00 ssuominen Exp $ + +*psmisc-22.15 (28 Jan 2012) + + 28 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> +psmisc-22.15.ebuild, + +files/psmisc-22.15-COMM_LEN-to-18.patch: + Version bump. Backport -COMM_LEN-to-18.patch from git to prevent pstree + crashing. 26 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> -files/psmisc-22.5-no-nls.patch, -psmisc-22.12.ebuild, diff --git a/sys-process/psmisc/Manifest b/sys-process/psmisc/Manifest index d4cfeb712ef9..77d1947e1939 100644 --- a/sys-process/psmisc/Manifest +++ b/sys-process/psmisc/Manifest @@ -2,18 +2,21 @@ Hash: SHA1 AUX psmisc-22.13-no-nls.patch 693 RMD160 10170e0d3a593185781c8e5c866b49fd3070beaa SHA1 48a94c3796680fd20103a3938f546ca32246d3e0 SHA256 493e2b1a1a45da3f2334340af58950320108161c6e1fd43bc086b2b85f23a5bc +AUX psmisc-22.15-COMM_LEN-to-18.patch 2819 RMD160 9b20be171434bf0091f67284b747dd8b9f32d649 SHA1 dba5213fcea739c9796f1f55118aa57de2838725 SHA256 781c5c78c41203d77dddc4b11fe6eea6786517f297c86bd6a844db88ec9341c5 DIST psmisc-22.14.tar.gz 382024 RMD160 56a1b2ab415013ac18fa8a49b9cd67dc1f735822 SHA1 dc6fc0ec131c11796d01512bbd80089719b04a66 SHA256 22bbf4561837af475c0d8d14e3b9cab453998c787212c107fac7faf2f281e26e +DIST psmisc-22.15.tar.gz 390766 RMD160 572c738202061f60ab965ba8f7e0b024d385d647 SHA1 06f507d889afab70ac7ff20fbd419ca2ffcf90c0 SHA256 5fbe908618d7ccf08164a733a361ce9823355fd0da754e53982d842158973754 EBUILD psmisc-22.14.ebuild 1695 RMD160 53f776d73f61855e088789e0f15cc06ce436cba3 SHA1 ca356ac21b43c7b899a3d8d83c3f1eaa95fe5b23 SHA256 5bc21e953ac9f7b50239668ee09880568fce744a6b766483d4fdc3dfc7397241 -MISC ChangeLog 20294 RMD160 fcb3da65a54c50a9e4f55012ba1031e6624bcc7e SHA1 01ec32e41a257f25a73631305e56d99bf9dbaf72 SHA256 62dae4cb9644ef45185a10ccbbb24eac8109b2ee5704a56464e82b30229a7a60 +EBUILD psmisc-22.15.ebuild 1840 RMD160 c0b5cf3227e2c7f9bfc7a330a3d03a196d58b1b6 SHA1 3e71bfa8005936452c9d913abc386cc3ac85dc44 SHA256 fcd625153f571ea1ccec8a200e95fa8b2339b822555b4d4e77176617a8860e03 +MISC ChangeLog 20530 RMD160 5dd7fc526b352d142788e9bdae8cdcc186c89b4b SHA1 025c2717785c3fef1e7844719f40aa897c562af3 SHA256 9ac243d12d7d07325c41c067be6d45a5721af2849e210e3d1b7b158d0b422598 MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iQEcBAEBAgAGBQJPIVUHAAoJEEdUh39IaPFNXc8H/1MW9j9COKupUfd25iaWSqbT -3qbDYQAvRaEkda2R+0NXT0GZY1nIiFxVSUIIWZYf7jWPdmgB0Hz1MIoS0UQ+8+jd -cJBkH8TyRU4ENpQcvXk9MNh/ykte2HDRpzu2e73Zq7BvVV45fv8SN5UzFbrBaxmb -IGhtcXnbAkOkaHx0j5rR3io0eSwMkEq5S424vZb8HYcS6eQa4AobHIpjvhgXe6bA -h50zpnfmQvtgYUmK0KY9aK+7aTTbFQBsoA/FK8zPpowb5bLFRpxGfWuYWT8autSv -F321HuTjP2PX405xm/jS/YHQr66m150Ix3bXe61zHe3lWbL5P8nonxmKoLJrjE8= -=imis +iQEcBAEBAgAGBQJPI5B4AAoJEEdUh39IaPFNrDwH/AjFj8Mi3nCyoryf4fKOeJgD +7q/+xY+SyGTO0XI7u8YDfJy+SJ6O5Ek77rqlxYcIAoysNLPzuwTfMMikFlYxZSQK +ltlQ04E6p6BG8r8YQDk87PThCfJVnlGlZFlLFrlguFGjZKYLRHoAAowhwmOgQ8Nw +UAo6kY77H2vKA1zDJK94g+twD5zwCDU7eUxfiwHSNZ7hKlImFUlzdreyqA/VenIp +ut3v+tE0s2lgJlz9t5GOhm+M4c04SNJRPnPeAr7P2CJsgKK1JSpbhPRq1PLk6sWe +PDKOgVSCOhMnCvVOXu/uXCEr2OjOFoy3+4Y3qivcGU1y1plgeIdcjiPehbV5+d0= +=9zai -----END PGP SIGNATURE----- diff --git a/sys-process/psmisc/files/psmisc-22.15-COMM_LEN-to-18.patch b/sys-process/psmisc/files/psmisc-22.15-COMM_LEN-to-18.patch new file mode 100644 index 000000000000..39a39b4fba8a --- /dev/null +++ b/sys-process/psmisc/files/psmisc-22.15-COMM_LEN-to-18.patch @@ -0,0 +1,85 @@ +From: Craig Small <csmall@users.sourceforge.net> +Date: Fri, 27 Jan 2012 01:02:48 +0000 (+1100) +Subject: Set COMM_LEN to 18 to include brackets in name +X-Git-Url: http://psmisc.git.sourceforge.net/git/gitweb.cgi?p=psmisc%2Fpsmisc;a=commitdiff_plain;h=340f81524cb097d814fcf344a3743de17f988e3d;hp=f6fb268d4ac7365cda72fe1e54872c7694ae5fee + +Set COMM_LEN to 18 to include brackets in name + +Also use strncpy in case the command names grow. +--- + +diff --git a/src/comm.h b/src/comm.h +index 956383d..2b780b0 100644 +--- a/src/comm.h ++++ b/src/comm.h +@@ -1,18 +1,37 @@ +-/* comm.h - command name length definition */ +- +-/* Copyright 1995 Werner Almesberger. See file COPYING for details. */ +- ++/* ++ * comm.h - command name length definition ++ * ++ * Copyright 1995 Werner Almesberger ++ * Copyright 2012 Craig Small <csmall@enc.com.au> ++ * ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ */ + + #ifndef COMM_H + #define COMM_H + +-#if 0 /* broken in 1.3.xx */ +-#include <linux/sched.h> +-#define COMM_LEN sizeof(dummy.comm) +-extern struct task_struct dummy; +-#else +-#define COMM_LEN 16 /* synchronize with size of comm in struct task_struct in +- /usr/include/linux/sched.h */ ++#ifdef HAVE_CONFIG_H ++#include <config.h> + #endif + ++/* ++ * COMM_LEN should be the same size as TASK_COMM_LEN in the Linux source ++ * at include/linux/sched.h ++ * However, that doesn't include the brackets that may be in the field. ++ */ ++#define COMM_LEN 18 ++ + #endif +diff --git a/src/pstree.c b/src/pstree.c +index 452f823..3129f76 100644 +--- a/src/pstree.c ++++ b/src/pstree.c +@@ -264,7 +264,7 @@ static PROC *new_proc(const char *comm, pid_t pid, uid_t uid) + perror("malloc"); + exit(1); + } +- strcpy(new->comm, comm); ++ strncpy(new->comm, comm, COMM_LEN); + new->pid = pid; + new->uid = uid; + new->flags = 0; +@@ -352,7 +352,7 @@ add_proc(const char *comm, pid_t pid, pid_t ppid, uid_t uid, + this = new_proc(comm, pid, uid); + #endif /*WITH_SELINUX */ + else { +- strcpy(this->comm, comm); ++ strncpy(this->comm, comm, COMM_LEN); + this->uid = uid; + } + if (args) diff --git a/sys-process/psmisc/psmisc-22.15.ebuild b/sys-process/psmisc/psmisc-22.15.ebuild new file mode 100644 index 000000000000..4a105fdf9a82 --- /dev/null +++ b/sys-process/psmisc/psmisc-22.15.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/psmisc/psmisc-22.15.ebuild,v 1.1 2012/01/28 06:09:00 ssuominen Exp $ + +EAPI=4 +inherit autotools eutils + +DESCRIPTION="A set of tools that use the proc filesystem" +HOMEPAGE="http://psmisc.sourceforge.net/" +SRC_URI="mirror://sourceforge/psmisc/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="ipv6 nls selinux X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7 + nls? ( virtual/libintl ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.2.6b + nls? ( sys-devel/gettext )" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_prepare() { + epatch "${FILESDIR}"/${P}-COMM_LEN-to-18.patch + + if ! use nls; then + # http://bugs.gentoo.org/193920 + sed -i \ + -e '/AM_GNU_GETTEXT/d' -e 's:po/Makefile.in::' \ + -e '/SUBDIRS/s:po::' -e 's:@LIBINTL@::' \ + configure.ac {.,src}/Makefile.am || die + fi + + eautoreconf +} + +src_configure() { + # the nls looks weird, but it's because we actually delete the nls stuff + # above when USE=-nls. this should get cleaned up so we dont have to patch + # it out, but until then, let's not confuse users ... #220787 + econf \ + $(use_enable selinux) \ + $(use_enable ipv6) \ + $(use nls && use_enable nls) +} + +src_compile() { + # peekfd is a fragile crap hack #330631 + nonfatal emake -C src peekfd || touch src/peekfd{.o,} + emake +} + +src_install() { + default + + use X || rm "${ED}"/usr/bin/pstree.x11 + + [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd + [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1 + + # fuser is needed by init.d scripts + dodir /bin + mv -vf "${ED}"/usr/bin/fuser "${ED}"/bin/ || die +} |