mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merged haikuports/haikuports into master
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
SUMMARY="gzip compression utilities and libraries"
|
||||
DESCRIPTION="
|
||||
gzip (GNU zip) is a compression utility designed to be a \
|
||||
replacement for compress. It provides better compression than compress \
|
||||
and although bzip2 produces smaller files is not as fast as bzip2 is.
|
||||
"
|
||||
HOMEPAGE="http://www.gzip.org/"
|
||||
SRC_URI="ftp://ftp.gnu.org/gnu/gzip/gzip-1.2.4a.tar.gz"
|
||||
CHECKSUM_MD5="39053e044b18ecd0627f80fbe7cfeaad"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD()
|
||||
{
|
||||
cd gzip-1.2.4a
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd gzip-1.2.4a
|
||||
make install
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
SUMMARY="gzip compression utilities and libraries"
|
||||
DESCRIPTION="
|
||||
gzip (GNU zip) is a compression utility designed to be a \
|
||||
replacement for compress. It provides better compression than compress \
|
||||
and although bzip2 produces smaller files is not as fast as bzip2 is.
|
||||
"
|
||||
HOMEPAGE="http://www.gzip.org/"
|
||||
SRC_URI="ftp://ftp.gnu.org/gnu/gzip/gzip-1.3.12.tar.gz"
|
||||
CHECKSUM_MD5="b5bac2d21840ae077e0217bc5e4845b1"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD()
|
||||
{
|
||||
cd gzip-1.3.12
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd gzip-1.3.12
|
||||
make install
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
SUMMARY="gzip compression utilities and libraries"
|
||||
DESCRIPTION="
|
||||
gzip (GNU zip) is a compression utility designed to be a \
|
||||
replacement for compress. It provides better compression than compress \
|
||||
and although bzip2 produces smaller files is not as fast as bzip2 is.
|
||||
"
|
||||
HOMEPAGE="http://www.gzip.org/"
|
||||
SRC_URI="ftp://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz"
|
||||
CHECKSUM_MD5="e381b8506210c794278f5527cba0e765"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD()
|
||||
{
|
||||
cd gzip-1.4
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd gzip-1.4
|
||||
make install
|
||||
}
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1999, 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc.
|
||||
1992-1993 Jean-loup Gailly"
|
||||
|
||||
58
app-arch/gzip/gzip-1.6.recipe
Normal file
58
app-arch/gzip/gzip-1.6.recipe
Normal file
@@ -0,0 +1,58 @@
|
||||
SUMMARY="The gzip compression utilities"
|
||||
DESCRIPTION="gzip (GNU zip) is a compression utility designed to be a \
|
||||
replacement for compress. Its main advantages over compress are much \
|
||||
better compression and freedom from patented algorithms. It has been \
|
||||
adopted by the GNU project and is now relatively popular on the Internet."
|
||||
HOMEPAGE="http://www.gzip.org/"
|
||||
SRC_URI="https://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.xz"
|
||||
CHECKSUM_SHA256="37dfed1a485d53212c43b3fa2a7c7952f09bf5cd86e37121c222341ee1b27847"
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1992-1993 Jean-loup Gailly
|
||||
1999-2013 Free Software Foundation, Inc."
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PROVIDES="
|
||||
gzip = $portVersion
|
||||
cmd:gzip = $portVersion
|
||||
cmd:gunzip = $portVersion
|
||||
cmd:gzexe = $portVersion
|
||||
cmd:uncompress = $portVersion
|
||||
cmd:zcat = $portVersion
|
||||
cmd:zcmp = $portVersion
|
||||
cmd:zdiff = $portVersion
|
||||
cmd:zegrep = $portVersion
|
||||
cmd:zfgrep = $portVersion
|
||||
cmd:zforce = $portVersion
|
||||
cmd:zgrep = $portVersion
|
||||
cmd:zless = $portVersion
|
||||
cmd:zmore = $portVersion
|
||||
cmd:znew = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:awk
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CFLAGS="-Wno-error"
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
diff -Naur gzip-1.2.4a/Makefile.in gzip-1.2.4a-beos/Makefile.in
|
||||
--- gzip-1.2.4a/Makefile.in Tue Aug 17 19:12:40 1993
|
||||
+++ gzip-1.2.4a-beos/Makefile.in Thu Jan 3 00:19:57 2008
|
||||
@@ -102,7 +102,7 @@
|
||||
# Where to install the manual pages.
|
||||
mandir = $(prefix)/man/man$(manext)
|
||||
# Use manlinks=so to use the .so method instead of hard links
|
||||
-manlinks = ln
|
||||
+manlinks = ln -s
|
||||
|
||||
alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(mandir)
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
for f in $(SCRIPTS); do \
|
||||
$(INSTALL_PROGRAM) $${f} $(scriptdir)/$${f}; done
|
||||
rm -f $(scriptdir)/$(G)zcmp; \
|
||||
- ln $(scriptdir)/$(G)zdiff $(scriptdir)/$(G)zcmp
|
||||
+ ln -s $(scriptdir)/$(G)zdiff $(scriptdir)/$(G)zcmp
|
||||
for f in gunzip$X ungzip$X $(ZCAT)$X ; do \
|
||||
rm -f $(bindir)/$${f}; done
|
||||
@if echo $(DEFS) | grep GNU_STANDARD > /dev/null; then \
|
||||
@@ -216,8 +216,8 @@
|
||||
echo 'exec gzip -dc $${1+"$$@"}' > $(bindir)/$(ZCAT)$X; \
|
||||
chmod 755 $(bindir)/gunzip$X $(bindir)/$(ZCAT)$X; \
|
||||
else \
|
||||
- ln $(bindir)/gzip$X $(bindir)/gunzip$X; \
|
||||
- ln $(bindir)/gzip$X $(bindir)/$(ZCAT)$X; \
|
||||
+ ln -s $(bindir)/gzip$X $(bindir)/gunzip$X; \
|
||||
+ ln -s $(bindir)/gzip$X $(bindir)/$(ZCAT)$X; \
|
||||
fi
|
||||
|
||||
installman: gzip.info
|
||||
@@ -233,9 +233,9 @@
|
||||
echo .so man$(manext)/gzip.$(manext) > gunzip.$(manext);\
|
||||
chmod 644 $(ZCAT).$(manext) $(G)zcmp.$(manext) gunzip.$(manext);\
|
||||
else \
|
||||
- ln gzip.$(manext) $(ZCAT).$(manext);\
|
||||
- ln $(G)zdiff.$(manext) $(G)zcmp.$(manext);\
|
||||
- ln gzip.$(manext) gunzip.$(manext);\
|
||||
+ ln -s gzip.$(manext) $(ZCAT).$(manext);\
|
||||
+ ln -s $(G)zdiff.$(manext) $(G)zcmp.$(manext);\
|
||||
+ ln -s gzip.$(manext) gunzip.$(manext);\
|
||||
fi
|
||||
-cd $(srcdir); for f in gzip.info* ; do $(INSTALL_DATA) $${f} \
|
||||
$(infodir)/$${f}; done
|
||||
@@ -251,9 +251,9 @@
|
||||
install_compress: install
|
||||
-test -f $(bindir)/compress.old || \
|
||||
mv $(bindir)/compress$X $(bindir)/compress.old
|
||||
- ln $(bindir)/gzip$X $(bindir)/compress$X
|
||||
+ ln -s $(bindir)/gzip$X $(bindir)/compress$X
|
||||
rm -f $(bindir)/uncompress$X
|
||||
- ln $(bindir)/gzip$X $(bindir)/uncompress$X
|
||||
+ ln -s $(bindir)/gzip$X $(bindir)/uncompress$X
|
||||
|
||||
# Make sure all installation directories, e.g. $(bindir) actually exist by
|
||||
# making them if necessary. At most one level is created (except for man).
|
||||
@@ -329,8 +329,8 @@
|
||||
gzip$X: Makefile $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
rm -f gunzip$X $(ZCAT)$X
|
||||
- ln gzip$X gunzip$X
|
||||
- ln gzip$X $(ZCAT)$X
|
||||
+ ln -s gzip$X gunzip$X
|
||||
+ ln -s gzip$X $(ZCAT)$X
|
||||
|
||||
gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
|
||||
util$O lzw$O unlzw$O unpack$O unlzh$O crypt$O: gzip.h tailor.h
|
||||
@@ -1,19 +0,0 @@
|
||||
diff -Naur gzip-1.3.12-original/configure.ac gzip-1.3.12/configure.ac
|
||||
--- gzip-1.3.12-original/configure.ac 2009-04-06 23:31:48.000000000 -0400
|
||||
+++ gzip-1.3.12/configure.ac 2009-04-06 23:37:45.000000000 -0400
|
||||
@@ -26,13 +26,14 @@
|
||||
AC_CONFIG_AUX_DIR(build-aux)
|
||||
AC_CONFIG_HEADERS([lib/config.h:lib/config.hin])
|
||||
AM_INIT_AUTOMAKE([gnits])
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AC_PROG_CC_STDC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_CPP
|
||||
AC_CHECK_TOOL([NM], [nm], [nm])
|
||||
AC_PROG_LN_S
|
||||
-AC_PROG_RANLIB
|
||||
+LT_INIT
|
||||
AC_PROG_SHELL
|
||||
|
||||
gl_EARLY
|
||||
@@ -1,20 +0,0 @@
|
||||
--- stdbool_.h 2008-05-14 14:48:48.000000000 +0000
|
||||
+++ gzip-1.3.12/lib/stdbool_.h 2007-03-30 23:56:06.000000000 +0000
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
|
||||
definitions below, but temporarily we have to #undef them. */
|
||||
-#if defined __BEOS__ && !defined __HAIKU__
|
||||
+#ifdef __BEOS__
|
||||
# include <OS.h> /* defines bool but not _Bool */
|
||||
# undef false
|
||||
# undef true
|
||||
@@ -73,7 +73,7 @@
|
||||
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
|
||||
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the
|
||||
enum; this ensures that '_Bool' promotes to 'int'. */
|
||||
-#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
|
||||
+#if defined __cplusplus || defined __BEOS__
|
||||
/* A compiler known to have 'bool'. */
|
||||
/* If the compiler already has both 'bool' and '_Bool', we can assume they
|
||||
are the same types. */
|
||||
@@ -1,18 +0,0 @@
|
||||
--- gzip-1.4/inflate.c 2010-01-20 14:15:12.017039360 +0100
|
||||
+++ gzip-1.4/inflate.c 2011-12-03 00:03:37.421003264 +0100
|
||||
@@ -588,6 +588,7 @@
|
||||
/* do the copy */
|
||||
do {
|
||||
n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e);
|
||||
+ {
|
||||
#if !defined(NOMEMCPY) && !defined(DEBUG)
|
||||
unsigned int delta = w > d ? w - d : d - w;
|
||||
if (delta >= e)
|
||||
@@ -602,6 +603,7 @@
|
||||
slide[w++] = slide[d++];
|
||||
Tracevv((stderr, "%c", slide[w-1]));
|
||||
} while (--e);
|
||||
+ }
|
||||
if (w == WSIZE)
|
||||
{
|
||||
flush_output(w);
|
||||
33
app-misc/weather/weather-0.0.1_git.recipe
Normal file
33
app-misc/weather/weather-0.0.1_git.recipe
Normal file
@@ -0,0 +1,33 @@
|
||||
SUMMARY="A simple weather application."
|
||||
DESCRIPTION="A small weather application built for GCI, currently only a GUI demonstration. Network capability should arrive by 0.1.1"
|
||||
HOMEPAGE="https://github.com/georgewhite5/HaikuWeather"
|
||||
SRC_URI="git+https://github.com/georgewhite5/HaikuWeather.git#7731be69bbcd1a150a72a631ef84784c842c75ec"
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
REVISION="1"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2014 George White"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
makefile_engine
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
weather
|
||||
app:Weather = $portVersion
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make OBJDIR=objects
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cd objects*
|
||||
cp Weather $appsDir/Weather
|
||||
addAppDeskbarSymlink $appsDir/Weather
|
||||
}
|
||||
@@ -89,6 +89,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:sed
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
perlArchName="$(uname -m)-haiku"
|
||||
|
||||
61
dev-qt/monkeystudio/monkeystudio-1.9.0.4.recipe
Normal file
61
dev-qt/monkeystudio/monkeystudio-1.9.0.4.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
SUMMARY="A cross platform IDE written in C++/Qt 4"
|
||||
DESCRIPTION="MonkeyStudio's primary goal was to be a Qt 4 only IDE, but it \
|
||||
evolved to be a way to support any kind of project. It supports Qt 4 \
|
||||
project management and embeds Designer and Assistant to form a complete, \
|
||||
fast and powerful Qt-based IDE. It's based upon a flexible plugin system \
|
||||
that allows extending it in a near-infinite manner."
|
||||
HOMEPAGE="http://www.monkeystudio.org"
|
||||
SRC_URI="http://monkeystudio.googlecode.com/files/mks_1.9.0.4-src.tar.gz"
|
||||
CHECKSUM_SHA256="cfd3517ac6d4a5d8ffdf7ec9995a624b6cef13aa00163e46a9b54b1f52164ffd"
|
||||
SOURCE_DIR="mks_$portVersion-src"
|
||||
PATCHES="monkeystudio-$portVersion.patch"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2005-2012 Azevedo Filipe & The Monkey Studio Team"
|
||||
|
||||
ARCHITECTURES="x86 ?x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
monkeystudio${secondaryArchSuffix} = $portVersion
|
||||
app:MonkeyStudio${secondaryArchSuffix} = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix} >= $haikuVersion
|
||||
libqt4${secondaryArchSuffix} >= 4.8.0
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:qmake${secondaryArchSuffix}
|
||||
cmd:make
|
||||
cmd:g++${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel == $haikuVersion
|
||||
libqt4${secondaryArchSuffix}_devel >= 4.8.0
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake -set SYSTEM_QSCINTILLA 0
|
||||
qmake -r prefix=$appsDir/MonkeyStudio
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
monkeyDir=$appsDir/MonkeyStudio
|
||||
mkdir -p $monkeyDir
|
||||
make install
|
||||
|
||||
mv $monkeyDir/bin/monkeystudio $monkeyDir/bin/MonkeyStudio
|
||||
rm -rf $monkeyDir/share/applications
|
||||
rm -rf $monkeyDir/share/doc
|
||||
|
||||
addAppDeskbarSymlink $monkeyDir/bin/MonkeyStudio "MonkeyStudio"
|
||||
}
|
||||
25
dev-qt/monkeystudio/patches/monkeystudio-1.9.0.4.patch
Normal file
25
dev-qt/monkeystudio/patches/monkeystudio-1.9.0.4.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From cc357095af73c88c2cc267bc355ad59476afde50 Mon Sep 17 00:00:00 2001
|
||||
From: Augustin Cavalier <waddlesplash@gmail.com>
|
||||
Date: Wed, 3 Dec 2014 20:58:56 -0500
|
||||
Subject: [PATCH] Don't pass -rdynamic on Haiku.
|
||||
|
||||
Our GCC4 doesn't support this and throws an error.
|
||||
---
|
||||
monkey/monkey.pro | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/monkey/monkey.pro b/monkey/monkey.pro
|
||||
index e006f70..a11d135 100644
|
||||
--- a/monkey/monkey.pro
|
||||
+++ b/monkey/monkey.pro
|
||||
@@ -20,7 +20,6 @@ LIBS *= -L$${PACKAGE_BUILD_PATH}/$${Q_TARGET_ARCH}/$$buildMode()
|
||||
mac:*-g++*:LIBS *= -Wl,-all_load # import all symbols as the not used ones too
|
||||
else:*-g++*:LIBS *= -Wl,--whole-archive # import all symbols as the not used ones too
|
||||
mac:*-g++*:LIBS *= -dynamic
|
||||
-else:unix:*-g++*:LIBS *= -rdynamic
|
||||
|
||||
# include qscintilla framework
|
||||
include( ../qscintilla/qscintilla.pri )
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
@@ -7,7 +7,7 @@ HOMEPAGE="http://scummvm.org"
|
||||
SRC_URI="http://sourceforge.net/projects/scummvm/files/scummvm-tools/1.7.0/scummvm-tools-1.7.0.tar.gz"
|
||||
SOURCE_DIR="scummvm-tools-1.7.0"
|
||||
CHECKSUM_SHA256="6437cc87d5a0c81fe971c96059670e662e72141b53ee61923d374b5660997cbc"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2001-2013 ScummVM Team"
|
||||
|
||||
@@ -33,7 +33,7 @@ REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libvorbis
|
||||
lib:libogg
|
||||
lib:libflac
|
||||
lib:libFLAC
|
||||
lib:libmad
|
||||
lib:libpng
|
||||
lib:libz
|
||||
@@ -46,7 +46,7 @@ BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
devel:libvorbis
|
||||
devel:libogg
|
||||
devel:libflac
|
||||
devel:libFLAC
|
||||
devel:libmad
|
||||
devel:libpng
|
||||
devel:libz
|
||||
|
||||
@@ -7,7 +7,7 @@ were never designed!"
|
||||
HOMEPAGE="http://scummvm.org"
|
||||
SRC_URI="http://prdownloads.sourceforge.net/scummvm/scummvm-1.6.0.tar.bz2?download"
|
||||
CHECKSUM_SHA256="396060da6a8f391438055c292a280048d29dc408c5b615db43256a86f0e57ec4"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2001-2013 ScummVM Team"
|
||||
|
||||
@@ -29,7 +29,7 @@ PROVIDES="
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libfaad$secondaryArchSuffix
|
||||
lib:libflac++$secondaryArchSuffix
|
||||
lib:libFLAC++$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libfluidsynth$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
@@ -46,7 +46,7 @@ BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libfaad$secondaryArchSuffix
|
||||
devel:libflac++$secondaryArchSuffix
|
||||
devel:libFLAC++$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libfluidsynth$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
|
||||
@@ -7,7 +7,7 @@ were never designed!"
|
||||
HOMEPAGE="http://scummvm.org"
|
||||
SRC_URI="http://sourceforge.net/projects/scummvm/files/scummvm/1.7.0/scummvm-1.7.0.tar.gz"
|
||||
CHECKSUM_SHA256="aaee99d06b9c55e1359556908b5faeccfa017f2fdf5d1f3cf978dfb02b5bc301"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2001-2014 ScummVM Team"
|
||||
|
||||
@@ -29,7 +29,7 @@ PROVIDES="
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libfaad$secondaryArchSuffix
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libfluidsynth$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
@@ -47,7 +47,7 @@ BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libfaad$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libfluidsynth$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
|
||||
@@ -1,17 +1,34 @@
|
||||
--- ../main.c 2006-05-16 22:11:29.042991616 +0200
|
||||
+++ main-new.c 2013-12-09 16:52:30.000000000 +0100
|
||||
@@ -16,6 +16,10 @@
|
||||
diff --git a/main.c b/main.c
|
||||
index 6cf114c..960f57a 100644
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -16,6 +16,14 @@ along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* Includes */
|
||||
+// chdir()
|
||||
+#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
+
|
||||
+#ifdef __HAIKU__
|
||||
+#include <FindDirectory.h>
|
||||
+#endif
|
||||
+
|
||||
#include <SDL/SDL_main.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <string.h>
|
||||
@@ -102,6 +106,9 @@
|
||||
@@ -44,6 +52,10 @@ SDL_Surface *temp;
|
||||
SDL_Event event;
|
||||
char *current_dir;
|
||||
char *user_home_dir;
|
||||
+#ifdef __HAIKU__
|
||||
+char user_settings_dir[256];
|
||||
+#endif
|
||||
+char save_file[256];
|
||||
int quit = 0;
|
||||
int game_mode = GAMEON;
|
||||
int previous_game_mode = 0;
|
||||
@@ -102,6 +114,9 @@ extern "C"
|
||||
int main(int argc, char *argv[]) {
|
||||
int count, count2;
|
||||
|
||||
@@ -21,9 +38,89 @@
|
||||
/* Initialise the highscoreboard array because there may not yet
|
||||
be a saved highscore[board]/rc file */
|
||||
for (count = 0; count < 5; count++) {
|
||||
|
||||
--- ../pipepanic.rdef
|
||||
+++ pipepanic.rdef
|
||||
@@ -114,7 +129,16 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
current_dir = getenv("PWD");
|
||||
user_home_dir = getenv("HOME");
|
||||
-
|
||||
+
|
||||
+ #ifdef __HAIKU__
|
||||
+ find_directory(B_USER_SETTINGS_DIRECTORY, NULL, true,
|
||||
+ user_settings_dir, sizeof(user_settings_dir));
|
||||
+ snprintf(save_file, sizeof(save_file),
|
||||
+ "%s/" RESOURCEFILE, user_settings_dir);
|
||||
+ #else
|
||||
+ snprintf(save_file, sizeof(save_file),
|
||||
+ "%s/" RESOURCEFILE, user_home_dir);
|
||||
+ #endif
|
||||
#ifdef DEBUG
|
||||
printf("PWD=%s\n", current_dir);
|
||||
printf("HOME=%s\n", user_home_dir);
|
||||
@@ -1567,16 +1591,12 @@ void read_rc_file(void) {
|
||||
FILE* file;
|
||||
int result, value, count;
|
||||
|
||||
- strcpy(buffer, user_home_dir);
|
||||
- strcat(buffer, "/");
|
||||
- strcat(buffer, RESOURCEFILE);
|
||||
-
|
||||
#ifdef DEBUG
|
||||
- printf("%s\n", buffer);
|
||||
+ printf("%s\n", save_file);
|
||||
#endif
|
||||
|
||||
- if ((file = fopen(buffer,"r")) == NULL) {
|
||||
- printf("%s: Cannot read from file %s\n", __func__, buffer);
|
||||
+ if ((file = fopen(save_file,"r")) == NULL) {
|
||||
+ printf("%s: Cannot read from file %s\n", __func__, save_file);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1638,20 +1658,15 @@ void read_rc_file(void) {
|
||||
***************************************************************************/
|
||||
|
||||
void save_rc_file(void) {
|
||||
- char buffer[256];
|
||||
FILE* file;
|
||||
int count;
|
||||
|
||||
- strcpy(buffer, user_home_dir);
|
||||
- strcat(buffer, "/");
|
||||
- strcat(buffer, RESOURCEFILE);
|
||||
-
|
||||
#ifdef DEBUG
|
||||
- printf("%s\n", buffer);
|
||||
+ printf("%s\n", save_file);
|
||||
#endif
|
||||
|
||||
- if ((file = fopen(buffer,"w")) == NULL) {
|
||||
- printf("%s: Cannot write to file %s\n", __func__, buffer);
|
||||
+ if ((file = fopen(save_file,"w")) == NULL) {
|
||||
+ printf("%s: Cannot write to file %s\n", __func__, save_file);
|
||||
return;
|
||||
}
|
||||
|
||||
diff --git a/main.h b/main.h
|
||||
index 664b75b..178f665 100644
|
||||
--- a/main.h
|
||||
+++ b/main.h
|
||||
@@ -27,7 +27,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#define TILES48BMP "tiles48.bmp"
|
||||
#define ASCII15BMP "ascii15.bmp"
|
||||
#define ASCII30BMP "ascii30.bmp"
|
||||
+#ifdef __HAIKU__
|
||||
+#define RESOURCEFILE "pipepanic"
|
||||
+#else
|
||||
#define RESOURCEFILE ".pipepanicrc"
|
||||
+#endif
|
||||
|
||||
#define MAGENTA 0xff, 0x00, 0xff
|
||||
#define YELLOW 0xff, 0xcc, 0x66
|
||||
diff --git a/pipepanic.rdef b/pipepanic.rdef
|
||||
new file mode 100644
|
||||
index 0000000..096d98d
|
||||
--- /dev/null
|
||||
+++ b/pipepanic.rdef
|
||||
@@ -0,0 +1,30 @@
|
||||
+resource app_signature "application/x-vnd.Thnor-Pipepanic";
|
||||
+
|
||||
|
||||
@@ -28,6 +28,9 @@ BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
USER_SETTINGS_FILES="
|
||||
settings/pipepanic
|
||||
"
|
||||
PATCHES="
|
||||
pipepanic-0.1.3.patch
|
||||
"
|
||||
|
||||
@@ -28,6 +28,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:xres
|
||||
cmd:gcc
|
||||
cmd:jam
|
||||
cmd:awk
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
|
||||
50
haiku-apps/shredder/shredder-1.0.0.recipe
Normal file
50
haiku-apps/shredder/shredder-1.0.0.recipe
Normal file
@@ -0,0 +1,50 @@
|
||||
SUMMARY="Safely delete files."
|
||||
DESCRIPTION="
|
||||
Shredder is a plugin for tracker, which allows to safely delete files by \
|
||||
overwriting them multiple times.
|
||||
"
|
||||
HOMEPAGE="https://github.com/HaikuArchives/Shredder"
|
||||
SRC_URI="git+https://github.com/HaikuArchives/Shredder.git#c6311845fee6e51b347a9eff2c79fbf9548316a6"
|
||||
REVISION="1"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2009 Jason Grenier"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
shredder = $portVersion
|
||||
app:Shredder = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
makefile_engine
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:mkdepend
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src/Shredder
|
||||
make $jobArgs OBJ_DIR=objects
|
||||
|
||||
cd ../Shredder-S
|
||||
make $jobArgs OBJ_DIR=objects
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cd src/Shredder
|
||||
cp objects/Shredder $appsDir/Shredder
|
||||
addPreferencesDeskbarSymlink $appsDir/Shredder
|
||||
|
||||
mkdir -p $addOnsDir/Tracker
|
||||
cd ../Shredder-S
|
||||
cp objects/Shredder-S $addOnsDir/Tracker
|
||||
}
|
||||
41
haiku-apps/systeminfo/patches/systeminfo-2-2.patchset
Normal file
41
haiku-apps/systeminfo/patches/systeminfo-2-2.patchset
Normal file
@@ -0,0 +1,41 @@
|
||||
From d0ea409005cecef76c6fcb7a0cefd0a662d340e0 Mon Sep 17 00:00:00 2001
|
||||
From: Chirayu Desai <chirayudesai1@gmail.com>
|
||||
Date: Wed, 3 Dec 2014 19:50:33 +0000
|
||||
Subject: [PATCH] CPUPercent: Update for new API
|
||||
|
||||
---
|
||||
CPUPercent.cpp | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CPUPercent.cpp b/CPUPercent.cpp
|
||||
index 3e4c8e8931..4225f73642 100644
|
||||
--- a/CPUPercent.cpp
|
||||
+++ b/CPUPercent.cpp
|
||||
@@ -19,17 +19,22 @@ void CPU_Percent::Update()
|
||||
{
|
||||
system_info info;
|
||||
get_system_info(&info);
|
||||
+
|
||||
+ cpu_info* cpuInfos = new cpu_info[info.cpu_count];
|
||||
+ get_cpu_info(0, info.cpu_count, cpuInfos);
|
||||
|
||||
delta_system = (double)system_time() - last_system_time;
|
||||
- delta_cpu = double(info.cpu_infos[theCPU].active_time) - last_active_cpu_time;
|
||||
+ delta_cpu = double(cpuInfos[theCPU].active_time) - last_active_cpu_time;
|
||||
|
||||
percent = (delta_cpu/delta_system);
|
||||
if(percent < 0) percent = 0.00;
|
||||
if(percent > 1) percent = 1.00;
|
||||
|
||||
lastpercent = percent;
|
||||
- last_active_cpu_time = (double)info.cpu_infos[theCPU].active_time;
|
||||
+ last_active_cpu_time = (double)cpuInfos[theCPU].active_time;
|
||||
last_system_time = (double)system_time();
|
||||
+
|
||||
+ delete[] cpuInfos;
|
||||
}
|
||||
|
||||
double CPU_Percent::Percentage()
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
@@ -37,6 +37,10 @@ BUILD_PREREQUIRES="
|
||||
cmd:xres
|
||||
"
|
||||
|
||||
PATCHES="
|
||||
systeminfo-2-2.patchset
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
echo "const uint32 CP_CHANGE_BG = 'CPBG'; const uint32 CP_CHANGE_FG = 'CPFG';" > ./DigitalView.h
|
||||
|
||||
@@ -13,9 +13,9 @@ LICENSE="
|
||||
MIT
|
||||
"
|
||||
SRC_URI="https://github.com/haiku/webkit/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="93e692e42ab056e6827f24f8abfe7e2ba72c375393cbf0af10ebd7465305008a"
|
||||
CHECKSUM_SHA256="a8ecce6a38af093113e03b437da1a3ea7bf075172fbc0e580da2a0b4a4da37e6"
|
||||
SRC_FILENAME="haikuwebkit-$portVersion.tar.gz"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
@@ -95,7 +95,7 @@ INSTALL()
|
||||
ninja install
|
||||
|
||||
rm $developLibDir/*
|
||||
prepareInstalledDevelLibs libWebKit
|
||||
prepareInstalledDevelLibs libWebKit libJavaScriptCore
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
@@ -106,7 +106,7 @@ INSTALL()
|
||||
|
||||
PROVIDES_devel="
|
||||
haikuwebkit${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libjavascriptcore$secondaryArchSuffix = $portVersion
|
||||
devel:libJavaScriptCore$secondaryArchSuffix = $portVersion
|
||||
devel:libwebcore$secondaryArchSuffix = $portVersion
|
||||
devel:libWebKit$secondaryArchSuffix = $portVersion
|
||||
devel:libwtf$secondaryArchSuffix = $portVersion
|
||||
|
||||
@@ -10,7 +10,7 @@ SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.g
|
||||
CHECKSUM_SHA256="a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b"
|
||||
LICENSE="Zlib"
|
||||
COPYRIGHT="1997-2012 Sam Lantinga"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
||||
@@ -30,7 +30,7 @@ REQUIRES="
|
||||
lib:libGL$secondaryArchSuffix # No clue, it wants it
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libfluidsynth$secondaryArchSuffix
|
||||
lib:libmad$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
@@ -42,7 +42,7 @@ BUILD_REQUIRES="
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libSDL2$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
devel:libfluidsynth$secondaryArchSuffix
|
||||
devel:libmad$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
|
||||
@@ -10,7 +10,7 @@ SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.g
|
||||
CHECKSUM_SHA256="1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
|
||||
LICENSE="Zlib"
|
||||
COPYRIGHT="1997-2012 Sam Lantinga"
|
||||
REVISION="4"
|
||||
REVISION="5"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
@@ -27,7 +27,7 @@ REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libSDL$secondaryArchSuffix
|
||||
lib:libSDL_1.2$secondaryArchSuffix
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
# lib:libfluidsynth$secondaryArchSuffix
|
||||
lib:libmad$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
@@ -40,7 +40,7 @@ REQUIRES="
|
||||
BUILD_REQUIRES="
|
||||
devel:libSDL$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
# devel:libfluidsynth$secondaryArchSuffix
|
||||
devel:libmad$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
|
||||
@@ -9,7 +9,7 @@ CHECKSUM_SHA256="d28b47dfbf7f8e426902ae7fa2981d821fbf84f41da9e1b85be933d2d748f60
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="2007-2012 Josh Green, Pedro Lopez-Cabanillas, David Henningsson"
|
||||
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
@@ -23,7 +23,7 @@ PROVIDES="
|
||||
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix} >= $haikuVersion
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
@@ -36,7 +36,7 @@ REQUIRES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
|
||||
@@ -5,7 +5,7 @@ vorbis-tools - tools for using the Ogg Vorbis sound file format.
|
||||
HOMEPAGE="http://www.vorbis.com/"
|
||||
SRC_URI="http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz"
|
||||
CHECKSUM_SHA256="a389395baa43f8e5a796c99daf62397e435a7e73531c9f44d9084055a05d22bc"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2000-2005 Michael Smith, Stan Seibert and other contributers"
|
||||
|
||||
@@ -25,7 +25,7 @@ PROVIDES="
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libspeex$secondaryArchSuffix
|
||||
lib:libao$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
@@ -40,7 +40,7 @@ REQUIRES="
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
devel:libspeex$secondaryArchSuffix
|
||||
devel:libao$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
|
||||
@@ -54,7 +54,7 @@ BUILD_REQUIRES="
|
||||
devel:libebml$secondaryArchSuffix
|
||||
devel:libfaac$secondaryArchSuffix
|
||||
devel:libfaad$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libfribidi$secondaryArchSuffix
|
||||
devel:libgcrypt$secondaryArchSuffix
|
||||
|
||||
@@ -130,12 +130,15 @@ PROVIDES="
|
||||
cmd:whoami = $portVersion compat >= 8
|
||||
cmd:yes = $portVersion compat >= 8
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:gcc
|
||||
cmd:grep
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:awk
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
DESCRIPTION="standard GNU file utilities"
|
||||
HOMEPAGE="http://www.gnu.org/software/coreutils"
|
||||
SRC_URI="http://ftp.gnu.org/gnu/coreutils/coreutils-8.5.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="c1ffe586d001e87d66cd80c4536ee823"
|
||||
BUILD()
|
||||
{
|
||||
cd coreutils-8.5
|
||||
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
|
||||
--infodir=`finddir B_COMMON_DOCUMENTATION`/info \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION`/man
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd coreutils-8.5
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd coreutils-8.5
|
||||
make check
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1994-1996, 2000-2010 Free Software Foundation, Inc."
|
||||
@@ -1,457 +0,0 @@
|
||||
diff -urN coreutils-6.12.orig/configure coreutils-6.12/configure
|
||||
--- coreutils-6.12.orig/configure 2008-11-30 21:41:13.000000000 +0000
|
||||
+++ coreutils-6.12/configure 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -25272,7 +25272,7 @@
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#include <sys/types.h>
|
||||
-#if defined __GLIBC__ && !defined __BEOS__
|
||||
+#if defined __GLIBC__ && !(defined(__BEOS__) || defined(__HAIKU__))
|
||||
Do not use statvfs on systems with GNU libc, because that function stats
|
||||
all preceding entries in /proc/mounts, and that makes df hang if even
|
||||
one of the corresponding file systems is hard-mounted, but not available.
|
||||
diff -urN coreutils-6.12.orig/lib/fcntl.in.h coreutils-6.12/lib/fcntl.in.h
|
||||
--- coreutils-6.12.orig/lib/fcntl.in.h 2008-11-30 21:40:44.000000000 +0000
|
||||
+++ coreutils-6.12/lib/fcntl.in.h 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -104,7 +104,7 @@
|
||||
# define O_TEXT _O_TEXT
|
||||
#endif
|
||||
|
||||
-#ifdef __BEOS__
|
||||
+#if (defined(__BEOS__) || defined(__HAIKU__))
|
||||
/* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
|
||||
# undef O_BINARY
|
||||
# undef O_TEXT
|
||||
diff -urN coreutils-6.12.orig/lib/freadahead.c coreutils-6.12/lib/freadahead.c
|
||||
--- coreutils-6.12.orig/lib/freadahead.c 2008-11-30 21:40:47.000000000 +0000
|
||||
+++ coreutils-6.12/lib/freadahead.c 2008-11-30 20:57:54.000000000 +0000
|
||||
@@ -24,7 +24,7 @@
|
||||
size_t
|
||||
freadahead (FILE *fp)
|
||||
{
|
||||
-#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
+#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
if (fp->_IO_write_ptr > fp->_IO_write_base)
|
||||
return 0;
|
||||
return (fp->_IO_read_end - fp->_IO_read_ptr)
|
||||
diff -urN coreutils-6.12.orig/lib/freadptr.c coreutils-6.12/lib/freadptr.c
|
||||
--- coreutils-6.12.orig/lib/freadptr.c 2008-11-30 21:40:44.000000000 +0000
|
||||
+++ coreutils-6.12/lib/freadptr.c 2008-11-30 21:13:58.000000000 +0000
|
||||
@@ -29,7 +29,7 @@
|
||||
size_t size;
|
||||
|
||||
/* Keep this code in sync with freadahead! */
|
||||
-#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
+#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
if (fp->_IO_write_ptr > fp->_IO_write_base)
|
||||
return NULL;
|
||||
size = fp->_IO_read_end - fp->_IO_read_ptr;
|
||||
diff -urN coreutils-6.12.orig/lib/freadseek.c coreutils-6.12/lib/freadseek.c
|
||||
--- coreutils-6.12.orig/lib/freadseek.c 2008-11-30 21:40:46.000000000 +0000
|
||||
+++ coreutils-6.12/lib/freadseek.c 2008-11-30 21:15:22.000000000 +0000
|
||||
@@ -34,7 +34,7 @@
|
||||
freadptrinc (FILE *fp, size_t increment)
|
||||
{
|
||||
/* Keep this code in sync with freadptr! */
|
||||
-#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
+#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
fp->_IO_read_ptr += increment;
|
||||
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
|
||||
fp_->_p += increment;
|
||||
diff -urN coreutils-6.12.orig/lib/fseterr.c coreutils-6.12/lib/fseterr.c
|
||||
--- coreutils-6.12.orig/lib/fseterr.c 2008-11-30 21:40:48.000000000 +0000
|
||||
+++ coreutils-6.12/lib/fseterr.c 2008-11-30 21:16:48.000000000 +0000
|
||||
@@ -29,7 +29,7 @@
|
||||
/* Most systems provide FILE as a struct and the necessary bitmask in
|
||||
<stdio.h>, because they need it for implementing getc() and putc() as
|
||||
fast macros. */
|
||||
-#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
+#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */
|
||||
fp->_flags |= _IO_ERR_SEEN;
|
||||
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
|
||||
fp_->_flags |= __SERR;
|
||||
diff -urN coreutils-6.12.orig/lib/physmem.c coreutils-6.12/lib/physmem.c
|
||||
--- coreutils-6.12.orig/lib/physmem.c 2008-11-30 21:40:44.000000000 +0000
|
||||
+++ coreutils-6.12/lib/physmem.c 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -17,6 +17,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written by Paul Eggert. */
|
||||
+#undef DEBUG
|
||||
|
||||
#include <config.h>
|
||||
|
||||
diff -urN coreutils-6.12.orig/src/copy.c coreutils-6.12/src/copy.c
|
||||
--- coreutils-6.12.orig/src/copy.c 2008-11-30 21:40:58.000000000 +0000
|
||||
+++ coreutils-6.12/src/copy.c 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -55,6 +55,10 @@
|
||||
#include "areadlink.h"
|
||||
#include "yesno.h"
|
||||
|
||||
+#if (defined(__BEOS__) || defined(__HAIKU__))
|
||||
+# include <fs_attr.h>
|
||||
+#endif
|
||||
+
|
||||
#ifndef HAVE_FCHOWN
|
||||
# define HAVE_FCHOWN false
|
||||
# define fchown(fd, uid, gid) (-1)
|
||||
@@ -127,6 +131,68 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
+
|
||||
+static int
|
||||
+copy_attributes(int fromFd, int toFd)
|
||||
+{
|
||||
+ struct dirent *dirent;
|
||||
+ char buffer[65536];
|
||||
+
|
||||
+ DIR *attributes = fs_fopen_attr_dir(fromFd);
|
||||
+ if (attributes == NULL)
|
||||
+ return -1;
|
||||
+
|
||||
+ while ((dirent = fs_read_attr_dir(attributes)) != NULL) {
|
||||
+ attr_info info;
|
||||
+ off_t pos = 0;
|
||||
+
|
||||
+ if (fs_stat_attr(fromFd, dirent->d_name, &info) != 0)
|
||||
+ continue;
|
||||
+
|
||||
+ while (info.size > 0) {
|
||||
+ ssize_t bytesRead, bytesWritten;
|
||||
+
|
||||
+ bytesRead = fs_read_attr(fromFd, dirent->d_name, info.type, pos, buffer, sizeof(buffer));
|
||||
+ if (bytesRead <= 0)
|
||||
+ break;
|
||||
+
|
||||
+ bytesWritten = fs_write_attr(toFd, dirent->d_name, info.type, pos, buffer, bytesRead);
|
||||
+ if (bytesWritten != bytesRead)
|
||||
+ break;
|
||||
+
|
||||
+ pos += bytesWritten;
|
||||
+ info.size -= bytesWritten;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ fs_close_attr_dir(attributes);
|
||||
+}
|
||||
+
|
||||
+
|
||||
+static int
|
||||
+copy_attributes_by_name(const char *from, const char *to, int resolveLinks)
|
||||
+{
|
||||
+ int fromFd, toFd, result;
|
||||
+
|
||||
+ fromFd = open(from, O_RDONLY | (resolveLinks ? 0 : O_NOTRAVERSE));
|
||||
+ if (fromFd < 0)
|
||||
+ return -1;
|
||||
+
|
||||
+ toFd = open(to, O_RDONLY | (resolveLinks ? 0 : O_NOTRAVERSE));
|
||||
+ if (toFd < 0) {
|
||||
+ close(fromFd);
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ result = copy_attributes(fromFd, toFd);
|
||||
+
|
||||
+ close(fromFd);
|
||||
+ close(toFd);
|
||||
+
|
||||
+ return result;
|
||||
+}
|
||||
+
|
||||
+
|
||||
/* Read the contents of the directory SRC_NAME_IN, and recursively
|
||||
copy the contents to DST_NAME_IN. NEW_DST is true if
|
||||
DST_NAME_IN is a directory that was created previously in the
|
||||
@@ -154,6 +220,10 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
+ if (x->ignore_attributes == 0
|
||||
+ && copy_attributes_by_name(src_name_in, dst_name_in, true) != 0)
|
||||
+ fprintf(stderr, "%s: could not copy attributes\n", src_name_in);
|
||||
+
|
||||
/* For cp's -H option, dereference command line arguments, but do not
|
||||
dereference symlinks that are found via recursive traversal. */
|
||||
if (x->dereference == DEREF_COMMAND_LINE_ARGUMENTS)
|
||||
@@ -709,6 +779,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ if (x->ignore_attributes == 0
|
||||
+ && copy_attributes(source_desc, dest_desc) != 0)
|
||||
+ fprintf(stderr, "%s: could not copy attributes\n", src_name);
|
||||
+
|
||||
+
|
||||
close_src_and_dst_desc:
|
||||
if (close (dest_desc) < 0)
|
||||
{
|
||||
@@ -1516,6 +1591,19 @@
|
||||
goto un_backup;
|
||||
}
|
||||
|
||||
+ if (link_failed)
|
||||
+ {
|
||||
+ error (0, errno, _("cannot create hard link %s to %s"),
|
||||
+ quote_n (0, dst_name), quote_n (1, earlier_file));
|
||||
+ goto un_backup;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if (x->ignore_attributes == 0
|
||||
+ && copy_attributes_by_name(earlier_file, dst_name, false) != 0)
|
||||
+ fprintf(stderr, "%s: could not copy attributes\n", earlier_file);
|
||||
+ }
|
||||
+
|
||||
return true;
|
||||
}
|
||||
}
|
||||
diff -urN coreutils-6.12.orig/src/copy.h coreutils-6.12/src/copy.h
|
||||
--- coreutils-6.12.orig/src/copy.h 2008-11-30 21:40:53.000000000 +0000
|
||||
+++ coreutils-6.12/src/copy.h 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -174,6 +174,9 @@
|
||||
fail if it is unable to do so. */
|
||||
bool require_preserve_context;
|
||||
|
||||
+ /* If nonzero, attributes will be ignored when copying. */
|
||||
+ int ignore_attributes;
|
||||
+
|
||||
/* If true, copy directories recursively and copy special files
|
||||
as themselves rather than copying their contents. */
|
||||
bool recursive;
|
||||
diff -urN coreutils-6.12.orig/src/cp.c coreutils-6.12/src/cp.c
|
||||
--- coreutils-6.12.orig/src/cp.c 2008-11-30 21:40:59.000000000 +0000
|
||||
+++ coreutils-6.12/src/cp.c 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -73,6 +73,7 @@
|
||||
enum
|
||||
{
|
||||
COPY_CONTENTS_OPTION = CHAR_MAX + 1,
|
||||
+ IGNORE_ATTRIBUTES,
|
||||
NO_PRESERVE_ATTRIBUTES_OPTION,
|
||||
PARENTS_OPTION,
|
||||
PRESERVE_ATTRIBUTES_OPTION,
|
||||
@@ -130,6 +131,7 @@
|
||||
{"copy-contents", no_argument, NULL, COPY_CONTENTS_OPTION},
|
||||
{"dereference", no_argument, NULL, 'L'},
|
||||
{"force", no_argument, NULL, 'f'},
|
||||
+ {"ignore-attributes", no_argument, NULL, IGNORE_ATTRIBUTES},
|
||||
{"interactive", no_argument, NULL, 'i'},
|
||||
{"link", no_argument, NULL, 'l'},
|
||||
{"no-dereference", no_argument, NULL, 'P'},
|
||||
@@ -186,6 +188,7 @@
|
||||
fputs (_("\
|
||||
-f, --force if an existing destination file cannot be\n\
|
||||
opened, remove it and try again\n\
|
||||
+ --ignore-attributes do not copy attributes\n\
|
||||
-i, --interactive prompt before overwrite\n\
|
||||
-H follow command-line symbolic links in SOURCE\n\
|
||||
"), stdout);
|
||||
@@ -779,6 +782,7 @@
|
||||
x->require_preserve_context = false;
|
||||
|
||||
x->require_preserve = false;
|
||||
+ x->ignore_attributes = false;
|
||||
x->recursive = false;
|
||||
x->sparse_mode = SPARSE_AUTO;
|
||||
x->symbolic_link = false;
|
||||
@@ -956,6 +960,10 @@
|
||||
x.dereference = DEREF_COMMAND_LINE_ARGUMENTS;
|
||||
break;
|
||||
|
||||
+ case IGNORE_ATTRIBUTES:
|
||||
+ x.ignore_attributes = true;
|
||||
+ break;
|
||||
+
|
||||
case 'i':
|
||||
x.interactive = I_ASK_USER;
|
||||
break;
|
||||
diff -urN coreutils-6.12.orig/src/ls.c coreutils-6.12/src/ls.c
|
||||
--- coreutils-6.12.orig/src/ls.c 2008-11-30 21:40:54.000000000 +0000
|
||||
+++ coreutils-6.12/src/ls.c 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -635,6 +635,11 @@
|
||||
want to mess up the terminal if control chars get sent to it, and some
|
||||
quoting methods pass through control chars as-is. */
|
||||
static bool qmark_funny_chars;
|
||||
+#if (defined(__BEOS__) || defined(__HAIKU__)) /* Default to show UTF8 chars in BeOS terminal. */
|
||||
+#define QMARK_FUNNY_CHARS_TTY 0
|
||||
+#else
|
||||
+#define QMARK_FUNNY_CHARS_TTY 1
|
||||
+#endif
|
||||
|
||||
/* Quoting options for file and dir name output. */
|
||||
|
||||
@@ -1391,7 +1396,7 @@
|
||||
/* Record whether there is an option specifying sort type. */
|
||||
bool sort_type_specified = false;
|
||||
|
||||
- qmark_funny_chars = false;
|
||||
+ qmark_funny_chars = QMARK_FUNNY_CHARS_TTY;
|
||||
|
||||
/* initialize all switches to default settings */
|
||||
|
||||
@@ -3513,6 +3518,7 @@
|
||||
p = buf;
|
||||
}
|
||||
|
||||
+#ifndef __BEOS__
|
||||
if (f->stat_ok
|
||||
&& (S_ISCHR (f->stat.st_mode) || S_ISBLK (f->stat.st_mode)))
|
||||
{
|
||||
@@ -3529,6 +3535,7 @@
|
||||
p += file_size_width + 1;
|
||||
}
|
||||
else
|
||||
+#endif
|
||||
{
|
||||
char hbuf[LONGEST_HUMAN_READABLE + 1];
|
||||
char const *size =
|
||||
diff -urN coreutils-6.12.orig/src/mv.c coreutils-6.12/src/mv.c
|
||||
--- coreutils-6.12.orig/src/mv.c 2008-11-30 21:40:59.000000000 +0000
|
||||
+++ coreutils-6.12/src/mv.c 2008-11-30 22:05:25.000000000 +0000
|
||||
@@ -142,6 +142,7 @@
|
||||
x->preserve_security_context = selinux_enabled;
|
||||
x->require_preserve = false; /* FIXME: maybe make this an option */
|
||||
x->require_preserve_context = false;
|
||||
+ x->ignore_attributes = false;
|
||||
x->recursive = true;
|
||||
x->sparse_mode = SPARSE_AUTO; /* FIXME: maybe make this an option */
|
||||
x->symbolic_link = false;
|
||||
diff -urN coreutils-6.12.orig/src/remove.c coreutils-6.12/src/remove.c
|
||||
--- coreutils-6.12.orig/src/remove.c 2008-11-30 21:40:59.000000000 +0000
|
||||
+++ coreutils-6.12/src/remove.c 2008-11-30 18:25:45.000000000 +0000
|
||||
@@ -264,9 +264,10 @@
|
||||
{
|
||||
size_t n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t);
|
||||
size_t *length = obstack_base (&ds->len_stack);
|
||||
+ size_t top_len;
|
||||
|
||||
assert (n_lengths > 0);
|
||||
- size_t top_len = length[n_lengths - 1];
|
||||
+ top_len = length[n_lengths - 1];
|
||||
assert (top_len >= 2);
|
||||
|
||||
/* Pop the specified length of file name. */
|
||||
@@ -424,10 +425,11 @@
|
||||
static void
|
||||
AD_stack_pop (Dirstack_state *ds)
|
||||
{
|
||||
+ struct AD_ent *top;
|
||||
assert (0 < AD_stack_height (ds));
|
||||
|
||||
/* operate on Active_dir. pop and free top entry */
|
||||
- struct AD_ent *top = AD_stack_top (ds);
|
||||
+ top = AD_stack_top (ds);
|
||||
if (top->unremovable)
|
||||
hash_free (top->unremovable);
|
||||
obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
|
||||
@@ -891,6 +893,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
+ {
|
||||
char const *quoted_name = quote (full_filename (filename));
|
||||
|
||||
if (write_protected < 0)
|
||||
@@ -930,6 +933,7 @@
|
||||
: _("%s: remove %s %s? ")),
|
||||
program_name, file_type (sbuf), quoted_name);
|
||||
}
|
||||
+ }
|
||||
|
||||
if (!yesno ())
|
||||
return RM_USER_DECLINED;
|
||||
@@ -1549,6 +1553,7 @@
|
||||
return RM_ERROR;
|
||||
}
|
||||
|
||||
+ {
|
||||
struct stat st;
|
||||
cache_stat_init (&st);
|
||||
cycle_check_init (&ds->cycle_check_state);
|
||||
@@ -1571,6 +1576,7 @@
|
||||
AD_push_initial (ds);
|
||||
AD_INIT_OTHER_MEMBERS ();
|
||||
|
||||
+ {
|
||||
enum RM_status status = remove_entry (AT_FDCWD, ds, filename,
|
||||
DT_UNKNOWN, &st, x);
|
||||
if (status == RM_NONEMPTY_DIR)
|
||||
@@ -1589,6 +1595,8 @@
|
||||
ds_clear (ds);
|
||||
return status;
|
||||
}
|
||||
+ }
|
||||
+}
|
||||
|
||||
/* Remove all files and/or directories specified by N_FILES and FILE.
|
||||
Apply the options in X. */
|
||||
diff -urN coreutils-6.12.orig/src/rm.c coreutils-6.12/src/rm.c
|
||||
--- coreutils-6.12.orig/src/rm.c 2008-11-30 21:40:58.000000000 +0000
|
||||
+++ coreutils-6.12/src/rm.c 2008-11-30 18:25:45.000000000 +0000
|
||||
@@ -357,6 +357,7 @@
|
||||
quote ("/"));
|
||||
}
|
||||
|
||||
+ {
|
||||
size_t n_files = argc - optind;
|
||||
char const *const *file = (char const *const *) argv + optind;
|
||||
|
||||
@@ -370,7 +371,10 @@
|
||||
if (!yesno ())
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
+ {
|
||||
enum RM_status status = rm (n_files, file, &x);
|
||||
assert (VALID_STATUS (status));
|
||||
exit (status == RM_ERROR ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
diff -urN coreutils-6.12.orig/src/seq.c coreutils-6.12/src/seq.c
|
||||
--- coreutils-6.12.orig/src/seq.c 2008-11-30 21:40:52.000000000 +0000
|
||||
+++ coreutils-6.12/src/seq.c 2008-11-30 18:25:45.000000000 +0000
|
||||
@@ -166,6 +166,7 @@
|
||||
: (decimal_point == arg /* .# -> 0.# */
|
||||
|| ! ISDIGIT (decimal_point[-1]))); /* -.# -> 0.# */
|
||||
}
|
||||
+ {
|
||||
char const *e = strchr (arg, 'e');
|
||||
if (! e)
|
||||
e = strchr (arg, 'E');
|
||||
@@ -174,6 +175,7 @@
|
||||
long exponent = strtol (e + 1, NULL, 10);
|
||||
ret.precision += exponent < 0 ? -exponent : 0;
|
||||
}
|
||||
+ }
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -349,6 +351,7 @@
|
||||
size_t last_width = last.width + (prec - last.precision);
|
||||
if (last.precision && prec == 0)
|
||||
last_width--; /* don't include space for '.' */
|
||||
+ {
|
||||
size_t width = MAX (first_width, last_width);
|
||||
if (width <= INT_MAX)
|
||||
{
|
||||
@@ -356,6 +359,7 @@
|
||||
sprintf (format_buf, "%%0%d.%dLf", w, prec);
|
||||
return format_buf;
|
||||
}
|
||||
+ }
|
||||
}
|
||||
else
|
||||
{
|
||||
diff -urN coreutils-6.12.orig/src/shred.c coreutils-6.12/src/shred.c
|
||||
--- coreutils-6.12.orig/src/shred.c 2008-11-30 21:40:53.000000000 +0000
|
||||
+++ coreutils-6.12/src/shred.c 2008-11-30 18:25:45.000000000 +0000
|
||||
@@ -461,7 +461,7 @@
|
||||
out. Thus, it shouldn't give up on bad blocks. This
|
||||
code works because lim is always a multiple of
|
||||
SECTOR_SIZE, except at the end. */
|
||||
- verify (sizeof r % SECTOR_SIZE == 0);
|
||||
+ { verify (sizeof r % SECTOR_SIZE == 0); }
|
||||
if (errnum == EIO && 0 <= size && (soff | SECTOR_MASK) < lim)
|
||||
{
|
||||
size_t soff1 = (soff | SECTOR_MASK) + 1;
|
||||
@@ -1,646 +0,0 @@
|
||||
diff -urN coreutils-8.5/lib/mbsalign.c coreutils-8.5-gcc2/lib/mbsalign.c
|
||||
--- coreutils-8.5/lib/mbsalign.c 2010-04-20 19:52:04.018350080 +0000
|
||||
+++ coreutils-8.5-gcc2/lib/mbsalign.c 2010-09-24 13:26:41.000000000 +0000
|
||||
@@ -140,6 +140,7 @@
|
||||
size_t n_cols = src_size - 1;
|
||||
size_t n_used_bytes = n_cols; /* Not including NUL */
|
||||
size_t n_spaces = 0;
|
||||
+ size_t space_left;
|
||||
bool conversion = false;
|
||||
bool wc_enabled = false;
|
||||
|
||||
@@ -238,7 +239,7 @@
|
||||
}
|
||||
|
||||
dest = mbs_align_pad (dest, dest_end, start_spaces);
|
||||
- size_t space_left = dest_end - dest;
|
||||
+ space_left = dest_end - dest;
|
||||
dest = mempcpy (dest, str_to_print, MIN (n_used_bytes, space_left));
|
||||
mbs_align_pad (dest, dest_end, end_spaces);
|
||||
}
|
||||
@@ -262,11 +263,12 @@
|
||||
size_t size = *width; /* Start with enough for unibyte mode. */
|
||||
size_t req = size;
|
||||
char *buf = NULL;
|
||||
+ char *nbuf;
|
||||
|
||||
while (req >= size)
|
||||
{
|
||||
size = req + 1; /* Space for NUL. */
|
||||
- char *nbuf = realloc (buf, size);
|
||||
+ nbuf = realloc (buf, size);
|
||||
if (nbuf == NULL)
|
||||
{
|
||||
free (buf);
|
||||
diff -urN coreutils-8.5/src/chroot.c coreutils-8.5-gcc2/src/chroot.c
|
||||
--- coreutils-8.5/src/chroot.c 2010-04-20 19:52:04.033030144 +0000
|
||||
+++ coreutils-8.5-gcc2/src/chroot.c 2010-09-24 13:39:03.000000000 +0000
|
||||
@@ -151,6 +151,7 @@
|
||||
int c;
|
||||
char const *userspec = NULL;
|
||||
char const *groups = NULL;
|
||||
+ bool fail;
|
||||
|
||||
initialize_main (&argc, &argv);
|
||||
set_program_name (argv[0]);
|
||||
@@ -211,7 +212,7 @@
|
||||
argv += optind + 1;
|
||||
}
|
||||
|
||||
- bool fail = false;
|
||||
+ fail = false;
|
||||
|
||||
/* Attempt to set all three: supplementary groups, group ID, user ID.
|
||||
Diagnose any failures. If any have failed, exit before execvp. */
|
||||
diff -urN coreutils-8.5/src/copy.c coreutils-8.5-gcc2/src/copy.c
|
||||
--- coreutils-8.5/src/copy.c 2010-04-20 19:52:04.049807360 +0000
|
||||
+++ coreutils-8.5-gcc2/src/copy.c 2010-09-24 13:43:19.000000000 +0000
|
||||
@@ -2280,6 +2280,7 @@
|
||||
bool nonexistent_dst, const struct cp_options *options,
|
||||
bool *copy_into_self, bool *rename_succeeded)
|
||||
{
|
||||
+ bool first_dir_created_per_command_line_arg = false;
|
||||
assert (valid_options (options));
|
||||
|
||||
/* Record the file names: they're used in case of error, when copying
|
||||
@@ -2292,7 +2293,6 @@
|
||||
top_level_src_name = src_name;
|
||||
top_level_dst_name = dst_name;
|
||||
|
||||
- bool first_dir_created_per_command_line_arg = false;
|
||||
return copy_internal (src_name, dst_name, nonexistent_dst, 0, NULL,
|
||||
options, true,
|
||||
&first_dir_created_per_command_line_arg,
|
||||
diff -urN coreutils-8.5/src/du.c coreutils-8.5-gcc2/src/du.c
|
||||
--- coreutils-8.5/src/du.c 2010-01-01 13:06:47.039321600 +0000
|
||||
+++ coreutils-8.5-gcc2/src/du.c 2010-09-24 14:00:37.000000000 +0000
|
||||
@@ -664,7 +664,9 @@
|
||||
bool max_depth_specified = false;
|
||||
bool ok = true;
|
||||
char *files_from = NULL;
|
||||
-
|
||||
+ struct argv_iterator *ai;
|
||||
+ static char *temp_argv[] = { NULL, NULL };
|
||||
+
|
||||
/* Bit flags that control how fts works. */
|
||||
int bit_flags = FTS_TIGHT_CYCLE_CHECK | FTS_DEFER_STAT;
|
||||
|
||||
@@ -918,7 +920,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
- struct argv_iterator *ai;
|
||||
if (files_from)
|
||||
{
|
||||
/* When using --files0-from=F, you may not specify any files
|
||||
@@ -950,7 +951,6 @@
|
||||
hash_init ();
|
||||
|
||||
bit_flags |= symlink_deref_bits;
|
||||
- static char *temp_argv[] = { NULL, NULL };
|
||||
|
||||
while (true)
|
||||
{
|
||||
diff -urN coreutils-8.5/src/expr.c coreutils-8.5-gcc2/src/expr.c
|
||||
--- coreutils-8.5/src/expr.c 2010-03-13 15:14:09.039845888 +0000
|
||||
+++ coreutils-8.5-gcc2/src/expr.c 2010-09-24 14:11:15.000000000 +0000
|
||||
@@ -116,8 +116,8 @@
|
||||
static char *
|
||||
mpz_get_str (char const *str, int base, mpz_t z)
|
||||
{
|
||||
- (void) str; (void) base;
|
||||
char buf[INT_BUFSIZE_BOUND (intmax_t)];
|
||||
+ (void) str; (void) base;
|
||||
return xstrdup (imaxtostr (z[0], buf));
|
||||
}
|
||||
static int
|
||||
@@ -138,8 +138,8 @@
|
||||
static int
|
||||
mpz_out_str (FILE *stream, int base, mpz_t z)
|
||||
{
|
||||
- (void) base;
|
||||
char buf[INT_BUFSIZE_BOUND (intmax_t)];
|
||||
+ (void) base;
|
||||
return fputs (imaxtostr (z[0], buf), stream) != EOF;
|
||||
}
|
||||
#endif
|
||||
diff -urN coreutils-8.5/src/join.c coreutils-8.5-gcc2/src/join.c
|
||||
--- coreutils-8.5/src/join.c 2010-04-20 19:52:04.033554432 +0000
|
||||
+++ coreutils-8.5-gcc2/src/join.c 2010-09-24 14:13:58.000000000 +0000
|
||||
@@ -616,7 +616,9 @@
|
||||
struct seq seq1, seq2;
|
||||
int diff;
|
||||
bool eof1, eof2;
|
||||
-
|
||||
+ struct line *line = NULL;
|
||||
+ bool checktail = false;
|
||||
+
|
||||
/* Read the first line of each file. */
|
||||
initseq (&seq1);
|
||||
getseq (fp1, &seq1, 1);
|
||||
@@ -711,8 +713,6 @@
|
||||
tail ends of both inputs to verify that they are in order. We
|
||||
skip the rest of the tail once we have issued a warning for that
|
||||
file, unless we actually need to print the unpairable lines. */
|
||||
- struct line *line = NULL;
|
||||
- bool checktail = false;
|
||||
|
||||
if (check_input_order != CHECK_ORDER_DISABLED
|
||||
&& !(issued_disorder_warning[0] && issued_disorder_warning[1]))
|
||||
diff -urN coreutils-8.5/src/libstdbuf.c coreutils-8.5-gcc2/src/libstdbuf.c
|
||||
--- coreutils-8.5/src/libstdbuf.c 2010-03-13 15:14:09.034340864 +0000
|
||||
+++ coreutils-8.5-gcc2/src/libstdbuf.c 2010-09-24 15:13:11.000000000 +0000
|
||||
@@ -96,7 +96,7 @@
|
||||
else
|
||||
{
|
||||
setvbuf_mode = _IOFBF;
|
||||
- verify (SIZE_MAX <= ULONG_MAX);
|
||||
+ { verify (SIZE_MAX <= ULONG_MAX); }
|
||||
size = strtoul (mode, NULL, 10);
|
||||
if (size > 0)
|
||||
{
|
||||
diff -urN coreutils-8.5/src/ls.c coreutils-8.5-gcc2/src/ls.c
|
||||
--- coreutils-8.5/src/ls.c 2010-04-20 19:52:04.038273024 +0000
|
||||
+++ coreutils-8.5-gcc2/src/ls.c 2010-09-24 13:54:45.000000000 +0000
|
||||
@@ -1039,17 +1039,21 @@
|
||||
abmon_init (void)
|
||||
{
|
||||
#ifdef HAVE_NL_LANGINFO
|
||||
- required_mon_width = MAX_MON_WIDTH;
|
||||
+ int i;
|
||||
+ size_t width;
|
||||
+ size_t req;
|
||||
size_t curr_max_width;
|
||||
+ required_mon_width = MAX_MON_WIDTH;
|
||||
+
|
||||
do
|
||||
{
|
||||
curr_max_width = required_mon_width;
|
||||
required_mon_width = 0;
|
||||
- for (int i = 0; i < 12; i++)
|
||||
+ for (i = 0; i < 12; i++)
|
||||
{
|
||||
- size_t width = curr_max_width;
|
||||
+ width = curr_max_width;
|
||||
|
||||
- size_t req = mbsalign (nl_langinfo (ABMON_1 + i),
|
||||
+ req = mbsalign (nl_langinfo (ABMON_1 + i),
|
||||
abmon[i], sizeof (abmon[i]),
|
||||
&width, MBS_ALIGN_LEFT, 0);
|
||||
|
||||
@@ -3476,6 +3480,7 @@
|
||||
the replacement is not done. A malloc here slows ls down by 2% */
|
||||
char rpl_fmt[sizeof (abmon[0]) + 100];
|
||||
const char *pb;
|
||||
+ size_t ret;
|
||||
if (required_mon_width && (pb = strstr (fmt, "%b")))
|
||||
{
|
||||
if (strlen (fmt) < (sizeof (rpl_fmt) - sizeof (abmon[0]) + 2))
|
||||
@@ -3488,7 +3493,7 @@
|
||||
strcpy (pfmt, pb + 2);
|
||||
}
|
||||
}
|
||||
- size_t ret = nstrftime (buf, size, nfmt, tm, __utc, __ns);
|
||||
+ ret = nstrftime (buf, size, nfmt, tm, __utc, __ns);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -3639,6 +3644,7 @@
|
||||
char *p;
|
||||
struct timespec when_timespec;
|
||||
struct tm *when_local;
|
||||
+ size_t w;
|
||||
|
||||
/* Compute the mode string, except remove the trailing space if no
|
||||
file in this directory has an ACL or SELinux security context. */
|
||||
@@ -3825,7 +3831,7 @@
|
||||
}
|
||||
|
||||
DIRED_FPUTS (buf, stdout, p - buf);
|
||||
- size_t w = print_name_with_quoting (f, false, &dired_obstack, p - buf);
|
||||
+ w = print_name_with_quoting (f, false, &dired_obstack, p - buf);
|
||||
|
||||
if (f->filetype == symbolic_link)
|
||||
{
|
||||
@@ -4014,7 +4020,8 @@
|
||||
size_t start_col)
|
||||
{
|
||||
const char* name = symlink_target ? f->linkname : f->name;
|
||||
-
|
||||
+ size_t width;
|
||||
+
|
||||
bool used_color_this_time
|
||||
= (print_with_color
|
||||
&& (print_color_indicator (f, symlink_target)
|
||||
@@ -4023,7 +4030,7 @@
|
||||
if (stack)
|
||||
PUSH_CURRENT_DIRED_POS (stack);
|
||||
|
||||
- size_t width = quote_name (stdout, name, filename_quoting_options, NULL);
|
||||
+ width = quote_name (stdout, name, filename_quoting_options, NULL);
|
||||
dired_pos += width;
|
||||
|
||||
if (stack)
|
||||
@@ -4060,6 +4067,7 @@
|
||||
static size_t
|
||||
print_file_name_and_frills (const struct fileinfo *f, size_t start_col)
|
||||
{
|
||||
+ size_t width;
|
||||
char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))];
|
||||
|
||||
set_normal_color ();
|
||||
@@ -4077,7 +4085,7 @@
|
||||
if (print_scontext)
|
||||
printf ("%*s ", format == with_commas ? 0 : scontext_width, f->scontext);
|
||||
|
||||
- size_t width = print_name_with_quoting (f, false, NULL, start_col);
|
||||
+ width = print_name_with_quoting (f, false, NULL, start_col);
|
||||
|
||||
if (indicator_style != none)
|
||||
width += print_type_indicator (f->stat_ok, f->stat.st_mode, f->filetype);
|
||||
diff -urN coreutils-8.5/src/nproc.c coreutils-8.5-gcc2/src/nproc.c
|
||||
--- coreutils-8.5/src/nproc.c 2010-01-01 13:06:47.032505856 +0000
|
||||
+++ coreutils-8.5-gcc2/src/nproc.c 2010-09-24 14:41:24.000000000 +0000
|
||||
@@ -76,6 +76,7 @@
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
unsigned long nproc, ignore = 0;
|
||||
+ enum nproc_query mode;
|
||||
initialize_main (&argc, &argv);
|
||||
set_program_name (argv[0]);
|
||||
setlocale (LC_ALL, "");
|
||||
@@ -84,7 +85,7 @@
|
||||
|
||||
atexit (close_stdout);
|
||||
|
||||
- enum nproc_query mode = NPROC_CURRENT_OVERRIDABLE;
|
||||
+ mode = NPROC_CURRENT_OVERRIDABLE;
|
||||
|
||||
while (1)
|
||||
{
|
||||
diff -urN coreutils-8.5/src/remove.c coreutils-8.5-gcc2/src/remove.c
|
||||
--- coreutils-8.5/src/remove.c 2010-03-13 15:14:09.049020928 +0000
|
||||
+++ coreutils-8.5-gcc2/src/remove.c 2010-09-24 14:39:23.000000000 +0000
|
||||
@@ -114,6 +114,7 @@
|
||||
char const *full_name,
|
||||
struct stat *buf)
|
||||
{
|
||||
+ size_t file_name_len;
|
||||
if (can_write_any_file ())
|
||||
return 0;
|
||||
if (cache_fstatat (fd_cwd, file, buf, AT_SYMLINK_NOFOLLOW) != 0)
|
||||
@@ -180,7 +181,7 @@
|
||||
}
|
||||
|
||||
/* This implements #5: */
|
||||
- size_t file_name_len = strlen (full_name);
|
||||
+ file_name_len = strlen (full_name);
|
||||
|
||||
if (MIN (PATH_MAX, 8192) <= file_name_len)
|
||||
return ! euidaccess_stat (buf, W_OK);
|
||||
@@ -218,16 +219,21 @@
|
||||
{
|
||||
int fd_cwd = fts->fts_cwd_fd;
|
||||
char const *full_name = ent->fts_path;
|
||||
+ char const *quoted_name = quote (full_name);
|
||||
char const *filename = ent->fts_accpath;
|
||||
+ struct stat st;
|
||||
+ struct stat *sbuf = &st;
|
||||
+ bool is_empty;
|
||||
+ int dirent_type;
|
||||
+ int write_protected = 0;
|
||||
+ int wp_errno = 0;
|
||||
+
|
||||
if (is_empty_p)
|
||||
*is_empty_p = T_UNKNOWN;
|
||||
|
||||
- struct stat st;
|
||||
- struct stat *sbuf = &st;
|
||||
cache_stat_init (sbuf);
|
||||
|
||||
- int dirent_type = is_dir ? DT_DIR : DT_UNKNOWN;
|
||||
- int write_protected = 0;
|
||||
+ dirent_type = is_dir ? DT_DIR : DT_UNKNOWN;
|
||||
|
||||
/* When nonzero, this indicates that we failed to remove a child entry,
|
||||
either because the user declined an interactive prompt, or due to
|
||||
@@ -238,7 +244,6 @@
|
||||
if (x->interactive == RMI_NEVER)
|
||||
return RM_OK;
|
||||
|
||||
- int wp_errno = 0;
|
||||
if (!x->ignore_missing_files
|
||||
&& ((x->interactive == RMI_ALWAYS) || x->stdin_tty)
|
||||
&& dirent_type != DT_LNK)
|
||||
@@ -286,15 +291,12 @@
|
||||
break;
|
||||
}
|
||||
|
||||
- char const *quoted_name = quote (full_name);
|
||||
-
|
||||
if (write_protected < 0)
|
||||
{
|
||||
error (0, wp_errno, _("cannot remove %s"), quoted_name);
|
||||
return RM_ERROR;
|
||||
}
|
||||
|
||||
- bool is_empty;
|
||||
if (is_empty_p)
|
||||
{
|
||||
is_empty = is_empty_dir (fd_cwd, filename);
|
||||
@@ -473,6 +475,8 @@
|
||||
static enum RM_status
|
||||
rm_fts (FTS *fts, FTSENT *ent, struct rm_options const *x)
|
||||
{
|
||||
+ bool is_dir;
|
||||
+ enum RM_status s;
|
||||
switch (ent->fts_info)
|
||||
{
|
||||
case FTS_D: /* preorder directory */
|
||||
@@ -557,8 +561,8 @@
|
||||
return RM_ERROR;
|
||||
}
|
||||
|
||||
- bool is_dir = ent->fts_info == FTS_DP || ent->fts_info == FTS_DNR;
|
||||
- enum RM_status s = prompt (fts, ent, is_dir, x, PA_REMOVE_DIR, NULL);
|
||||
+ is_dir = ent->fts_info == FTS_DP || ent->fts_info == FTS_DNR;
|
||||
+ s = prompt (fts, ent, is_dir, x, PA_REMOVE_DIR, NULL);
|
||||
if (s != RM_OK)
|
||||
return s;
|
||||
return excise (fts, ent, x, is_dir);
|
||||
@@ -593,6 +597,8 @@
|
||||
rm (char *const *file, struct rm_options const *x)
|
||||
{
|
||||
enum RM_status rm_status = RM_OK;
|
||||
+ FTS *fts;
|
||||
+ enum RM_status s;
|
||||
|
||||
if (*file)
|
||||
{
|
||||
@@ -603,7 +609,7 @@
|
||||
if (x->one_file_system)
|
||||
bit_flags |= FTS_XDEV;
|
||||
|
||||
- FTS *fts = xfts_open (file, bit_flags, NULL);
|
||||
+ fts = xfts_open (file, bit_flags, NULL);
|
||||
|
||||
while (1)
|
||||
{
|
||||
@@ -620,7 +626,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
- enum RM_status s = rm_fts (fts, ent, x);
|
||||
+ s = rm_fts (fts, ent, x);
|
||||
|
||||
assert (VALID_STATUS (s));
|
||||
UPDATE_STATUS (rm_status, s);
|
||||
diff -urN coreutils-8.5/src/rm.c coreutils-8.5-gcc2/src/rm.c
|
||||
--- coreutils-8.5/src/rm.c 2010-04-20 19:52:05.032768000 +0000
|
||||
+++ coreutils-8.5-gcc2/src/rm.c 2010-09-24 14:46:12.000000000 +0000
|
||||
@@ -208,6 +208,9 @@
|
||||
struct rm_options x;
|
||||
bool prompt_once = false;
|
||||
int c;
|
||||
+ size_t n_files;
|
||||
+ char **file;
|
||||
+ enum RM_status status;
|
||||
|
||||
initialize_main (&argc, &argv);
|
||||
set_program_name (argv[0]);
|
||||
@@ -334,8 +337,8 @@
|
||||
quote ("/"));
|
||||
}
|
||||
|
||||
- size_t n_files = argc - optind;
|
||||
- char **file = argv + optind;
|
||||
+ n_files = argc - optind;
|
||||
+ file = argv + optind;
|
||||
|
||||
if (prompt_once && (x.recursive || 3 < n_files))
|
||||
{
|
||||
@@ -348,7 +351,7 @@
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
- enum RM_status status = rm (file, &x);
|
||||
+ status = rm (file, &x);
|
||||
assert (VALID_STATUS (status));
|
||||
exit (status == RM_ERROR ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
diff -urN coreutils-8.5/src/seq.c coreutils-8.5-gcc2/src/seq.c
|
||||
--- coreutils-8.5/src/seq.c 2010-01-01 13:06:47.036175872 +0000
|
||||
+++ coreutils-8.5-gcc2/src/seq.c 2010-09-24 14:50:32.000000000 +0000
|
||||
@@ -132,6 +132,7 @@
|
||||
scan_arg (const char *arg)
|
||||
{
|
||||
operand ret;
|
||||
+ char const *e;
|
||||
|
||||
if (! xstrtold (arg, NULL, &ret.value, c_strtold))
|
||||
{
|
||||
@@ -161,7 +162,7 @@
|
||||
: (decimal_point == arg /* .# -> 0.# */
|
||||
|| ! ISDIGIT (decimal_point[-1]))); /* -.# -> 0.# */
|
||||
}
|
||||
- char const *e = strchr (arg, 'e');
|
||||
+ e = strchr (arg, 'e');
|
||||
if (! e)
|
||||
e = strchr (arg, 'E');
|
||||
if (e)
|
||||
@@ -311,6 +312,7 @@
|
||||
{
|
||||
if (equal_width)
|
||||
{
|
||||
+ size_t width;
|
||||
/* increase first_width by any increased precision in step */
|
||||
size_t first_width = first.width + (prec - first.precision);
|
||||
/* adjust last_width to use precision from first/step */
|
||||
@@ -319,7 +321,7 @@
|
||||
last_width--; /* don't include space for '.' */
|
||||
if (last.precision == 0 && prec)
|
||||
last_width++; /* include space for '.' */
|
||||
- size_t width = MAX (first_width, last_width);
|
||||
+ width = MAX (first_width, last_width);
|
||||
if (width <= INT_MAX)
|
||||
{
|
||||
int w = width;
|
||||
diff -urN coreutils-8.5/src/shred.c coreutils-8.5-gcc2/src/shred.c
|
||||
--- coreutils-8.5/src/shred.c 2010-01-01 13:06:47.035651584 +0000
|
||||
+++ coreutils-8.5-gcc2/src/shred.c 2010-09-24 14:58:02.000000000 +0000
|
||||
@@ -468,7 +468,7 @@
|
||||
out. Thus, it shouldn't give up on bad blocks. This
|
||||
code works because lim is always a multiple of
|
||||
SECTOR_SIZE, except at the end. */
|
||||
- verify (sizeof r % SECTOR_SIZE == 0);
|
||||
+ { verify (sizeof r % SECTOR_SIZE == 0); }
|
||||
if (errnum == EIO && 0 <= size && (soff | SECTOR_MASK) < lim)
|
||||
{
|
||||
size_t soff1 = (soff | SECTOR_MASK) + 1;
|
||||
diff -urN coreutils-8.5/src/sort.c coreutils-8.5-gcc2/src/sort.c
|
||||
--- coreutils-8.5/src/sort.c 2010-04-21 07:06:17.044040192 +0000
|
||||
+++ coreutils-8.5-gcc2/src/sort.c 2010-09-24 15:04:51.000000000 +0000
|
||||
@@ -1794,6 +1794,7 @@
|
||||
|
||||
const unsigned char *p = number;
|
||||
|
||||
+ int order;
|
||||
int sign = 1;
|
||||
|
||||
if (*p == '-')
|
||||
@@ -1818,7 +1819,7 @@
|
||||
p += 2;
|
||||
}
|
||||
|
||||
- int order = orders[*p];
|
||||
+ order = orders[*p];
|
||||
|
||||
/* For valid units check for MiB vs MB etc. */
|
||||
if (order)
|
||||
@@ -1835,13 +1836,16 @@
|
||||
static int
|
||||
human_numcompare (const char *a, const char *b, struct keyfield *key)
|
||||
{
|
||||
+ int order_a;
|
||||
+ int order_b;
|
||||
+
|
||||
while (blanks[to_uchar (*a)])
|
||||
a++;
|
||||
while (blanks[to_uchar (*b)])
|
||||
b++;
|
||||
|
||||
- int order_a = find_unit_order (a, key);
|
||||
- int order_b = find_unit_order (b, key);
|
||||
+ order_a = find_unit_order (a, key);
|
||||
+ order_b = find_unit_order (b, key);
|
||||
|
||||
return (order_a > order_b ? 1
|
||||
: order_a < order_b ? -1
|
||||
@@ -2081,6 +2085,8 @@
|
||||
|
||||
for (;;)
|
||||
{
|
||||
+ size_t lena;
|
||||
+ size_t lenb;
|
||||
char const *translate = key->translate;
|
||||
bool const *ignore = key->ignore;
|
||||
|
||||
@@ -2089,8 +2095,8 @@
|
||||
limb = MAX (textb, limb);
|
||||
|
||||
/* Find the lengths. */
|
||||
- size_t lena = lima - texta;
|
||||
- size_t lenb = limb - textb;
|
||||
+ lena = lima - texta;
|
||||
+ lenb = limb - textb;
|
||||
|
||||
/* Actually compare the fields. */
|
||||
|
||||
@@ -2879,6 +2885,9 @@
|
||||
{
|
||||
/* Merge directly into the output file if possible. */
|
||||
FILE **fps;
|
||||
+ FILE *tfp;
|
||||
+ pid_t pid;
|
||||
+ char *temp;
|
||||
size_t nopened = open_input_files (files, nfiles, &fps);
|
||||
|
||||
if (nopened == nfiles)
|
||||
@@ -2900,9 +2909,6 @@
|
||||
file with our spare file descriptor. Retry if that failed
|
||||
(e.g., some other process could open a file between the time
|
||||
we closed and tried to create). */
|
||||
- FILE *tfp;
|
||||
- pid_t pid;
|
||||
- char *temp;
|
||||
do
|
||||
{
|
||||
nopened--;
|
||||
diff -urN coreutils-8.5/src/system.h coreutils-8.5-gcc2/src/system.h
|
||||
--- coreutils-8.5/src/system.h 2010-04-20 19:52:05.040108032 +0000
|
||||
+++ coreutils-8.5-gcc2/src/system.h 2010-09-24 13:37:18.000000000 +0000
|
||||
@@ -585,6 +585,7 @@
|
||||
static inline void
|
||||
emit_ancillary_info (void)
|
||||
{
|
||||
+ const char *lc_messages;
|
||||
printf (_("\nReport %s bugs to %s\n"), last_component (program_name),
|
||||
PACKAGE_BUGREPORT);
|
||||
/* FIXME 2010: use AC_PACKAGE_URL once we require autoconf-2.64 */
|
||||
@@ -594,7 +595,7 @@
|
||||
stdout);
|
||||
/* Don't output this redundant message for English locales.
|
||||
Note we still output for 'C' so that it gets included in the man page. */
|
||||
- const char *lc_messages = setlocale (LC_MESSAGES, NULL);
|
||||
+ lc_messages = setlocale (LC_MESSAGES, NULL);
|
||||
if (lc_messages && strncmp (lc_messages, "en_", 3))
|
||||
{
|
||||
/* TRANSLATORS: Replace LANG_CODE in this URL with your language code
|
||||
diff -urN coreutils-8.5/src/tac.c coreutils-8.5-gcc2/src/tac.c
|
||||
--- coreutils-8.5/src/tac.c 2010-03-13 15:14:09.040632320 +0000
|
||||
+++ coreutils-8.5-gcc2/src/tac.c 2010-09-24 15:06:41.000000000 +0000
|
||||
@@ -572,6 +572,7 @@
|
||||
were specified on the command line. */
|
||||
static char const *const default_file_list[] = {"-", NULL};
|
||||
char const *const *file;
|
||||
+ void *buf;
|
||||
|
||||
initialize_main (&argc, &argv);
|
||||
set_program_name (argv[0]);
|
||||
@@ -633,7 +634,7 @@
|
||||
if (! (read_size < half_buffer_size && half_buffer_size < G_buffer_size))
|
||||
xalloc_die ();
|
||||
G_buffer = xmalloc (G_buffer_size);
|
||||
- void *buf = G_buffer;
|
||||
+ buf = G_buffer;
|
||||
if (sentinel_length)
|
||||
{
|
||||
strcpy (G_buffer, separator);
|
||||
diff -urN coreutils-8.5/src/wc.c coreutils-8.5-gcc2/src/wc.c
|
||||
--- coreutils-8.5/src/wc.c 2010-04-20 19:52:05.035127296 +0000
|
||||
+++ coreutils-8.5-gcc2/src/wc.c 2010-09-24 15:11:46.000000000 +0000
|
||||
@@ -584,12 +584,15 @@
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
bool ok;
|
||||
+ int i;
|
||||
int optc;
|
||||
int nfiles;
|
||||
char **files;
|
||||
char *files_from = NULL;
|
||||
struct fstatus *fstatus;
|
||||
struct Tokens tok;
|
||||
+ bool read_tokens = false;
|
||||
+ struct argv_iterator *ai;
|
||||
|
||||
initialize_main (&argc, &argv);
|
||||
set_program_name (argv[0]);
|
||||
@@ -646,11 +649,10 @@
|
||||
|| print_linelength))
|
||||
print_lines = print_words = print_bytes = true;
|
||||
|
||||
- bool read_tokens = false;
|
||||
- struct argv_iterator *ai;
|
||||
if (files_from)
|
||||
{
|
||||
FILE *stream;
|
||||
+ struct stat st;
|
||||
|
||||
/* When using --files0-from=F, you may not specify any files
|
||||
on the command-line. */
|
||||
@@ -674,7 +676,6 @@
|
||||
|
||||
/* Read the file list into RAM if we can detect its size and that
|
||||
size is reasonable. Otherwise, we'll read a name at a time. */
|
||||
- struct stat st;
|
||||
if (fstat (fileno (stream), &st) == 0
|
||||
&& S_ISREG (st.st_mode)
|
||||
&& st.st_size <= MIN (10 * 1024 * 1024, physmem_available () / 2))
|
||||
@@ -706,7 +707,6 @@
|
||||
fstatus = get_input_fstatus (nfiles, files);
|
||||
number_width = compute_number_width (nfiles, fstatus);
|
||||
|
||||
- int i;
|
||||
ok = true;
|
||||
for (i = 0; /* */; i++)
|
||||
{
|
||||
@@ -40,6 +40,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:awk
|
||||
cmd:sed
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
PATCHES="diffutils-3.3.patchset"
|
||||
|
||||
@@ -14,7 +14,7 @@ COPYRIGHT="1994-2011 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v3"
|
||||
SRC_URI="http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz"
|
||||
CHECKSUM_SHA256="434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
|
||||
|
||||
PROVIDES="
|
||||
@@ -29,9 +29,10 @@ REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
defineDebugInfoPackage findutils \
|
||||
|
||||
@@ -40,3 +40,28 @@ index af57f41..89638a0 100755
|
||||
--
|
||||
1.7.10.2
|
||||
|
||||
From 37775f6c688e2c19dec837edb41a6e9fbeaebc32 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander von Gluck IV <kallisti5@unixzen.com>
|
||||
Date: Wed, 3 Dec 2014 20:52:57 +0000
|
||||
Subject: [PATCH] bootstrap: add missing COPYRIGHT_YEAR
|
||||
|
||||
---
|
||||
bootstrap.sh | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/bootstrap.sh b/bootstrap.sh
|
||||
index 091f57c..882b9cf 100755
|
||||
--- a/bootstrap.sh
|
||||
+++ b/bootstrap.sh
|
||||
@@ -37,6 +37,8 @@ if test -f config.h; then :; else
|
||||
#define HAVE_WCHAR_H 1
|
||||
#define HAVE_MBRTOWC 1
|
||||
|
||||
+#define COPYRIGHT_YEAR 2000
|
||||
+
|
||||
/* Toggle if you encounter errors in lib/mkstemp.c. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
#define HAVE_FCNTL_H 1
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:perl
|
||||
cmd:sed
|
||||
cmd:awk
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
defineDebugInfoPackage sed \
|
||||
@@ -39,6 +39,11 @@ defineDebugInfoPackage sed \
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# First we bootstrap to generate a really boring sed
|
||||
./bootstrap.sh
|
||||
export PATH="${sourceDir}/sed/:${PATH}"
|
||||
echo $PATH
|
||||
|
||||
runConfigure ./configure \
|
||||
--enable-regex-tests --without-included-regex \
|
||||
--disable-rpath --with-gnu-ld
|
||||
@@ -47,6 +52,9 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# Use our generated sed for make
|
||||
export PATH="${sourceDir}/sed/:${PATH}"
|
||||
|
||||
make install
|
||||
rm $libDir/charset.alias
|
||||
rmdir $libDir
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
diff --git a/SRC/Makefile b/SRC/Makefile
|
||||
index 12029bd..cce9963 100644
|
||||
--- a/SRC/Makefile
|
||||
+++ b/SRC/Makefile
|
||||
@@ -32,8 +32,8 @@ OSFLAG=
|
||||
# choose either of a) b) or c)
|
||||
#
|
||||
# a) if you use termcap, enable the following lines
|
||||
-TFLAG=-DM_TERMCAP
|
||||
-TLIB=termcap
|
||||
+#TFLAG=-DM_TERMCAP
|
||||
+#TLIB=termcap
|
||||
|
||||
# b) if you are using terminfo on a XENIX machine, enable the following lines
|
||||
#TFLAG=-DM_TERMINFO
|
||||
@@ -41,8 +41,8 @@ TLIB=termcap
|
||||
|
||||
# c) if you use terminfo on any other type of machine,
|
||||
# enable the following lines
|
||||
-#TFLAG=-DM_TERMINFO
|
||||
-#TLIB=curses
|
||||
+TFLAG=-DM_TERMINFO
|
||||
+TLIB=ncurses
|
||||
|
||||
#
|
||||
# 3) SELECTION OF WINDOW MANAGER AVAILABILITY
|
||||
@@ -73,6 +73,7 @@ CFILES= spiff.c output.c compare.c float.c strings.c exact.c miller.c parse.c co
|
||||
HFILES=misc.h strings.h line.h float.h floatrep.h tol.h command.h comment.h token.h edit.h parse.h compare.h flagdefs.h exact.h miller.h visual.h output.h
|
||||
OTHER=README Makefile Sample.1 Sample.2 Sample.3 Sample.4 paper.ms paper.out
|
||||
MANPAGE=spiff.1
|
||||
+INSDIR=insDir
|
||||
|
||||
CFLAGS=-O $(OSFLAG) $(TFLAG) $(VISFLAG)
|
||||
|
||||
@@ -138,6 +139,7 @@ cpio:
|
||||
cmd:
|
||||
-$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
|
||||
install:
|
||||
- mv spiff $(INSDIR)/bin
|
||||
+ mkdir -p $(INSDIR)/man/man1
|
||||
+ mv spiff $(INSDIR)
|
||||
cp $(MANPAGE) $(INSDIR)/man/man1
|
||||
|
||||
@@ -16,12 +16,18 @@ ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PROVIDES="
|
||||
spiff = $portVersion
|
||||
bin:spiff = $portVersion"
|
||||
cmd:spiff"
|
||||
|
||||
REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
lib:libncurses
|
||||
lib:libroot
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
makefile_engine
|
||||
ncurses
|
||||
devel:libncurses
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:mkdepend"
|
||||
@@ -34,8 +40,6 @@ BUILD_REQUIRES="
|
||||
COPYRIGHT="1988 Bellcore"
|
||||
LICENSE="SPIFF"
|
||||
|
||||
PATCHES="Makefile.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd SRC
|
||||
@@ -49,7 +53,6 @@ INSTALL()
|
||||
make install
|
||||
mkdir -p $binDir
|
||||
mkdir -p $documentationDir
|
||||
cp insDir/spiff $binDir
|
||||
cp -R insDir/man $documentationDir
|
||||
cd ..
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:sed
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
BUILD()
|
||||
|
||||
@@ -32,10 +32,12 @@ BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:awk
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:sed
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
cmd:sed
|
||||
cmd:grep
|
||||
"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user