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

commit da8157c12198f57c232dd87744c4464883f4a8e3
Author: crazy <[email protected]>
Date:   Mon Sep 5 21:48:25 2016 +0200

pacman-g2-3.9.2-4-x86_64
* added patches from git for makepkg, makepkg.conf and pacman-g2.conf

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
deleted file mode 100644
index 039571e..0000000
--- a/source/base/pacman-g2/0001-makepkg-workaround-some-grep-issues.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-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
new file mode 100644
index 0000000..0fc1950
--- /dev/null
+++ b/source/base/pacman-g2/0001-makepkg.conf-LDFLAGS.patch
@@ -0,0 +1,25 @@
+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/0001-makepkg.conf.patch 
b/source/base/pacman-g2/0001-makepkg.conf.patch
new file mode 100644
index 0000000..31fe1ae
--- /dev/null
+++ b/source/base/pacman-g2/0001-makepkg.conf.patch
@@ -0,0 +1,29 @@
+From bea6d0e4915c091d6ffa00ca4a374c6b279f3acf Mon Sep 17 00:00:00 2001
+From: crazy <[email protected]>
+Date: Mon, 5 Sep 2016 19:33:50 +0200
+Subject: [PATCH 1/4] makepkg.conf * kill ARM
+
+---
+ etc/makepkg.conf.in | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
+index cbf4051..226621c 100644
+--- a/etc/makepkg.conf.in
++++ b/etc/makepkg.conf.in
+@@ -23,12 +23,6 @@ case $(uname -m) in
+               CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
+               CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
+               ;;
+-      arm*)
+-              CARCH="arm"
+-              CHOST="arm-frugalware-linux"
+-              CFLAGS="-march=armv5te -O2 -pipe"
+-              CXXFLAGS="-march=armv5te -O2 -pipe"
+-              ;;
+ esac
+ export CARCH CHOST CFLAGS CXXFLAGS
+
+--
+2.9.3
+
diff --git a/source/base/pacman-g2/0002-disable-stable.patch 
b/source/base/pacman-g2/0002-disable-stable.patch
new file mode 100644
index 0000000..d8ad5de
--- /dev/null
+++ b/source/base/pacman-g2/0002-disable-stable.patch
@@ -0,0 +1,37 @@
+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/0002-makepkg.conf-LDFLAGS.patch 
b/source/base/pacman-g2/0002-makepkg.conf-LDFLAGS.patch
new file mode 100644
index 0000000..4d1655d
--- /dev/null
+++ b/source/base/pacman-g2/0002-makepkg.conf-LDFLAGS.patch
@@ -0,0 +1,25 @@
+From 83bdc1464844bdac50b5d02acc822e477eb3ff5a Mon Sep 17 00:00:00 2001
+From: crazy <[email protected]>
+Date: Mon, 5 Sep 2016 19:34:50 +0200
+Subject: [PATCH 2/4] 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/0003-disable-stable.patch 
b/source/base/pacman-g2/0003-disable-stable.patch
new file mode 100644
index 0000000..9f27564
--- /dev/null
+++ b/source/base/pacman-g2/0003-disable-stable.patch
@@ -0,0 +1,37 @@
+From 7e1d17651728ce946eccb7cbb0acf226eaf00cfe Mon Sep 17 00:00:00 2001
+From: crazy <[email protected]>
+Date: Mon, 5 Sep 2016 19:45:57 +0200
+Subject: [PATCH 3/4] 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
new file mode 100644
index 0000000..8bb50d1
--- /dev/null
+++ b/source/base/pacman-g2/0003-makepkg.patch
@@ -0,0 +1,87 @@
+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/0004-makepkg.patch 
b/source/base/pacman-g2/0004-makepkg.patch
new file mode 100644
index 0000000..07a902e
--- /dev/null
+++ b/source/base/pacman-g2/0004-makepkg.patch
@@ -0,0 +1,87 @@
+From 9bf10ee83c11cf6e7a21434e12434e6a35707f8d Mon Sep 17 00:00:00 2001
+From: crazy <[email protected]>
+Date: Mon, 5 Sep 2016 19:59:16 +0200
+Subject: [PATCH 4/4] 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 7008321..c7d4b26 100644
--- a/source/base/pacman-g2/FrugalBuild
+++ b/source/base/pacman-g2/FrugalBuild
@@ -5,60 +5,49 @@
USE_DEBUG=${USE_DEBUG:-"n"}
USE_DEVEL=${USE_DEVEL:-"n"}
USE_MINIMAL=${USE_MINIMAL:-"n"}
-USE_STABLE=${USE_STABLE:-"n"}

