Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gcc6.git;a=commitdiff;h=10f9b7aaae5480f12d79b67398c8f91b21ef5032

commit 10f9b7aaae5480f12d79b67398c8f91b21ef5032
Author: crazy <[email protected]>
Date:   Fri Sep 9 22:06:07 2016 +0200

pacman-g2-3.9.2-5-x86_64
* restore some patches
* and remove duplicate ones

diff --git 
a/source/base/pacman-g2/0001-makepkg-workaround-some-grep-issues.patch 
b/source/base/pacman-g2/0001-makepkg-workaround-some-grep-issues.patch
new file mode 100644
index 0000000..039571e
--- /dev/null
+++ b/source/base/pacman-g2/0001-makepkg-workaround-some-grep-issues.patch
@@ -0,0 +1,34 @@
+From 8d20cd4461c92855686bc3ca8822e92fdee31d87 Mon Sep 17 00:00:00 2001
+From: crazy <[email protected]>
+Date: Mon, 20 Jun 2016 13:35:05 +0200
+Subject: [PATCH] makepkg - workaround some grep issues
+
+---
+ scripts/makepkg | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/scripts/makepkg b/scripts/makepkg
+index 030e668..f3c1ba3 100755
+--- a/scripts/makepkg
++++ b/scripts/makepkg
+@@ -1114,7 +1114,7 @@ if [ "$CHROOT" = "1" -a "$INCHROOT" != "1" ]; then
+               # copy these before any update since without them we can't even 
reach the servers
+               cp -pf /etc/{resolv.conf,services} $CHROOTDIR/etc
+               # run pacman-g2 -Su twice in case pacman-g2 updated
+-              yes "" | /usr/sbin/chroot "$CHROOTDIR" $PACMAN -Sy pacman-g2 
--ask 94 && \
++              yes "" 2>/dev/null | /usr/sbin/chroot "$CHROOTDIR" $PACMAN -Sy 
pacman-g2 --ask 94 && \
+                       /usr/sbin/chroot "$CHROOTDIR" $PACMAN -Su --noconfirm
+               if [ "$?" != "0" ]; then
+                       error "Failed to update chroot environment."
+@@ -1213,7 +1213,7 @@ if [ "$CHROOT" = "1" -a "$INCHROOT" != "1" ]; then
+               chroot_clean
+               # check optimization and write it to $BUILDSCRIPT
+               msg "Checking for optimization..."
+-              if cat "${BUILDLOG}" | grep -v HOST_ | grep -q -- 
"\($CFLAGS\|$CXXFLAGS\)" ; then
++              if grep -v "HOST_"  "${BUILDLOG}"  2>/dev/null | grep -E  -q  
"(${CFLAGS}|${CXXFLAGS})" ; then
+                       if ! grep -q "# optimization" "${BUILDSCRIPT}" ; then
+                               $ECHO -e "\n# optimization OK" >> 
"${BUILDSCRIPT}"
+                       fi
+--
+2.9.0
+
diff --git a/source/base/pacman-g2/0001-makepkg.conf-LDFLAGS.patch 
b/source/base/pacman-g2/0001-makepkg.conf-LDFLAGS.patch
deleted file mode 100644
index 0fc1950..0000000
--- a/source/base/pacman-g2/0001-makepkg.conf-LDFLAGS.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 83bdc1464844bdac50b5d02acc822e477eb3ff5a Mon Sep 17 00:00:00 2001
-From: crazy <[email protected]>
-Date: Mon, 5 Sep 2016 19:34:50 +0200
-Subject: [PATCH 1/3] makepkg.conf LDFLAGS * added -Wl,-O1 to LDFLAGS
-
----
- etc/makepkg.conf.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
-index 226621c..da3c5e9 100644
---- a/etc/makepkg.conf.in
-+++ b/etc/makepkg.conf.in
-@@ -26,7 +26,7 @@ case $(uname -m) in
- esac
- export CARCH CHOST CFLAGS CXXFLAGS
-
--export LDFLAGS="-Wl,--hash-style=both"
-+export LDFLAGS="-Wl,--hash-style=both -Wl,-O1"
-
- # SMP Systems
- #export MAKEFLAGS="-j2"
---
-2.9.3
-
diff --git a/source/base/pacman-g2/0002-disable-stable.patch 
b/source/base/pacman-g2/0002-disable-stable.patch
deleted file mode 100644
index d8ad5de..0000000
--- a/source/base/pacman-g2/0002-disable-stable.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 7e1d17651728ce946eccb7cbb0acf226eaf00cfe Mon Sep 17 00:00:00 2001
-From: crazy <[email protected]>
-Date: Mon, 5 Sep 2016 19:45:57 +0200
-Subject: [PATCH 2/3] disable stable
-
----
- etc/pacman-g2.conf.in           | 3 ---
- etc/pacman-g2/repos/Makefile.am | 2 +-
- 2 files changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/etc/pacman-g2.conf.in b/etc/pacman-g2.conf.in
-index 0d6fd0d..2e9a6b3 100644
---- a/etc/pacman-g2.conf.in
-+++ b/etc/pacman-g2.conf.in
-@@ -21,9 +21,6 @@ OldDelay    = 3
- # -current
- Include = /etc/pacman-g2/repos/frugalware-current
-
--# -stable
--#Include = /etc/pacman-g2/repos/frugalware
--
- # An example of a custom package repository.  See the pacman-g2 manpage for
- # tips on creating your own repositories.
- #[custom]
-diff --git a/etc/pacman-g2/repos/Makefile.am b/etc/pacman-g2/repos/Makefile.am
-index 6400031..db74ed4 100644
---- a/etc/pacman-g2/repos/Makefile.am
-+++ b/etc/pacman-g2/repos/Makefile.am
-@@ -1,4 +1,4 @@
--EXTRA_DIST = frugalware frugalware-current
-+EXTRA_DIST = frugalware-current
-
- install-data-hook:
-       mkdir -p $(DESTDIR)$(sysconfdir)/pacman-g2/repos ; \
---
-2.9.3
-
diff --git a/source/base/pacman-g2/0003-makepkg.patch 
b/source/base/pacman-g2/0003-makepkg.patch
deleted file mode 100644
index 8bb50d1..0000000
--- a/source/base/pacman-g2/0003-makepkg.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 9bf10ee83c11cf6e7a21434e12434e6a35707f8d Mon Sep 17 00:00:00 2001
-From: crazy <[email protected]>
-Date: Mon, 5 Sep 2016 19:59:16 +0200
-Subject: [PATCH 3/3] makepkg * move version checking before doing anything
- else .. * strange logic to install depends and stuff and * then error out
- because up2date does not match !?! :)
-
----
- scripts/makepkg | 55 ++++++++++++++++++++++++++++---------------------------
- 1 file changed, 28 insertions(+), 27 deletions(-)
-
-diff --git a/scripts/makepkg b/scripts/makepkg
-index f3c1ba3..1dd241b 100755
---- a/scripts/makepkg
-+++ b/scripts/makepkg
-@@ -1266,6 +1266,34 @@ fi
-
- msg "Making package: $pkgname $pkgver-$pkgrel (`date`)"
-
-+# version checking
-+if [ "$NOUP2DATE" = "0" ]; then
-+        msg "Checking for newer version..."
-+        if $ECHO "$up2date"|grep -q " "; then
-+                cmd=`$ECHO "$up2date"|sed 's/^\([^ ]*\) .*/\1/'`
-+                if type -p $cmd &>/dev/null; then
-+                        up2date=`eval "$up2date"`
-+                else
-+                        warning "The $cmd program is missing.  Cannot check 
for newer version!"
-+                        up2date=""
-+                        sleep 1
-+                fi
-+        fi
-+        if [ -z "$up2date" ]; then
-+                        $ECHO "   FAILED" >&2
-+                        error "There was no output!"
-+                        exit 1
-+        else
-+                if [ "$pkgver" != "$up2date" ]; then
-+                        $ECHO "   FAILED" >&2
-+                              error "Upstream version differs! ($pkgver != 
$up2date)"
-+                        exit 1
-+                else
-+                $ECHO "   Passed" >&2
-+                fi
-+        fi
-+fi
-+
- unset deplist makedeplist
- if [ `type -p $PACMAN` -a "$NODEPS" = "0" ]; then
-       msg "Checking Buildtime Dependencies..."
-@@ -1300,33 +1328,6 @@ fi
-
- cd $startdir
-
--# version checking
--if [ "$NOUP2DATE" = "0" ]; then
--      msg "Checking for newer version..."
--      if $ECHO "$up2date"|grep -q " "; then
--              cmd=`$ECHO "$up2date"|sed 's/^\([^ ]*\) .*/\1/'`
--              if type -p $cmd &>/dev/null; then
--                      up2date=`eval "$up2date"`
--              else
--                      warning "The $cmd program is missing.  Cannot check for 
newer version!"
--                      up2date=""
--                      sleep 1
--              fi
--      fi
--      if [ -z "$up2date" ]; then
--                      $ECHO "   FAILED" >&2
--                      error "There was no output!"
--                      exit 1
--      else
--              if [ "$pkgver" != "$up2date" ]; then
--                      $ECHO "   FAILED" >&2
--                       error "Upstream version differs! ($pkgver != $up2date)"
--                      exit 1
--              else
--              $ECHO "   Passed" >&2
--              fi
--      fi
--fi
-
- # estimate build time
- if grep -i -q "^# Compiling Time: [~0-9\.]\+ SBU$" $BUILDSCRIPT && \
---
-2.9.3
-
diff --git a/source/base/pacman-g2/FrugalBuild 
b/source/base/pacman-g2/FrugalBuild
index c7d4b26..cb409ba 100644
--- a/source/base/pacman-g2/FrugalBuild
+++ b/source/base/pacman-g2/FrugalBuild
@@ -9,7 +9,7 @@ USE_MINIMAL=${USE_MINIMAL:-"n"}
pkgname=pacman-g2
pkgver=3.9.2
Fuse $USE_DEVEL && pkgver=3.8.1.18.gc254053
-pkgrel=4
+pkgrel=5
pkgdesc="A .tar.xz based package manager library (libpacman) and client 
(pacman-g2) with dependency support."
url="http://ftp.frugalware.org/pub/other/pacman-g2/";
backup=(etc/{makepkg,pacman-g2}.conf etc/pacman-g2/repos/frugalware-current)
@@ -32,11 +32,13 @@ _F_archive_nosort=y
up2date="Flasttar $url/releases/"
if ! Fuse $USE_DEVEL; then
source=($url/releases/$pkgname-$pkgver.tar.gz \
+       0001-makepkg-workaround-some-grep-issues.patch \
+       makepkg-tell-what-dirs-files-are-broken.patch \
0001-makepkg.conf.patch \
0002-makepkg.conf-LDFLAGS.patch \
0003-disable-stable.patch \
0004-makepkg.patch)
-       signatures=("$source.asc" '' '' '' '')
+       signatures=("$source.asc" '' '' '' '' '' '')
else
_F_scm_type="git"
_F_scm_url="git://git.frugalware.org/pub/other/pacman-g2/pacman-g2"
diff --git 
a/source/base/pacman-g2/makepkg-tell-what-dirs-files-are-broken.patch 
b/source/base/pacman-g2/makepkg-tell-what-dirs-files-are-broken.patch
new file mode 100644
index 0000000..c0b276c
--- /dev/null
+++ b/source/base/pacman-g2/makepkg-tell-what-dirs-files-are-broken.patch
@@ -0,0 +1,41 @@
+From c7a2f12ec0ee9a7bff07d12c50063c08e0dc7c75 Mon Sep 17 00:00:00 2001
+From: crazy <[email protected]>
+Date: Mon, 6 Jun 2016 22:44:41 +0200
+Subject: [PATCH 2/2] makepkg tell what dirs/files are broken * vmiklos told me
+ to fix it and I fixed it in my local tree but forgot to push :| * now makepkg
+ will tell what dir is wrong eg: * /usr/man should be /usr/share/man and so
+ on..
+
+---
+ scripts/makepkg | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/scripts/makepkg b/scripts/makepkg
+index bac0fdc..8ce169a 100755
+--- a/scripts/makepkg
++++ b/scripts/makepkg
+@@ -1733,13 +1733,14 @@ do
+               exit 1
+       fi
+       ## broken /usr/share
+-      if [ -d ${dir}/usr/man ] || [ -d ${dir}/usr/docs ] || [ -d 
${dir}/usr/$pkgname ]; then
+-              error "Broken package detected files are installed in /usr"
+-              error "but should be /usr/share"
+-              error "datadir may be broken!"
+-              error "Bailing out, please fix your package!"
+-      exit 1
+-      fi
++      for file in man docs $pkgname; do
++              if [ -d ${dir}/usr/$file ]; then
++                      error "Broken package detected files are installed"
++                      error "in /usr/$file but should be /usr/share/$file"
++                      error "Bailing out, please fix your package!"
++                      exit 1
++              fi
++      done
+       ## wrong unit path for systemd
+       if [ -d ${dir}/usr/lib/systemd/system ]; then
+               error "Your package has broken PATH for systemd unit files"
+--
+2.8.3
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to