From: Victor Martinez Date: Wed, 28 Nov 2012 16:41:49 +0000 (+0000) Subject: procps: updated to 3.3.3 and aligned with upstream. Cleaned cross patches. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=0cd0473ee3e616f13bdefe6faf3de972f2bb716f;p=attic%2Fports%2Fcore-cross.git procps: updated to 3.3.3 and aligned with upstream. Cleaned cross patches. --- diff --git a/procps/.footprint b/procps/.footprint index 8468836..ced1fc7 100644 --- a/procps/.footprint +++ b/procps/.footprint @@ -3,25 +3,44 @@ drwxr-xr-x root/root bin/ drwxr-xr-x root/root etc/ -rw-r--r-- root/root etc/sysctl.conf drwxr-xr-x root/root lib/ --rwxr-xr-x root/root lib/libproc-3.2.8.so +lrwxrwxrwx root/root lib/libprocps.so.0 -> libprocps.so.0.0.1 +-rwxr-xr-x root/root lib/libprocps.so.0.0.1 drwxr-xr-x root/root sbin/ -rwxr-xr-x root/root sbin/sysctl drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/free -rwxr-xr-x root/root usr/bin/pgrep -lrwxrwxrwx root/root usr/bin/pkill -> pgrep +-rwxr-xr-x root/root usr/bin/pkill -rwxr-xr-x root/root usr/bin/pmap -rwxr-xr-x root/root usr/bin/pwdx --rwxr-xr-x root/root usr/bin/skill -rwxr-xr-x root/root usr/bin/slabtop -lrwxrwxrwx root/root usr/bin/snice -> skill -rwxr-xr-x root/root usr/bin/tload -rwxr-xr-x root/root usr/bin/top -rwxr-xr-x root/root usr/bin/uptime -rwxr-xr-x root/root usr/bin/vmstat -rwxr-xr-x root/root usr/bin/w -rwxr-xr-x root/root usr/bin/watch +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/proc/ +-rw-r--r-- root/root usr/include/proc/alloc.h +-rw-r--r-- root/root usr/include/proc/devname.h +-rw-r--r-- root/root usr/include/proc/escape.h +-rw-r--r-- root/root usr/include/proc/procps.h +-rw-r--r-- root/root usr/include/proc/pwcache.h +-rw-r--r-- root/root usr/include/proc/readproc.h +-rw-r--r-- root/root usr/include/proc/sig.h +-rw-r--r-- root/root usr/include/proc/slab.h +-rw-r--r-- root/root usr/include/proc/sysinfo.h +-rw-r--r-- root/root usr/include/proc/version.h +-rw-r--r-- root/root usr/include/proc/wchan.h +-rw-r--r-- root/root usr/include/proc/whattime.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libprocps.a +-rwxr-xr-x root/root usr/lib/libprocps.la +lrwxrwxrwx root/root usr/lib/libprocps.so -> ../../lib/libprocps.so.0.0.1 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libprocps.pc drwxr-xr-x root/root usr/man/ drwxr-xr-x root/root usr/man/man1/ -rw-r--r-- root/root usr/man/man1/free.1.gz @@ -30,9 +49,7 @@ drwxr-xr-x root/root usr/man/man1/ -rw-r--r-- root/root usr/man/man1/pmap.1.gz -rw-r--r-- root/root usr/man/man1/ps.1.gz -rw-r--r-- root/root usr/man/man1/pwdx.1.gz --rw-r--r-- root/root usr/man/man1/skill.1.gz -rw-r--r-- root/root usr/man/man1/slabtop.1.gz --rw-r--r-- root/root usr/man/man1/snice.1.gz -rw-r--r-- root/root usr/man/man1/tload.1.gz -rw-r--r-- root/root usr/man/man1/top.1.gz -rw-r--r-- root/root usr/man/man1/uptime.1.gz diff --git a/procps/.md5sum b/procps/.md5sum index a97fd77..1f119c0 100644 --- a/procps/.md5sum +++ b/procps/.md5sum @@ -1,4 +1,2 @@ -d47bdc30ef97d52659929acfed49c3cf procps-3.2.8-linux-ver-init.patch -46e344e5ebc243d185a6abd708430ac8 procps-3.2.8.patch -9532714b6846013ca9898984ba4cd7e0 procps-3.2.8.tar.gz +a236660cc09ad36e0e8a378f448161c3 procps_3.3.3.orig.tar.xz 9875c218e1b14bee8f9f5800403a8a24 sysctl.conf diff --git a/procps/Pkgfile b/procps/Pkgfile index 16088ff..eb3e078 100644 --- a/procps/Pkgfile +++ b/procps/Pkgfile @@ -5,25 +5,36 @@ # Depends on: ncurses name=procps -version=3.2.8 -release=3 -source=(http://procps.sourceforge.net/$name-$version.tar.gz \ - sysctl.conf \ - $name-$version.patch \ - $name-$version-linux-ver-init.patch) +version=3.3.3 +release=1 +source=(http://ftp.de.debian.org/debian/pool/main/p/$name/${name}_$version.orig.tar.xz \ + sysctl.conf) build() { - cd $name-$version - patch -p1 -i $SRC/$name-$version.patch - patch -p0 -i $SRC/$name-$version-linux-ver-init.patch + cd $name-ng-$version + + cat > config.cache << EOF +ac_cv_func_malloc_0_nonnull=yes +ac_cv_func_realloc_0_nonnull=yes +EOF + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --exec-prefix=/ \ + --libdir=/usr/lib \ + --sysconfdir=/etc \ + --mandir=/usr/man \ + --disable-kill \ + --cache-file=config.cache make - make DESTDIR=$PKG \ - ldconfig=true \ - man1=$PKG/usr/man/man1/ \ - man5=$PKG/usr/man/man5/ \ - man8=$PKG/usr/man/man8/ \ - install + make DESTDIR=$PKG install + + install -d $PKG/{lib,etc} + mv $PKG/usr/lib/libprocps.so.* $PKG/lib + ln -sf ../../lib/$(readlink $PKG/lib/libprocps.so.0) $PKG/usr/lib/libprocps.so + install -m 0644 $SRC/sysctl.conf $PKG/etc/sysctl.conf - install -D -m644 ../sysctl.conf $PKG/etc/sysctl.conf + rm -r $PKG/usr/share } diff --git a/procps/procps-3.2.8-linux-ver-init.patch b/procps/procps-3.2.8-linux-ver-init.patch deleted file mode 100644 index 3355554..0000000 --- a/procps/procps-3.2.8-linux-ver-init.patch +++ /dev/null @@ -1,19 +0,0 @@ -# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603759 -# https://bugs.gentoo.org/show_bug.cgi?id=303120 - -Index: proc/version.c -=================================================================== -RCS file: /cvsroot/procps/procps/proc/version.c,v -retrieving revision 1.7 -diff -u -p -r1.7 version.c ---- proc/version.c 9 Feb 2003 07:27:16 -0000 1.7 -+++ proc/version.c 14 Nov 2010 00:22:44 -0000 -@@ -33,7 +33,7 @@ void display_version(void) { - - int linux_version_code; - --static void init_Linux_version(void) __attribute__((constructor)); -+static void init_Linux_version(void) __attribute__((constructor(100))); - static void init_Linux_version(void) { - static struct utsname uts; - int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */ diff --git a/procps/procps-3.2.8.patch b/procps/procps-3.2.8.patch deleted file mode 100644 index 2a0614f..0000000 --- a/procps/procps-3.2.8.patch +++ /dev/null @@ -1,91 +0,0 @@ -diff -Nru procps-3.2.8.orig/Makefile procps-3.2.8/Makefile ---- procps-3.2.8.orig/Makefile 2010-11-07 11:59:17.736493931 +0100 -+++ procps-3.2.8/Makefile 2010-11-07 12:24:02.973714246 +0100 -@@ -24,26 +24,26 @@ - ############ vars - - # so you can disable them or choose alternates --ldconfig := ldconfig -+ldconfig := true - ln_f := ln -f - ln_sf := ln -sf - install := install -D --owner 0 --group 0 - - # Lame x86-64 /lib64 and /usr/lib64 abomination: --lib64 := lib$(shell [ -d /lib64 ] && echo 64) -+lib64 := lib - - usr/bin := $(DESTDIR)/usr/bin/ - bin := $(DESTDIR)/bin/ - sbin := $(DESTDIR)/sbin/ - usr/proc/bin := $(DESTDIR)/usr/bin/ --man1 := $(DESTDIR)/usr/share/man/man1/ --man5 := $(DESTDIR)/usr/share/man/man5/ --man8 := $(DESTDIR)/usr/share/man/man8/ -+man1 := $(DESTDIR)/usr/man/man1/ -+man5 := $(DESTDIR)/usr/man/man5/ -+man8 := $(DESTDIR)/usr/man/man8/ - lib := $(DESTDIR)/$(lib64)/ - usr/lib := $(DESTDIR)/usr/$(lib64)/ - usr/include := $(DESTDIR)/usr/include/ - --#SKIP := $(bin)kill $(man1)kill.1 -+SKIP := $(bin)kill $(man1)kill.1 - - BINFILES := $(usr/bin)uptime $(usr/bin)tload $(usr/bin)free $(usr/bin)w \ - $(usr/bin)top $(usr/bin)vmstat $(usr/bin)watch $(usr/bin)skill \ -@@ -174,7 +174,8 @@ - # want this rule first, use := on ALL, and ALL not filled in yet - all: do_all - ---include */module.mk -+-include proc/module.mk -+-include ps/module.mk - - do_all: $(ALL) - -@@ -222,14 +223,14 @@ - ###### install - - $(BINFILES) : all -- $(install) --mode a=rx $(notdir $@) $@ -+ $(install) --mode=0755 $(notdir $@) $@ - - $(MANFILES) : all -- $(install) --mode a=r $(notdir $@) $@ -+ $(install) --mode=0644 $(notdir $@) $@ - - install: $(filter-out $(SKIP) $(addprefix $(DESTDIR),$(SKIP)),$(INSTALL)) -- cd $(usr/bin) && $(ln_f) skill snice -- cd $(usr/proc/bin) && $(ln_f) pgrep pkill -+ cd $(usr/bin) && $(ln_sf) skill snice -+ cd $(usr/proc/bin) && $(ln_sf) pgrep pkill - - ############ prog.c --> prog.o - -diff -Nru procps-3.2.8.orig/proc/module.mk procps-3.2.8/proc/module.mk ---- procps-3.2.8.orig/proc/module.mk 2010-11-07 11:59:17.746493508 +0100 -+++ procps-3.2.8/proc/module.mk 2010-11-07 12:29:58.358664876 +0100 -@@ -96,7 +96,7 @@ - #################### install rules ########################### - - $(lib)$(SOFILE) : proc/$(SONAME) -- $(install) --mode a=rx $< $@ -+ $(install) --mode=0755 $< $@ - - ifneq ($(SOLINK),$(SOFILE)) - .PHONY: $(lib)$(SOLINK) -diff -Nru procps-3.2.8.orig/ps/module.mk procps-3.2.8/ps/module.mk ---- procps-3.2.8.orig/ps/module.mk 2010-11-07 11:59:17.746493508 +0100 -+++ procps-3.2.8/ps/module.mk 2010-11-07 12:26:19.287944149 +0100 -@@ -33,8 +33,8 @@ - - - $(bin)ps: ps/ps -- $(install) --mode a=rx $< $@ -+ $(install) --mode=0755 $< $@ - - $(man1)ps.1 : ps/ps.1 -- $(install) --mode a=r $< $@ -+ $(install) --mode=0644 $< $@ - -rm -f $(DESTDIR)/var/catman/cat1/ps.1.gz $(DESTDIR)/var/man/cat1/ps.1.gz