Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwnext.git;a=commitdiff;h=97af1071fcc6cee0d0a9d512367f5c68301ec3f8

commit 97af1071fcc6cee0d0a9d512367f5c68301ec3f8
Author: crazy <[email protected]>
Date:   Sun Oct 4 19:15:33 2015 +0200

coreutils-8.24-2-x86_64
* fix up dircolors*

diff --git a/source/base/coreutils/FrugalBuild 
b/source/base/coreutils/FrugalBuild
index 81ee5d3..c22518b 100644
--- a/source/base/coreutils/FrugalBuild
+++ b/source/base/coreutils/FrugalBuild
@@ -6,7 +6,7 @@ options+=('asneeded')

pkgname=coreutils
pkgver=8.24
-pkgrel=1
+pkgrel=2
pkgdesc="These are the GNU core utilities, the basic command line programs"
url="http://www.gnu.org/software/coreutils";
depends=('bash>=4.3_042-3' 'glibc>=2.22-3' 'gmp>=6.0.0-3')
@@ -16,19 +16,34 @@ Fup2gnugz
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz \
DIR_COLORS \
newbie-aliases.sh \
-       dircolors.sh)
-signatures=(${source[0]}.sig '' '' '')
+       dircolors.sh dircolors.c \
+       dircolors.h dircolors.1 \
+       dc-ls-fix.patch no-dircolors-man.patch)
+signatures=(${source[0]}.sig '' '' '' '' '' '' '' '')

build()
{
Fcd
-       #cp -f $Fsrcdir/dircolors.{c,h} src/
-       #cp -f $Fsrcdir/dircolors.1 man/
+       Fexec cp -f -v $Fsrcdir/dircolors.{c,h} src/
+       Fexec rm -v -rf man/dircolors.*  ## broken
+
+       Fpatchall
+       Fautoreconf
+
export FORCE_UNSAFE_CONFIGURE=1
-       Fbuild --bindir=/bin --datadir=/usr/share --infodir=/usr/share/info 
--mandir=/usr/share/man \
-               --enable-largefile --enable-install-program=arch 
ac_cv_func_openat=no
+       Fconf --bindir=/bin \
+               --datadir=/usr/share \
+               --infodir=/usr/share/info \
+               --mandir=/usr/share/man \
+               --enable-largefile \
+               --enable-install-program=arch \
+               ac_cv_func_openat=no
+
+       Fsed  "man/dircolors.1" "" Makefile
+       Fmakeinstall

Ffile /etc/DIR_COLORS
+       Ffile /usr/share/man/man1/dircolors.1
# compat symlinks
Fmkdir /usr/{bin,sbin}
Fln install /usr/bin/ginstall
diff --git a/source/base/coreutils/dc-ls-fix.patch 
b/source/base/coreutils/dc-ls-fix.patch
new file mode 100644
index 0000000..982a6db
--- /dev/null
+++ b/source/base/coreutils/dc-ls-fix.patch
@@ -0,0 +1,14 @@
+diff -Naur coreutils-8.24/src/ls.c coreutils-8.24-ls/src/ls.c
+--- coreutils-8.24/src/ls.c    2015-06-26 19:05:22.000000000 +0200
++++ coreutils-8.24-ls/src/ls.c 2015-10-04 17:50:44.743178376 +0200
+@@ -2315,8 +2315,8 @@
+   if (! term || ! *term)
+     return false;
+
+-  char const *line = G_line;
+-  while (line - G_line < sizeof (G_line))
++  char const *line = (char const *)G_line;
++  while (line - (char const *)G_line < sizeof (G_line))
+     {
+       if (STRNCMP_LIT (line, "TERM ") == 0)
+         {
diff --git a/source/base/coreutils/dircolors.c 
b/source/base/coreutils/dircolors.c
index 3fa58b3..43bc162 100644
--- a/source/base/coreutils/dircolors.c
+++ b/source/base/coreutils/dircolors.c
@@ -19,12 +19,22 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */

+
+#include <config.h>
+
+#include <sys/types.h>
+#include <getopt.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>

+#include "config.h"
+#include "dircolors.h"
+
+
#define ETC_DIR "/etc"
#define USER_FILE ".dir_colors" /* Versus user's home directory */
#define SYSTEM_FILE "/DIR_COLORS" /* System-wide file in directory SYSTEM_DIR
diff --git a/source/base/coreutils/no-dircolors-man.patch 
b/source/base/coreutils/no-dircolors-man.patch
new file mode 100644
index 0000000..dfc1f7e
--- /dev/null
+++ b/source/base/coreutils/no-dircolors-man.patch
@@ -0,0 +1,22 @@
+diff -Naur coreutils-8.24/Makefile.in coreutils-8.24-man/Makefile.in
+--- coreutils-8.24/Makefile.in 2015-07-03 23:23:13.000000000 +0200
++++ coreutils-8.24-man/Makefile.in     2015-10-04 18:44:35.345124319 +0200
+@@ -14156,7 +14156,6 @@
+ @SINGLE_BINARY_FALSE@man/dd.1:        src/dd$(EXEEXT)
+ @SINGLE_BINARY_FALSE@man/df.1:        src/df$(EXEEXT)
+ @SINGLE_BINARY_FALSE@man/dir.1:       src/dir$(EXEEXT)
+-@SINGLE_BINARY_FALSE@man/dircolors.1: src/dircolors$(EXEEXT)
+ @SINGLE_BINARY_FALSE@man/dirname.1:   src/dirname$(EXEEXT)
+ @SINGLE_BINARY_FALSE@man/du.1:        src/du$(EXEEXT)
+ @SINGLE_BINARY_FALSE@man/echo.1:      src/echo$(EXEEXT)
+diff -Naur coreutils-8.24/man/local.mk coreutils-8.24-man/man/local.mk
+--- coreutils-8.24/man/local.mk        2015-06-26 19:04:19.000000000 +0200
++++ coreutils-8.24-man/man/local.mk    2015-10-04 18:45:24.043373074 +0200
+@@ -78,7 +78,6 @@
+ man/dd.1:        src/dd$(EXEEXT)
+ man/df.1:        src/df$(EXEEXT)
+ man/dir.1:       src/dir$(EXEEXT)
+-man/dircolors.1: src/dircolors$(EXEEXT)
+ man/dirname.1:   src/dirname$(EXEEXT)
+ man/du.1:        src/du$(EXEEXT)
+ man/echo.1:      src/echo$(EXEEXT)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to