[arch-commits] Commit in parted/repos (8 files)

Giovanni Scafora giovanni at archlinux.org
Sat Mar 3 14:00:11 UTC 2012


    Date: Saturday, March 3, 2012 @ 09:00:11
  Author: giovanni
Revision: 151852

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  parted/repos/staging-i686/
  parted/repos/staging-i686/PKGBUILD
    (from rev 151851, parted/trunk/PKGBUILD)
  parted/repos/staging-i686/linux.c.patch
    (from rev 151851, parted/trunk/linux.c.patch)
  parted/repos/staging-i686/parted.install
    (from rev 151851, parted/trunk/parted.install)
  parted/repos/staging-x86_64/
  parted/repos/staging-x86_64/PKGBUILD
    (from rev 151851, parted/trunk/PKGBUILD)
  parted/repos/staging-x86_64/linux.c.patch
    (from rev 151851, parted/trunk/linux.c.patch)
  parted/repos/staging-x86_64/parted.install
    (from rev 151851, parted/trunk/parted.install)

-------------------------------+
 staging-i686/PKGBUILD         |   32 ++++++++++++++++++++++++++++++++
 staging-i686/linux.c.patch    |   25 +++++++++++++++++++++++++
 staging-i686/parted.install   |   18 ++++++++++++++++++
 staging-x86_64/PKGBUILD       |   32 ++++++++++++++++++++++++++++++++
 staging-x86_64/linux.c.patch  |   25 +++++++++++++++++++++++++
 staging-x86_64/parted.install |   18 ++++++++++++++++++
 6 files changed, 150 insertions(+)

Copied: parted/repos/staging-i686/PKGBUILD (from rev 151851, parted/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2012-03-03 14:00:11 UTC (rev 151852)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+
+pkgname=parted
+pkgver=3.1
+pkgrel=1
+pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://www.gnu.org/software/parted/parted.html"
+depends=('device-mapper' 'e2fsprogs')
+makedepends=('pkg-config')
+options=('!libtool')
+install=parted.install
+source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz")
+md5sums=('5d89d64d94bcfefa9ce8f59f4b81bdcb')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  ./configure --prefix=/usr \
+              --disable-debug \
+              --disable-rpath
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: parted/repos/staging-i686/linux.c.patch (from rev 151851, parted/trunk/linux.c.patch)
===================================================================
--- staging-i686/linux.c.patch	                        (rev 0)
+++ staging-i686/linux.c.patch	2012-03-03 14:00:11 UTC (rev 151852)
@@ -0,0 +1,25 @@
+--- a/libparted/arch/linux.c	2011-05-27 14:52:37.000000000 +0200
++++ b/libparted/arch/linux.c	2011-07-29 20:25:38.000000000 +0200
+@@ -601,17 +601,17 @@
+         static int kver = -1;
+ 
+         struct utsname uts;
+-        int major;
+-        int minor;
+-        int teeny;
++        int major = 0;
++        int minor = 0;
++        int teeny = 0;
+ 
+         if (kver != -1)
+                 return kver;
+ 
+         if (uname (&uts))
+                 return kver = 0;
+-        if (sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny) != 3)
+-                return kver = 0;
++        int n = sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny);
++        assert (n == 2 || n == 3);
+ 
+         return kver = KERNEL_VERSION (major, minor, teeny);
+ }

Copied: parted/repos/staging-i686/parted.install (from rev 151851, parted/trunk/parted.install)
===================================================================
--- staging-i686/parted.install	                        (rev 0)
+++ staging-i686/parted.install	2012-03-03 14:00:11 UTC (rev 151852)
@@ -0,0 +1,18 @@
+info_dir=/usr/share/info
+info_files=(parted.info)
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}

Copied: parted/repos/staging-x86_64/PKGBUILD (from rev 151851, parted/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2012-03-03 14:00:11 UTC (rev 151852)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+
+pkgname=parted
+pkgver=3.1
+pkgrel=1
+pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://www.gnu.org/software/parted/parted.html"
+depends=('device-mapper' 'e2fsprogs')
+makedepends=('pkg-config')
+options=('!libtool')
+install=parted.install
+source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz")
+md5sums=('5d89d64d94bcfefa9ce8f59f4b81bdcb')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  ./configure --prefix=/usr \
+              --disable-debug \
+              --disable-rpath
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: parted/repos/staging-x86_64/linux.c.patch (from rev 151851, parted/trunk/linux.c.patch)
===================================================================
--- staging-x86_64/linux.c.patch	                        (rev 0)
+++ staging-x86_64/linux.c.patch	2012-03-03 14:00:11 UTC (rev 151852)
@@ -0,0 +1,25 @@
+--- a/libparted/arch/linux.c	2011-05-27 14:52:37.000000000 +0200
++++ b/libparted/arch/linux.c	2011-07-29 20:25:38.000000000 +0200
+@@ -601,17 +601,17 @@
+         static int kver = -1;
+ 
+         struct utsname uts;
+-        int major;
+-        int minor;
+-        int teeny;
++        int major = 0;
++        int minor = 0;
++        int teeny = 0;
+ 
+         if (kver != -1)
+                 return kver;
+ 
+         if (uname (&uts))
+                 return kver = 0;
+-        if (sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny) != 3)
+-                return kver = 0;
++        int n = sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny);
++        assert (n == 2 || n == 3);
+ 
+         return kver = KERNEL_VERSION (major, minor, teeny);
+ }

Copied: parted/repos/staging-x86_64/parted.install (from rev 151851, parted/trunk/parted.install)
===================================================================
--- staging-x86_64/parted.install	                        (rev 0)
+++ staging-x86_64/parted.install	2012-03-03 14:00:11 UTC (rev 151852)
@@ -0,0 +1,18 @@
+info_dir=/usr/share/info
+info_files=(parted.info)
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}




More information about the arch-commits mailing list