diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-18 18:02:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-10-18 18:02:40 +0000 |
commit | 2b830bdcf65402a3606303bf6ba1eb11285d8acd (patch) | |
tree | 82a378ca42a80e52d1a2b6e557e828a1668ce09d /sys-apps | |
parent | Respect XDG_MENU_PREFIX (bug #288914). Set SUPPORT_PYTHON_ABIS. (diff) | |
download | gentoo-2-2b830bdcf65402a3606303bf6ba1eb11285d8acd.tar.gz gentoo-2-2b830bdcf65402a3606303bf6ba1eb11285d8acd.tar.bz2 gentoo-2-2b830bdcf65402a3606303bf6ba1eb11285d8acd.zip |
Version bump.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/s390-tools/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/s390-tools/files/s390-tools-1.8.3-build.patch | 166 | ||||
-rw-r--r-- | sys-apps/s390-tools/s390-tools-1.8.3.ebuild | 54 |
3 files changed, 227 insertions, 1 deletions
diff --git a/sys-apps/s390-tools/ChangeLog b/sys-apps/s390-tools/ChangeLog index 761e955515bd..8bb88087c1b9 100644 --- a/sys-apps/s390-tools/ChangeLog +++ b/sys-apps/s390-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/s390-tools # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/ChangeLog,v 1.18 2009/01/11 08:56:20 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/ChangeLog,v 1.19 2009/10/18 18:02:40 vapier Exp $ + +*s390-tools-1.8.3 (18 Oct 2009) + + 18 Oct 2009; Mike Frysinger <vapier@gentoo.org> +s390-tools-1.8.3.ebuild, + +files/s390-tools-1.8.3-build.patch: + Version bump. 11 Jan 2009; Mike Frysinger <vapier@gentoo.org> s390-tools-1.6.2.ebuild, s390-tools-1.8.0.ebuild: diff --git a/sys-apps/s390-tools/files/s390-tools-1.8.3-build.patch b/sys-apps/s390-tools/files/s390-tools-1.8.3-build.patch new file mode 100644 index 000000000000..2ca1a7324e8c --- /dev/null +++ b/sys-apps/s390-tools/files/s390-tools-1.8.3-build.patch @@ -0,0 +1,166 @@ + - fix errors in subdir makes + - parallelize subdir runs + - cleanup flag handling + +diff --git a/Makefile b/Makefile +index 4b798bc..6be2a86 100644 +--- a/Makefile ++++ b/Makefile +@@ -9,19 +9,19 @@ SUB_DIRS = $(LIB_DIRS) zipl zdump fdasd dasdfmt dasdview tunedasd \ + vmconvert vmcp man mon_tools dasdinfo vmur cpuplugd ipl_tools \ + ziomon iucvterm + +-all: subdirs_make ++SUB_DIRS_ALL = $(patsubst %,subdirs_all_%,$(SUB_DIRS)) ++SUB_DIRS_CLEAN = $(patsubst %,subdirs_clean_%,$(SUB_DIRS)) ++SUB_DIRS_INSTALL = $(patsubst %,subdirs_install_%,$(SUB_DIRS)) + +-subdirs_make: +- set -e ; for dir in $(SUB_DIRS) ; do \ +- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH); cd .. ); \ +- done ++all: $(SUB_DIRS_ALL) + +-clean: +- set -e ; for dir in $(SUB_DIRS) ; do \ +- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) clean; cd .. ); \ +- done ++_subdir = $(patsubst subdirs_%,%,$@) ++subdir = $(shell expr $(_subdir) : '[^_]*_\(.*\)') ++subtarget = $(shell expr $(_subdir) : '\([^_]*\)_.*') ++subdirs_%: ++ $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) -C $(subdir) $(subtarget) ++ ++clean: $(SUB_DIRS_CLEAN) + + install: +- set -e ; for dir in $(SUB_DIRS) ; do \ +- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) install; cd .. ); \ +- done ++ $(MAKE) $(SUB_DIRS_INSTALL) +diff --git a/common.mak b/common.mak +index a73447c..c6464e4 100644 +--- a/common.mak ++++ b/common.mak +@@ -17,10 +17,10 @@ reldir = $(subst $(shell cd -P $(dir $(filter %common.mak,$(MAKEFILE_LIST))); \ + # Cross Compiling Support + CROSS_COMPILE = + AS = $(call echocmd," AS ",/$@)$(CROSS_COMPILE)as +-LINK = $(call echocmd," LINK ",/$@)$(CROSS_COMPILE)gcc ++LINK = $(call echocmd," LINK ",/$@)$(CROSS_COMPILE)gcc $(CFLAGS) $(LDFLAGS) + LD = $(call echocmd," LD ",/$@)$(CROSS_COMPILE)ld + CC = $(call echocmd," CC ",/$@)$(CROSS_COMPILE)gcc +-LINKXX = $(call echocmd," LINKXX ",/$@)$(CROSS_COMPILE)g++ ++LINKXX = $(call echocmd," LINKXX ",/$@)$(CROSS_COMPILE)g++ $(CXXFLAGS) $(LDFLAGS) + CXX = $(call echocmd," CXX ",/$@)$(CROSS_COMPILE)g++ + CPP = $(call echocmd," CPP ",/$@)$(CROSS_COMPILE)gcc -E + AR = $(call echocmd," AR ",/$@)$(CROSS_COMPILE)ar +@@ -41,11 +41,10 @@ ifneq ("${W}","1") + else + WARNFLAGS = -W -Wall + endif +-CFLAGS = $(WARNFLAGS) -O3 -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \ +- $(OPT_FLAGS) +-CXXFLAGS = $(WARNFLAGS) -O3 -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \ +- $(OPT_FLAGS) +-export AS LD CC CPP AR NM STRIP OBJCOPY OBJDUMP INSTALL CFLAGS ++CFLAGS += $(WARNFLAGS) $(OPT_FLAGS) ++CXXFLAGS += $(WARNFLAGS) $(OPT_FLAGS) ++CPPFLAGS += -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) ++export AS LD CC CPP AR NM STRIP OBJCOPY OBJDUMP INSTALL CFLAGS CXXFLAGS CPPFLAGS + + # Support alternate install root + INSTROOT = +@@ -76,7 +75,7 @@ export ZFCPDUMP_DIR ZFCPDUMP_IMAGE ZFCPDUMP_RD + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< + + %: %.o +- $(LINK) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ ++ $(LINK) $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ + + all: + +diff --git a/zfcpdump/ramdisk/Makefile b/zfcpdump/ramdisk/Makefile +index d878a44..349f1ac 100644 +--- a/zfcpdump/ramdisk/Makefile ++++ b/zfcpdump/ramdisk/Makefile +@@ -12,16 +12,14 @@ ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/ar + + all: $(ZFCPDUMP_RD) + +-CFLAGS += -D_FILE_OFFSET_BITS=64 ++CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I../../include ++LDFLAGS += -static ++LDLIBS += -lz + + $(ZFCPDUMP_RD): zfcp_dumper + /bin/sh ./create_rd.sh $(ARCH) + +-zfcp_dumper: zfcp_dumper.o +- $(CC) -o zfcp_dumper -static zfcp_dumper.o -lz +- + zfcp_dumper.o: zfcp_dumper.c zfcp_dumper.h +- $(CC) $(CFLAGS) -c -I../../include zfcp_dumper.c + + install: $(ZFCPDUMP_RD) + /bin/sh ./create_rd.sh -i +@@ -29,6 +27,3 @@ install: $(ZFCPDUMP_RD) + clean clobber: + /bin/sh ./create_rd.sh -r + rm -f *.o +- +-%.o: %.c +- $(CC) $(CFLAGS) -c -o $@ $< +diff --git a/zfcpdump_v2/Makefile b/zfcpdump_v2/Makefile +index 2b1b8f8..5ae3559 100644 +--- a/zfcpdump_v2/Makefile ++++ b/zfcpdump_v2/Makefile +@@ -6,12 +6,13 @@ LINUX_VERSION := 2.6.27 + LINUX_DIR := linux-$(LINUX_VERSION) + E2FSPROGS := e2fsprogs-1.41.3 + +-CFLAGS += -D_FILE_OFFSET_BITS=64 ++CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DGZIP_SUPPORT ++LDFLAGS += -static ++LDLIBS += -lz + + all: zfcpdump.image + + zfcpdump: zfcpdump.c zfcpdump.h +- $(CC) $(CFLAGS) -D GZIP_SUPPORT -static -o $@ zfcpdump.c -lz + + e2fsck: + tar xfzv $(E2FSPROGS).tar.gz +diff --git a/zipl/boot/Makefile b/zipl/boot/Makefile +index f558b76..d16b376 100644 +--- a/zipl/boot/Makefile ++++ b/zipl/boot/Makefile +@@ -3,9 +3,8 @@ include ../../common.mak + + S390_TOOLS_VERSION_EBCDIC := $(shell echo -n $(S390_TOOLS_RELEASE) | dd conv=ebcdic 2> /dev/null | hexdump -v -e '/1 "0x%02x,"' | sed 's/.$$//') + +-CFLAGS += -I../include -D__ASSEMBLY__ \ ++CPPFLAGS += -I../include -D__ASSEMBLY__ \ + -DS390_TOOLS_VERSION_EBCDIC=$(S390_TOOLS_VERSION_EBCDIC) +-LDFLAGS = -O2 + FILES := fba0.bin fba2.bin eckd0.bin eckd1a.bin eckd1b.bin eckd2.bin \ + eckd2dump.bin tapedump.bin stage3.bin tape0.bin fba2dump.bin \ + eckd2mvdump.bin +@@ -16,7 +15,7 @@ all: data.o data.h tape0.bin + %: %.S + + %.o: %.S +- $(CC) $(CFLAGS) -c -o $@ $< ++ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + + %.exec: %.o + @STAGE=$$( \ +@@ -34,7 +33,7 @@ all: data.o data.h tape0.bin + 2) SFLAGS="-nostdlib -Wl,-Ttext,0x2000";; \ + 3) SFLAGS="-nostdlib -Wl,-Ttext,0xA000";; \ + esac; \ +- $(LINK) $(LDFLAGS) -o $@ $$SFLAGS $< ++ $(LINK) -o $@ $$SFLAGS $< + + %.bin: %.exec + $(OBJCOPY) -O binary --only-section=.text $< $@ diff --git a/sys-apps/s390-tools/s390-tools-1.8.3.ebuild b/sys-apps/s390-tools/s390-tools-1.8.3.ebuild new file mode 100644 index 000000000000..6f3bea8bf497 --- /dev/null +++ b/sys-apps/s390-tools/s390-tools-1.8.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/s390-tools-1.8.3.ebuild,v 1.1 2009/10/18 18:02:40 vapier Exp $ + +inherit eutils + +# look at zfcpdump_v2/README +E2FSPROGS_P=e2fsprogs-1.41.3 +LINUX_P=linux-2.6.27 + +DESCRIPTION="A set of user space utilities that should be used together with the zSeries (s390) Linux kernel and device drivers" +HOMEPAGE="http://www.ibm.com/developerworks/linux/linux390/october2005_recommended.html" +SRC_URI="http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/${P}.tar.bz2 + zfcpdump? ( + mirror://sourceforge/e2fsprogs/${E2FSPROGS_P}.tar.gz + mirror://kernel/linux/kernel/v2.6/${LINUX_P}.tar.bz2 + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~s390" +IUSE="snmp zfcpdump" + +RDEPEND="sys-fs/sysfsutils + snmp? ( net-analyzer/net-snmp )" +DEPEND="${RDEPEND} + dev-util/indent + app-admin/genromfs" +PROVIDE="virtual/bootloader" + +src_unpack() { + unpack ${P}.tar.bz2 + cd "${S}" + + epatch "${FILESDIR}"/${P}-build.patch + + use snmp || sed -i -e 's:osasnmpd::' Makefile + + if use zfcpdump ; then + local x + for x in ${E2FSPROGS_P}.tar.gz ${LINUX_P}.tar.bz2 ; do + ln -s "${DISTDIR}"/${x} zfcpdump/${x} || die "ln ${x}" + done + sed -i -e '/^ZFCPDUMP_DIR/s:local/::' common.mak + sed -i -e '/^SUB_DIRS/s:=:=zfcpdump_v2 :' Makefile + fi +} + +src_install() { + emake install INSTROOT="${D}" USRBINDIR="${D}/sbin" || die + dodoc README + insinto /etc/udev/rules.d + doins etc/udev/rules.d/*.rules || die +} |