From d83763c892fe347b0784839e5a4d0197ea773f33 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 20 Dec 2019 23:47:13 +0000 Subject: system/abuild: support dev and symbols metapackages --- system/abuild/APKBUILD | 12 +++++------- system/abuild/auto-dev-symbols.patch | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 system/abuild/auto-dev-symbols.patch (limited to 'system/abuild') diff --git a/system/abuild/APKBUILD b/system/abuild/APKBUILD index 30428a27c..cb6cb9ba9 100644 --- a/system/abuild/APKBUILD +++ b/system/abuild/APKBUILD @@ -1,10 +1,11 @@ # Maintainer: A. Wilcox pkgname=abuild pkgver=3.3.1 -pkgrel=2 +pkgrel=3 pkgdesc="Script to build APK packages" url="https://code.foxkit.us/adelie/abuild" arch="all" +options="suid !check" license="GPL-2.0-only" depends="fakeroot sudo pax-utils openssl apk-tools>=2.0.7-r1 libc-utils attr libarchive-tools pkgconf patch lzip" @@ -16,10 +17,10 @@ makedepends_host="openssl-dev zlib-dev" makedepends="$makedepends_host $makedepends_build" install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages="abuild-rootbld:_rootbld:noarch $pkgname-doc" -options="suid !check" pkggroups="abuild" source="https://distfiles.adelielinux.org/source/abuild-$pkgver+adelie.tar.xz keyhole.patch + auto-dev-symbols.patch " builddir="$srcdir/$pkgname-$pkgver+adelie" @@ -30,18 +31,14 @@ builddir="$srcdir/$pkgname-$pkgver+adelie" prepare() { default_prepare - cd "$builddir" sed -i -e "/^CHOST=/s/=.*/=$CHOST/" abuild.conf } build() { - cd "$builddir" make VERSION="$pkgver-r$pkgrel" } package() { - cd "$builddir" - make install VERSION="$pkgver-r$pkgrel" DESTDIR="$pkgdir" install -m 644 abuild.conf "$pkgdir"/etc/abuild.conf @@ -60,4 +57,5 @@ _rootbld() { } sha512sums="c358f84d198527eeeac1a1aacc101174e18f9f34f692b12a4e4deb6b32d5f3ebdc703c90de6a6f81f195a81eebb90a11f9bfea13ef5db531d9b5d5ae6ecd6a66 abuild-3.3.1+adelie.tar.xz -757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch" +757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch +2aa43539fc465f5abdc7c3d994363b80d1f7494c2d659093e5a2c45056e07617506ad8ea98f0e7d4ebe2596802b76605cd7c9f3ffc5a30c488c30bb36248e3d2 auto-dev-symbols.patch" diff --git a/system/abuild/auto-dev-symbols.patch b/system/abuild/auto-dev-symbols.patch new file mode 100644 index 000000000..1fbca7bad --- /dev/null +++ b/system/abuild/auto-dev-symbols.patch @@ -0,0 +1,18 @@ +--- abuild-3.3.1+adelie/abuild.in.old 2019-03-07 00:48:00.110000000 +0000 ++++ abuild-3.3.1+adelie/abuild.in 2019-12-20 23:44:19.956669659 +0000 +@@ -1651,6 +1651,7 @@ + default_dbg() { + local f + pkgdesc="$pkgdesc (debug symbols)" ++ install_if="symbols $pkgname=$pkgver-r$pkgrel" + + binfiles=$(scanelf -R "$pkgdir" | grep ET_DYN | sed "s:$pkgdir\/::g" | sed "s:ET_DYN ::g") + for f in $binfiles; do +@@ -1681,6 +1682,7 @@ + local i= j= + depends="$depends_dev" + pkgdesc="$pkgdesc (development files)" ++ install_if="dev $pkgname=$pkgver-r$pkgrel" + + cd "$pkgdir" || return 0 + local libdirs=usr/ -- cgit v1.2.3-70-g09d2 From 80bc6205d9fd45b32b0480c7ca43d085ef41f2ae Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 14 Jan 2020 11:05:52 +0000 Subject: system/abuild: Now with more modern APKBUILD generation --- system/abuild/APKBUILD | 8 ++- system/abuild/bang.patch | 10 +++ system/abuild/modernise.patch | 164 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 180 insertions(+), 2 deletions(-) create mode 100644 system/abuild/bang.patch create mode 100644 system/abuild/modernise.patch (limited to 'system/abuild') diff --git a/system/abuild/APKBUILD b/system/abuild/APKBUILD index cb6cb9ba9..b2ccb8f8d 100644 --- a/system/abuild/APKBUILD +++ b/system/abuild/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: A. Wilcox pkgname=abuild pkgver=3.3.1 -pkgrel=3 +pkgrel=4 pkgdesc="Script to build APK packages" url="https://code.foxkit.us/adelie/abuild" arch="all" @@ -21,6 +21,8 @@ pkggroups="abuild" source="https://distfiles.adelielinux.org/source/abuild-$pkgver+adelie.tar.xz keyhole.patch auto-dev-symbols.patch + bang.patch + modernise.patch " builddir="$srcdir/$pkgname-$pkgver+adelie" @@ -58,4 +60,6 @@ _rootbld() { sha512sums="c358f84d198527eeeac1a1aacc101174e18f9f34f692b12a4e4deb6b32d5f3ebdc703c90de6a6f81f195a81eebb90a11f9bfea13ef5db531d9b5d5ae6ecd6a66 abuild-3.3.1+adelie.tar.xz 757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch -2aa43539fc465f5abdc7c3d994363b80d1f7494c2d659093e5a2c45056e07617506ad8ea98f0e7d4ebe2596802b76605cd7c9f3ffc5a30c488c30bb36248e3d2 auto-dev-symbols.patch" +2aa43539fc465f5abdc7c3d994363b80d1f7494c2d659093e5a2c45056e07617506ad8ea98f0e7d4ebe2596802b76605cd7c9f3ffc5a30c488c30bb36248e3d2 auto-dev-symbols.patch +0fccb03673f2f72a7bd2d2afd1c79141eeb73b3119e83fff966fb8a2851c0484912be70a7b384be1dc384c344cf27427e2fc2426c2f9bf56aa5625f32436524d bang.patch +b5b200da56c4319d332a7c5ddf38879fba0a4af723e1c6492f80a101afc8711d978dd7e1e5c31c80ed7fee15dcb19e7c449c92761b509a8063e417869885edc5 modernise.patch" diff --git a/system/abuild/bang.patch b/system/abuild/bang.patch new file mode 100644 index 000000000..7140f4dd8 --- /dev/null +++ b/system/abuild/bang.patch @@ -0,0 +1,10 @@ +diff --git a/abuild.in b/abuild.in +index acee26f..6e06f29 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -1,4 +1,4 @@ +-#!/bin/sh -e ++#!/bin/bash -e + + # abuild - build apk packages (light version of makepkg) + # Copyright (c) 2008-2015 Natanael Copa diff --git a/system/abuild/modernise.patch b/system/abuild/modernise.patch new file mode 100644 index 000000000..b87b098f9 --- /dev/null +++ b/system/abuild/modernise.patch @@ -0,0 +1,164 @@ +From 9221c1d06e9185b734d58c155764ed24fcfc48ed Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Tue, 14 Jan 2020 04:46:41 -0600 +Subject: [PATCH 1/2] newapkbuild: Drastically modernise output APKBUILD file + +--- + newapkbuild.in | 44 +++++++++++++++++++++++++++++++------------- + 1 file changed, 31 insertions(+), 13 deletions(-) + +diff --git a/newapkbuild.in b/newapkbuild.in +index 85f838f..dbcef14 100644 +--- a/newapkbuild.in ++++ b/newapkbuild.in +@@ -68,13 +68,9 @@ build_cmake() { + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \\ + -DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\ + -DCMAKE_C_FLAGS="\$CFLAGS" \\ +- \${CMAKE_CROSSOPTS} ++ \${CMAKE_CROSSOPTS} \\ ++ . + make +-} +- +-check() { +- cd "\$builddir" +- CTEST_OUTPUT_ON_FAILURE=TRUE ctest + __EOF__ + } + +@@ -115,6 +111,12 @@ check_make() { + __EOF__ + } + ++check_cmake() { ++ cat >>APKBUILD<<__EOF__ ++ CTEST_OUTPUT_ON_FAILURE=TRUE ctest ++__EOF__ ++} ++ + check_python() { + cat >>APKBUILD<<__EOF__ + python3 setup.py test +@@ -193,7 +195,7 @@ newaport() { + python) makedepends="python3-dev";; + cmake) makedepends="cmake";; + meson) makedepends="meson";; +- *) makedepends="\$depends_dev";; ++ *) makedepends="";; + esac + + # Replace pkgver in $source +@@ -226,9 +228,15 @@ url="$url" + arch="all" + license="$license" + depends="$depends" +-depends_dev="" + makedepends="$makedepends" ++__EOF__ ++ if [ -n "$install" ]; then ++ cat >>APKBUILD<<__EOF__ + install="$install" ++__EOF__ ++ fi ++ ++ cat >>APKBUILD<<__EOF__ + subpackages="\$pkgname-dev \$pkgname-doc" + source="$source" + __EOF__ +@@ -241,7 +249,12 @@ __EOF__ + builddir=$(echo ${i#*/} | sed "s/$pv/\$pkgver/g") + fi + done +- printf 'builddir="$srcdir/%s"\n\n' "$builddir" >> APKBUILD ++ if [ -n "$sdir" ] && [ "$sdir" = "src/$pkgname-$pv" ]; then ++ # No builddir needed. ++ : ++ else ++ printf 'builddir="$srcdir/%s"\n\n' "$builddir" >> APKBUILD ++ fi + + # Subpackage -dev is usually required only for C/C++. Since depends_dev + # confuses a lot people, remove it if there's no .h or .hpp file. +@@ -271,7 +284,6 @@ __EOF__ + # Create build() function + cat >>APKBUILD<<__EOF__ + build() { +- cd "\$builddir" + __EOF__ + + case "$buildtype" in +@@ -287,6 +299,8 @@ __EOF__ + build_perl;; + python) + build_python;; ++ *) ++ printf '# Add build instructions here.' >> APKBUILD + esac + + cat >>APKBUILD<<__EOF__ +@@ -297,14 +311,17 @@ __EOF__ + # Create check() function + cat >>APKBUILD<<__EOF__ + check() { +- cd "\$builddir" + __EOF__ + + case "$buildtype" in +- make|cmake|autotools|perl) ++ make|autotools|perl) + check_make;; ++ cmake) ++ check_cmake;; + python) + check_python;; ++ *) ++ printf '# Add test instructions here.' >> APKBUILD + esac + + cat >>APKBUILD<<__EOF__ +@@ -315,7 +332,6 @@ __EOF__ + # Create package() function + cat >>APKBUILD<<__EOF__ + package() { +- cd "\$builddir" + __EOF__ + + case "$buildtype" in +@@ -329,6 +345,8 @@ __EOF__ + package_perl;; + python) + package_python;; ++ *) ++ printf '# Add packaging instructions here.' >> APKBUILD + esac + + if [ -n "$cpinitd" ]; then +-- +2.24.1 + +From 59cb9822c0ac347d58f1c37627a58fe14dce965d Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Tue, 14 Jan 2020 04:47:36 -0600 +Subject: [PATCH 2/2] newapkbuild: Newline after source + +--- + newapkbuild.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/newapkbuild.in b/newapkbuild.in +index dbcef14..9c4ffbf 100644 +--- a/newapkbuild.in ++++ b/newapkbuild.in +@@ -251,7 +251,7 @@ __EOF__ + done + if [ -n "$sdir" ] && [ "$sdir" = "src/$pkgname-$pv" ]; then + # No builddir needed. +- : ++ printf '\n' >> APKBUILD + else + printf 'builddir="$srcdir/%s"\n\n' "$builddir" >> APKBUILD + fi +-- +2.24.1 + -- cgit v1.2.3-70-g09d2 From ad279d7b310bd4ab294d140bf00d8e220445a2aa Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 31 Jan 2020 11:10:22 +0000 Subject: system/abuild: Bump to 3.4 --- system/abuild/APKBUILD | 20 ++--- system/abuild/auto-dev-symbols.patch | 4 +- system/abuild/bang.patch | 10 --- system/abuild/modernise.patch | 164 ----------------------------------- 4 files changed, 9 insertions(+), 189 deletions(-) delete mode 100644 system/abuild/bang.patch delete mode 100644 system/abuild/modernise.patch (limited to 'system/abuild') diff --git a/system/abuild/APKBUILD b/system/abuild/APKBUILD index b2ccb8f8d..7acfc62bb 100644 --- a/system/abuild/APKBUILD +++ b/system/abuild/APKBUILD @@ -1,12 +1,13 @@ # Maintainer: A. Wilcox pkgname=abuild -pkgver=3.3.1 -pkgrel=4 +pkgver=3.4 +pkgrel=0 pkgdesc="Script to build APK packages" url="https://code.foxkit.us/adelie/abuild" arch="all" options="suid !check" license="GPL-2.0-only" +pkggroups="abuild" depends="fakeroot sudo pax-utils openssl apk-tools>=2.0.7-r1 libc-utils attr libarchive-tools pkgconf patch lzip" if [ "$CBUILD" = "$CHOST" ]; then @@ -15,16 +16,12 @@ fi makedepends_build="pkgconfig" makedepends_host="openssl-dev zlib-dev" makedepends="$makedepends_host $makedepends_build" -install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages="abuild-rootbld:_rootbld:noarch $pkgname-doc" -pkggroups="abuild" -source="https://distfiles.adelielinux.org/source/abuild-$pkgver+adelie.tar.xz +install="$pkgname.pre-install $pkgname.pre-upgrade" +source="https://distfiles.adelielinux.org/source/abuild-$pkgver.tar.xz keyhole.patch auto-dev-symbols.patch - bang.patch - modernise.patch " -builddir="$srcdir/$pkgname-$pkgver+adelie" # secfixes: # 3.3.1-r1: @@ -32,7 +29,6 @@ builddir="$srcdir/$pkgname-$pkgver+adelie" prepare() { default_prepare - sed -i -e "/^CHOST=/s/=.*/=$CHOST/" abuild.conf } @@ -58,8 +54,6 @@ _rootbld() { mkdir -p "$subpkgdir" } -sha512sums="c358f84d198527eeeac1a1aacc101174e18f9f34f692b12a4e4deb6b32d5f3ebdc703c90de6a6f81f195a81eebb90a11f9bfea13ef5db531d9b5d5ae6ecd6a66 abuild-3.3.1+adelie.tar.xz +sha512sums="c028641bcba421fd8e58bf3881aec26f6b9b8102af27d8106640a8b2a73e2688b1a9ac8377c9302f1781314137c3c47bf8636e03ef60b8969417eb4c5de6a82a abuild-3.4.tar.xz 757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch -2aa43539fc465f5abdc7c3d994363b80d1f7494c2d659093e5a2c45056e07617506ad8ea98f0e7d4ebe2596802b76605cd7c9f3ffc5a30c488c30bb36248e3d2 auto-dev-symbols.patch -0fccb03673f2f72a7bd2d2afd1c79141eeb73b3119e83fff966fb8a2851c0484912be70a7b384be1dc384c344cf27427e2fc2426c2f9bf56aa5625f32436524d bang.patch -b5b200da56c4319d332a7c5ddf38879fba0a4af723e1c6492f80a101afc8711d978dd7e1e5c31c80ed7fee15dcb19e7c449c92761b509a8063e417869885edc5 modernise.patch" +29de3a0c7a60e92fac735782c0e9ebb319813448380ebdf4651ef43a58e6a12074cacc22e8b9ba9be7f7d86e188d4cc486ce51bd2ddb1859114e71e4c44d8874 auto-dev-symbols.patch" diff --git a/system/abuild/auto-dev-symbols.patch b/system/abuild/auto-dev-symbols.patch index 1fbca7bad..65426d9dc 100644 --- a/system/abuild/auto-dev-symbols.patch +++ b/system/abuild/auto-dev-symbols.patch @@ -1,6 +1,6 @@ --- abuild-3.3.1+adelie/abuild.in.old 2019-03-07 00:48:00.110000000 +0000 +++ abuild-3.3.1+adelie/abuild.in 2019-12-20 23:44:19.956669659 +0000 -@@ -1651,6 +1651,7 @@ +@@ -1659,6 +1659,7 @@ default_dbg() { local f pkgdesc="$pkgdesc (debug symbols)" @@ -8,7 +8,7 @@ binfiles=$(scanelf -R "$pkgdir" | grep ET_DYN | sed "s:$pkgdir\/::g" | sed "s:ET_DYN ::g") for f in $binfiles; do -@@ -1681,6 +1682,7 @@ +@@ -1689,6 +1690,7 @@ local i= j= depends="$depends_dev" pkgdesc="$pkgdesc (development files)" diff --git a/system/abuild/bang.patch b/system/abuild/bang.patch deleted file mode 100644 index 7140f4dd8..000000000 --- a/system/abuild/bang.patch +++ /dev/null @@ -1,10 +0,0 @@ -diff --git a/abuild.in b/abuild.in -index acee26f..6e06f29 100644 ---- a/abuild.in -+++ b/abuild.in -@@ -1,4 +1,4 @@ --#!/bin/sh -e -+#!/bin/bash -e - - # abuild - build apk packages (light version of makepkg) - # Copyright (c) 2008-2015 Natanael Copa diff --git a/system/abuild/modernise.patch b/system/abuild/modernise.patch deleted file mode 100644 index b87b098f9..000000000 --- a/system/abuild/modernise.patch +++ /dev/null @@ -1,164 +0,0 @@ -From 9221c1d06e9185b734d58c155764ed24fcfc48ed Mon Sep 17 00:00:00 2001 -From: "A. Wilcox" -Date: Tue, 14 Jan 2020 04:46:41 -0600 -Subject: [PATCH 1/2] newapkbuild: Drastically modernise output APKBUILD file - ---- - newapkbuild.in | 44 +++++++++++++++++++++++++++++++------------- - 1 file changed, 31 insertions(+), 13 deletions(-) - -diff --git a/newapkbuild.in b/newapkbuild.in -index 85f838f..dbcef14 100644 ---- a/newapkbuild.in -+++ b/newapkbuild.in -@@ -68,13 +68,9 @@ build_cmake() { - -DCMAKE_BUILD_TYPE=RelWithDebugInfo \\ - -DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\ - -DCMAKE_C_FLAGS="\$CFLAGS" \\ -- \${CMAKE_CROSSOPTS} -+ \${CMAKE_CROSSOPTS} \\ -+ . - make --} -- --check() { -- cd "\$builddir" -- CTEST_OUTPUT_ON_FAILURE=TRUE ctest - __EOF__ - } - -@@ -115,6 +111,12 @@ check_make() { - __EOF__ - } - -+check_cmake() { -+ cat >>APKBUILD<<__EOF__ -+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest -+__EOF__ -+} -+ - check_python() { - cat >>APKBUILD<<__EOF__ - python3 setup.py test -@@ -193,7 +195,7 @@ newaport() { - python) makedepends="python3-dev";; - cmake) makedepends="cmake";; - meson) makedepends="meson";; -- *) makedepends="\$depends_dev";; -+ *) makedepends="";; - esac - - # Replace pkgver in $source -@@ -226,9 +228,15 @@ url="$url" - arch="all" - license="$license" - depends="$depends" --depends_dev="" - makedepends="$makedepends" -+__EOF__ -+ if [ -n "$install" ]; then -+ cat >>APKBUILD<<__EOF__ - install="$install" -+__EOF__ -+ fi -+ -+ cat >>APKBUILD<<__EOF__ - subpackages="\$pkgname-dev \$pkgname-doc" - source="$source" - __EOF__ -@@ -241,7 +249,12 @@ __EOF__ - builddir=$(echo ${i#*/} | sed "s/$pv/\$pkgver/g") - fi - done -- printf 'builddir="$srcdir/%s"\n\n' "$builddir" >> APKBUILD -+ if [ -n "$sdir" ] && [ "$sdir" = "src/$pkgname-$pv" ]; then -+ # No builddir needed. -+ : -+ else -+ printf 'builddir="$srcdir/%s"\n\n' "$builddir" >> APKBUILD -+ fi - - # Subpackage -dev is usually required only for C/C++. Since depends_dev - # confuses a lot people, remove it if there's no .h or .hpp file. -@@ -271,7 +284,6 @@ __EOF__ - # Create build() function - cat >>APKBUILD<<__EOF__ - build() { -- cd "\$builddir" - __EOF__ - - case "$buildtype" in -@@ -287,6 +299,8 @@ __EOF__ - build_perl;; - python) - build_python;; -+ *) -+ printf '# Add build instructions here.' >> APKBUILD - esac - - cat >>APKBUILD<<__EOF__ -@@ -297,14 +311,17 @@ __EOF__ - # Create check() function - cat >>APKBUILD<<__EOF__ - check() { -- cd "\$builddir" - __EOF__ - - case "$buildtype" in -- make|cmake|autotools|perl) -+ make|autotools|perl) - check_make;; -+ cmake) -+ check_cmake;; - python) - check_python;; -+ *) -+ printf '# Add test instructions here.' >> APKBUILD - esac - - cat >>APKBUILD<<__EOF__ -@@ -315,7 +332,6 @@ __EOF__ - # Create package() function - cat >>APKBUILD<<__EOF__ - package() { -- cd "\$builddir" - __EOF__ - - case "$buildtype" in -@@ -329,6 +345,8 @@ __EOF__ - package_perl;; - python) - package_python;; -+ *) -+ printf '# Add packaging instructions here.' >> APKBUILD - esac - - if [ -n "$cpinitd" ]; then --- -2.24.1 - -From 59cb9822c0ac347d58f1c37627a58fe14dce965d Mon Sep 17 00:00:00 2001 -From: "A. Wilcox" -Date: Tue, 14 Jan 2020 04:47:36 -0600 -Subject: [PATCH 2/2] newapkbuild: Newline after source - ---- - newapkbuild.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/newapkbuild.in b/newapkbuild.in -index dbcef14..9c4ffbf 100644 ---- a/newapkbuild.in -+++ b/newapkbuild.in -@@ -251,7 +251,7 @@ __EOF__ - done - if [ -n "$sdir" ] && [ "$sdir" = "src/$pkgname-$pv" ]; then - # No builddir needed. -- : -+ printf '\n' >> APKBUILD - else - printf 'builddir="$srcdir/%s"\n\n' "$builddir" >> APKBUILD - fi --- -2.24.1 - -- cgit v1.2.3-70-g09d2 From 207f32ec77ec373762b918956f57af9ac7440456 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 7 Feb 2020 00:25:38 +0000 Subject: system/abuild: Bump to 3.4.1 --- system/abuild/APKBUILD | 8 +++----- system/abuild/auto-dev-symbols.patch | 18 ------------------ 2 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 system/abuild/auto-dev-symbols.patch (limited to 'system/abuild') diff --git a/system/abuild/APKBUILD b/system/abuild/APKBUILD index 7acfc62bb..5f780a690 100644 --- a/system/abuild/APKBUILD +++ b/system/abuild/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: A. Wilcox pkgname=abuild -pkgver=3.4 +pkgver=3.4.1 pkgrel=0 pkgdesc="Script to build APK packages" url="https://code.foxkit.us/adelie/abuild" @@ -20,7 +20,6 @@ subpackages="abuild-rootbld:_rootbld:noarch $pkgname-doc" install="$pkgname.pre-install $pkgname.pre-upgrade" source="https://distfiles.adelielinux.org/source/abuild-$pkgver.tar.xz keyhole.patch - auto-dev-symbols.patch " # secfixes: @@ -54,6 +53,5 @@ _rootbld() { mkdir -p "$subpkgdir" } -sha512sums="c028641bcba421fd8e58bf3881aec26f6b9b8102af27d8106640a8b2a73e2688b1a9ac8377c9302f1781314137c3c47bf8636e03ef60b8969417eb4c5de6a82a abuild-3.4.tar.xz -757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch -29de3a0c7a60e92fac735782c0e9ebb319813448380ebdf4651ef43a58e6a12074cacc22e8b9ba9be7f7d86e188d4cc486ce51bd2ddb1859114e71e4c44d8874 auto-dev-symbols.patch" +sha512sums="6446171cc68d8341b5267816e7a05e0dc7b8a4e89c8c8410ae61e9501b163cc32db888476b14f032c16ef15bdd4dd4844e087394c2d061db8281f7bdfb34d450 abuild-3.4.1.tar.xz +757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch" diff --git a/system/abuild/auto-dev-symbols.patch b/system/abuild/auto-dev-symbols.patch deleted file mode 100644 index 65426d9dc..000000000 --- a/system/abuild/auto-dev-symbols.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- abuild-3.3.1+adelie/abuild.in.old 2019-03-07 00:48:00.110000000 +0000 -+++ abuild-3.3.1+adelie/abuild.in 2019-12-20 23:44:19.956669659 +0000 -@@ -1659,6 +1659,7 @@ - default_dbg() { - local f - pkgdesc="$pkgdesc (debug symbols)" -+ install_if="symbols $pkgname=$pkgver-r$pkgrel" - - binfiles=$(scanelf -R "$pkgdir" | grep ET_DYN | sed "s:$pkgdir\/::g" | sed "s:ET_DYN ::g") - for f in $binfiles; do -@@ -1689,6 +1690,7 @@ - local i= j= - depends="$depends_dev" - pkgdesc="$pkgdesc (development files)" -+ install_if="dev $pkgname=$pkgver-r$pkgrel" - - cd "$pkgdir" || return 0 - local libdirs=usr/ -- cgit v1.2.3-70-g09d2 From 6ab3da6b64adef65d7e50749e11d0d8273a39594 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 22 Feb 2020 01:29:20 +0000 Subject: system/abuild: Fix path of $APK --- system/abuild/APKBUILD | 4 +++- system/abuild/apkpath.patch | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 system/abuild/apkpath.patch (limited to 'system/abuild') diff --git a/system/abuild/APKBUILD b/system/abuild/APKBUILD index 5f780a690..257a11ad0 100644 --- a/system/abuild/APKBUILD +++ b/system/abuild/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: A. Wilcox pkgname=abuild pkgver=3.4.1 -pkgrel=0 +pkgrel=1 pkgdesc="Script to build APK packages" url="https://code.foxkit.us/adelie/abuild" arch="all" @@ -19,6 +19,7 @@ makedepends="$makedepends_host $makedepends_build" subpackages="abuild-rootbld:_rootbld:noarch $pkgname-doc" install="$pkgname.pre-install $pkgname.pre-upgrade" source="https://distfiles.adelielinux.org/source/abuild-$pkgver.tar.xz + apkpath.patch keyhole.patch " @@ -54,4 +55,5 @@ _rootbld() { } sha512sums="6446171cc68d8341b5267816e7a05e0dc7b8a4e89c8c8410ae61e9501b163cc32db888476b14f032c16ef15bdd4dd4844e087394c2d061db8281f7bdfb34d450 abuild-3.4.1.tar.xz +bc373c93344d498a48675256bb26cf9bebac74f54d8e53a09c0975e3047c481ee35c6b88e5de392efd2d0ce2a8de23ebbf0822e1a093ee01ea99349f238c62f7 apkpath.patch 757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch" diff --git a/system/abuild/apkpath.patch b/system/abuild/apkpath.patch new file mode 100644 index 000000000..4390fe0b0 --- /dev/null +++ b/system/abuild/apkpath.patch @@ -0,0 +1,25 @@ +From d9811dee71cfafde1fe6d596a2b9922b60dd0c4f Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Fri, 21 Feb 2020 19:28:36 -0600 +Subject: [PATCH] abuild: Solve, once and for all, 'apk: not found' + +--- + abuild.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/abuild.in b/abuild.in +index 1b8898b..2212789 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -23,7 +23,7 @@ fi + # defaults + : ${FAKEROOT:="fakeroot"} + : ${SUDO_APK:="abuild-apk"} +-: ${APK:="apk"} ++: ${APK:="/sbin/apk"} + : ${ADDUSER:="abuild-adduser"} + : ${ADDGROUP:="abuild-addgroup"} + +-- +2.25.0 + -- cgit v1.2.3-70-g09d2 From 15f770e3558fdcfca24ea50d66bd95e41c9d3f2b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 27 Feb 2020 10:58:33 +0000 Subject: system/abuild: Fix apk invocation for tracedeps --- system/abuild/APKBUILD | 4 +++- system/abuild/fix-apk-invocation.patch | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 system/abuild/fix-apk-invocation.patch (limited to 'system/abuild') diff --git a/system/abuild/APKBUILD b/system/abuild/APKBUILD index 257a11ad0..53d53a818 100644 --- a/system/abuild/APKBUILD +++ b/system/abuild/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: A. Wilcox pkgname=abuild pkgver=3.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="Script to build APK packages" url="https://code.foxkit.us/adelie/abuild" arch="all" @@ -20,6 +20,7 @@ subpackages="abuild-rootbld:_rootbld:noarch $pkgname-doc" install="$pkgname.pre-install $pkgname.pre-upgrade" source="https://distfiles.adelielinux.org/source/abuild-$pkgver.tar.xz apkpath.patch + fix-apk-invocation.patch keyhole.patch " @@ -56,4 +57,5 @@ _rootbld() { sha512sums="6446171cc68d8341b5267816e7a05e0dc7b8a4e89c8c8410ae61e9501b163cc32db888476b14f032c16ef15bdd4dd4844e087394c2d061db8281f7bdfb34d450 abuild-3.4.1.tar.xz bc373c93344d498a48675256bb26cf9bebac74f54d8e53a09c0975e3047c481ee35c6b88e5de392efd2d0ce2a8de23ebbf0822e1a093ee01ea99349f238c62f7 apkpath.patch +4ae8a0d7efb94e8390250c2c43294ba40afcf27409257cccffb9315f00e887972e29573ddbfb830a82eab473c6d292fe7a1bf30fb9761b6fa24b8fe8c0940c79 fix-apk-invocation.patch 757d750d4b5c88bf00774b64f2b93a9461e03f284d9423dc58c581e1309f276628de3114fcb510afd7c3cd55ceb721c1278e42756977c97ebe2597207805318d keyhole.patch" diff --git a/system/abuild/fix-apk-invocation.patch b/system/abuild/fix-apk-invocation.patch new file mode 100644 index 000000000..71bc3d1c9 --- /dev/null +++ b/system/abuild/fix-apk-invocation.patch @@ -0,0 +1,29 @@ +From 9f703d3222a6a8d52ac560035fb1a988d2f9bff7 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Thu, 27 Feb 2020 04:41:04 -0600 +Subject: [PATCH] abuild: Use $APK instead of apk + +This is the only appearance of `apk` in the source. Appears accidental. + +Fixes: 41343329 ("abuild: fix dependency tracing for cross builds") +Signed-off-by: A. Wilcox +--- + abuild.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/abuild.in b/abuild.in +index 2212789..7daa366 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -1255,7 +1255,7 @@ trace_apk_deps() { + autodeps="$autodeps pc:$pcprefix$i" + elif subpkg_provides_pc "$i" \ + || $APK $apkroot info --quiet --installed "pc:$i"; then +- local provider="$(apk $apkroot search --quiet "pc:$i")" ++ local provider="$($APK $apkroot search --quiet "pc:$i")" + if list_has "$provider" $depends_dev; then + warning "$provider should be removed from depends_dev" + fi +-- +2.25.1 + -- cgit v1.2.3-70-g09d2