summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-04-23 13:46:21 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-04-23 13:46:21 +0000
commitee1d643fb852ad5abcea3d4cbfda7fb1e8a93810 (patch)
tree6c6041a7913918dbc69b0653e9275c0acab888bf /app-admin/paxtest
parentVersion bump. (diff)
downloadgentoo-2-ee1d643fb852ad5abcea3d4cbfda7fb1e8a93810.tar.gz
gentoo-2-ee1d643fb852ad5abcea3d4cbfda7fb1e8a93810.tar.bz2
gentoo-2-ee1d643fb852ad5abcea3d4cbfda7fb1e8a93810.zip
Removed deprecated versions.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/paxtest')
-rw-r--r--app-admin/paxtest/ChangeLog11
-rw-r--r--app-admin/paxtest/files/Makefile-portable236
-rw-r--r--app-admin/paxtest/files/Makefile.psm5207
-rw-r--r--app-admin/paxtest/files/paxtest-0.9.5-use-fPIE.patch33
-rw-r--r--app-admin/paxtest/files/paxtest-0.9.5.1.diff92
-rw-r--r--app-admin/paxtest/paxtest-0.9.5-r1.ebuild44
-rw-r--r--app-admin/paxtest/paxtest-0.9.6.ebuild35
-rw-r--r--app-admin/paxtest/paxtest-0.9.7_pre4.ebuild42
8 files changed, 9 insertions, 691 deletions
diff --git a/app-admin/paxtest/ChangeLog b/app-admin/paxtest/ChangeLog
index 2d0eb3566a9c..84c532df5ef7 100644
--- a/app-admin/paxtest/ChangeLog
+++ b/app-admin/paxtest/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-admin/paxtest
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/paxtest/ChangeLog,v 1.40 2010/09/18 17:33:48 blueness Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/paxtest/ChangeLog,v 1.41 2011/04/23 13:46:20 blueness Exp $
+
+ 23 Apr 2011; Anthony G. Basile <blueness@gentoo.org>
+ -paxtest-0.9.5-r1.ebuild, -files/paxtest-0.9.5.1.diff,
+ -files/paxtest-0.9.5-use-fPIE.patch, -paxtest-0.9.6.ebuild,
+ -files/Makefile.psm5, -files/Makefile-portable,
+ -paxtest-0.9.7_pre4.ebuild:
+ Removed deprecated versions.
18 Sep 2010; Anthony G. Basile <blueness@gentoo.org>
paxtest-0.9.5-r1.ebuild, paxtest-0.9.6.ebuild:
diff --git a/app-admin/paxtest/files/Makefile-portable b/app-admin/paxtest/files/Makefile-portable
deleted file mode 100644
index 65142e426daa..000000000000
--- a/app-admin/paxtest/files/Makefile-portable
+++ /dev/null
@@ -1,236 +0,0 @@
-#!/usr/bin/make
-
-# tested with make-3.79.1/gcc-2.96 (shared) and make-3.80/gcc-3.3.2/3 (pie)
-# make-3.79.1 does not support $$@ as target requirement (works for make-3.80)
-
-# preliminaries:
-# Adamantix modifies the specs adding etexec/etdyn for ET_EXEC/ET_DYN binaries
-# Adamantix's behaviour is presumed (no answers from peter@adamantix)
-# Gentoo modifies the specs adding yet_dyn/pie|yet_exec/nopie to enable|disable ET_DYN binaries
-#
-# disable ET_DYN binary building explicitely, where needed by setting
-# Adamantix: etexec
-# Gentoo: nopie/yet_exec
-
-# gcc does not check correctly -y<something>, so we have to grep the specs file
-
-# Gentoo used this to have non ET_DYN behaviour
-# not working anymore w/ gcc-3.3.3-r1, since we do not know the defaults
-#GCC_SPCS := $(shell gcc -dumpspecs > dumpspecs)
-#CC := gcc -specs=dumpspecs
-
-CC := gcc
-CC_PIC := -fPIC -DPIC
-
-# Adamantix
-CC_PIE := $(shell if grep -q "etdyn" `gcc -print-file-name=specs` ; then echo "-etdyn"; fi)
-CC_ETEXEC := $(shell if grep -q "etexec" `gcc -print-file-name=specs` ; then echo "-etexec"; fi)
-
-# non Adamantix case
-ifneq ($(CC_ETEXEC),-etexec)
-
-SCRT_FILE := $(shell if test -r /usr/lib/crt1S.o; then echo "/usr/lib/crt1S.o"; fi)
-ifeq ($(SCRT_FILE),)
-SCRT_FILE := $(shell if test -r /usr/lib/Scrt1.o; then echo "/usr/lib/Scrt1.o"; fi)
-endif
-# we can use -pie only if /usr/lib/Scrt1.o exists
-ifneq ($(SCRT_FILE),)
-# test works only for -fpie, not -pie, why?
-CC_PIE := $(shell if gcc -fpie -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-pie"; fi)
-
-# Gentoo disabling ET_DYN
-ifeq ($(CC_PIE),-pie)
-CC_ETEXEC := $(shell if grep -q "nopie" `gcc -print-file-name=specs` ; then echo "-nopie"; fi)
-endif
-endif
-
-ifeq ($(CC_PIE),)
-# Gentoo creating ET_DYN (if defaulting to ET_EXEC)
-CC_PIE := $(shell if grep -q "yet_dyn" `gcc -print-file-name=specs` ; then echo "-yet_dyn"; fi)
-# Gentoo disabling ET_DYN (if defaulting to ET_DYN)
-CC_ETEXEC := $(shell if grep -q "yet_exec" `gcc -print-file-name=specs` ; then echo "-yet_exec"; fi)
-
-# generic case, if we do not have any reference in specs
-ifeq ($(CC_PIE),)
-# if we have an Scrt1.o file, use that instead of the locally built one
-# could someone test this on platforms, where Scrt1.o exists, but there
-# is no equivalent crt1S.S? At least it works for uClibc.
-ifeq ($(SCRT_FILE),)
-SCRT_FILE := crt1S.o
-endif
-
-CC_PIE := -shared
-PAX_DEP := $(SCRT_FILE) interp.o
-
-# end of generic
-endif
-
-# end of Gentoo
-endif
-
-# end of non-Adamantix case
-endif
-
-# check for stack-protector
-CC_SSP := $(shell if gcc -fno-stack-protector -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-stack-protector"; fi)
-CC_SSP_ALL := $(shell if gcc -fno-stack-protector-all -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-stack-protector-all"; fi)
-
-# check for installed binaries
-CHPAXBIN := $(shell if which chpax >/dev/null 2>&1 ; then echo chpax; fi)
-PAXCTLBIN := $(shell if which paxctl >/dev/null 2>&1 ; then echo paxctl; fi)
-# should somehow use this to see if we really need paxctl
-# list=`paxctl -qQv /sbin/paxctl 2>/dev/null`; if echo $list | grep -q "PaX flags" ; then echo paxctl; fi
-# instead we use both markings to have paxtest running correctly on all platforms
-
-ifneq ($(PAXCTLBIN),)
-DUMMY := $(shell echo '${PAXCTLBIN} $$*' > paxbin)
-endif
-
-OPT_FLAGS := -O2
-PTHREAD := -lpthread
-# define stripping of binaries/libs here, or set these on make's commandline,
-# else you'll loose the chpax flags!
-LDFLAGS :=
-SHLDFLAGS :=
-ifndef RUNDIR
-RUNDIR := .
-endif
-
-# The Hardened GCC compiler has stack protector on by default, this
-# could interfere with the results of this test.
-
-CFLAGS := $(OPT_FLAGS) -DRUNDIR=\"${RUNDIR}\" $(CC_SSP) $(CC_SSP_ALL)
-
-EXEC_TESTS = anonmap execbss execdata execheap execstack
-MPROT_TESTS = mprotanon mprotbss mprotdata mprotheap mprotstack
-MPROTSH_TESTS = mprotshbss mprotshdata writetext
-RAND_TESTS = randamap randheap1 randheap2 randmain1 randmain2 randshlib randstack1 randstack2
-RET_TESTS = rettofunc1 rettofunc2
-RETX_TESTS = rettofunc1x rettofunc2x
-SHLIB_TESTS = shlibbss shlibdata
-
-TESTS = $(EXEC_TESTS) $(MPROT_TESTS) $(MPROTSH_TESTS) $(RAND_TESTS) $(RET_TESTS) $(RETX_TESTS) $(SHLIB_TESTS)
-
-UTILS= getamap getheap1 getheap2 getmain1 getmain2 getshlib getstack1 getstack2
-
-SHLIBS= shlibtest.so shlibtest2.so
-
-ifeq ($(CHPAXBIN),)
-CHPAXVER := 0.5
-CHPAX := chpax-$(CHPAXVER)
-CHPAXSRC := $(CHPAX)/aout.c $(CHPAX)/chpax.c $(CHPAX)/elf32.c $(CHPAX)/elf64.c $(CHPAX)/flags.c $(CHPAX)/io.c
-CHPAXBIN := ./chpax
-all: chpax $(SHLIBS) $(TESTS) $(UTILS) paxtest
-else
-all: $(SHLIBS) $(TESTS) $(UTILS) paxtest
-endif
-
-DUMMY := $(shell echo '${CHPAXBIN} $$*' >> paxbin; chmod +x paxbin)
-
-PAXBIN := ./paxbin
-
-clean:
- -rm -f *.o *.s *~ core
- -rm -f $(TESTS) $(UTILS) $(SHLIBS)
- -rm -f paxtest paxtest.log a.out dumpspecs paxbin
-
-ifdef DESTDIR
-ifdef BINDIR
-ifdef RUNDIR
-install: all
- mkdir -p $(DESTDIR)/$(RUNDIR)
- cp $(SHLIBS) $(TESTS) $(UTILS) $(DESTDIR)/$(RUNDIR)
- mkdir -p $(DESTDIR)/$(BINDIR)
- cp paxtest $(DESTDIR)/$(BINDIR)
- chmod 755 $(DESTDIR)/$(BINDIR)/paxtest
-endif
-endif
-endif
-
-chpax: $(CHPAXSRC:.c=.o)
- $(CC) $(LDFLAGS) -o $@ $^
-
-paxtest: $(TESTS) genpaxtest
- sh genpaxtest $(TESTS)
-
-.S.o:
- $(CC) $(CFLAGS) $(CC_PIC) -o $@ -c $<
-.c.o:
- $(CC) $(CFLAGS) -o $@ -c $<
-
-$(EXEC_TESTS) $(MPROT_TESTS): body.o
- $(CC) $(CFLAGS) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) -o $@ $< $@.o $(PTHREAD)
-
-$(RAND_TESTS): randbody.o
- $(CC) $(CFLAGS) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) -o $@ $< $@.o
-
-getamap: getamap.o
- $(CC) $(LDFLAGS) -o $@ $@.o
-
-# get heap1/main1 are built w/o PIC
-get%1.o: get%.c
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@ -c $<
-
-# get heap2/main2 are built w/ PIC
-get%2.o: get%.c
- $(CC) $(CFLAGS) $(CC_PIC) -o $@ -c $<
-
-# Adamantix uses the PIC version (getheap2.o), not necessary for ET_EXEC
-# build as ET_EXEC (not in Adamantix's Makefile)
-getheap1: getheap1.o
- $(CC) $(LDFLAGS) $(CC_ETEXEC) -o $@ $<
-
-getmain1: getmain1.o
- $(CC) $(LDFLAGS) $(CC_ETEXEC) -o $@ $<
- $(PAXBIN) -SPRXM $@
-
-getheap2 getmain2: $(PAX_DEP) getheap2.o getmain2.o
- $(CC) $(LDFLAGS) $(CC_PIE) -o $@ $(PAX_DEP) $@.o
-
-getshlib: getshlib.o
- $(CC) $(LDFLAGS) -o $@ $< -ldl
-
-# ET_EXEC and usage of "m" is not confirmed (as in Gentoo patch)
-# Adamantix does not use it
-# Pax Team does not want "m" for getstack1/2
-getstack1: getstack.o
- $(CC) $(LDFLAGS) -o $@ $<
- $(PAXBIN) -SRp $@
-
-getstack2: getstack.o
- $(CC) $(LDFLAGS) -o $@ $<
- # disable segmexec, kernel else overrides pageexec
- $(PAXBIN) -PRs $@
-
-$(MPROTSH_TESTS): body.o shlibtest.so
- $(CC) $(CFLAGS) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) -o $@ $@.o $^ $(PTHREAD)
-
-# used for RANDEXEC'd binaries
-retbody.o: body.c
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@ -c $<
-
-# build as ET_EXEC (recommended by PaX Team, not really a requirement)
-$(RET_TESTS): retbody.o
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) $(CC_ETEXEC) -o $@ $< $@.o $(PTHREAD)
-
-# build as ET_EXEC (not in Adamantix's Makefile)
-$(RETX_TESTS): retbody.o
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) $(CC_ETEXEC) -o $@ $< $@.o $(PTHREAD)
- $(PAXBIN) -SPXM $@
-
-# should also shlibbss.o and shlibdata.o be built w/ PIC?
-# if yes, remove tes from target and dependency
-shlibtes%.o: shlibtes%.c
- $(CC) $(CFLAGS) $(CC_PIC) -o $@ -c $<
-
-shlib%.so: shlib%.o
- $(CC) $(SHLDFLAGS) -shared -o $@ $<
-
-$(SHLIB_TESTS): body.o $(SHLIBS) shlibbss.o shlibdata.o
- $(CC) $(LDFLAGS) -o $@ body.o $@.o $(SHLIBS) -ldl $(PTHREAD)
-
diff --git a/app-admin/paxtest/files/Makefile.psm5 b/app-admin/paxtest/files/Makefile.psm5
deleted file mode 100644
index 8c42af9875bd..000000000000
--- a/app-admin/paxtest/files/Makefile.psm5
+++ /dev/null
@@ -1,207 +0,0 @@
-#!/usr/bin/make
-
-# tested with make-3.79.1/gcc-2.96 (shared) and make-3.80/gcc-3.3.2/3 (pie)
-# make-3.79.1 does not support $$@ as target requirement (works for make-3.80)
-
-# preliminaries:
-# Gentoo modifies the specs adding pie/nopie to enable/disable ET_DYN binaries
-
-CC := gcc
-LD := ld
-CC_PIC := -fPIC
-GCC_SPCS := $(shell $(CC) -print-file-name=${GCC_SPECS:-specs})
-
-check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
- then echo "$(1)"; else echo "$(2)"; fi)
-
-check_as = $(shell if $(CC) -Wa,$(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; \
- then echo "-Wa,$(1)"; fi)
-
-# stack protector has to be disabled for some tests
-CC_SSP := $(call check_gcc,-fno-stack-protector,)
-CC_SSP += $(call check_gcc,-fno-stack-protector-all,)
-
-ASFLAGS := $(call check_as,--noexecstack)
-
-CC_PIE := $(call check_gcc,-fPIE,-fPIC)
-
-SCRT_FILE = $(shell if test -r /usr/lib/Scrt1.o ; then echo "/usr/lib/Scrt1.o"; fi)
-
-ifneq ($(SCRT_FILE),)
-LD_PIE = $(shell $(LD) --help | grep -q pie && echo "-Wl,-pie")
-ifneq ($(LD_PIE),)
-# Gentoo (hardened specs enabled)
-CC_ETEXEC = $(shell grep -q "\!nopie" $(GCC_SPCS) && echo "-nopie")
-LD_ETEXEC = $(CC_ETEXEC)
-endif
-else
-# generic, local version
-SCRT_FILE = crt1S.o
-endif
-
-ifeq ($(LD_PIE),)
-LD_PIE = -shared
-PAX_DEP = $(SCRT_FILE) interp.o
-endif
-
-# check for installed binaries
-CHPAXBIN := $(shell if which chpax >/dev/null 2>&1 ; then echo chpax; fi)
-PAXCTLBIN := $(shell if which paxctl >/dev/null 2>&1 ; then echo paxctl; fi)
-# should somehow use this to see if we really need paxctl
-# list=`paxctl -qQv /sbin/paxctl 2>/dev/null`; if echo $list | grep -q "PaX flags" ; then echo paxctl; fi
-# instead we use both markings to have paxtest running correctly on all platforms
-
-ifneq ($(PAXCTLBIN),)
-DUMMY := $(shell echo '${PAXCTLBIN} $$*' > paxbin)
-endif
-
-# for some reason the .c files need it, else GNU_STACK=RWE
-OPT_FLAGS := -O2 $(ASFLAGS)
-PTHREAD := -lpthread
-# define stripping of binaries/libs here, or set these on make's commandline,
-# else you'll loose the chpax flags!
-LDFLAGS :=
-SHLDFLAGS :=
-ifndef RUNDIR
-RUNDIR := .
-endif
-
-# The Hardened GCC compiler has stack protector on by default, this
-# could interfere with the results of this test.
-
-CFLAGS := $(OPT_FLAGS) -DRUNDIR=\"${RUNDIR}\" $(CC_SSP)
-
-EXEC_TESTS = anonmap execbss execdata execheap execstack
-MPROT_TESTS = mprotanon mprotbss mprotdata mprotheap mprotstack
-MPROTSH_TESTS = mprotshbss mprotshdata writetext
-RAND_TESTS = randamap randheap1 randheap2 randmain1 randmain2 randshlib randstack1 randstack2
-RET_TESTS = rettofunc1 rettofunc2
-RETX_TESTS = rettofunc1x rettofunc2x
-SHLIB_TESTS = shlibbss shlibdata
-
-TESTS = $(EXEC_TESTS) $(MPROT_TESTS) $(MPROTSH_TESTS) $(RAND_TESTS) $(RET_TESTS) $(RETX_TESTS) $(SHLIB_TESTS)
-
-UTILS= getamap getheap1 getheap2 getmain1 getmain2 getshlib getstack1 getstack2
-
-SHLIBS= shlibtest.so shlibtest2.so
-
-ifeq ($(CHPAXBIN),)
-CHPAXVER := 0.7
-CHPAX := chpax-$(CHPAXVER)
-CHPAXSRC := $(CHPAX)/aout.c $(CHPAX)/chpax.c $(CHPAX)/elf32.c $(CHPAX)/elf64.c $(CHPAX)/flags.c $(CHPAX)/io.c
-CHPAXBIN := ./chpax
-all: chpax $(SHLIBS) $(TESTS) $(UTILS) paxtest
-else
-all: $(SHLIBS) $(TESTS) $(UTILS) paxtest
-endif
-
-# we need the failure handling, for kernels not supporting EI_PAX
-DUMMY := $(shell echo '${CHPAXBIN} $$* 2>/dev/null ||:' >> paxbin; chmod +x paxbin)
-
-PAXBIN := ./paxbin
-DL := -ldl
-
-clean:
- -rm -f *.o *.s *~ core
- -rm -f $(TESTS) $(UTILS) $(SHLIBS)
- -rm -f paxtest paxtest.log a.out dumpspecs paxbin
-
-ifdef DESTDIR
-ifdef BINDIR
-ifdef RUNDIR
-install: all
- mkdir -p $(DESTDIR)/$(RUNDIR)
- cp $(SHLIBS) $(TESTS) $(UTILS) $(DESTDIR)/$(RUNDIR)
- mkdir -p $(DESTDIR)/$(BINDIR)
- cp paxtest $(DESTDIR)/$(BINDIR)
- chmod 755 $(DESTDIR)/$(BINDIR)/paxtest
-endif
-endif
-endif
-
-chpax: $(CHPAXSRC:.c=.o)
- $(CC) $(LDFLAGS) -o $@ $^
-
-paxtest: $(TESTS) genpaxtest
- sh genpaxtest $(TESTS)
-
-.S.o:
- $(CC) $(CFLAGS) $(CC_PIE) $(ASFLAGS) -o $@ -c $<
-.c.o:
- $(CC) $(CFLAGS) -o $@ -c $<
-
-$(EXEC_TESTS) $(MPROT_TESTS): body.o
- $(CC) $(CFLAGS) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) -o $@ $< $@.o $(PTHREAD)
-
-$(RAND_TESTS): randbody.o
- $(CC) $(CFLAGS) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) -o $@ $< $@.o
-
-getamap: getamap.o
- $(CC) $(LDFLAGS) -o $@ $@.o
-
-# get heap1/main1 are built w/o PIC
-get%1.o: get%.c
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@ -c $<
-
-# get heap2/main2 are built w/ PIC
-get%2.o: get%.c
- $(CC) $(CFLAGS) $(CC_PIE) -o $@ -c $<
-
-# Adamantix uses the PIC version (getheap2.o), not necessary for ET_EXEC
-# build as ET_EXEC (not in Adamantix's Makefile)
-getheap1: getheap1.o
- $(CC) $(LDFLAGS) $(LD_ETEXEC) -o $@ $<
-
-getmain1: getmain1.o
- $(CC) $(LDFLAGS) $(LD_ETEXEC) -o $@ $<
- $(PAXBIN) -SPRXM $@
-
-getheap2 getmain2: $(PAX_DEP) getheap2.o getmain2.o
- $(CC) $(LDFLAGS) $(LD_PIE) -o $@ $(PAX_DEP) $@.o || (echo -e "#!/bin/sh\necho $@ pie not implemented" > $@; chmod +x $@)
-
-getshlib: getshlib.o
- $(CC) $(LDFLAGS) -o $@ $< $(DL)
-
-# ET_EXEC and usage of "m" is not confirmed (as in Gentoo patch)
-# Adamantix does not use it
-# Pax Team does not want "m" for getstack1/2
-getstack1: getstack.o
- $(CC) $(LDFLAGS) -o $@ $<
- $(PAXBIN) -SRp $@
-
-getstack2: getstack.o
- $(CC) $(LDFLAGS) -o $@ $<
- # disable segmexec, kernel else overrides pageexec
- $(PAXBIN) -PRs $@
-
-$(MPROTSH_TESTS): body.o shlibtest.so
- $(CC) $(CFLAGS) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) -o $@ $@.o $^ $(PTHREAD)
-
-# used for RANDEXEC'd binaries
-retbody.o: body.c
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@ -c $<
-
-# build as ET_EXEC (recommended by PaX Team, not really a requirement)
-$(RET_TESTS): retbody.o
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) $(LD_ETEXEC) -o $@ $< $@.o $(PTHREAD)
-
-# build as ET_EXEC (not in Adamantix's Makefile)
-$(RETX_TESTS): retbody.o
- $(CC) $(CFLAGS) $(CC_ETEXEC) -o $@.o -c $@.c
- $(CC) $(LDFLAGS) $(LD_ETEXEC) -o $@ $< $@.o $(PTHREAD)
- $(PAXBIN) -SPXM $@
-
-# should also shlibbss.o and shlibdata.o be built w/ PIC?
-# if yes, remove tes from target and dependency
-shlibtes%.o: shlibtes%.c
- $(CC) $(CFLAGS) $(CC_PIC) -o $@ -c $<
-
-shlib%.so: shlib%.o
- $(CC) $(SHLDFLAGS) -shared -o $@ $<
-
-$(SHLIB_TESTS): body.o $(SHLIBS) shlibbss.o shlibdata.o
- $(CC) $(LDFLAGS) -o $@ body.o $@.o $(SHLIBS) $(DL) $(PTHREAD)
diff --git a/app-admin/paxtest/files/paxtest-0.9.5-use-fPIE.patch b/app-admin/paxtest/files/paxtest-0.9.5-use-fPIE.patch
deleted file mode 100644
index 76c41406d806..000000000000
--- a/app-admin/paxtest/files/paxtest-0.9.5-use-fPIE.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- paxtest-0.9.5.old/Makefile.Gentoo-hardened 2004-07-29 14:56:20.261505592 -0400
-+++ paxtest-0.9.5/Makefile.Gentoo-hardened 2004-07-29 14:57:04.160831880 -0400
-@@ -77,8 +77,6 @@
- paxtest: $(TESTS) genpaxtest
- sh genpaxtest $(TESTS)
-
--crt1S.o: crt1S.S
--
- anonmap: body.o anonmap.o
-
- execbss: body.o execbss.o
-@@ -92,8 +90,8 @@
- getheap1: getheap.o
- $(CC) $(LDFLAGS) -o $@ $+
-
--getheap2: crt1S.o interp.o getheap.o
-- $(CC) -shared -o $@ $+
-+getheap2: interp.o getheap.o
-+ $(CC) -fPIE -o $@ $+
-
- getheap.o: getheap.c
- $(CC) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
-@@ -104,8 +102,8 @@
- $(CC) $(LDFLAGS) -o $@ $+
- chpax -X $@
-
--getmain2: crt1S.o interp.o getmain2.o
-- $(CC) -shared -o $@ $+
-+getmain2: interp.o getmain2.o
-+ $(CC) -fPIE -o $@ $+
-
- getmain2.o: getmain.c
- $(CC) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
diff --git a/app-admin/paxtest/files/paxtest-0.9.5.1.diff b/app-admin/paxtest/files/paxtest-0.9.5.1.diff
deleted file mode 100644
index 49d75c3192fe..000000000000
--- a/app-admin/paxtest/files/paxtest-0.9.5.1.diff
+++ /dev/null
@@ -1,92 +0,0 @@
-diff -Nru paxtest-0.9.5/Makefile paxtest-0.9.5.1/Makefile
---- paxtest-0.9.5/Makefile 2003-11-04 16:39:39.000000000 -0500
-+++ paxtest-0.9.5.1/Makefile 2003-11-10 18:19:47.000000000 -0500
-@@ -22,5 +22,5 @@
- make -f Makefile.generic
-
- clean:
-- make -f Makefile.Adamantix clean
-+ make -f Makefile.generic clean
-
-diff -Nru paxtest-0.9.5/Makefile.Gentoo-hardened paxtest-0.9.5.1/Makefile.Gentoo-hardened
---- paxtest-0.9.5/Makefile.Gentoo-hardened 2003-11-04 05:47:37.000000000 -0500
-+++ paxtest-0.9.5.1/Makefile.Gentoo-hardened 2003-11-10 18:20:17.000000000 -0500
-@@ -1,19 +1,18 @@
- #!/usr/bin/make
-
--CC=gcc
--CFLAGS=-O2
--LDFLAGS=
-+GCC_SPCS:=$(shell gcc -dumpspecs > dumpspecs)
-+CC := gcc -specs=dumpspecs
-+
-+CFLAGS := -O2
-+LDFLAGS :=
- ifndef RUNDIR
--RUNDIR=.
-+RUNDIR := /usr/lib/paxtest
- endif
-
- # The Hardened GCC compiler has stack protector on by default, this
- # could interfere with the results of this test.
-
--CFLAGS += -DRUNDIR=\"${RUNDIR}\" -fno-stack-protector
--CFLAGS += $(shell portageq has_version / sys-devel/hardened-gcc && \
-- echo -yet_exec -yno_propolice)
--
-+CFLAGS := -DRUNDIR=\"${RUNDIR}\" -fno-stack-protector
-
- TESTS= anonmap \
- execbss \
-@@ -60,7 +59,7 @@
- clean:
- -rm -f *.o *.s *~ core
- -rm -f $(SHLIBS) $(TESTS) $(UTILS)
-- -rm -f paxtest paxtest.log a.out
-+ -rm -f paxtest paxtest.log a.out dumpspecs
-
- ifdef DESTDIR
- ifdef BINDIR
-@@ -78,10 +77,10 @@
- paxtest: $(TESTS) genpaxtest
- sh genpaxtest $(TESTS)
-
--anonmap: body.o anonmap.o
--
- crt1S.o: crt1S.S
-
-+anonmap: body.o anonmap.o
-+
- execbss: body.o execbss.o
-
- execdata: body.o execdata.o
-@@ -93,7 +92,7 @@
- getheap1: getheap.o
- $(CC) $(LDFLAGS) -o $@ $+
-
--getheap2: getheap.o
-+getheap2: crt1S.o interp.o getheap.o
- $(CC) -shared -o $@ $+
-
- getheap.o: getheap.c
-@@ -105,7 +104,7 @@
- $(CC) $(LDFLAGS) -o $@ $+
- chpax -X $@
-
--getmain2: getmain2.o
-+getmain2: crt1S.o interp.o getmain2.o
- $(CC) -shared -o $@ $+
-
- getmain2.o: getmain.c
-diff -Nru paxtest-0.9.5/Makefile.generic paxtest-0.9.5.1/Makefile.generic
---- paxtest-0.9.5/Makefile.generic 2003-11-04 08:44:19.000000000 -0500
-+++ paxtest-0.9.5.1/Makefile.generic 2003-11-10 18:19:47.000000000 -0500
-@@ -64,7 +64,7 @@
- clean:
- -rm -f *.o $(CHPAX)/*.o *.s *~ core
- -rm -f $(SHLIBS) $(TESTS) $(UTILS)
-- -rm -f paxtest chpax paxtest.log a.out
-+ -rm -f paxtest chpax paxtest.log a.out dumpspecs
-
- ifdef DESTDIR
- ifdef BINDIR
diff --git a/app-admin/paxtest/paxtest-0.9.5-r1.ebuild b/app-admin/paxtest/paxtest-0.9.5-r1.ebuild
deleted file mode 100644
index 852223fb4dd7..000000000000
--- a/app-admin/paxtest/paxtest-0.9.5-r1.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/paxtest/paxtest-0.9.5-r1.ebuild,v 1.16 2010/09/18 17:33:48 blueness Exp $
-
-inherit eutils
-
-# pax flags are not strip safe.
-RESTRICT="strip"
-
-DESCRIPTION="PaX regression test suite"
-HOMEPAGE="http://pageexec.virtualave.net/"
-#SRC_URI="http://pageexec.virtualave.net/paxtest-${PV}.tar.gz"
-SRC_URI="mirror://gentoo/paxtest-${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ~amd64"
-IUSE=""
-
-DEPEND=">=sys-apps/chpax-0.5"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/paxtest-0.9.5.1.diff
-
- # paxtest includes crt1S.S, which is great if you're on x86, but not so
- # much if you're not...
- use !x86 && epatch "${FILESDIR}"/paxtest-0.9.5-use-fPIE.patch
-
- cp Makefile{,.orig}
- cp Makefile{.Gentoo-hardened,}
-}
-
-src_compile() {
- emake DESTDIR="${D}" BINDIR="${D}"/usr/bin RUNDIR=/usr/lib/paxtest || die
-}
-
-src_install() {
- emake DESTDIR="${D}" BINDIR=/usr/bin RUNDIR=/usr/lib/paxtest install
- for doc in Changelog README ;do
- [ -f "${doc}" ] && dodoc ${doc}
- done
-}
diff --git a/app-admin/paxtest/paxtest-0.9.6.ebuild b/app-admin/paxtest/paxtest-0.9.6.ebuild
deleted file mode 100644
index 97c1dbfc259b..000000000000
--- a/app-admin/paxtest/paxtest-0.9.6.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/paxtest/paxtest-0.9.6.ebuild,v 1.20 2010/09/18 17:33:48 blueness Exp $
-
-inherit eutils multilib
-
-DESCRIPTION="PaX regression test suite"
-HOMEPAGE="http://www.adamantix.org/paxtest/"
-#SRC_URI="http://www.adamantix.org/paxtest/paxtest-${PV}.tar.gz"
-SRC_URI="mirror://gentoo/paxtest-${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha ~amd64 arm hppa ia64 ~mips ppc ~ppc64 sparc x86"
-IUSE=""
-# pax flags are not strip safe.
-RESTRICT="strip"
-
-DEPEND=">=sys-apps/chpax-0.5"
-
-src_unpack() {
- unpack ${A}
- cp "${FILESDIR}"/Makefile-portable "${S}"/Makefile
-}
-
-src_compile() {
- emake DESTDIR="${D}" BINDIR="${D}"/usr/bin RUNDIR=/usr/$(get_libdir)/paxtest || die
-}
-
-src_install() {
- make DESTDIR="${D}" BINDIR=/usr/bin RUNDIR=/usr/$(get_libdir)/paxtest install || die
- for doc in Changelog README ;do
- [[ -f ${doc} ]] && dodoc ${doc}
- done
-}
diff --git a/app-admin/paxtest/paxtest-0.9.7_pre4.ebuild b/app-admin/paxtest/paxtest-0.9.7_pre4.ebuild
deleted file mode 100644
index 43712b1f2589..000000000000
--- a/app-admin/paxtest/paxtest-0.9.7_pre4.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/paxtest/paxtest-0.9.7_pre4.ebuild,v 1.4 2009/10/11 23:39:34 halcy0n Exp $
-
-inherit eutils multilib
-
-MY_P=${P/_/-}
-DESCRIPTION="PaX regression test suite"
-HOMEPAGE="http://www.adamantix.org/paxtest/"
-#SRC_URI="http://www.adamantix.org/paxtest/${MY_P}.tar.gz"
-SRC_URI="http://pax.grsecurity.net/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
-# EI_PAX flags are not strip safe.
-RESTRICT="strip"
-S=${WORKDIR}/${MY_P}
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- >=sys-apps/chpax-0.7
- sys-apps/paxctl"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- cp "${FILESDIR}"/Makefile.psm5 "${S}"/Makefile || die
- sed -i 's:-O2:${CFLAGS}:' "${S}"/Makefile
-}
-
-src_compile() {
- emake DESTDIR="${D}" BINDIR="${D}"/usr/bin RUNDIR=/usr/$(get_libdir)/paxtest || die
-}
-
-src_install() {
- make DESTDIR="${D}" BINDIR=/usr/bin RUNDIR=/usr/$(get_libdir)/paxtest install || die
- for doc in Changelog README ; do
- [[ -f ${doc} ]] && dodoc ${doc}
- done
-}