From eb21e9eb93a0e479e846ee5e415c9fdf7d74797b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 25 Mar 2015 13:55:34 +0100 Subject: fix source package signing with SRCPKGDIR set Signed-off-by: Christian Hesse Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 9d4ce552..24289071 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -2393,8 +2393,8 @@ create_srcpackage() { ln -s "${pkg_file}" "${pkg_file/$SRCPKGDEST/$startdir}" ret=$? if [[ -f $pkg_file.sig ]]; then - rm -f "${pkg_file/$PKGDEST/$startdir}.sig" - ln -s "$pkg_file.sig" "${pkg_file/$PKGDEST/$startdir}.sig" + rm -f "${pkg_file/$SRCPKGDEST/$startdir}.sig" + ln -s "$pkg_file.sig" "${pkg_file/$SRCPKGDEST/$startdir}.sig" fi fi -- cgit v1.2.3-70-g09d2 From b8f2d713e00c453efab035f467d63508897f08ea Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 25 Mar 2015 15:26:36 +1000 Subject: Update PKGBUILD-split.proto allowed overrides Commit 8a02abcf194 disallowed overridding pkgver/pkgrel/epoch. Update the split package prototype to refelct this change. Signed-off-by: Allan McRae --- proto/PKGBUILD-split.proto | 3 --- 1 file changed, 3 deletions(-) diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto index 6dae704b..9898ef81 100644 --- a/proto/PKGBUILD-split.proto +++ b/proto/PKGBUILD-split.proto @@ -49,9 +49,6 @@ check() { package_pkg1() { # options and directives that can be overridden - pkgver= - pkgrel= - epoch= pkgdesc="" arch=() url="" -- cgit v1.2.3-70-g09d2 From b543c055b9607161e6bd47b9d3709243057c8771 Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Fri, 20 Mar 2015 19:19:56 -0500 Subject: Make get_pkg_arch treat arch as an array We use the get_pkg_arch function with the package name parameter in two places: 1) checking if the package is already built 2) installing build packages Currently this failed when a package override for "arch" was an array, despite all our documentation stating that it is indeed an array. This change makes these two places fail if there is package override for arch that is not an array - i.e. of the form arch='i686'. Signed-off-by: Ivy Foster Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 24289071..227563ce 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -902,7 +902,7 @@ get_pkg_arch() { fi else local arch_override - pkgbuild_get_attribute "$1" arch 0 arch_override + pkgbuild_get_attribute "$1" arch 1 arch_override (( ${#arch_override[@]} == 0 )) && arch_override=("${arch[@]}") if [[ $arch_override = "any" ]]; then printf "%s\n" "any" -- cgit v1.2.3-70-g09d2