mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
sharutils: fix gcc2 build.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 1cc78ef9ae5f3dd70980064338945500cb5b2b22 Mon Sep 17 00:00:00 2001
|
||||
From 0edd0c857858745b74c21ddd6d9663baa5663eed Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Tue, 2 Jun 2015 17:09:25 +0000
|
||||
Subject: Haiku patch
|
||||
@@ -42,7 +42,7 @@ index 0621c99..18d103a 100644
|
||||
#if HAVE_LOCALE_H
|
||||
#else
|
||||
diff --git a/src/uuencode.c b/src/uuencode.c
|
||||
index c651798..907da87 100644
|
||||
index c651798..704ffef 100644
|
||||
--- a/src/uuencode.c
|
||||
+++ b/src/uuencode.c
|
||||
@@ -64,6 +64,8 @@ static const char cright_years_z[] =
|
||||
@@ -54,6 +54,15 @@ index c651798..907da87 100644
|
||||
#if HAVE_LOCALE_H
|
||||
#else
|
||||
# define setlocale(Category, Locale)
|
||||
@@ -251,7 +253,7 @@ process_opts (int argc, char ** argv, int * mode)
|
||||
if (HAVE_OPT(ENCODE_FILE_NAME))
|
||||
{
|
||||
size_t nmlen = strlen (output_name);
|
||||
- size_t bfsz = nmlen + (nmlen / 3) + 4;;
|
||||
+ size_t bfsz = nmlen + (nmlen / 3) + 4;
|
||||
char * p = malloc (bfsz);
|
||||
if (p == NULL)
|
||||
fserr (UUENCODE_EXIT_FAILURE, "malloc", _("file name"));
|
||||
--
|
||||
1.8.3.4
|
||||
2.2.2
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ shell. unshar may also process files containing concatenated shell archives."
|
||||
HOMEPAGE="http://www.gnu.org/software/sharutils/"
|
||||
COPYRIGHT="1990-2013 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://ftp.gnu.org/gnu/sharutils/sharutils-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637"
|
||||
PATCHES="sharutils-$portVersion.patchset"
|
||||
@@ -52,6 +52,7 @@ BUILD()
|
||||
{
|
||||
runConfigure ./configure \
|
||||
--disable-nls
|
||||
echo "#define HAVE_STDBOOL_H 1" >> config.h
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user