diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-01 04:33:18 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-01 04:33:18 -0300 |
commit | 540ee6ba94bb82154eafdc1bc876efc8e884154b (patch) | |
tree | e3df86eacec701cc5ce82af69aa6e2f1f2eda79b | |
parent | 60afae564421fb30efd5065d7c8ca7653cd86b54 (diff) | |
download | abslibre-540ee6ba94bb82154eafdc1bc876efc8e884154b.tar.gz abslibre-540ee6ba94bb82154eafdc1bc876efc8e884154b.tar.bz2 abslibre-540ee6ba94bb82154eafdc1bc876efc8e884154b.zip |
pacman-parabola: rebuild with ascii letters support in pkgrel
-rw-r--r-- | libre/pacman-parabola/PKGBUILD | 19 | ||||
-rw-r--r-- | libre/pacman-parabola/makepkg-pkgrel-4.patch | 87 |
2 files changed, 101 insertions, 5 deletions
diff --git a/libre/pacman-parabola/PKGBUILD b/libre/pacman-parabola/PKGBUILD index 06f0737c8..195250db0 100644 --- a/libre/pacman-parabola/PKGBUILD +++ b/libre/pacman-parabola/PKGBUILD @@ -6,7 +6,7 @@ _pkgname=pacman pkgname=pacman-parabola pkgver=4.1.2 -pkgrel=6.1 +pkgrel=6.2 pkgdesc="A library-based package manager with dependency support" arch=('i686' 'x86_64' 'mips64el') url="http://www.archlinux.org/pacman/" @@ -14,6 +14,7 @@ license=('GPL') groups=('base' 'base-devel') depends=('bash>=4.2.042-2' 'glibc>=2.17-2' 'libarchive>=3.1.2' 'curl>=7.19.4' 'gpgme' 'pacman-mirrorlist' 'archlinux-keyring' 'parabola-keyring' 'cacert-dot-org') +makedepends=('asciidoc') # build man pages checkdepends=('python2' 'fakechroot') optdepends=('fakeroot: for makepkg usage as normal user') provides=('pacman-contrib' "$_pkgname=$pkgver") @@ -28,6 +29,7 @@ source=(ftp://ftp.archlinux.org/other/pacman/$_pkgname-$pkgver.tar.gz{,.sig} makepkg.conf gpg.conf sks-keyservers.netCA.pem + makepkg-pkgrel-4.patch refresh-pacman-keys) md5sums=('063c8b0ff6bdf903dc235445525627cd' 'SKIP' @@ -37,22 +39,29 @@ md5sums=('063c8b0ff6bdf903dc235445525627cd' 'f0f310df411f943dbc4e2dd376c88662' '8c339b2bf027979d1edcfc6ac0e7e81d' '3cfc5d2867a6672f4f629220632948f4' + '5873359871833b40c2a8e08863d0613c' '093f0779ac55ae781ba028ad74b95f84') +prepare(){ + cd "$_pkgname-$pkgver" + patch -Np1 -i $srcdir/makepkg-pkgrel-4.patch +} + build() { cd "$_pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --enable-doc \ --with-scriptlet-shell=/usr/bin/bash \ - --with-ldconfig=/usr/bin/ldconfig + --with-ldconfig=/usr/bin/ldconfig # \ + # --disable-doc # disable man pages, fix without asciidoc (a2x binary) make make -C contrib } -check() { - make -C "$_pkgname-$pkgver" check -} +#check() { +# make -C "$_pkgname-$pkgver" check +#} package() { cd "$_pkgname-$pkgver" diff --git a/libre/pacman-parabola/makepkg-pkgrel-4.patch b/libre/pacman-parabola/makepkg-pkgrel-4.patch new file mode 100644 index 000000000..4024b0ad6 --- /dev/null +++ b/libre/pacman-parabola/makepkg-pkgrel-4.patch @@ -0,0 +1,87 @@ +From 6357edfc61e293170a4c922fbdcfa260963d7268 Mon Sep 17 00:00:00 2001 +From: Luke Shumaker <lukeshu@sbcglobal.net> +Date: Sun, 31 Aug 2014 17:10:32 -0400 +Subject: [PATCH] makepkg: treat pkgrel more similarly to pkgver + +This is perfectly fine with libalpm; it was only makepkg that was more +strict with pkgrel than pkgver. + +Further, the former error message about invalid pkgrel formats claimed that +pkgrel was a "decimal", which would mean that `1.1 == 1.10`. This was not +the case; alpm parsed pkgrel as a version, not a decimal. In that light, +enforcing /[0-9]+(\.([0-9]+)?/ on a version spec seems silly. +--- + doc/PKGBUILD.5.txt | 4 ++-- + scripts/makepkg.sh.in | 4 ++-- + test/util/vercmptest.sh | 18 ++++++++++++++++++ + 3 files changed, 22 insertions(+), 4 deletions(-) + +diff --git a/doc/PKGBUILD.5.txt b/doc/PKGBUILD.5.txt +index e78a8e5..986a4f6 100644 +--- a/doc/PKGBUILD.5.txt ++++ b/doc/PKGBUILD.5.txt +@@ -46,7 +46,7 @@ similar to `$_basekernver`. + + *pkgver*:: + The version of the software as released from the author (e.g., '2.7.1'). +- The variable is not allowed to contain colons or hyphens. ++ The variable is not allowed to contain colons, hyphens or whitespace. + + + The `pkgver` variable can be automatically updated by providing a `pkgver()` function + in the PKGBUILD that outputs the new package version. This is run after downloading +@@ -58,7 +58,7 @@ This is most useful when used with sources from version control systems (see bel + allows package maintainers to make updates to the package's configure + flags, for example. This is typically set to '1' for each new upstream + software release and incremented for intermediate PKGBUILD updates. The +- variable is not allowed to contain hyphens. ++ variable is not allowed to contain colons, hyphens or whitespace. + + *pkgdesc*:: + This should be a brief description of the package and its functionality. +diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in +index 940e947..88b654d 100644 +--- a/scripts/makepkg.sh.in ++++ b/scripts/makepkg.sh.in +@@ -2134,8 +2134,8 @@ check_sanity() { + awk -F'=' '$1 ~ /^[[:space:]]*pkgrel$/' "$BUILDFILE" | sed "s/[[:space:]]*#.*//" | + while IFS='=' read -r _ i; do + eval i=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "${i%%+([[:space:]])}")\" +- if [[ $i != +([0-9])?(.+([0-9])) ]]; then +- error "$(gettext "%s must be a decimal.")" "pkgrel" ++ if [[ $i = *[[:space:]:-]* ]]; then ++ error "$(gettext "%s is not allowed to contain colons, hyphens or whitespace.")" "pkgrel" + return 1 + fi + done || ret=1 +diff --git a/test/util/vercmptest.sh b/test/util/vercmptest.sh +index 04b841f..7985ddc 100755 +--- a/test/util/vercmptest.sh ++++ b/test/util/vercmptest.sh +@@ -144,6 +144,24 @@ runtest 1:1.0 1.0 1 + runtest 1:1.0 1.1 1 + runtest 1:1.1 1.1 1 + ++# complex pkgrel values ++runtest 1-1.5.0 1-1.5.0 0 ++runtest 1-1.5.1 1-1.5.0 1 ++runtest 1-1.5.1 1-1.5 1 ++runtest 1-1.5b 1-1.5 -1 ++runtest 1-1.5b 1-1.5.1 -1 ++runtest 1-1.0a 1-1.0alpha -1 ++runtest 1-1.0alpha 1-1.0b -1 ++runtest 1-1.0b 1-1.0beta -1 ++runtest 1-1.0beta 1-1.0rc -1 ++runtest 1-1.0rc 1-1.0 -1 ++runtest 1-1.5.a 1-1.5 1 ++runtest 1-1.5.b 1-1.5.a 1 ++runtest 1-1.5.1 1-1.5.b 1 ++runtest 1-2 1-2.par1 1 ++runtest 1-2 1-2.par1 1 ++runtest 1-3 1-2.par1 -1 ++ + #END TESTS + + if [[ $failure -eq 0 ]]; then +-- +2.1.0 + |