[pkgutils-cross][PATCH] Makefile: build shared so that fakeroot will work.
I have tested this for my builds of the crossrootfs and have had no issues. A few minor tweaks in devtools/buildAllPackages.sh: patch forthcoming. .gitignore: add pkginfo. pkgmk-cross.conf: not all shells define MACHTYPE, so use gcc -dumpmachine to get the host triple. --- .gitignore | 1 + Makefile | 4 ++-- pkgmk-cross.conf | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e2c7965..615a564 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.8 *.5 pkgadd +pkginfo pkgmk rejmerge diff --git a/Makefile b/Makefile index bd733fb..d7b5072 100644 --- a/Makefile +++ b/Makefile @@ -32,9 +32,9 @@ CXXFLAGS += -DNDEBUG CXXFLAGS += -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" \ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -LIBARCHIVELIBS := $(shell pkg-config --libs --static libarchive) +LIBARCHIVELIBS := $(shell pkg-config --libs libarchive) -LDFLAGS += -static $(LIBARCHIVELIBS) +LDFLAGS += $(LIBARCHIVELIBS) OBJECTS = main.o pkgutil.o pkgadd.o pkgrm.o pkginfo.o diff --git a/pkgmk-cross.conf b/pkgmk-cross.conf index 00f8361..482b9b2 100644 --- a/pkgmk-cross.conf +++ b/pkgmk-cross.conf @@ -2,7 +2,7 @@ # pkgmk.conf: pkgmk(8) configuration # -export CHOST="$(echo $MACHTYPE)" +export CHOST="$(gcc -dumpmachine)" # hardfp (mainline) export CTARGET="arm-crux-linux-gnueabihf" -- 2.7.4
El 13/05/16 a las 02:56, John Vogel escribió:
I have tested this for my builds of the crossrootfs and have had no issues. A few minor tweaks in devtools/buildAllPackages.sh: patch forthcoming.
Thank you very much for your patches John.
.gitignore: add pkginfo. pkgmk-cross.conf: not all shells define MACHTYPE, so use gcc -dumpmachine to get the host triple. --- .gitignore | 1 + Makefile | 4 ++-- pkgmk-cross.conf | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore index e2c7965..615a564 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.8 *.5 pkgadd +pkginfo pkgmk rejmerge
diff --git a/Makefile b/Makefile index bd733fb..d7b5072 100644 --- a/Makefile +++ b/Makefile @@ -32,9 +32,9 @@ CXXFLAGS += -DNDEBUG CXXFLAGS += -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" \ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-LIBARCHIVELIBS := $(shell pkg-config --libs --static libarchive) +LIBARCHIVELIBS := $(shell pkg-config --libs libarchive)
-LDFLAGS += -static $(LIBARCHIVELIBS) +LDFLAGS += $(LIBARCHIVELIBS)
OBJECTS = main.o pkgutil.o pkgadd.o pkgrm.o pkginfo.o
diff --git a/pkgmk-cross.conf b/pkgmk-cross.conf index 00f8361..482b9b2 100644 --- a/pkgmk-cross.conf +++ b/pkgmk-cross.conf @@ -2,7 +2,7 @@ # pkgmk.conf: pkgmk(8) configuration #
-export CHOST="$(echo $MACHTYPE)" +export CHOST="$(gcc -dumpmachine)"
# hardfp (mainline) export CTARGET="arm-crux-linux-gnueabihf" Applied: https://crux-arm.nu/gitweb?p=pkgutils-cross.git;a=commit;h=72562ad240255c629...
Regads, -- Victor Martinez Learning bit by bit | http://vjml.es
participants (2)
-
John Vogel
-
Víctor Martínez