update all the packages, remove some unneeded ones

This commit is contained in:
moparisthebest
2018-06-01 08:08:14 -04:00
parent 1ac473c02c
commit 9fce20fc6d
142 changed files with 2965 additions and 1333 deletions

View File

@@ -1,7 +1,7 @@
From 07d302de1d48e2daea193d9a3a2931331c8abce0 Mon Sep 17 00:00:00 2001
From 9c28c606c12b244a1034fbc7693ffe7894d86d7b Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Fri, 6 Oct 2017 23:03:14 +0200
Subject: [PATCH 1/2] aurbuild: backport fix for #236
Subject: [PATCH 1/7] aurbuild: backport fix for #236
---
bin/aurbuild | 10 ++++++++--
@@ -36,5 +36,4 @@ index 05df8b0..4672372 100755
if ((chroot)); then
--
2.14.2
2.11.0

View File

@@ -1,25 +0,0 @@
From 1e16b62746576f594a5da9859a8a58e5f5be74f1 Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Fri, 6 Oct 2017 23:10:04 +0200
Subject: [PATCH 2/2] aurbuild: disable verbose signing
---
bin/aurbuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/aurbuild b/bin/aurbuild
index 4672372..951a9ba 100755
--- a/bin/aurbuild
+++ b/bin/aurbuild
@@ -4,7 +4,7 @@ readonly basedir=$PWD
readonly PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -e
-declare -a gpg_args=(--detach-sign --no-armor --verbose --batch)
+declare -a gpg_args=(--detach-sign --no-armor --batch)
declare -a makechrootpkg_args=(-cnu) makepkg_args=(-Lcrs)
declare -i chroot=0 sign_pkg=0
--
2.14.2

View File