pkgname=pacman-g2
pkgver=3.9.2
Fuse $USE_DEVEL && pkgver=3.8.1.18.gc254053
-pkgrel=3
+pkgrel=4
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,frugalware-current})
-depends=('libarchive>=3.1.2-4' 'glibc>=2.22-7' 'grep>=2.5.3-4' 'util-linux' 
'nettle' 'xz>=5.2.2-4')
+backup=(etc/{makepkg,pacman-g2}.conf etc/pacman-g2/repos/frugalware-current)
+depends=('libarchive>=3.1.2-4' 'glibc>=2.24' 'grep>=2.5.3-4' 'util-linux' 
'nettle' 'xz>=5.2.2-4')
rodepends=('shadow') ## wrong but since pacman installs itself first ...
## not sure why it needs nettle ?:( nettle is in chroot-core so something else 
need it
if ! Fuse $USE_MINIMAL; then
## temporarily disable some makedepends
-       if [ "$CARCH" == "arm" ]; then
-               makedepends=('po4a' 'swig' \
-                'asciidoc' 'docbook-xsl' \
-                'docbook-xml' 'sgml-common' 'cvs' 'vala')
-       else
-               makedepends=('doxygen>=1.7.3-1' 'po4a' 'swig' \
-               'openjdk' 'mono' 'asciidoc' 'docbook-xsl' \
-               'docbook-xml' 'sgml-common' 'cvs' 'vala')
-       fi
+       makedepends=('doxygen>=1.7.3-1' 'po4a' 'swig' \
+       'openjdk' 'mono' 'asciidoc' 'docbook-xsl' \
+       'docbook-xml' 'sgml-common' 'cvs' 'vala' 'gcc>=6.2.1')
options+=('scriptlet')
fi
Fuse $USE_DEVEL && makedepends=(${makedepends[@]} 'intltool')
_F_mono_nodepends=y
Finclude mono
groups=('base' 'chroot-core')
-archs=('i686' 'x86_64' 'arm')
+archs=('i686' 'x86_64')
_F_archive_nosort=y
up2date="Flasttar $url/releases/"
if ! Fuse $USE_DEVEL; then
-       source=($url/releases/$pkgname-$pkgver.tar.gz 
makepkg-tell-what-dirs-files-are-broken.patch \
-               0001-makepkg-workaround-some-grep-issues.patch)
-       signatures=("$source.asc" '' '')
-       if Fuse $USE_STABLE; then
-               source=("${source[@]}" stable.patch)
-               signatures=("${signatures[@]}" '')
-       fi
+       source=($url/releases/$pkgname-$pkgver.tar.gz \
+       0001-makepkg.conf.patch \
+       0002-makepkg.conf-LDFLAGS.patch \
+       0003-disable-stable.patch \
+       0004-makepkg.patch)
+       signatures=("$source.asc" '' '' '' '')
else
_F_scm_type="git"
_F_scm_url="git://git.frugalware.org/pub/other/pacman-g2/pacman-g2"
Finclude scm
fi

-if [ "$CARCH" == "arm" ]; then
-       Fconfopts+=" --disable-java"
-fi
if ! Fuse $USE_DEBUG; then
Fconfopts+=" --disable-debug"
else
Fconfopts+=" --enable-debug"
-       options=("${options[@]}" 'nostrip')
+       options+=('nostrip')
fi

conflicts=('pacman-returns')
@@ -76,9 +65,11 @@ build()
fi

CFLAGS=${CFLAGS/O2/O0}
-       if Fuse $USE_MINIMAL || [ "$CARCH" == "arm" ]; then
+       if Fuse $USE_MINIMAL; then
Fbuild
else
+               Fcd
+               Fautoreconf
Fbuild_mono
fi
make check
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
deleted file mode 100644
index c0b276c..0000000
--- a/source/base/pacman-g2/makepkg-tell-what-dirs-files-are-broken.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-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
-
diff --git a/source/base/pacman-g2/pacman-g2.install 
b/source/base/pacman-g2/pacman-g2.install
new file mode 100644
index 0000000..af79df4
--- /dev/null
+++ b/source/base/pacman-g2/pacman-g2.install
@@ -0,0 +1,13 @@
+
+post_upgrade() {
+
+       if ! grep -q "\-Wl,-O1" /etc/makepkg.conf ; then
+               echo "Updating LDFLAGS.."
+               sed -i 's/LDFLAGS="/LDFLAGS="-Wl,-O1 /g' /etc/makepkg.conf
+       fi
+
+}
+
+op=$1
+shift
+$op $*
diff --git a/source/base/pacman-g2/stable.patch 
b/source/base/pacman-g2/stable.patch
deleted file mode 100644
index 7d6cc1d..0000000
--- a/source/base/pacman-g2/stable.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -ur a/etc/pacman-g2.conf.in b/etc/pacman-g2.conf.in
---- a/etc/pacman-g2.conf.in    2012-06-14 09:31:03.000000000 -0500
-+++ b/etc/pacman-g2.conf.in    2013-02-01 16:09:26.957177982 -0600
-@@ -19,10 +19,10 @@
- # tree to avoid conflicts
-
- # -current
--Include = /etc/pacman-g2/repos/frugalware-current
-+#Include = /etc/pacman-g2/repos/frugalware-current
-
- # -stable
--#Include = /etc/pacman-g2/repos/frugalware
-+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.
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to