mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Initial .bep file checking for sdl-image
This commit is contained in:
14
dev-util/cmake/Haiku.cmake
Normal file
14
dev-util/cmake/Haiku.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
SET(BEOS 1)
|
||||
|
||||
# GCC is the default compiler on Haiku.
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
|
||||
|
||||
SET(CMAKE_DL_LIBS root be)
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-nostart")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
300
dev-util/cmake/cmake-2.6.0-haiku.diff
Normal file
300
dev-util/cmake/cmake-2.6.0-haiku.diff
Normal file
@@ -0,0 +1,300 @@
|
||||
diff -ur cmake-2.6.0/Modules/CMakeFortranCompilerId.F90.in cmake-2.6.0-haiku/Modules/CMakeFortranCompilerId.F90.in
|
||||
--- cmake-2.6.0/Modules/CMakeFortranCompilerId.F90.in 2008-05-05 18:26:04.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Modules/CMakeFortranCompilerId.F90.in 2008-06-19 11:16:50.000000000 +0000
|
||||
@@ -48,6 +48,10 @@
|
||||
PRINT *, 'INFO:platform[IRIX]'
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
PRINT *, 'INFO:platform[HP-UX]'
|
||||
+#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
|
||||
+ PRINT *, 'INFO:platform[Haiku]'
|
||||
+! Haiku also defines __BEOS__ so we must
|
||||
+! put it prior to the check for __BEOS__
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
PRINT *, 'INFO:platform[BeOS]'
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
diff -ur cmake-2.6.0/Modules/CMakePlatformId.h.in cmake-2.6.0-haiku/Modules/CMakePlatformId.h.in
|
||||
--- cmake-2.6.0/Modules/CMakePlatformId.h.in 2008-05-05 18:26:04.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Modules/CMakePlatformId.h.in 2008-06-19 11:16:50.000000000 +0000
|
||||
@@ -35,6 +35,11 @@
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
+#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
|
||||
+# define PLATFORM_ID "Haiku"
|
||||
+! Haiku also defines __BEOS__ so we must
|
||||
+! put it prior to the check for __BEOS__
|
||||
+
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
diff -ur cmake-2.6.0/Modules/CheckForPthreads.c cmake-2.6.0-haiku/Modules/CheckForPthreads.c
|
||||
--- cmake-2.6.0/Modules/CheckForPthreads.c 2008-05-05 18:26:04.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Modules/CheckForPthreads.c 2008-06-19 11:16:50.000000000 +0000
|
||||
@@ -16,7 +16,7 @@
|
||||
pthread_create(&tid[0], 0, runner, (void*)1);
|
||||
pthread_create(&tid[1], 0, runner, (void*)2);
|
||||
|
||||
-#if defined(__BEOS__) && !defined(__ZETA__) // (no usleep on BeOS 5.)
|
||||
+#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__) // (no usleep on BeOS 5.)
|
||||
usleep(1); // for strange behavior on single-processor sun
|
||||
#endif
|
||||
|
||||
Only in cmake-2.6.0-haiku/Modules/Platform: Haiku.cmake
|
||||
diff -ur cmake-2.6.0/Source/CPack/cmCPackGeneratorFactory.cxx cmake-2.6.0-haiku/Source/CPack/cmCPackGeneratorFactory.cxx
|
||||
--- cmake-2.6.0/Source/CPack/cmCPackGeneratorFactory.cxx 2008-05-05 18:26:05.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Source/CPack/cmCPackGeneratorFactory.cxx 2008-06-19 11:16:50.000000000 +0000
|
||||
@@ -35,7 +35,7 @@
|
||||
#endif
|
||||
|
||||
#if !defined(_WIN32) && !defined(__APPLE__) \
|
||||
- && !defined(__QNXNTO__) && !defined(__BEOS__)
|
||||
+ && !defined(__QNXNTO__) && !defined(__BEOS__) && !defined(__HAIKU__)
|
||||
# include "cmCPackDebGenerator.h"
|
||||
# include "cmCPackRPMGenerator.h"
|
||||
#endif
|
||||
@@ -72,7 +72,8 @@
|
||||
cmCPackOSXX11Generator::CreateGenerator);
|
||||
#endif
|
||||
#if !defined(_WIN32) && !defined(__APPLE__) \
|
||||
- && !defined(__QNXNTO__) && !defined(__BEOS__)
|
||||
+ && !defined(__QNXNTO__) && !defined(__BEOS__)\
|
||||
+ && !defined(__HAIKU__)
|
||||
this->RegisterGenerator("DEB", "Debian packages",
|
||||
cmCPackDebGenerator::CreateGenerator);
|
||||
this->RegisterGenerator("RPM", "RPM packages",
|
||||
diff -ur cmake-2.6.0/Source/cmCTest.cxx cmake-2.6.0-haiku/Source/cmCTest.cxx
|
||||
--- cmake-2.6.0/Source/cmCTest.cxx 2008-05-05 18:26:04.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Source/cmCTest.cxx 2008-06-19 11:16:50.000000000 +0000
|
||||
@@ -49,10 +49,15 @@
|
||||
|
||||
#include <memory> // auto_ptr
|
||||
|
||||
-#if defined(__BEOS__)
|
||||
+#if defined(__BEOS__) && !defined(__HAIKU__)
|
||||
#include <be/kernel/OS.h> /* disable_debugger() API. */
|
||||
#endif
|
||||
|
||||
+#if defined(__HAIKU__)
|
||||
+#include <os/kernel/OS.h> /* disable_debugger() API. */
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
#define DEBUGOUT std::cout << __LINE__ << " "; std::cout
|
||||
#define DEBUGERR std::cerr << __LINE__ << " "; std::cerr
|
||||
|
||||
diff -ur cmake-2.6.0/Source/kwsys/DynamicLoader.cxx cmake-2.6.0-haiku/Source/kwsys/DynamicLoader.cxx
|
||||
--- cmake-2.6.0/Source/kwsys/DynamicLoader.cxx 2008-05-05 18:26:05.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Source/kwsys/DynamicLoader.cxx 2008-06-20 14:08:23.000000000 +0000
|
||||
@@ -331,7 +331,7 @@
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// 4. Implementation for BeOS
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ && !defined(__HAIKU__)
|
||||
#include <string.h> // for strerror()
|
||||
#include <be/kernel/image.h>
|
||||
#include <be/support/Errors.h>
|
||||
diff -ur cmake-2.6.0/Source/kwsys/ProcessUNIX.c cmake-2.6.0-haiku/Source/kwsys/ProcessUNIX.c
|
||||
--- cmake-2.6.0/Source/kwsys/ProcessUNIX.c 2008-05-05 18:26:05.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Source/kwsys/ProcessUNIX.c 2008-06-20 14:06:56.000000000 +0000
|
||||
@@ -75,7 +75,7 @@
|
||||
typedef int kwsysProcess_ssize_t;
|
||||
#endif
|
||||
|
||||
-#if defined(__BEOS__) && !defined(__ZETA__)
|
||||
+#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__)
|
||||
/* BeOS 5 doesn't have usleep(), but it has snooze(), which is identical. */
|
||||
# include <be/kernel/OS.h>
|
||||
static inline void kwsysProcess_usleep(unsigned int msec)
|
||||
diff -ur cmake-2.6.0/Source/kwsys/SystemTools.cxx cmake-2.6.0-haiku/Source/kwsys/SystemTools.cxx
|
||||
--- cmake-2.6.0/Source/kwsys/SystemTools.cxx 2008-05-05 18:26:05.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Source/kwsys/SystemTools.cxx 2008-06-19 15:49:33.000000000 +0000
|
||||
@@ -131,7 +131,12 @@
|
||||
#define _chdir chdir
|
||||
#endif
|
||||
|
||||
-#if defined(__BEOS__) && !defined(__ZETA__)
|
||||
+#ifdef (__HAIKU__)
|
||||
+#include <os/kernel.OS.h>
|
||||
+#include <os/storage/Path.h>
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__)
|
||||
#include <be/kernel/OS.h>
|
||||
#include <be/storage/Path.h>
|
||||
|
||||
diff -ur cmake-2.6.0/Source/kwsys/testProcess.c cmake-2.6.0-haiku/Source/kwsys/testProcess.c
|
||||
--- cmake-2.6.0/Source/kwsys/testProcess.c 2008-05-05 18:26:05.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Source/kwsys/testProcess.c 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -34,7 +34,7 @@
|
||||
# pragma warn -8060 /* possibly incorrect assignment */
|
||||
#endif
|
||||
|
||||
-#if defined(__BEOS__) && !defined(__ZETA__)
|
||||
+#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__)
|
||||
/* BeOS 5 doesn't have usleep(), but it has snooze(), which is identical. */
|
||||
# include <be/kernel/OS.h>
|
||||
static inline void testProcess_usleep(unsigned int msec)
|
||||
diff -ur cmake-2.6.0/Tests/Complex/Library/CMakeLists.txt cmake-2.6.0-haiku/Tests/Complex/Library/CMakeLists.txt
|
||||
--- cmake-2.6.0/Tests/Complex/Library/CMakeLists.txt 2008-05-05 18:26:05.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Tests/Complex/Library/CMakeLists.txt 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -53,7 +53,9 @@
|
||||
)
|
||||
SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES FOO BAR)
|
||||
IF(NOT BEOS) # No libm on BeOS.
|
||||
- SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES LINK_FLAGS "-lm")
|
||||
+ IF(NOT HAIKU) # libm in included in libroot on Haiku
|
||||
+ SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES LINK_FLAGS "-lm")
|
||||
+ ENDIF(NOT HAIKU)
|
||||
ENDIF(NOT BEOS)
|
||||
GET_TARGET_PROPERTY(FOO_BAR_VAR CMakeTestCLibraryShared FOO)
|
||||
IF(${FOO_BAR_VAR} MATCHES "BAR")
|
||||
diff -ur cmake-2.6.0/Utilities/cmcurl/CMake/CurlTests.c cmake-2.6.0-haiku/Utilities/cmcurl/CMake/CurlTests.c
|
||||
--- cmake-2.6.0/Utilities/cmcurl/CMake/CurlTests.c 2008-05-05 18:26:06.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmcurl/CMake/CurlTests.c 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -38,6 +38,12 @@
|
||||
# define PLATFORM_AIX_V3
|
||||
#endif
|
||||
|
||||
+/* Haiku defines both __HAIKU__ and __BEOS__ (for now) */
|
||||
+/* many BeOS workarounds are no longer needed in Haiku */
|
||||
+#if defined(__HAIKU__) && defined(__BEOS__)
|
||||
+undef (__BEOS__)
|
||||
+#endif
|
||||
+
|
||||
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
|
||||
#error "O_NONBLOCK does not work on this platform"
|
||||
#endif
|
||||
diff -ur cmake-2.6.0/Utilities/cmcurl/curl/curl.h cmake-2.6.0-haiku/Utilities/cmcurl/curl/curl.h
|
||||
--- cmake-2.6.0/Utilities/cmcurl/curl/curl.h 2008-05-05 18:26:06.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmcurl/curl/curl.h 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -1133,7 +1133,7 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ || defined __HAIKU__
|
||||
#include <support/SupportDefs.h>
|
||||
#endif
|
||||
|
||||
diff -ur cmake-2.6.0/Utilities/cmcurl/if2ip.c cmake-2.6.0-haiku/Utilities/cmcurl/if2ip.c
|
||||
--- cmake-2.6.0/Utilities/cmcurl/if2ip.c 2008-05-05 18:26:06.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmcurl/if2ip.c 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -39,7 +39,7 @@
|
||||
*/
|
||||
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN__) && \
|
||||
!defined(__riscos__) && !defined(__INTERIX) && !defined(NETWARE) && \
|
||||
- !defined(_AMIGASF) && !defined(__minix)
|
||||
+ !defined(_AMIGASF) && !defined(__minix) && !defined(__HAIKU__)
|
||||
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
diff -ur cmake-2.6.0/Utilities/cmcurl/select.c cmake-2.6.0-haiku/Utilities/cmcurl/select.c
|
||||
--- cmake-2.6.0/Utilities/cmcurl/select.c 2008-05-05 18:26:06.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmcurl/select.c 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -39,7 +39,7 @@
|
||||
#error "We can't compile without select() support!"
|
||||
#endif
|
||||
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ && !defined __HAIKU__
|
||||
/* BeOS has FD_SET defined in socket.h */
|
||||
#include <socket.h>
|
||||
#endif
|
||||
diff -ur cmake-2.6.0/Utilities/cmcurl/setup.h cmake-2.6.0-haiku/Utilities/cmcurl/setup.h
|
||||
--- cmake-2.6.0/Utilities/cmcurl/setup.h 2008-05-05 18:26:06.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmcurl/setup.h 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -264,7 +264,7 @@
|
||||
|
||||
#else /* MSDOS */
|
||||
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ && !defined __HAIKU__
|
||||
#define sclose(x) closesocket(x)
|
||||
#else /* __BEOS__ */
|
||||
#define sclose(x) close(x)
|
||||
diff -ur cmake-2.6.0/Utilities/cmtar/libtar.c cmake-2.6.0-haiku/Utilities/cmtar/libtar.c
|
||||
--- cmake-2.6.0/Utilities/cmtar/libtar.c 2008-05-05 18:26:07.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmtar/libtar.c 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -98,8 +98,8 @@
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
-
|
||||
-#if defined(__BEOS__) && !defined(__ZETA__) /* no fchmod on BeOS...do pathname instead. */
|
||||
+/* no fchmod on BeOS...do pathname instead. */
|
||||
+#if defined(__BEOS__) && !defined(__ZETA__) && !defined(__HAIKU__)
|
||||
if ((oflags & O_CREAT) && chmod(pathname, mode & 07777))
|
||||
{
|
||||
return -1;
|
||||
diff -ur cmake-2.6.0/Utilities/cmxmlrpc/xmlrpc_curl_transport.c cmake-2.6.0-haiku/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
|
||||
--- cmake-2.6.0/Utilities/cmxmlrpc/xmlrpc_curl_transport.c 2008-05-05 18:26:07.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmxmlrpc/xmlrpc_curl_transport.c 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "xmlrpc_config.h"
|
||||
|
||||
-#if defined(__BEOS__)
|
||||
+#if defined(__BEOS__) && !defined(__HAIKU__)
|
||||
/* Some helpful system header has char==bool, then bool.h does int==bool. */
|
||||
#define HAVE_BOOL 1
|
||||
#endif
|
||||
diff -ur cmake-2.6.0/Utilities/cmzlib/zconf.h cmake-2.6.0-haiku/Utilities/cmzlib/zconf.h
|
||||
--- cmake-2.6.0/Utilities/cmzlib/zconf.h 2008-05-05 18:26:07.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmzlib/zconf.h 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -237,7 +237,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
-#if defined (__BEOS__)
|
||||
+#if defined (__BEOS__) && !defined (__HAIKU__)
|
||||
# ifdef ZLIB_DLL
|
||||
# ifdef ZLIB_INTERNAL
|
||||
# define ZEXPORT __declspec(dllexport)
|
||||
diff -ur cmake-2.6.0/Utilities/cmzlib/zutil.h cmake-2.6.0-haiku/Utilities/cmzlib/zutil.h
|
||||
--- cmake-2.6.0/Utilities/cmzlib/zutil.h 2008-05-05 18:26:07.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/Utilities/cmzlib/zutil.h 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -147,7 +147,13 @@
|
||||
# define OS_CODE 0x0f
|
||||
#endif
|
||||
|
||||
-#if defined(_BEOS_) || defined(RISCOS)
|
||||
+/* Haiku defines both __HAIKU__ and __BEOS__ (for now) */
|
||||
+/* many BeOS workarounds are no longer needed in Haiku */
|
||||
+#if defined(__HAIKU__) && defined(__BEOS__)
|
||||
+undef (__BEOS__)
|
||||
+#endif
|
||||
+
|
||||
+#if defined(_BEOS_) || defined(RISCOS)
|
||||
# define fdopen(fd,mode) NULL /* No fdopen() */
|
||||
#endif
|
||||
|
||||
diff -ur cmake-2.6.0/bootstrap cmake-2.6.0-haiku/bootstrap
|
||||
--- cmake-2.6.0/bootstrap 2008-05-05 18:26:04.000000000 +0000
|
||||
+++ cmake-2.6.0-haiku/bootstrap 2008-06-19 11:16:51.000000000 +0000
|
||||
@@ -73,6 +73,13 @@
|
||||
cmake_system_beos=false
|
||||
fi
|
||||
|
||||
+# Determine whether this is Haiku
|
||||
+if echo "${cmake_system}" | grep Haiku >/dev/null 2>&1; then
|
||||
+ cmake_system_haiku=true
|
||||
+else
|
||||
+ cmake_system_haiku=false
|
||||
+fi
|
||||
+
|
||||
# Choose the generator to use for bootstrapping.
|
||||
if ${cmake_system_mingw}; then
|
||||
# Bootstrapping from an MSYS prompt.
|
||||
@@ -603,6 +610,11 @@
|
||||
cmake_ld_flags="${LDFLAGS} -lroot -lbe"
|
||||
fi
|
||||
|
||||
+# Add Haiku toolkits...
|
||||
+if ${cmake_system_haiku}; then
|
||||
+ cmake_ld_flags="${LDFLAGS} -lroot -lbe"
|
||||
+fi
|
||||
+
|
||||
# Test C compiler
|
||||
cmake_c_compiler=
|
||||
|
||||
42
dev-util/cvs/cvs-1.12.13.diff
Normal file
42
dev-util/cvs/cvs-1.12.13.diff
Normal file
@@ -0,0 +1,42 @@
|
||||
--- cvs-1.12.13/lib/stdbool_.h 2005-05-23 17:44:32.000000000 +0000
|
||||
+++ cvs-1.12.13.patched/lib/stdbool_.h 2008-04-16 19:48:25.000000000 +0000
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
|
||||
definitions below, but temporarily we have to #undef them. */
|
||||
-#ifdef __BEOS__
|
||||
+#if defined(__BEOS__) && !defined(__HAIKU__)
|
||||
# include <OS.h> /* defines bool but not _Bool */
|
||||
# undef false
|
||||
# undef true
|
||||
@@ -70,7 +70,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__)
|
||||
+#if !(defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__))
|
||||
# if !@HAVE__BOOL@
|
||||
# if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1)
|
||||
/* Avoid stupid "warning: _Bool is a keyword in ISO C99". */
|
||||
--- cvs-1.12.13/lib/getpass.c 2005-09-19 21:12:21.000000000 +0000
|
||||
+++ cvs-1.12.13.patched/lib/getpass.c 2008-04-13 22:14:46.000000000 +0000
|
||||
@@ -104,7 +104,7 @@
|
||||
else
|
||||
{
|
||||
/* We do the locking ourselves. */
|
||||
- __fsetlocking (tty, FSETLOCKING_BYCALLER);
|
||||
+// __fsetlocking (tty, FSETLOCKING_BYCALLER);
|
||||
|
||||
out = in = tty;
|
||||
}
|
||||
--- cvs-1.12.13/src/buffer.c 2005-10-02 15:17:20.000000000 +0000
|
||||
+++ cvs-1.12.13.patched/src/buffer.c 2008-04-13 22:18:11.000000000 +0000
|
||||
@@ -2019,7 +2019,7 @@
|
||||
&& sb.st_uid == devnull.st_uid
|
||||
&& sb.st_gid == devnull.st_gid
|
||||
&& sb.st_size == devnull.st_size
|
||||
- && sb.st_blocks == devnull.st_blocks
|
||||
+// && sb.st_blocks == devnull.st_blocks
|
||||
&& sb.st_blksize == devnull.st_blksize);
|
||||
if (isdevnull)
|
||||
errno = 0;
|
||||
433
dev-util/cvs/cvs-CVS.diff
Normal file
433
dev-util/cvs/cvs-CVS.diff
Normal file
@@ -0,0 +1,433 @@
|
||||
? build-aux/ltmain.sh
|
||||
Index: configure
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/configure,v
|
||||
retrieving revision 1.488
|
||||
diff -u -p -r1.488 configure
|
||||
--- configure 28 Jan 2008 05:32:56 -0000 1.488
|
||||
+++ configure 4 May 2008 09:32:20 -0000
|
||||
@@ -40558,7 +40558,7 @@ return connect ();
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
-for ac_lib in '' xnet socket inet; do
|
||||
+for ac_lib in '' xnet socket inet network; do
|
||||
if test -z "$ac_lib"; then
|
||||
ac_res="none required"
|
||||
else
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/configure.in,v
|
||||
retrieving revision 1.385
|
||||
diff -u -p -r1.385 configure.in
|
||||
--- configure.in 28 Jan 2008 05:32:56 -0000 1.385
|
||||
+++ configure.in 4 May 2008 09:32:26 -0000
|
||||
@@ -527,7 +527,7 @@ CVS_FUNC_PRINTF_PTR
|
||||
|
||||
# Try to find connect and gethostbyname.
|
||||
AC_CHECK_LIB(nsl, main)
|
||||
-AC_SEARCH_LIBS(connect, xnet socket inet,
|
||||
+AC_SEARCH_LIBS(connect, xnet socket inet network,
|
||||
AC_DEFINE(HAVE_CONNECT, 1,
|
||||
[Define if you have the connect function.]))
|
||||
dnl no need to search nsl for gethostbyname here since we should have
|
||||
Index: build-aux/config.guess
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/build-aux/config.guess,v
|
||||
retrieving revision 1.2
|
||||
diff -u -p -r1.2 config.guess
|
||||
--- build-aux/config.guess 21 Aug 2007 18:42:53 -0000 1.2
|
||||
+++ build-aux/config.guess 4 May 2008 09:32:31 -0000
|
||||
@@ -1,10 +1,10 @@
|
||||
#! /bin/sh
|
||||
# Attempt to guess a canonical system name.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
||||
-# Inc.
|
||||
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
||||
+# Free Software Foundation, Inc.
|
||||
|
||||
-timestamp='2006-07-02'
|
||||
+timestamp='2008-01-08'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@@ -56,8 +56,8 @@ version="\
|
||||
GNU config.guess ($timestamp)
|
||||
|
||||
Originally written by Per Bothner.
|
||||
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
-Free Software Foundation, Inc.
|
||||
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
||||
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
@@ -161,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
||||
arm*) machine=arm-unknown ;;
|
||||
sh3el) machine=shl-unknown ;;
|
||||
sh3eb) machine=sh-unknown ;;
|
||||
+ sh5el) machine=sh5le-unknown ;;
|
||||
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
||||
esac
|
||||
# The Operating System including object format, if it has switched
|
||||
@@ -329,7 +330,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
||||
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
- i86pc:SunOS:5.*:*)
|
||||
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
||||
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
sun4*:SunOS:6*:*)
|
||||
@@ -531,7 +532,7 @@ EOF
|
||||
echo rs6000-ibm-aix3.2
|
||||
fi
|
||||
exit ;;
|
||||
- *:AIX:*:[45])
|
||||
+ *:AIX:*:[456])
|
||||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
||||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
||||
IBM_ARCH=rs6000
|
||||
@@ -780,7 +781,7 @@ EOF
|
||||
i*:CYGWIN*:*)
|
||||
echo ${UNAME_MACHINE}-pc-cygwin
|
||||
exit ;;
|
||||
- i*:MINGW*:*)
|
||||
+ *:MINGW*:*)
|
||||
echo ${UNAME_MACHINE}-pc-mingw32
|
||||
exit ;;
|
||||
i*:windows32*:*)
|
||||
@@ -790,12 +791,18 @@ EOF
|
||||
i*:PW*:*)
|
||||
echo ${UNAME_MACHINE}-pc-pw32
|
||||
exit ;;
|
||||
- x86:Interix*:[3456]*)
|
||||
- echo i586-pc-interix${UNAME_RELEASE}
|
||||
- exit ;;
|
||||
- EM64T:Interix*:[3456]*)
|
||||
- echo x86_64-unknown-interix${UNAME_RELEASE}
|
||||
- exit ;;
|
||||
+ *:Interix*:[3456]*)
|
||||
+ case ${UNAME_MACHINE} in
|
||||
+ x86)
|
||||
+ echo i586-pc-interix${UNAME_RELEASE}
|
||||
+ exit ;;
|
||||
+ EM64T | authenticamd)
|
||||
+ echo x86_64-unknown-interix${UNAME_RELEASE}
|
||||
+ exit ;;
|
||||
+ IA64)
|
||||
+ echo ia64-unknown-interix${UNAME_RELEASE}
|
||||
+ exit ;;
|
||||
+ esac ;;
|
||||
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
||||
echo i${UNAME_MACHINE}-pc-mks
|
||||
exit ;;
|
||||
@@ -829,7 +836,14 @@ EOF
|
||||
echo ${UNAME_MACHINE}-pc-minix
|
||||
exit ;;
|
||||
arm*:Linux:*:*)
|
||||
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
+ eval $set_cc_for_build
|
||||
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||
+ | grep -q __ARM_EABI__
|
||||
+ then
|
||||
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
+ else
|
||||
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
||||
+ fi
|
||||
exit ;;
|
||||
avr32*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
@@ -950,6 +964,9 @@ EOF
|
||||
x86_64:Linux:*:*)
|
||||
echo x86_64-unknown-linux-gnu
|
||||
exit ;;
|
||||
+ xtensa*:Linux:*:*)
|
||||
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
+ exit ;;
|
||||
i*86:Linux:*:*)
|
||||
# The BFD linker knows what the default object file format is, so
|
||||
# first see if it will tell us. cd to the root directory to prevent
|
||||
@@ -1199,6 +1216,12 @@ EOF
|
||||
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
||||
echo i586-pc-beos
|
||||
exit ;;
|
||||
+ BeMac:Haiku:*:*)
|
||||
+ echo powerpc-apple-haiku
|
||||
+ exit ;;
|
||||
+ BePC:Haiku:*:*)
|
||||
+ echo i586-pc-haiku
|
||||
+ exit ;;
|
||||
SX-4:SUPER-UX:*:*)
|
||||
echo sx4-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
@@ -1208,6 +1231,15 @@ EOF
|
||||
SX-6:SUPER-UX:*:*)
|
||||
echo sx6-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
+ SX-7:SUPER-UX:*:*)
|
||||
+ echo sx7-nec-superux${UNAME_RELEASE}
|
||||
+ exit ;;
|
||||
+ SX-8:SUPER-UX:*:*)
|
||||
+ echo sx8-nec-superux${UNAME_RELEASE}
|
||||
+ exit ;;
|
||||
+ SX-8R:SUPER-UX:*:*)
|
||||
+ echo sx8r-nec-superux${UNAME_RELEASE}
|
||||
+ exit ;;
|
||||
Power*:Rhapsody:*:*)
|
||||
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
||||
exit ;;
|
||||
Index: build-aux/config.sub
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/build-aux/config.sub,v
|
||||
retrieving revision 1.2
|
||||
diff -u -p -r1.2 config.sub
|
||||
--- build-aux/config.sub 21 Aug 2007 18:42:53 -0000 1.2
|
||||
+++ build-aux/config.sub 4 May 2008 09:32:35 -0000
|
||||
@@ -1,10 +1,10 @@
|
||||
#! /bin/sh
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
||||
-# Inc.
|
||||
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
||||
+# Free Software Foundation, Inc.
|
||||
|
||||
-timestamp='2006-09-20'
|
||||
+timestamp='2008-01-16'
|
||||
|
||||
# This file is (in principle) common to ALL GNU software.
|
||||
# The presence of a machine in this file suggests that SOME GNU software
|
||||
@@ -72,8 +72,8 @@ Report bugs and patches to <config-patch
|
||||
version="\
|
||||
GNU config.sub ($timestamp)
|
||||
|
||||
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
-Free Software Foundation, Inc.
|
||||
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
||||
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
@@ -245,12 +245,12 @@ case $basic_machine in
|
||||
| bfin \
|
||||
| c4x | clipper \
|
||||
| d10v | d30v | dlx | dsp16xx \
|
||||
- | fr30 | frv \
|
||||
+ | fido | fr30 | frv \
|
||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||
| i370 | i860 | i960 | ia64 \
|
||||
| ip2k | iq2000 \
|
||||
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
||||
- | maxq | mb | microblaze | mcore \
|
||||
+ | maxq | mb | microblaze | mcore | mep \
|
||||
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||
| mips16 \
|
||||
| mips64 | mips64el \
|
||||
@@ -324,7 +324,7 @@ case $basic_machine in
|
||||
| clipper-* | craynv-* | cydra-* \
|
||||
| d10v-* | d30v-* | dlx-* \
|
||||
| elxsi-* \
|
||||
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
||||
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
||||
| h8300-* | h8500-* \
|
||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||
| i*86-* | i860-* | i960-* | ia64-* \
|
||||
@@ -369,10 +369,14 @@ case $basic_machine in
|
||||
| v850-* | v850e-* | vax-* \
|
||||
| we32k-* \
|
||||
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
|
||||
- | xstormy16-* | xtensa-* \
|
||||
+ | xstormy16-* | xtensa*-* \
|
||||
| ymp-* \
|
||||
| z8k-*)
|
||||
;;
|
||||
+ # Recognize the basic CPU types without company name, with glob match.
|
||||
+ xtensa*)
|
||||
+ basic_machine=$basic_machine-unknown
|
||||
+ ;;
|
||||
# Recognize the various machine names and aliases which stand
|
||||
# for a CPU type and a company and sometimes even an OS.
|
||||
386bsd)
|
||||
@@ -443,6 +447,14 @@ case $basic_machine in
|
||||
basic_machine=ns32k-sequent
|
||||
os=-dynix
|
||||
;;
|
||||
+ blackfin)
|
||||
+ basic_machine=bfin-unknown
|
||||
+ os=-linux
|
||||
+ ;;
|
||||
+ blackfin-*)
|
||||
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
+ os=-linux
|
||||
+ ;;
|
||||
c90)
|
||||
basic_machine=c90-cray
|
||||
os=-unicos
|
||||
@@ -475,8 +487,8 @@ case $basic_machine in
|
||||
basic_machine=craynv-cray
|
||||
os=-unicosmp
|
||||
;;
|
||||
- cr16c)
|
||||
- basic_machine=cr16c-unknown
|
||||
+ cr16)
|
||||
+ basic_machine=cr16-unknown
|
||||
os=-elf
|
||||
;;
|
||||
crds | unos)
|
||||
@@ -668,6 +680,14 @@ case $basic_machine in
|
||||
basic_machine=m68k-isi
|
||||
os=-sysv
|
||||
;;
|
||||
+ m68knommu)
|
||||
+ basic_machine=m68k-unknown
|
||||
+ os=-linux
|
||||
+ ;;
|
||||
+ m68knommu-*)
|
||||
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
+ os=-linux
|
||||
+ ;;
|
||||
m88k-omron*)
|
||||
basic_machine=m88k-omron
|
||||
;;
|
||||
@@ -683,6 +703,10 @@ case $basic_machine in
|
||||
basic_machine=i386-pc
|
||||
os=-mingw32
|
||||
;;
|
||||
+ mingw32ce)
|
||||
+ basic_machine=arm-unknown
|
||||
+ os=-mingw32ce
|
||||
+ ;;
|
||||
miniframe)
|
||||
basic_machine=m68000-convergent
|
||||
;;
|
||||
@@ -809,6 +833,14 @@ case $basic_machine in
|
||||
basic_machine=i860-intel
|
||||
os=-osf
|
||||
;;
|
||||
+ parisc)
|
||||
+ basic_machine=hppa-unknown
|
||||
+ os=-linux
|
||||
+ ;;
|
||||
+ parisc-*)
|
||||
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
+ os=-linux
|
||||
+ ;;
|
||||
pbd)
|
||||
basic_machine=sparc-tti
|
||||
;;
|
||||
@@ -925,6 +957,9 @@ case $basic_machine in
|
||||
basic_machine=sh-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
+ sh5el)
|
||||
+ basic_machine=sh5le-unknown
|
||||
+ ;;
|
||||
sh64)
|
||||
basic_machine=sh64-unknown
|
||||
;;
|
||||
@@ -1014,6 +1049,10 @@ case $basic_machine in
|
||||
basic_machine=tic6x-unknown
|
||||
os=-coff
|
||||
;;
|
||||
+ tile*)
|
||||
+ basic_machine=tile-unknown
|
||||
+ os=-linux-gnu
|
||||
+ ;;
|
||||
tx39)
|
||||
basic_machine=mipstx39-unknown
|
||||
;;
|
||||
@@ -1219,7 +1258,7 @@ case $os in
|
||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
||||
- | -skyos* | -haiku* | -rdos* | -toppers*)
|
||||
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-qnx*)
|
||||
@@ -1414,6 +1453,9 @@ case $basic_machine in
|
||||
m68*-cisco)
|
||||
os=-aout
|
||||
;;
|
||||
+ mep-*)
|
||||
+ os=-elf
|
||||
+ ;;
|
||||
mips*-cisco)
|
||||
os=-elf
|
||||
;;
|
||||
Index: lib/stdbool_.h
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/lib/stdbool_.h,v
|
||||
retrieving revision 1.5
|
||||
diff -u -p -r1.5 stdbool_.h
|
||||
--- lib/stdbool_.h 22 Aug 2007 12:48:45 -0000 1.5
|
||||
+++ lib/stdbool_.h 4 May 2008 09:32:38 -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. */
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ && !defined __HAIKU__
|
||||
# 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__
|
||||
+#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
|
||||
/* A compiler known to have 'bool'. */
|
||||
/* If the compiler already has both 'bool' and '_Bool', we can assume they
|
||||
are the same types. */
|
||||
Index: src/buffer.c
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/src/buffer.c,v
|
||||
retrieving revision 1.73
|
||||
diff -u -p -r1.73 buffer.c
|
||||
--- src/buffer.c 4 May 2006 18:15:15 -0000 1.73
|
||||
+++ src/buffer.c 4 May 2008 09:32:45 -0000
|
||||
@@ -24,6 +24,7 @@
|
||||
/* CVS headers. */
|
||||
#include "cvs.h"
|
||||
|
||||
+#include <sys/select.h>
|
||||
|
||||
|
||||
/* Local functions. */
|
||||
@@ -2120,7 +2121,7 @@ fd_buffer_block (void *closure, bool blo
|
||||
&& sb.st_uid == devnull.st_uid
|
||||
&& sb.st_gid == devnull.st_gid
|
||||
&& sb.st_size == devnull.st_size
|
||||
- && sb.st_blocks == devnull.st_blocks
|
||||
+// && sb.st_blocks == devnull.st_blocks
|
||||
&& sb.st_blksize == devnull.st_blksize);
|
||||
if (isdevnull)
|
||||
errno = 0;
|
||||
Index: windows-NT/stdbool.h
|
||||
===================================================================
|
||||
RCS file: /sources/cvs/ccvs/windows-NT/stdbool.h,v
|
||||
retrieving revision 1.6
|
||||
diff -u -p -r1.6 stdbool.h
|
||||
--- windows-NT/stdbool.h 22 Aug 2007 13:48:49 -0000 1.6
|
||||
+++ windows-NT/stdbool.h 4 May 2008 09:35:17 -0000
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
|
||||
definitions below, but temporarily we have to #undef them. */
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ && !defined __HAIKU__
|
||||
# include <OS.h> /* defines bool but not _Bool */
|
||||
# undef false
|
||||
# undef true
|
||||
@@ -80,7 +80,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__
|
||||
+#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
|
||||
/* A compiler known to have 'bool'. */
|
||||
/* If the compiler already has both 'bool' and '_Bool', we can assume they
|
||||
are the same types. */
|
||||
54
dev-util/git/git-1.5.5.diff
Normal file
54
dev-util/git/git-1.5.5.diff
Normal file
@@ -0,0 +1,54 @@
|
||||
--- git-1.5.5/Makefile 2008-04-08 07:10:01.000000000 +0000
|
||||
+++ git-1.5.5.patched/Makefile 2008-04-19 00:20:29.000000000 +0000
|
||||
@@ -989,7 +989,7 @@
|
||||
'-DGIT_INFO_PATH="$(infodir_SQ)"' $<
|
||||
|
||||
$(BUILT_INS): git$X
|
||||
- $(QUIET_BUILT_IN)$(RM) $@ && ln git$X $@
|
||||
+ $(QUIET_BUILT_IN)$(RM) $@ && ln -s git$X $@
|
||||
|
||||
common-cmds.h: ./generate-cmdlist.sh command-list.txt
|
||||
|
||||
@@ -1230,7 +1230,7 @@
|
||||
cp '$(DESTDIR_SQ)$(bindir_SQ)/git$X' \
|
||||
'$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
|
||||
fi
|
||||
- $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
|
||||
+ $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln -s '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
|
||||
ifneq (,$X)
|
||||
$(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) git$X)), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)
|
||||
endif
|
||||
--- git-1.5.5/git-compat-util.h 2008-04-08 07:10:01.000000000 +0000
|
||||
+++ git-1.5.5.patched/git-compat-util.h 2008-04-18 22:15:48.000000000 +0000
|
||||
@@ -453,4 +453,8 @@
|
||||
# define FORCE_DIR_SET_GID 0
|
||||
#endif
|
||||
|
||||
+#ifndef INET_ADDRSTRLEN
|
||||
+#define INET_ADDRSTRLEN 16
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--- git-1.5.5/builtin-count-objects.c 2008-04-08 07:10:01.000000000 +0000
|
||||
+++ git-1.5.5.patched/builtin-count-objects.c 2008-04-19 00:32:05.000000000 +0000
|
||||
@@ -43,7 +43,8 @@
|
||||
if (lstat(path, &st) || !S_ISREG(st.st_mode))
|
||||
bad = 1;
|
||||
else
|
||||
- (*loose_size) += xsize_t(st.st_blocks);
|
||||
+// (*loose_size) += xsize_t(st.st_blocks);
|
||||
+ (*loose_size) += ceil(st.st_size / 512.0);
|
||||
}
|
||||
if (bad) {
|
||||
if (verbose) {
|
||||
--- git-1.5.5/templates/Makefile 2008-04-08 07:10:01.000000000 +0000
|
||||
+++ git-1.5.5.patched/templates/Makefile 2008-04-19 00:44:46.000000000 +0000
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
bpsrc = $(filter-out %~,$(wildcard *--*))
|
||||
boilerplates.made : $(bpsrc)
|
||||
- $(QUIET)ls *--* 2>/dev/null | \
|
||||
+ $(QUIET)ls -1 *--* 2>/dev/null | \
|
||||
while read boilerplate; \
|
||||
do \
|
||||
case "$$boilerplate" in *~) continue ;; esac && \
|
||||
64
dev-util/git/git-master.diff
Normal file
64
dev-util/git/git-master.diff
Normal file
@@ -0,0 +1,64 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 9d84c8d..a4ac815 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -992,7 +992,7 @@ help.o: help.c common-cmds.h GIT-CFLAGS
|
||||
'-DGIT_INFO_PATH="$(infodir_SQ)"' $<
|
||||
|
||||
$(BUILT_INS): git$X
|
||||
- $(QUIET_BUILT_IN)$(RM) $@ && ln git$X $@
|
||||
+ $(QUIET_BUILT_IN)$(RM) $@ && ln -s git$X $@
|
||||
|
||||
common-cmds.h: ./generate-cmdlist.sh command-list.txt
|
||||
|
||||
@@ -1234,7 +1234,7 @@ endif
|
||||
cp '$(DESTDIR_SQ)$(bindir_SQ)/git$X' \
|
||||
'$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
|
||||
fi
|
||||
- $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
|
||||
+ $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln -s '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
|
||||
ifneq (,$X)
|
||||
$(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) git$X)), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)
|
||||
endif
|
||||
diff --git a/builtin-count-objects.c b/builtin-count-objects.c
|
||||
index f00306f..f8a3068 100644
|
||||
--- a/builtin-count-objects.c
|
||||
+++ b/builtin-count-objects.c
|
||||
@@ -43,7 +43,11 @@ static void count_objects(DIR *d, char *path, int len, int verbose,
|
||||
if (lstat(path, &st) || !S_ISREG(st.st_mode))
|
||||
bad = 1;
|
||||
else
|
||||
+#ifdef __HAIKU__
|
||||
+ (*loose_size) += ceil(st.st_size / 512.0);
|
||||
+#else
|
||||
(*loose_size) += xsize_t(st.st_blocks);
|
||||
+#endif
|
||||
}
|
||||
if (bad) {
|
||||
if (verbose) {
|
||||
diff --git a/git-compat-util.h b/git-compat-util.h
|
||||
index 167c3fe..def08dc 100644
|
||||
--- a/git-compat-util.h
|
||||
+++ b/git-compat-util.h
|
||||
@@ -469,4 +469,8 @@ void git_qsort(void *base, size_t nmemb, size_t size,
|
||||
# define FORCE_DIR_SET_GID 0
|
||||
#endif
|
||||
|
||||
+#ifndef INET_ADDRSTRLEN
|
||||
+#define INET_ADDRSTRLEN 16
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
diff --git a/templates/Makefile b/templates/Makefile
|
||||
index bda9d13..e56682f 100644
|
||||
--- a/templates/Makefile
|
||||
+++ b/templates/Makefile
|
||||
@@ -23,7 +23,7 @@ all: boilerplates.made custom
|
||||
|
||||
bpsrc = $(filter-out %~,$(wildcard *--*))
|
||||
boilerplates.made : $(bpsrc)
|
||||
- $(QUIET)ls *--* 2>/dev/null | \
|
||||
+ $(QUIET)ls -1 *--* 2>/dev/null | \
|
||||
while read boilerplate; \
|
||||
do \
|
||||
case "$$boilerplate" in *~) continue ;; esac && \
|
||||
13
dev-util/subversion/subversion-1.4.x.diff
Normal file
13
dev-util/subversion/subversion-1.4.x.diff
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
--- configure.in (revision 30382)
|
||||
+++ configure.in (working copy)
|
||||
@@ -184,7 +184,7 @@
|
||||
dnl So we only turn it on for platforms where we know we really need it.
|
||||
AC_MSG_CHECKING([whether libtool needs -no-undefined])
|
||||
case $host in
|
||||
- *-*-cygwin*)
|
||||
+ *-*-cygwin* | *-*-beos* | *-*-haiku*)
|
||||
AC_MSG_RESULT([yes])
|
||||
LT_NO_UNDEFINED="-no-undefined"
|
||||
;;
|
||||
35
dev-util/treecc/treecc-CVS.diff
Normal file
35
dev-util/treecc/treecc-CVS.diff
Normal file
@@ -0,0 +1,35 @@
|
||||
? ylwrap
|
||||
Index: Makefile.am
|
||||
===================================================================
|
||||
RCS file: /sources/dotgnu-pnet/treecc/Makefile.am,v
|
||||
retrieving revision 1.12
|
||||
diff -u -p -r1.12 Makefile.am
|
||||
--- Makefile.am 4 Jun 2007 10:14:29 -0000 1.12
|
||||
+++ Makefile.am 26 Apr 2008 19:49:11 -0000
|
||||
@@ -47,8 +47,8 @@ SKELETON_FILES = $(top_srcdir)/etc/c_ske
|
||||
$(top_srcdir)/etc/cpp_gc_skel.h \
|
||||
$(top_srcdir)/etc/cpp_gc_skel.cc
|
||||
|
||||
-skels.c: $(SKELETON_FILES) mkskel-sh
|
||||
- $(SHELL) mkskel-sh $(SKELETON_FILES) >skels.c
|
||||
+skels.c: $(SKELETON_FILES) $(top_srcdir)/mkskel-sh
|
||||
+ $(SHELL) $(top_srcdir)/mkskel-sh $(SKELETON_FILES) >skels.c
|
||||
|
||||
CLEANFILES = skels.c
|
||||
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
RCS file: /sources/dotgnu-pnet/treecc/configure.in,v
|
||||
retrieving revision 1.52
|
||||
diff -u -p -r1.52 configure.in
|
||||
--- configure.in 4 Jun 2007 18:45:48 -0000 1.52
|
||||
+++ configure.in 26 Apr 2008 19:49:11 -0000
|
||||
@@ -23,7 +23,7 @@ AC_MSG_RESULT($platform_win32)
|
||||
|
||||
AC_MSG_CHECKING([if building for BeOS platform])
|
||||
case "$host" in
|
||||
- *-*-beos*)
|
||||
+ *-*-beos*|*-*-haiku*)
|
||||
platform_beos=yes
|
||||
LDADD=""
|
||||
;;
|
||||
Reference in New Issue
Block a user