From 7f51d77557f1f443958634c1c887c7844fc132d4 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 24 Jun 2019 14:04:44 -0400 Subject: build: Install legacy ABI files --- (limited to 'build') diff --git a/build b/build index a2b854f..e85ea13 100755 --- a/build +++ b/build @@ -4,6 +4,7 @@ include ../source.mk builddir = obj_$$(printf '%s' $@ | sed 's/^[^_]*_//') abi_ver = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | sed 's/[.].*//') +legacy_abi_ver = $$(($(abi_ver) - 1)) common_opts = \ --without-ada \ --without-tests \ @@ -27,9 +28,11 @@ build_ncursesw_opts = $(common_opts) \ --disable-overwrite \ --enable-widec build_ncurses_legacy_opts = $(build_ncurses_opts) \ - --with-abi-version=$$(($(abi_ver) - 1)) + --with-install-prefix="$${PWD}/dest-legacy" \ + --with-abi-version=$(legacy_abi_ver) build_ncursesw_legacy_opts = $(build_ncurses_opts) \ - --with-abi-version=$$(($(abi_ver) - 1)) + --with-install-prefix="$${PWD}/dest-legacy" \ + --with-abi-version=$(legacy_abi_ver) nop: @: @@ -56,5 +59,12 @@ install: build mkdir -p terminfo-linux.data/usr/share/terminfo/l/ mv dest/usr/share/terminfo/l/linux \ terminfo-linux.data/usr/share/terminfo/l/linux - oh-installfiles + OPK_PACKAGES="\ + $$(printf '%s\n' $${OPK_PACKAGES} | \ + grep -Ev "lib.*[.]$(legacy_abi_ver)(-dev)?") \ + "oh-installfiles + OPK_PACKAGES="\ + $$(printf '%s\n' $${OPK_PACKAGES} | \ + grep -E "lib.*[.]$(legacy_abi_ver)(-dev)?") \ + " oh-installfiles -d dest-legacy oh-shlibdeps -- cgit v0.9.1