summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-30 03:27:24 +0000
committerMike Frysinger <vapier@gentoo.org>2010-08-30 03:27:24 +0000
commit86f40b47014b8e00cc62e50abf646e5d27749b56 (patch)
tree5c99296b981195418c351d658aa8f78cc60f9f73 /sys-apps/s390-tools
parentstabilize (diff)
downloadgentoo-2-86f40b47014b8e00cc62e50abf646e5d27749b56.tar.gz
gentoo-2-86f40b47014b8e00cc62e50abf646e5d27749b56.tar.bz2
gentoo-2-86f40b47014b8e00cc62e50abf646e5d27749b56.zip
Version bump.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/s390-tools')
-rw-r--r--sys-apps/s390-tools/ChangeLog10
-rw-r--r--sys-apps/s390-tools/files/s390-tools-1.9.0-build.patch156
-rw-r--r--sys-apps/s390-tools/metadata.xml1
-rw-r--r--sys-apps/s390-tools/s390-tools-1.9.0.ebuild58
4 files changed, 223 insertions, 2 deletions
diff --git a/sys-apps/s390-tools/ChangeLog b/sys-apps/s390-tools/ChangeLog
index 8bb88087c1b9..a41ead554247 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.19 2009/10/18 18:02:40 vapier Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/ChangeLog,v 1.20 2010/08/30 03:27:23 vapier Exp $
+
+*s390-tools-1.9.0 (30 Aug 2010)
+
+ 30 Aug 2010; Mike Frysinger <vapier@gentoo.org> +s390-tools-1.9.0.ebuild,
+ +files/s390-tools-1.9.0-build.patch, metadata.xml:
+ Version bump.
*s390-tools-1.8.3 (18 Oct 2009)
diff --git a/sys-apps/s390-tools/files/s390-tools-1.9.0-build.patch b/sys-apps/s390-tools/files/s390-tools-1.9.0-build.patch
new file mode 100644
index 000000000000..38d3e3f954d0
--- /dev/null
+++ b/sys-apps/s390-tools/files/s390-tools-1.9.0-build.patch
@@ -0,0 +1,156 @@
+ - fix errors in subdir makes
+ - parallelize subdir runs
+ - cleanup flag handling
+
+--- a/Makefile
++++ b/Makefile
+@@ -9,19 +9,19 @@
+ vmconvert vmcp man mon_tools dasdinfo vmur cpuplugd ipl_tools \
+ ziomon iucvterm cmsfs-fuse
+
+-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)
+--- a/common.mak
++++ b/common.mak
+@@ -17,10 +17,10 @@
+ # 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 @@
+ else
+ WARNFLAGS = -W -Wall
+ endif
+-CFLAGS = $(WARNFLAGS) -O3 -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
+- -g $(OPT_FLAGS)
+-CXXFLAGS = $(WARNFLAGS) -O3 -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
+- -g $(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 @@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
+
+ %: %.o
+- $(LINK) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
++ $(LINK) $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
+
+ all:
+
+--- a/zfcpdump/ramdisk/Makefile
++++ b/zfcpdump/ramdisk/Makefile
+@@ -12,16 +12,14 @@
+
+ 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 @@
+ clean clobber:
+ /bin/sh ./create_rd.sh -r
+ rm -f *.o
+-
+-%.o: %.c
+- $(CC) $(CFLAGS) -c -o $@ $<
+--- a/zfcpdump_v2/Makefile
++++ b/zfcpdump_v2/Makefile
+@@ -6,12 +6,13 @@
+ 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
+--- a/zipl/boot/Makefile
++++ b/zipl/boot/Makefile
+@@ -3,9 +3,8 @@
+
+ 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 @@
+ %: %.S
+
+ %.o: %.S
+- $(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+ %.exec: %.o
+ @STAGE=$$( \
+@@ -34,7 +33,7 @@
+ 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/metadata.xml b/sys-apps/s390-tools/metadata.xml
index d3c8202b7790..7826fccb1129 100644
--- a/sys-apps/s390-tools/metadata.xml
+++ b/sys-apps/s390-tools/metadata.xml
@@ -10,6 +10,7 @@ A set of user space utilities that should be used together with the
zSeries (s390) Linux kernel and device drivers
</longdescription>
<use>
+ <flag name='fuse'>build cmsfs-fuse to read files stored on a z/VM CMS disk</flag>
<flag name='zfcpdump'>build the kernel disk dumping utility</flag>
</use>
</pkgmetadata>
diff --git a/sys-apps/s390-tools/s390-tools-1.9.0.ebuild b/sys-apps/s390-tools/s390-tools-1.9.0.ebuild
new file mode 100644
index 000000000000..885d56fddc14
--- /dev/null
+++ b/sys-apps/s390-tools/s390-tools-1.9.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2010 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.9.0.ebuild,v 1.1 2010/08/30 03:27:24 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/s390-tools.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="fuse snmp zfcpdump"
+
+RDEPEND="sys-fs/sysfsutils
+ fuse? ( sys-fs/fuse )
+ 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}"/${PN}-1.9.0-build.patch
+
+ use snmp || sed -i -e 's:osasnmpd::' Makefile
+ use fuse || { sed -i -e 's:cmsfs-fuse::' Makefile; export WITHOUT_FUSE=1; }
+
+ 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
+
+ export MAKEOPTS+=" V=1"
+}
+
+src_install() {
+ emake install INSTROOT="${D}" USRBINDIR="${D}/sbin" || die
+ dodoc README
+ insinto /etc/udev/rules.d
+ doins etc/udev/rules.d/*.rules || die
+}