mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
1.38.0 starts introducing GNU argz functions in libutil, zconf, zkey. Since those argz functions are fairly simple, we now pack them with s390-tools package. The only sub program is missing is cpuplugd due to missing feenableexcept functions. Add new dev packages for building zkey. Remove zipl pie patch since building zipl with pie is built-in. Update license, maintainer, description, repository (version 2.0.0 is a relicensed of 1.39.0 without any changes).
146 lines
4.3 KiB
Diff
146 lines
4.3 KiB
Diff
diff --git a/Makefile b/Makefile
|
|
index 6081acc..fe8dd2f 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -3,7 +3,7 @@ ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/ar
|
|
# Include common definitions
|
|
include common.mak
|
|
|
|
-LIB_DIRS = libvtoc libu2s libutil libzds libdasd libvmdump libccw libvmcp
|
|
+LIB_DIRS = libargz libvtoc libu2s libutil libzds libdasd libvmdump libccw libvmcp
|
|
TOOL_DIRS = zipl zdump fdasd dasdfmt dasdview tunedasd \
|
|
tape390 osasnmpd qetharp ip_watcher qethconf scripts zconf \
|
|
vmconvert vmcp man mon_tools dasdinfo vmur ipl_tools \
|
|
diff --git a/common.mak b/common.mak
|
|
index 0a5fd69..c6f429c 100644
|
|
--- a/common.mak
|
|
+++ b/common.mak
|
|
@@ -312,6 +312,10 @@ endif
|
|
# check the library directory via "make -C" when the tools Makefile is
|
|
# processed.
|
|
|
|
+$(rootdir)/libargz/libargz.a: $(rootdir)/libargz
|
|
+ $(MAKE) -C $(rootdir)/libargz/ libargz.a
|
|
+.PHONY: $(rootdir)/libargz
|
|
+
|
|
$(rootdir)/libutil/libutil.a: $(rootdir)/libutil
|
|
$(MAKE) -C $(rootdir)/libutil/ libutil.a
|
|
.PHONY: $(rootdir)/libutil
|
|
diff --git a/zconf/chp/Makefile b/zconf/chp/Makefile
|
|
index 2e3065f..486d469 100644
|
|
--- a/zconf/chp/Makefile
|
|
+++ b/zconf/chp/Makefile
|
|
@@ -2,7 +2,7 @@ include ../../common.mak
|
|
|
|
all: chchp lschp
|
|
|
|
-libs = $(rootdir)/libutil/libutil.a
|
|
+libs = $(rootdir)/libutil/libutil.a $(rootdir)/libargz/libargz.a
|
|
|
|
chchp: chchp.o $(libs)
|
|
lschp: lschp.o $(libs)
|
|
diff --git a/zconf/css/Makefile b/zconf/css/Makefile
|
|
index 2a36820..749cc6e 100644
|
|
--- a/zconf/css/Makefile
|
|
+++ b/zconf/css/Makefile
|
|
@@ -2,7 +2,8 @@
|
|
include ../../common.mak
|
|
|
|
libs = $(rootdir)/libccw/libccw.a \
|
|
- $(rootdir)/libutil/libutil.a
|
|
+ $(rootdir)/libutil/libutil.a \
|
|
+ $(rootdir)/libargz/libargz.a
|
|
|
|
objects = lscss.o misc.o
|
|
|
|
diff --git a/zconf/qeth/Makefile b/zconf/qeth/Makefile
|
|
index 43716a3..f69d4f0 100644
|
|
--- a/zconf/qeth/Makefile
|
|
+++ b/zconf/qeth/Makefile
|
|
@@ -2,7 +2,7 @@ include ../../common.mak
|
|
|
|
all: lsqeth
|
|
|
|
-libs = $(rootdir)/libvmcp/libvmcp.a $(rootdir)/libutil/libutil.a
|
|
+libs = $(rootdir)/libvmcp/libvmcp.a $(rootdir)/libutil/libutil.a $(rootdir)/libargz/libargz.a
|
|
|
|
lsqeth: lsqeth.o misc.o $(libs)
|
|
|
|
diff --git a/zconf/scm/Makefile b/zconf/scm/Makefile
|
|
index 12faf44..1d9ec36 100644
|
|
--- a/zconf/scm/Makefile
|
|
+++ b/zconf/scm/Makefile
|
|
@@ -2,7 +2,7 @@ include ../../common.mak
|
|
|
|
all: lsscm
|
|
|
|
-libs = $(rootdir)/libutil/libutil.a
|
|
+libs = $(rootdir)/libutil/libutil.a $(rootdir)/libargz/libargz.a
|
|
|
|
lsscm: lsscm.o $(libs)
|
|
|
|
diff --git a/zconf/zcrypt/Makefile b/zconf/zcrypt/Makefile
|
|
index d075f34..a1744a4 100644
|
|
--- a/zconf/zcrypt/Makefile
|
|
+++ b/zconf/zcrypt/Makefile
|
|
@@ -2,7 +2,7 @@ include ../../common.mak
|
|
|
|
all: chzcrypt lszcrypt zcryptctl
|
|
|
|
-libs = $(rootdir)/libutil/libutil.a
|
|
+libs = $(rootdir)/libutil/libutil.a $(rootdir)/libargz/libargz.a
|
|
|
|
chzcrypt: chzcrypt.o misc.o $(libs)
|
|
lszcrypt: lszcrypt.o misc.o $(libs)
|
|
diff --git a/zkey/Makefile b/zkey/Makefile
|
|
index a44b14b..48c02fb 100644
|
|
--- a/zkey/Makefile
|
|
+++ b/zkey/Makefile
|
|
@@ -22,7 +22,7 @@ else
|
|
INSTALL_TARGETS += zkey-cryptsetup-skip-cryptsetup2
|
|
endif
|
|
|
|
-libs = $(rootdir)/libutil/libutil.a
|
|
+libs = $(rootdir)/libutil/libutil.a $(rootdir)/libargz/libargz.a
|
|
|
|
detect-libcryptsetup.dep:
|
|
echo "#include <libcryptsetup.h>" > detect-libcryptsetup.dep
|
|
@@ -70,11 +70,11 @@ properties.o: check-dep-zkey properties.c properties.h
|
|
keystore.o: keystore.c keystore.h properties.h
|
|
zkey-cryptsetup.o: check-dep-zkey-cryptsetup zkey-cryptsetup.c pkey.h misc.h
|
|
|
|
-zkey: LDLIBS = -ldl -lcrypto
|
|
+zkey: LDLIBS = -ldl -lcrypto $(LIBEXECINFO_LIBS)
|
|
zkey: zkey.o pkey.o properties.o keystore.o $(libs)
|
|
$(LINK) $(ALL_LDFLAGS) $^ $(LDLIBS) -o $@
|
|
|
|
-zkey-cryptsetup: LDLIBS = -ldl -lcryptsetup -ljson-c
|
|
+zkey-cryptsetup: LDLIBS = -ldl -lcryptsetup -ljson-c $(LIBEXECINFO_LIBS)
|
|
zkey-cryptsetup: zkey-cryptsetup.o pkey.o $(libs)
|
|
$(LINK) $(ALL_LDFLAGS) $^ $(LDLIBS) -o $@
|
|
|
|
diff --git a/zkey/keystore.c b/zkey/keystore.c
|
|
index 9dcac07..2f87798 100644
|
|
--- a/zkey/keystore.c
|
|
+++ b/zkey/keystore.c
|
|
@@ -23,6 +23,7 @@
|
|
#include <sys/file.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
+#include <fcntl.h>
|
|
|
|
#include "lib/util_base.h"
|
|
#include "lib/util_file.h"
|
|
diff --git a/libutil/Makefile b/libutil/Makefile
|
|
index ca90f2a..3042f3d 100644
|
|
--- a/libutil/Makefile
|
|
+++ b/libutil/Makefile
|
|
@@ -1,6 +1,6 @@
|
|
include ../common.mak
|
|
|
|
-lib = libutil.a
|
|
+lib = libutil.a $(rootdir)/libargz/libargz.a
|
|
|
|
examples = util_base_example \
|
|
util_panic_example \
|