OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

393 lines
15 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../util-vserver/util-vserver-getopt-long.patch
  5. # Copyright (C) 2014 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From b97f867b35d9f4aebafbea6ced57359c5cd016ca Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <chris@opensde.org>
  18. Date: Thu, 1 May 2014 23:02:22 +0200
  19. Subject: [PATCH] do not use getopt --long
  20. This seems to be not supported by more recent getopt (1) provided by
  21. util-linux anymore, thus replacing it with -l.
  22. The problem was discovered when using getopt (1) from util-linux 2.24.
  23. diff --git a/gentoo/bash-wrapper b/gentoo/bash-wrapper
  24. index 56dda76..d504a31 100755
  25. --- a/gentoo/bash-wrapper
  26. +++ b/gentoo/bash-wrapper
  27. @@ -48,7 +48,7 @@ the GNU General Public License. This program has absolutely no warranty."
  28. exit 0
  29. }
  30. -tmp=$(getopt -o +q --long help,version,debug -n "$0" -- "$@") || exit 1
  31. +tmp=$(getopt -o +q -l help,version,debug -n "$0" -- "$@") || exit 1
  32. eval set -- "$tmp"
  33. while true; do
  34. diff --git a/scripts/chbind b/scripts/chbind
  35. index 2524644..a9c809a 100755
  36. --- a/scripts/chbind
  37. +++ b/scripts/chbind
  38. @@ -60,7 +60,7 @@ the GNU General Public License. This program has absolutely no warranty."
  39. exit $1
  40. }
  41. -tmp=$(getopt -o + --long ncap:,nid:,ip:,bcast:,lback:,disconnect,flag:,secure,silent,help,version -n "$0" -- "$@") || exit 1
  42. +tmp=$(getopt -o + -l ncap:,nid:,ip:,bcast:,lback:,disconnect,flag:,secure,silent,help,version -n "$0" -- "$@") || exit 1
  43. eval set -- "$tmp"
  44. OPT_CAPS=()
  45. diff --git a/scripts/chcontext b/scripts/chcontext
  46. index d30f645..877c0ca 100755
  47. --- a/scripts/chcontext
  48. +++ b/scripts/chcontext
  49. @@ -101,7 +101,7 @@ the GNU General Public License. This program has absolutely no warranty."
  50. $_VSERVER_INFO - FEATURE migrate || exec $_CHCONTEXT_COMPAT "$@"
  51. -tmp=$(getopt -o + --long cap:,ctx:,xid:,disconnect,domainname:,flag:,hostname:,secure,silent,help,version,spaces: -n "$0" -- "$@") || exit 1
  52. +tmp=$(getopt -o + -l cap:,ctx:,xid:,disconnect,domainname:,flag:,hostname:,secure,silent,help,version,spaces: -n "$0" -- "$@") || exit 1
  53. eval set -- "$tmp"
  54. OPT_CAPS=()
  55. diff --git a/scripts/legacy/vserver-copy b/scripts/legacy/vserver-copy
  56. index 792d563..20c21a6 100755
  57. --- a/scripts/legacy/vserver-copy
  58. +++ b/scripts/legacy/vserver-copy
  59. @@ -150,7 +150,7 @@ if [ $# -eq 0 ]; then # Script invoked with no command-line args?
  60. exit 1
  61. fi
  62. -temp=$(getopt -o hVvqd:i:rRs --long help,version,verbose,quiet,domain:,ip:,vsroot,rsh,stopstart, -n $me -- "$@")
  63. +temp=$(getopt -o hVvqd:i:rRs -l help,version,verbose,quiet,domain:,ip:,vsroot,rsh,stopstart, -n $me -- "$@")
  64. if [ $? -ne 0 ]; then
  65. echo " (See -h for help)"
  66. diff --git a/scripts/pkgmgmt b/scripts/pkgmgmt
  67. index 2da1b1e..9cfce4e 100755
  68. --- a/scripts/pkgmgmt
  69. +++ b/scripts/pkgmgmt
  70. @@ -444,7 +444,7 @@ function processVserver()
  71. _umountFilesystems "$vserver" || return 1
  72. }
  73. -tmp=$(getopt -o y --long debug,externalize,internalize,help,version,force -n "$0" -- "$@") || exit 1
  74. +tmp=$(getopt -o y -l debug,externalize,internalize,help,version,force -n "$0" -- "$@") || exit 1
  75. eval set -- "$tmp"
  76. IS_EXTERNALIZE=
  77. diff --git a/scripts/start-vservers b/scripts/start-vservers
  78. index a5f21e4..812044c 100755
  79. --- a/scripts/start-vservers
  80. +++ b/scripts/start-vservers
  81. @@ -81,7 +81,7 @@ set +e
  82. tmp=$(getopt -o c:j:m: \
  83. - --long debug,help,version,start,stop,test,$VS_ALLVSERVERS_ARGS \
  84. + -l debug,help,version,start,stop,test,$VS_ALLVSERVERS_ARGS \
  85. -n "$0" -- "$@") || exit 1
  86. eval set -- "$tmp"
  87. diff --git a/scripts/vapt-get b/scripts/vapt-get
  88. index 7e82249..a7d2d30 100755
  89. --- a/scripts/vapt-get
  90. +++ b/scripts/vapt-get
  91. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  92. exit 0
  93. }
  94. -tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  95. +tmp=$(getopt -o +q -l help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  96. eval set -- "$tmp"
  97. declare -a send_through vsomething_opts
  98. diff --git a/scripts/vdispatch-conf b/scripts/vdispatch-conf
  99. index 084c687..7d80fe8 100755
  100. --- a/scripts/vdispatch-conf
  101. +++ b/scripts/vdispatch-conf
  102. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  103. exit 0
  104. }
  105. -tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  106. +tmp=$(getopt -o +q -l help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  107. eval set -- "$tmp"
  108. declare -a send_through vsomething_opts
  109. diff --git a/scripts/vemerge b/scripts/vemerge
  110. index 36321ab..3a46970 100755
  111. --- a/scripts/vemerge
  112. +++ b/scripts/vemerge
  113. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  114. exit 0
  115. }
  116. -tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  117. +tmp=$(getopt -o +q -l help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  118. eval set -- "$tmp"
  119. declare -a send_through vsomething_opts
  120. diff --git a/scripts/vesync b/scripts/vesync
  121. index 8720345..2244075 100755
  122. --- a/scripts/vesync
  123. +++ b/scripts/vesync
  124. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  125. exit 0
  126. }
  127. -tmp=$(getopt -o +q --long help,version,debug,quiet,all,overlay,overlay-host,overlay-only -n "$0" -- "$@") || exit 1
  128. +tmp=$(getopt -o +q -l help,version,debug,quiet,all,overlay,overlay-host,overlay-only -n "$0" -- "$@") || exit 1
  129. eval set -- "$tmp"
  130. declare -a send_through vsomething_opts
  131. diff --git a/scripts/vmount b/scripts/vmount
  132. index c9dde07..79fcc15 100755
  133. --- a/scripts/vmount
  134. +++ b/scripts/vmount
  135. @@ -65,7 +65,7 @@ while test $# -gt 0; do
  136. shift
  137. done
  138. -tmp=$(getopt -o +o:t:an --long help,version,debug,bind,rbind,move -n "$0" -- "$@") || exit 1
  139. +tmp=$(getopt -o +o:t:an -l help,version,debug,bind,rbind,move -n "$0" -- "$@") || exit 1
  140. eval set -- "$tmp"
  141. declare -a options
  142. diff --git a/scripts/vrpm b/scripts/vrpm
  143. index 0bae9dd..378c867 100755
  144. --- a/scripts/vrpm
  145. +++ b/scripts/vrpm
  146. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  147. exit 0
  148. }
  149. -tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  150. +tmp=$(getopt -o +q -l help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  151. eval set -- "$tmp"
  152. declare -a send_through vsomething_opts
  153. diff --git a/scripts/vserver b/scripts/vserver
  154. index c9f9f24..0cecb76 100755
  155. --- a/scripts/vserver
  156. +++ b/scripts/vserver
  157. @@ -121,7 +121,7 @@ function msg()
  158. set +e
  159. OPTIONS_ORIG=( "$@" )
  160. -tmp=$(getopt -o +sv --long nonamespace,--nonamespace,--insecure,defaulttty,help,debug,strace,debug-sysv,version,sync,verbose,silent -n "$0" -- "$@") || exit 1
  161. +tmp=$(getopt -o +sv -l nonamespace,--nonamespace,--insecure,defaulttty,help,debug,strace,debug-sysv,version,sync,verbose,silent -n "$0" -- "$@") || exit 1
  162. eval set -- "$tmp"
  163. OPTION_FORCE_SYNC=
  164. diff --git a/scripts/vserver-build b/scripts/vserver-build
  165. index 1a20bfd..cfca34c 100755
  166. --- a/scripts/vserver-build
  167. +++ b/scripts/vserver-build
  168. @@ -103,7 +103,7 @@ set -e
  169. declare -a default_opts=()
  170. test -n "$NO_DEFAULT_OPTS" || getFileArray default_opts "$__CONFDIR/.defaults/apps/build/options" || :
  171. -tmp=$(getopt -o +m:n: --long keep,force,i-know-its-there,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
  172. +tmp=$(getopt -o +m:n: -l keep,force,i-know-its-there,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
  173. "${default_opts[@]}" "$@") || exit 1
  174. eval set -- "$tmp"
  175. diff --git a/scripts/vserver-build.apt-rpm b/scripts/vserver-build.apt-rpm
  176. index b40f9bf..14ff9b0 100644
  177. --- a/scripts/vserver-build.apt-rpm
  178. +++ b/scripts/vserver-build.apt-rpm
  179. @@ -15,7 +15,7 @@
  180. # along with this program; if not, write to the Free Software
  181. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  182. -tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
  183. +tmp=$(getopt -o +d: -l debug -n "$0" -- "$@") || exit 1
  184. eval set -- "$tmp"
  185. . "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
  186. diff --git a/scripts/vserver-build.clone b/scripts/vserver-build.clone
  187. index f3ad8b0..d029677 100644
  188. --- a/scripts/vserver-build.clone
  189. +++ b/scripts/vserver-build.clone
  190. @@ -15,7 +15,7 @@
  191. # along with this program; if not, write to the Free Software
  192. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  193. -tmp=$(getopt -o '+d:s:o:X:' --long debug,pkgmgmt,source:,exclude-from: -n "$0" -- "$@") || exit 1
  194. +tmp=$(getopt -o '+d:s:o:X:' -l debug,pkgmgmt,source:,exclude-from: -n "$0" -- "$@") || exit 1
  195. eval set -- "$tmp"
  196. . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
  197. diff --git a/scripts/vserver-build.debootstrap b/scripts/vserver-build.debootstrap
  198. index 34fd21b..ab63bf0 100644
  199. --- a/scripts/vserver-build.debootstrap
  200. +++ b/scripts/vserver-build.debootstrap
  201. @@ -128,7 +128,7 @@ function fixupDebian
  202. ### main starts here <---
  203. -tmp=$(getopt -o '+d:m:s:' --long debug -n "$0" -- "$@") || exit 1
  204. +tmp=$(getopt -o '+d:m:s:' -l debug -n "$0" -- "$@") || exit 1
  205. eval set -- "$tmp"
  206. init
  207. diff --git a/scripts/vserver-build.fai b/scripts/vserver-build.fai
  208. index 6e2333f..9a99419 100644
  209. --- a/scripts/vserver-build.fai
  210. +++ b/scripts/vserver-build.fai
  211. @@ -14,7 +14,7 @@
  212. # along with this program; if not, write to the Free Software
  213. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  214. -tmp=$(getopt -o '+d:f:n:a' --long debug,pkgmgmt -n "$0" -- "$@") || exit 1
  215. +tmp=$(getopt -o '+d:f:n:a' -l debug,pkgmgmt -n "$0" -- "$@") || exit 1
  216. eval set -- "$tmp"
  217. . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
  218. diff --git a/scripts/vserver-build.rpm b/scripts/vserver-build.rpm
  219. index 3de83de..5eb93be 100644
  220. --- a/scripts/vserver-build.rpm
  221. +++ b/scripts/vserver-build.rpm
  222. @@ -15,7 +15,7 @@
  223. # along with this program; if not, write to the Free Software
  224. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  225. -tmp=$(getopt -o +d:b:e --long debug,empty -n "$0" -- "$@") || exit 1
  226. +tmp=$(getopt -o +d:b:e -l debug,empty -n "$0" -- "$@") || exit 1
  227. eval set -- "$tmp"
  228. . "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
  229. diff --git a/scripts/vserver-build.rsync b/scripts/vserver-build.rsync
  230. index 0260834..cb79e0c 100644
  231. --- a/scripts/vserver-build.rsync
  232. +++ b/scripts/vserver-build.rsync
  233. @@ -15,7 +15,7 @@
  234. # along with this program; if not, write to the Free Software
  235. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  236. -tmp=$(getopt -o '+d:s:o:' --long debug,pkgmgmt,source: -n "$0" -- "$@") || exit 1
  237. +tmp=$(getopt -o '+d:s:o:' -l debug,pkgmgmt,source: -n "$0" -- "$@") || exit 1
  238. eval set -- "$tmp"
  239. . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
  240. diff --git a/scripts/vserver-build.skeleton b/scripts/vserver-build.skeleton
  241. index 90ddd3b..80b6383 100644
  242. --- a/scripts/vserver-build.skeleton
  243. +++ b/scripts/vserver-build.skeleton
  244. @@ -15,7 +15,7 @@
  245. # along with this program; if not, write to the Free Software
  246. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  247. -tmp=$(getopt -o '+d:' --long debug,pkgmgmt -n "$0" -- "$@") || exit 1
  248. +tmp=$(getopt -o '+d:' -l debug,pkgmgmt -n "$0" -- "$@") || exit 1
  249. eval set -- "$tmp"
  250. . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
  251. diff --git a/scripts/vserver-build.template b/scripts/vserver-build.template
  252. index 77b7326..837044c 100644
  253. --- a/scripts/vserver-build.template
  254. +++ b/scripts/vserver-build.template
  255. @@ -15,7 +15,7 @@
  256. # along with this program; if not, write to the Free Software
  257. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  258. -tmp=$(getopt -o '+d:t:' --long debug,pkgmgmt,template:,nodevsanity -n "vserver-build.template" -- "$@") || exit 1
  259. +tmp=$(getopt -o '+d:t:' -l debug,pkgmgmt,template:,nodevsanity -n "vserver-build.template" -- "$@") || exit 1
  260. eval set -- "$tmp"
  261. . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
  262. diff --git a/scripts/vserver-build.urpmi b/scripts/vserver-build.urpmi
  263. index c372535..056859d 100644
  264. --- a/scripts/vserver-build.urpmi
  265. +++ b/scripts/vserver-build.urpmi
  266. @@ -15,7 +15,7 @@
  267. # along with this program; if not, write to the Free Software
  268. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  269. -tmp=$(getopt -o '+d:m:o:' --long debug,mirror:,mirrorlist -n "$0" -- "$@") || exit 1
  270. +tmp=$(getopt -o '+d:m:o:' -l debug,mirror:,mirrorlist -n "$0" -- "$@") || exit 1
  271. eval set -- "$tmp"
  272. . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
  273. diff --git a/scripts/vserver-build.yum b/scripts/vserver-build.yum
  274. index 23fe436..1d5194b 100644
  275. --- a/scripts/vserver-build.yum
  276. +++ b/scripts/vserver-build.yum
  277. @@ -15,7 +15,7 @@
  278. # along with this program; if not, write to the Free Software
  279. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  280. -tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
  281. +tmp=$(getopt -o +d: -l debug -n "$0" -- "$@") || exit 1
  282. eval set -- "$tmp"
  283. . "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
  284. diff --git a/scripts/vsomething b/scripts/vsomething
  285. index a87c1b7..20d144b 100755
  286. --- a/scripts/vsomething
  287. +++ b/scripts/vsomething
  288. @@ -60,7 +60,7 @@ the GNU General Public License. This program has absolutely no warranty."
  289. is_quiet=
  290. declare -a vservers=()
  291. -tmp=$(getopt -o +q --long help,version,debug,quiet -n "$0" -- "$@") || exit 1
  292. +tmp=$(getopt -o +q -l help,version,debug,quiet -n "$0" -- "$@") || exit 1
  293. eval set -- "$tmp"
  294. while true; do
  295. diff --git a/scripts/vupdateworld b/scripts/vupdateworld
  296. index ebc5edf..95ff553 100755
  297. --- a/scripts/vupdateworld
  298. +++ b/scripts/vupdateworld
  299. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  300. exit 0
  301. }
  302. -tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  303. +tmp=$(getopt -o +q -l help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1
  304. eval set -- "$tmp"
  305. declare -a send_through vsomething_opts
  306. diff --git a/scripts/vurpm b/scripts/vurpm
  307. index 0e60186..a239e56 100755
  308. --- a/scripts/vurpm
  309. +++ b/scripts/vurpm
  310. @@ -49,7 +49,7 @@ the GNU General Public License. This program has absolutely no warranty."
  311. exit 0
  312. }
  313. -tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
  314. +tmp=$(getopt -o +q -l help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
  315. eval set -- "$tmp"
  316. declare -a send_through urpmi_opts
  317. diff --git a/scripts/vyum b/scripts/vyum
  318. index 7004d87..d897d81 100755
  319. --- a/scripts/vyum
  320. +++ b/scripts/vyum
  321. @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty."
  322. exit 0
  323. }
  324. -tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
  325. +tmp=$(getopt -o +q -l help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
  326. eval set -- "$tmp"
  327. declare -a send_through yum_opts
  328. --
  329. 1.7.2.3