[arch-commits] Commit in libbsd/repos (8 files)
Lukas Fleischer
lfleischer at archlinux.org
Mon Aug 11 14:23:51 UTC 2014
Date: Monday, August 11, 2014 @ 16:23:50
Author: lfleischer
Revision: 219570
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
libbsd/repos/extra-i686/PKGBUILD
(from rev 219569, libbsd/trunk/PKGBUILD)
libbsd/repos/extra-i686/spt.patch
(from rev 219569, libbsd/trunk/spt.patch)
libbsd/repos/extra-x86_64/PKGBUILD
(from rev 219569, libbsd/trunk/PKGBUILD)
libbsd/repos/extra-x86_64/spt.patch
(from rev 219569, libbsd/trunk/spt.patch)
Deleted:
libbsd/repos/extra-i686/PKGBUILD
libbsd/repos/extra-i686/spt.patch
libbsd/repos/extra-x86_64/PKGBUILD
libbsd/repos/extra-x86_64/spt.patch
------------------------+
/PKGBUILD | 78 ++++++++++++++++++++++++++++++++++++
/spt.patch | 100 +++++++++++++++++++++++++++++++++++++++++++++++
extra-i686/PKGBUILD | 39 ------------------
extra-i686/spt.patch | 50 -----------------------
extra-x86_64/PKGBUILD | 39 ------------------
extra-x86_64/spt.patch | 50 -----------------------
6 files changed, 178 insertions(+), 178 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2014-08-11 14:23:40 UTC (rev 219569)
+++ extra-i686/PKGBUILD 2014-08-11 14:23:50 UTC (rev 219570)
@@ -1,39 +0,0 @@
-# $Id$
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
-
-pkgname=libbsd
-pkgver=0.6.0
-pkgrel=2
-pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
-arch=('i686' 'x86_64')
-url="http://libbsd.freedesktop.org"
-license=('custom')
-depends=('glibc')
-options=('staticlibs')
-source=(http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz{,.asc})
-md5sums=('f6c75f0a9818e323a589bcbd560a0eb4'
- 'SKIP')
-
-build() {
- cd $pkgname-$pkgver
-
- ./configure --prefix=/usr
- make
-}
-
-check() {
- cd $pkgname-$pkgver
-
- make check
-}
-
-package() {
- cd $pkgname-$pkgver
-
- make DESTDIR="$pkgdir" install
- rm "${pkgdir}"/usr/lib/libbsd.a
- install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: libbsd/repos/extra-i686/PKGBUILD (from rev 219569, libbsd/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2014-08-11 14:23:50 UTC (rev 219570)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
+
+pkgname=libbsd
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
+arch=('i686' 'x86_64')
+url="http://libbsd.freedesktop.org"
+license=('custom')
+depends=('glibc')
+options=('staticlibs')
+source=("http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"{,.asc})
+md5sums=('fcceb4e66fd448ca4ed42ba22a8babb0'
+ 'SKIP')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ make check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ rm "${pkgdir}"/usr/lib/libbsd.a
+ install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: extra-i686/spt.patch
===================================================================
--- extra-i686/spt.patch 2014-08-11 14:23:40 UTC (rev 219569)
+++ extra-i686/spt.patch 2014-08-11 14:23:50 UTC (rev 219570)
@@ -1,50 +0,0 @@
-diff -u -r libbsd-0.5.2-orig/src/setproctitle.c libbsd-0.5.2/src/setproctitle.c
---- libbsd-0.5.2-orig/src/setproctitle.c 2013-06-08 18:26:04.000000000 +0200
-+++ libbsd-0.5.2/src/setproctitle.c 2013-06-18 02:35:59.441393418 +0200
-@@ -86,7 +86,7 @@
- if (environ != envp)
- return 0;
-
-- /* Make a copy of the old environ array of pointers, in case
-+ /* Make a deep copy of the old environ array of pointers, in case
- * clearenv() or setenv() is implemented to free the internal
- * environ array, because we will need to access the old environ
- * contents to make the new copy. */
-@@ -94,11 +94,13 @@
- envcopy = malloc(envsize);
- if (envcopy == NULL)
- return errno;
-- memcpy(envcopy, envp, envsize);
-+ for (i = 0; envp[i]; i++) envcopy[i] = strdup(envp[i]);
-+ envcopy[i] = NULL;
-
- error = spt_clearenv();
- if (error) {
- environ = envp;
-+ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
- free(envcopy);
- return error;
- }
-@@ -116,18 +118,20 @@
- if (error) {
- #ifdef HAVE_CLEARENV
- /* Because the old environ might not be available
-- * anymore we will make do with the shallow copy. */
-+ * anymore we will make do with the deep copy. */
- environ = envcopy;
- #else
- environ = envp;
-+ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
- free(envcopy);
- #endif
- return error;
- }
- }
-
-- /* Dispose of the shallow copy, now that we've finished transfering
-+ /* Dispose of the deep copy, now that we've finished transfering
- * the old environment. */
-+ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
- free(envcopy);
-
- return 0;
Copied: libbsd/repos/extra-i686/spt.patch (from rev 219569, libbsd/trunk/spt.patch)
===================================================================
--- extra-i686/spt.patch (rev 0)
+++ extra-i686/spt.patch 2014-08-11 14:23:50 UTC (rev 219570)
@@ -0,0 +1,50 @@
+diff -u -r libbsd-0.5.2-orig/src/setproctitle.c libbsd-0.5.2/src/setproctitle.c
+--- libbsd-0.5.2-orig/src/setproctitle.c 2013-06-08 18:26:04.000000000 +0200
++++ libbsd-0.5.2/src/setproctitle.c 2013-06-18 02:35:59.441393418 +0200
+@@ -86,7 +86,7 @@
+ if (environ != envp)
+ return 0;
+
+- /* Make a copy of the old environ array of pointers, in case
++ /* Make a deep copy of the old environ array of pointers, in case
+ * clearenv() or setenv() is implemented to free the internal
+ * environ array, because we will need to access the old environ
+ * contents to make the new copy. */
+@@ -94,11 +94,13 @@
+ envcopy = malloc(envsize);
+ if (envcopy == NULL)
+ return errno;
+- memcpy(envcopy, envp, envsize);
++ for (i = 0; envp[i]; i++) envcopy[i] = strdup(envp[i]);
++ envcopy[i] = NULL;
+
+ error = spt_clearenv();
+ if (error) {
+ environ = envp;
++ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
+ free(envcopy);
+ return error;
+ }
+@@ -116,18 +118,20 @@
+ if (error) {
+ #ifdef HAVE_CLEARENV
+ /* Because the old environ might not be available
+- * anymore we will make do with the shallow copy. */
++ * anymore we will make do with the deep copy. */
+ environ = envcopy;
+ #else
+ environ = envp;
++ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
+ free(envcopy);
+ #endif
+ return error;
+ }
+ }
+
+- /* Dispose of the shallow copy, now that we've finished transfering
++ /* Dispose of the deep copy, now that we've finished transfering
+ * the old environment. */
++ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
+ free(envcopy);
+
+ return 0;
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2014-08-11 14:23:40 UTC (rev 219569)
+++ extra-x86_64/PKGBUILD 2014-08-11 14:23:50 UTC (rev 219570)
@@ -1,39 +0,0 @@
-# $Id$
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
-
-pkgname=libbsd
-pkgver=0.6.0
-pkgrel=2
-pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
-arch=('i686' 'x86_64')
-url="http://libbsd.freedesktop.org"
-license=('custom')
-depends=('glibc')
-options=('staticlibs')
-source=(http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz{,.asc})
-md5sums=('f6c75f0a9818e323a589bcbd560a0eb4'
- 'SKIP')
-
-build() {
- cd $pkgname-$pkgver
-
- ./configure --prefix=/usr
- make
-}
-
-check() {
- cd $pkgname-$pkgver
-
- make check
-}
-
-package() {
- cd $pkgname-$pkgver
-
- make DESTDIR="$pkgdir" install
- rm "${pkgdir}"/usr/lib/libbsd.a
- install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: libbsd/repos/extra-x86_64/PKGBUILD (from rev 219569, libbsd/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2014-08-11 14:23:50 UTC (rev 219570)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
+
+pkgname=libbsd
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
+arch=('i686' 'x86_64')
+url="http://libbsd.freedesktop.org"
+license=('custom')
+depends=('glibc')
+options=('staticlibs')
+source=("http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"{,.asc})
+md5sums=('fcceb4e66fd448ca4ed42ba22a8babb0'
+ 'SKIP')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ make check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ rm "${pkgdir}"/usr/lib/libbsd.a
+ install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: extra-x86_64/spt.patch
===================================================================
--- extra-x86_64/spt.patch 2014-08-11 14:23:40 UTC (rev 219569)
+++ extra-x86_64/spt.patch 2014-08-11 14:23:50 UTC (rev 219570)
@@ -1,50 +0,0 @@
-diff -u -r libbsd-0.5.2-orig/src/setproctitle.c libbsd-0.5.2/src/setproctitle.c
---- libbsd-0.5.2-orig/src/setproctitle.c 2013-06-08 18:26:04.000000000 +0200
-+++ libbsd-0.5.2/src/setproctitle.c 2013-06-18 02:35:59.441393418 +0200
-@@ -86,7 +86,7 @@
- if (environ != envp)
- return 0;
-
-- /* Make a copy of the old environ array of pointers, in case
-+ /* Make a deep copy of the old environ array of pointers, in case
- * clearenv() or setenv() is implemented to free the internal
- * environ array, because we will need to access the old environ
- * contents to make the new copy. */
-@@ -94,11 +94,13 @@
- envcopy = malloc(envsize);
- if (envcopy == NULL)
- return errno;
-- memcpy(envcopy, envp, envsize);
-+ for (i = 0; envp[i]; i++) envcopy[i] = strdup(envp[i]);
-+ envcopy[i] = NULL;
-
- error = spt_clearenv();
- if (error) {
- environ = envp;
-+ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
- free(envcopy);
- return error;
- }
-@@ -116,18 +118,20 @@
- if (error) {
- #ifdef HAVE_CLEARENV
- /* Because the old environ might not be available
-- * anymore we will make do with the shallow copy. */
-+ * anymore we will make do with the deep copy. */
- environ = envcopy;
- #else
- environ = envp;
-+ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
- free(envcopy);
- #endif
- return error;
- }
- }
-
-- /* Dispose of the shallow copy, now that we've finished transfering
-+ /* Dispose of the deep copy, now that we've finished transfering
- * the old environment. */
-+ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
- free(envcopy);
-
- return 0;
Copied: libbsd/repos/extra-x86_64/spt.patch (from rev 219569, libbsd/trunk/spt.patch)
===================================================================
--- extra-x86_64/spt.patch (rev 0)
+++ extra-x86_64/spt.patch 2014-08-11 14:23:50 UTC (rev 219570)
@@ -0,0 +1,50 @@
+diff -u -r libbsd-0.5.2-orig/src/setproctitle.c libbsd-0.5.2/src/setproctitle.c
+--- libbsd-0.5.2-orig/src/setproctitle.c 2013-06-08 18:26:04.000000000 +0200
++++ libbsd-0.5.2/src/setproctitle.c 2013-06-18 02:35:59.441393418 +0200
+@@ -86,7 +86,7 @@
+ if (environ != envp)
+ return 0;
+
+- /* Make a copy of the old environ array of pointers, in case
++ /* Make a deep copy of the old environ array of pointers, in case
+ * clearenv() or setenv() is implemented to free the internal
+ * environ array, because we will need to access the old environ
+ * contents to make the new copy. */
+@@ -94,11 +94,13 @@
+ envcopy = malloc(envsize);
+ if (envcopy == NULL)
+ return errno;
+- memcpy(envcopy, envp, envsize);
++ for (i = 0; envp[i]; i++) envcopy[i] = strdup(envp[i]);
++ envcopy[i] = NULL;
+
+ error = spt_clearenv();
+ if (error) {
+ environ = envp;
++ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
+ free(envcopy);
+ return error;
+ }
+@@ -116,18 +118,20 @@
+ if (error) {
+ #ifdef HAVE_CLEARENV
+ /* Because the old environ might not be available
+- * anymore we will make do with the shallow copy. */
++ * anymore we will make do with the deep copy. */
+ environ = envcopy;
+ #else
+ environ = envp;
++ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
+ free(envcopy);
+ #endif
+ return error;
+ }
+ }
+
+- /* Dispose of the shallow copy, now that we've finished transfering
++ /* Dispose of the deep copy, now that we've finished transfering
+ * the old environment. */
++ for(i = 0; envcopy[i]; i++) free(envcopy[i]);
+ free(envcopy);
+
+ return 0;
More information about the arch-commits
mailing list