@@ -0,0 +1,69 @@
From 74d0496ad357ca8c65562a028cb5b95888ea71cf Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Sat, 27 Jan 2018 03:21:37 +0100
Subject: [PATCH 2/7] aursync: make -L optional (#281)
---
bin/aursync | 7 ++++---
man1/aursync.1 | 7 ++++++-
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/bin/aursync b/bin/aursync
index fdf485d..1a96c0d 100755
--- a/bin/aursync
+++ b/bin/aursync
@@ -58,9 +58,9 @@ if getopt -T || (($? != 4)); then
exit 22
fi
-longopts=allan,bind:,chroot,container:,force,help,ignore:,no-confirm,no-ver,no-view,print,rmdeps,sign,tar,temp,repo:,root:,update
+longopts=allan,bind:,chroot,container:,force,help,ignore:,no-confirm,no-ver,no-view,print,rmdeps,sign,tar,temp,repo:,root:,update,log
-if TEMP=$(getopt -o B:cC:fhnprstTu -l "$longopts" -n "$argv0" -- "$@"); then
+if TEMP=$(getopt -o B:cC:fhLnprstTu -l "$longopts" -n "$argv0" -- "$@"); then
eval set -- "$TEMP"
else
usage
@@ -78,6 +78,7 @@ while true; do
-f|--force) local_args+=(-f); shift ;;
-n|--no-confirm) local_args+=(--noconfirm); shift ;;
-r|--rmdeps) local_args+=(-r); shift ;;
+ -L|--log) local_args+=(-L); shift ;;
-p|--print) printonly=1; shift ;;
-t|--tar) snapshot=1; shift ;;
-u|--update) update=1; shift ;;
@@ -103,7 +104,7 @@ fi
if ((chroot)); then
makepkg_args=(-cnu "${chroot_args[@]}")
else
- makepkg_args=(-Lcs "${local_args[@]}")
+ makepkg_args=(-cs "${local_args[@]}")
fi
if ! (($# + update)); then
diff --git a/man1/aursync.1 b/man1/aursync.1
index 5569c36..834afd7 100644
--- a/man1/aursync.1
+++ b/man1/aursync.1
@@ -78,13 +78,18 @@ value of the configured repository.
.RE
.SS makepkg
-The default set of options is \fImakepkg -Lcrs\fR.
+The default set of options is \fImakepkg -cs\fR.
.B \-f, --force
.RS
Overwrite built packages. (\fImakepkg -f\fR)
.RE
+.B \-L, --log
+.RS
+Enable logging to a text file in the build directory. (\fImakepkg -L\fR)
+.RE
+
.B \-n, --no-confirm
.RS
Do not wait for user input. (\fImakepkg --noconfirm\fR)
--
2.11.0

View File

@@ -0,0 +1,27 @@
From 4a7ef4e264162909f3ceb1debccb5cb23aebcba3 Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Sat, 27 Jan 2018 13:57:37 +0100
Subject: [PATCH 3/7] aurbuild: update default options
Remove gpg --verbose, makepkg -L
---
bin/aurbuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/aurbuild b/bin/aurbuild
index 4672372..f5ca92c 100755
--- a/bin/aurbuild
+++ b/bin/aurbuild
@@ -4,8 +4,8 @@ readonly basedir=$PWD
readonly PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -e
-declare -a gpg_args=(--detach-sign --no-armor --verbose --batch)
-declare -a makechrootpkg_args=(-cnu) makepkg_args=(-Lcrs)
+declare -a gpg_args=(--detach-sign --no-armor --batch)
+declare -a makechrootpkg_args=(-cnu) makepkg_args=(-crs)
declare -i chroot=0 sign_pkg=0
conf_chroot() {
--
2.11.0

View File

@@ -1,25 +0,0 @@
From 20dc81ad04a647ef66b08c274590666554df40c9 Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Sat, 14 Oct 2017 16:59:57 +0200
Subject: [PATCH] aursync(1): -r is not a default option
---
man1/aursync.1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man1/aursync.1 b/man1/aursync.1
index 5569c36..82b8d82 100644
--- a/man1/aursync.1
+++ b/man1/aursync.1
@@ -78,7 +78,7 @@ value of the configured repository.
.RE
.SS makepkg
-The default set of options is \fImakepkg -Lcrs\fR.
+The default set of options is \fImakepkg -Lcs\fR.
.B \-f, --force
.RS
--
2.14.2

View File

@@ -0,0 +1,53 @@
From ecc173230584327d74ea2d8899fec30d6ce6340c Mon Sep 17 00:00:00 2001
From: Alad Wenter <AladW@users.noreply.github.com>
Date: Mon, 22 Jan 2018 16:16:16 +0100
Subject: [PATCH 4/7] aurfetch: specify git work-tree/git-dir (#274)
Avoid "Stopping at filesystem boundary" issues with different file
systems.
---
bin/aurfetch | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/bin/aurfetch b/bin/aurfetch
index 95c49c3..0a79287 100755
--- a/bin/aurfetch
+++ b/bin/aurfetch
@@ -8,24 +8,25 @@ declare -i aurball=0
declare logdir=/dev/null
clone() {
- declare -r logdir=$1 startdir=$PWD
+ declare -r logdir=$1
while IFS= read -r; do
+ # Avoid issues with exotic file system layouts (#274)
+ git_wrap() { git --work-tree="$REPLY" --git-dir="$REPLY"/.git "$@"; }
+
if [[ -d $REPLY/.git ]]; then
- cd_safe "$REPLY"
+ # returns 0 even if nothing was fetched
+ git_wrap fetch -v
- git fetch -v # returns 0 even if nothing was fetched
-
- if [[ $(git rev-parse HEAD) != $(git rev-parse '@{upstream}') ]]; then
+ if [[ $(git_wrap rev-parse HEAD) != $(git_wrap rev-parse '@{upstream}') ]]; then
if [[ -d $logdir ]]; then
- git --no-pager log --patch --stat '..@{upstream}' >> "$logdir/$REPLY".patch
+ git_wrap --no-pager log --patch --stat '..@{upstream}' \
+ >> "$logdir/$REPLY".patch
fi
- git reset --hard HEAD
- git merge
+ git_wrap reset --hard HEAD
+ git_wrap merge
fi
-
- cd_safe "$startdir"
else
git clone "$aurweb/$REPLY".git
fi
--
2.11.0

View File

@@ -0,0 +1,33 @@
From 1de27b86ea0cb2076a03167e838374dd6442809b Mon Sep 17 00:00:00 2001
From: rafasc <rafa.almas@gmail.com>
Date: Mon, 26 Mar 2018 19:37:43 +0100
Subject: [PATCH 5/6] specify absolute paths for GIT_DIR & GIT_WORK_TREE
Specifying a relative directory will trigger a regression under some
circumstances.
$ GIT_DIR=spotify/.git GIT_WORK_TREE=spotify git reset HEAD
fatal: couldn't read spotify/.git/packed-refs: Not a directory
$ GIT_DIR=$PWD/spotify/.git GIT_WORK_TREE=$PWD/spotify git reset HEAD
workaround for AladW/aurutils#332
---
bin/aurfetch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/aurfetch b/bin/aurfetch
index 0a79287..4e026fa 100755
--- a/bin/aurfetch
+++ b/bin/aurfetch
@@ -12,7 +12,7 @@ clone() {
while IFS= read -r; do
# Avoid issues with exotic file system layouts (#274)
- git_wrap() { git --work-tree="$REPLY" --git-dir="$REPLY"/.git "$@"; }
+ git_wrap() { git --work-tree="$PWD/$REPLY" --git-dir="$PWD/$REPLY"/.git "$@"; }
if [[ -d $REPLY/.git ]]; then
# returns 0 even if nothing was fetched
--
2.11.0

View File

@@ -0,0 +1,39 @@
From da84181ae5b284557ec4d6afca7c8bcc7e87185a Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Tue, 27 Mar 2018 00:49:26 +0200
Subject: [PATCH 6/7] aurfetch, aursearch: use aria2 --no-conf
Avoid conflicts when a configuration file is used.
---
bin/aurfetch | 2 +-
bin/aursearch | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/aurfetch b/bin/aurfetch
index 4e026fa..2cd5385 100755
--- a/bin/aurfetch
+++ b/bin/aurfetch
@@ -39,7 +39,7 @@ snapshot() {
cd_safe "$gzdir"
if type -P aria2c >/dev/null 2>&1; then
- aria2c --stderr=true -i -
+ aria2c --stderr=true -i --no-conf=true -
elif type -P parallel >/dev/null 2>&1; then
parallel --will-cite -X -j +5 --nice 10 --halt soon,fail=1 \
curl -fLsS --remote-name-all --cert-status {}
diff --git a/bin/aursearch b/bin/aursearch
index 5ff0a5c..dbb339e 100755
--- a/bin/aursearch
+++ b/bin/aursearch
@@ -20,7 +20,7 @@ split_info() {
dl_stdin() {
if type -P aria2c >/dev/null 2>&1; then
- aria2c --download-result=hide --console-log-level=error --stderr=true -d "$tmp"/aria2 -i - && cat "$tmp"/aria2/*
+ aria2c --download-result=hide --console-log-level=error --stderr=true -d "$tmp"/aria2 --no-conf=true -i - && cat "$tmp"/aria2/*
elif type -P parallel >/dev/null 2>&1; then
parallel --will-cite -X -j +8 --nice 10 --halt soon,fail=1 -r curl -fgLsS --compressed --cert-status {}
else
--
2.11.0

View File

@@ -0,0 +1,31 @@
From 5f779d382da346038996b877d320fa26c7d501c7 Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Tue, 27 Mar 2018 01:26:44 +0200
Subject: [PATCH 7/7] aurchain: do not sort results when appending
https://bbs.archlinux.org/viewtopic.php?pid=1761231#p1761231
---
bin/aurchain | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/bin/aurchain b/bin/aurchain
index 27a0808..e4b82ca 100755
--- a/bin/aurchain
+++ b/bin/aurchain
@@ -42,13 +42,11 @@ chain() {
for ((a = 1; a <= 30; ++a)); do
declare -i sub=$((a-1))
- pair json/$sub > tsv/$sub
+ pair json/$sub | tee -a tsv/n > tsv/$sub
fld 1 tsv/$sub >> pkgname
fld 1 tsv/$sub >> seen
- sort -u tsv/$sub >> tsv/n
-
# Avoid querying duplicates (#4)
readarray -t target < <(fld 2 tsv/$sub | grep -Fxvf seen)
--
2.11.0

View File

@@ -1,7 +1,7 @@
# Maintainer: Alad Wenter <alad@mailbox.org>
pkgname=aurutils
pkgver=1.5.3
pkgrel=5
pkgrel=10
pkgdesc='helper tools for the arch user repository'
arch=('any')
url='https://github.com/AladW/aurutils'
@@ -15,16 +15,24 @@ optdepends=('devtools: systemd-nspawn support'
'expac: aursift script'
'repose: repo-add alternative')
_backports=('0001-aurbuild-backport-fix-for-236.patch'
'0002-aurbuild-disable-verbose-signing.patch'
'0003-aursync-1-r-is-not-a-default-option.patch')
'0002-aursync-make-L-optional-281.patch'
'0003-aurbuild-update-default-options.patch'
'0004-aurfetch-specify-git-work-tree-git-dir-274.patch'
'0005-specify-absolute-paths-for-GIT_DIR-GIT_WORK_TREE.patch'
'0006-aurfetch-aursearch-use-aria2-no-conf.patch'
'0007-aurchain-do-not-sort-results-when-appending.patch')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.asc::$url/releases/download/$pkgver/$pkgver.tar.gz.asc"
"${_backports[@]}")
sha256sums=('a09088a460e352179dbf799d915e866af47aa280474a9c943f8e6885490734c5'
'SKIP'
'5001ece7fc2a4ec7e1860a0162e042f19adab13bad5c1070436306f2fe2f2b86'
'f0a2d95b4fb51e4a392e0515ef6e10e0478a609caf7257aa8a896fadf027bfbb'
'43180210b22268ab5b54563541804dec74c08587e77870e527b736cb4f62d4a1')
'8bf1fe675284a8e91aa37bdbf035c0158f910446fdd10d21a705e89ff711c883'
'75326f1f932b545754eb05ef62ad637874367d276ee584ff9544f0c0178e39b8'
'bb03ef84bd3e7b28af9d2a829a61869c4845bdce65c897d267e691091033fe8a'
'40efaedd46cb98e0af0faf8cd61dc36eaa2638cf429d280beaf5c37f09a4369b'
'2fc7599245c53cad4b3b404a9ecf0ef122cf6be66d18a156e83ebfd1923b5359'
'8f4c9ea372827db3a4d4aa8e67e4fd962384197fc1684ba50e4f739d2917402f'
'1cb14e6605e38a1bc127d7ea576a02dfbc2d3c0e009597980fe4040a65b347f2')
# Alad Wenter <alad@mailbox.org>
validpgpkeys=('DBE7D3DD8C81D58D0A13D0E76BC26A17B9B7018A')