aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2018-02-13 12:57:22 +0800
committerbdrewery <bdrewery@FreeBSD.org>2018-02-13 12:57:22 +0800
commit570e6b7af3e8889eb40558c185e6e086db2998ea (patch)
treeba5a6bae2cf2a1083c5bd51f4a6374b5c65129f3 /ports-mgmt
parentbc7bf9d4bdf0942ddb17d974e0926f3309ed2752 (diff)
downloadfreebsd-ports-gnome-570e6b7af3e8889eb40558c185e6e086db2998ea.tar.gz
freebsd-ports-gnome-570e6b7af3e8889eb40558c185e6e086db2998ea.tar.zst
freebsd-ports-gnome-570e6b7af3e8889eb40558c185e6e086db2998ea.zip
HTML: Hide harmless shared lock failures
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/poudriere-devel/Makefile2
-rw-r--r--ports-mgmt/poudriere-devel/files/patch-src--share--poudriere--html.sh33
2 files changed, 34 insertions, 1 deletions
diff --git a/ports-mgmt/poudriere-devel/Makefile b/ports-mgmt/poudriere-devel/Makefile
index 5922a91b294e..eb01acff201b 100644
--- a/ports-mgmt/poudriere-devel/Makefile
+++ b/ports-mgmt/poudriere-devel/Makefile
@@ -2,7 +2,7 @@
PORTNAME= poudriere
DISTVERSION= 3.2.99.20180202
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= ports-mgmt
MASTER_SITES= LOCAL/bdrewery/${PORTNAME}/ \
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
diff --git a/ports-mgmt/poudriere-devel/files/patch-src--share--poudriere--html.sh b/ports-mgmt/poudriere-devel/files/patch-src--share--poudriere--html.sh
new file mode 100644
index 000000000000..15da9e9dcc26
--- /dev/null
+++ b/ports-mgmt/poudriere-devel/files/patch-src--share--poudriere--html.sh
@@ -0,0 +1,33 @@
+commit 8f9fdcc9691dcb6ab3619bbced22beb108bfcbb1
+Author: Bryan Drewery <bryan@shatow.net>
+Date: Sat Feb 3 16:39:51 2018 -0800
+
+ HTML: Hide harmless shared lock failures
+
+diff --git src/share/poudriere/include/html.sh src/share/poudriere/include/html.sh
+index c56cb6520..98bcd84f4 100644
+--- src/share/poudriere/include/html.sh
++++ src/share/poudriere/include/html.sh
+@@ -78,11 +78,11 @@ html_json_main() {
+ build_all_json() {
+ critical_start
+ build_json
+- if slock_acquire "json_jail_${MASTERNAME}"; then
++ if slock_acquire "json_jail_${MASTERNAME}" 2>/dev/null; then
+ build_jail_json
+ slock_release "json_jail_${MASTERNAME}"
+ fi
+- if slock_acquire "json_top"; then
++ if slock_acquire "json_top" 2>/dev/null; then
+ build_top_json
+ slock_release "json_top"
+ fi
+@@ -173,7 +173,7 @@ install_html_files() {
+ local base="$2"
+ local dest="$3"
+
+- slock_acquire html_base || return 0
++ slock_acquire html_base 2>/dev/null || return 0
+
+ # Update the base copy
+ mkdir -p "${base}"