Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-freebsd/freebsd-ubin/
Date: Sun, 19 Nov 2017 23:19:48
Message-Id: 1511133581.dfbd8a5650bbb24f284b5312ab09ce5f05a60594.monsieurp@gentoo
1 commit: dfbd8a5650bbb24f284b5312ab09ce5f05a60594
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 19 23:19:27 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 19 23:19:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfbd8a56
7
8 sys-freebsd/freebsd-ubin: add missing dies.
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 sys-freebsd/freebsd-ubin/freebsd-ubin-10.3-r2.ebuild | 20 +++++++++++---------
13 sys-freebsd/freebsd-ubin/freebsd-ubin-11.0-r1.ebuild | 16 ++++++++--------
14 sys-freebsd/freebsd-ubin/freebsd-ubin-11.1.ebuild | 14 +++++++-------
15 3 files changed, 26 insertions(+), 24 deletions(-)
16
17 diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-10.3-r2.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-10.3-r2.ebuild
18 index 3a6db423d7e..001f0be4599 100644
19 --- a/sys-freebsd/freebsd-ubin/freebsd-ubin-10.3-r2.ebuild
20 +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-10.3-r2.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 +# Copyright 1999-2017 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=5
27 @@ -11,8 +11,10 @@ IUSE="ar atm audit bluetooth ipv6 kerberos netware nis ssl usb build zfs"
28 LICENSE="BSD zfs? ( CDDL )"
29
30 # Security Advisory and Errata patches.
31 -UPSTREAM_PATCHES=( "SA-16:25/bspatch.patch"
32 - "SA-16:29/bspatch.patch" )
33 +UPSTREAM_PATCHES=(
34 + "SA-16:25/bspatch.patch"
35 + "SA-16:29/bspatch.patch"
36 +)
37
38 if [[ ${PV} != *9999* ]]; then
39 KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
40 @@ -113,8 +115,8 @@ pkg_preinst() {
41 # bison installs a /usr/bin/yacc symlink ...
42 # we need to remove it to avoid triggering
43 # collision-protect errors
44 - if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
45 - rm -f "${ROOT}"/usr/bin/yacc
46 + if [[ -L ${ROOT}/usr/bin/yacc ]]; then
47 + rm -f "${ROOT}"/usr/bin/yacc || die
48 fi
49 }
50
51 @@ -128,7 +130,7 @@ src_prepare() {
52 # Rename manpage for renamed ar
53 mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die
54 # Fix whereis(1) manpath search.
55 - sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h"
56 + sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h" || die
57
58 # Build a dynamic make
59 sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/make/Makefile || die
60 @@ -141,7 +143,7 @@ src_prepare() {
61 }
62
63 setup_multilib_vars() {
64 - if ! multilib_is_native_abi ; then
65 + if ! multilib_is_native_abi; then
66 cd "${WORKDIR}/usr.bin/ldd" || die
67 export mymakeopts="${mymakeopts} PROG=ldd32 WITHOUT_MAN="
68 else
69 @@ -196,7 +198,7 @@ pkg_postinst() {
70 # We need to ensure that login.conf.db is up-to-date.
71 if [[ -e "${ROOT}"etc/login.conf ]] ; then
72 einfo "Updating ${ROOT}etc/login.conf.db"
73 - "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf
74 + "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf || die
75 elog "Remember to run cap_mkdb /etc/login.conf after making changes to it"
76 fi
77 }
78 @@ -205,6 +207,6 @@ pkg_postrm() {
79 # and if we uninstall yacc but keep bison,
80 # lets restore the /usr/bin/yacc symlink
81 if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
82 - ln -s yacc.bison "${ROOT}"/usr/bin/yacc
83 + ln -s yacc.bison "${ROOT}"/usr/bin/yacc || die
84 fi
85 }
86
87 diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-11.0-r1.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-11.0-r1.ebuild
88 index 7c9aac54f99..bf7da86b52e 100644
89 --- a/sys-freebsd/freebsd-ubin/freebsd-ubin-11.0-r1.ebuild
90 +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-11.0-r1.ebuild
91 @@ -1,4 +1,4 @@
92 -# Copyright 1999-2016 Gentoo Foundation
93 +# Copyright 1999-2017 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95
96 EAPI=5
97 @@ -108,8 +108,8 @@ pkg_preinst() {
98 # bison installs a /usr/bin/yacc symlink ...
99 # we need to remove it to avoid triggering
100 # collision-protect errors
101 - if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
102 - rm -f "${ROOT}"/usr/bin/yacc
103 + if [[ -L ${ROOT}/usr/bin/yacc ]]; then
104 + rm -f "${ROOT}"/usr/bin/yacc || die
105 fi
106 }
107
108 @@ -123,7 +123,7 @@ src_prepare() {
109 # Rename manpage for renamed ar
110 mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die
111 # Fix whereis(1) manpath search.
112 - sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h"
113 + sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h" || die
114
115 # Build a dynamic make
116 sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/bmake/Makefile.inc || die
117 @@ -148,7 +148,7 @@ setup_multilib_vars() {
118 src_compile() {
119 local MULTIBUILD_VARIANTS="${DEFAULT_ABI}"
120 # Preparing to build addr2line, elfcopy, m4
121 - for dir in libelftc libpe libopenbsd ; do
122 + for dir in libelftc libpe libopenbsd; do
123 cd "${WORKDIR}/lib/${dir}" || die
124 multibuild_foreach_variant freebsd_multilib_multibuild_wrapper freebsd_src_compile -j1
125 done
126 @@ -168,7 +168,7 @@ src_install() {
127
128 # baselayout requires these in /bin
129 dodir /bin
130 - for bin in sed printf ; do
131 + for bin in sed printf; do
132 mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed"
133 dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed"
134 done
135 @@ -198,7 +198,7 @@ pkg_postinst() {
136 # We need to ensure that login.conf.db is up-to-date.
137 if [[ -e "${ROOT}"etc/login.conf ]] ; then
138 einfo "Updating ${ROOT}etc/login.conf.db"
139 - "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf
140 + "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf || die
141 elog "Remember to run cap_mkdb /etc/login.conf after making changes to it"
142 fi
143 }
144 @@ -207,6 +207,6 @@ pkg_postrm() {
145 # and if we uninstall yacc but keep bison,
146 # lets restore the /usr/bin/yacc symlink
147 if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
148 - ln -s yacc.bison "${ROOT}"/usr/bin/yacc
149 + ln -s yacc.bison "${ROOT}"/usr/bin/yacc || die
150 fi
151 }
152
153 diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-11.1.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-11.1.ebuild
154 index e55479c3e21..b731c32e8f4 100644
155 --- a/sys-freebsd/freebsd-ubin/freebsd-ubin-11.1.ebuild
156 +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-11.1.ebuild
157 @@ -107,8 +107,8 @@ pkg_preinst() {
158 # bison installs a /usr/bin/yacc symlink ...
159 # we need to remove it to avoid triggering
160 # collision-protect errors
161 - if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
162 - rm -f "${ROOT}"/usr/bin/yacc
163 + if [[ -L ${ROOT}/usr/bin/yacc ]]; then
164 + rm -f "${ROOT}"/usr/bin/yacc || die
165 fi
166 }
167
168 @@ -122,7 +122,7 @@ src_prepare() {
169 # Rename manpage for renamed ar
170 mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die
171 # Fix whereis(1) manpath search.
172 - sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h"
173 + sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h" || die
174
175 # Build a dynamic make
176 sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/bmake/Makefile.inc || die
177 @@ -158,7 +158,7 @@ src_compile() {
178
179 src_install() {
180 cd "${S}"/calendar/calendars || die
181 - for dir in $(find . -type d ! -name "." ) ; do
182 + for dir in $(find . -type d ! -name "." ); do
183 dodir /usr/share/calendar/"$(basename ${dir})"
184 done
185
186 @@ -178,7 +178,7 @@ src_install() {
187
188 cd "${WORKDIR}/etc" || die
189 insinto /etc
190 - doins remote phones opieaccess fbtab || die
191 + doins remote phones opieaccess fbtab
192
193 exeinto /etc/cron.daily
194 newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb || die
195 @@ -197,7 +197,7 @@ pkg_postinst() {
196 # We need to ensure that login.conf.db is up-to-date.
197 if [[ -e "${ROOT}"etc/login.conf ]] ; then
198 einfo "Updating ${ROOT}etc/login.conf.db"
199 - "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf
200 + "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf || die
201 elog "Remember to run cap_mkdb /etc/login.conf after making changes to it"
202 fi
203 }
204 @@ -206,6 +206,6 @@ pkg_postrm() {
205 # and if we uninstall yacc but keep bison,
206 # lets restore the /usr/bin/yacc symlink
207 if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
208 - ln -s yacc.bison "${ROOT}"/usr/bin/yacc
209 + ln -s yacc.bison "${ROOT}"/usr/bin/yacc || die
210 fi
211 }