mirror of
https://github.com/darlinghq/darling-gpatch.git
synced 2024-11-26 21:40:38 +00:00
Darling build of gpatch-4
This commit is contained in:
parent
fe8fa0f11b
commit
70fcfd9c07
@ -7,22 +7,29 @@ if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0005 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
include(darling_exe)
|
||||
add_definitions(-DHAVE_CONFIG_H -Ded_PROGRAM="/bin/ed")
|
||||
add_compile_definitions(
|
||||
HAVE_CONFIG_H
|
||||
ed_PROGRAM="/bin/ed"
|
||||
|
||||
__DARWIN_UNIX03
|
||||
)
|
||||
|
||||
# Hide warnings
|
||||
add_definitions(
|
||||
add_compile_options(
|
||||
-Wno-string-plus-int
|
||||
-Wno-format-security
|
||||
-Wno-macro-redefined
|
||||
-Wno-constant-logical-operand
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_POSIX_C_SOURCE -D__DARWIN_UNIX03 -nostdinc -fPIC")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -fPIC")
|
||||
|
||||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/patch)
|
||||
include_directories(BEFORE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gen
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/patch
|
||||
)
|
||||
|
||||
set(gpatch_sources
|
||||
add_darling_executable(patch
|
||||
patch/addext.c
|
||||
patch/argmatch.c
|
||||
patch/backupfile.c
|
||||
@ -30,24 +37,20 @@ set(gpatch_sources
|
||||
patch/dirname.c
|
||||
patch/error.c
|
||||
patch/exitfail.c
|
||||
patch/getopt1.c
|
||||
patch/getopt.c
|
||||
patch/getopt1.c
|
||||
patch/inp.c
|
||||
patch/maketime.c
|
||||
patch/partime.c
|
||||
patch/patch.c
|
||||
patch/pch.c
|
||||
patch/quotearg.c
|
||||
patch/quote.c
|
||||
patch/quotearg.c
|
||||
patch/quotesys.c
|
||||
patch/util.c
|
||||
patch/version.c
|
||||
patch/xmalloc.c
|
||||
)
|
||||
|
||||
add_darling_executable(patch ${gpatch_sources})
|
||||
|
||||
install(TARGETS patch
|
||||
DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(TARGETS patch DESTINATION libexec/darling/usr/bin)
|
||||
install(FILES patch.1 DESTINATION libexec/darling/usr/share/man/man1)
|
||||
|
2
gen/.gitignore
vendored
Normal file
2
gen/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.o
|
||||
/patch
|
200
gen/Makefile
Normal file
200
gen/Makefile
Normal file
@ -0,0 +1,200 @@
|
||||
# Makefile for GNU patch.
|
||||
|
||||
# Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002 Free Software
|
||||
# Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; see the file COPYING.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
srcdir = ../patch
|
||||
VPATH = ../patch
|
||||
|
||||
|
||||
|
||||
CC = /Users/ariel/private-bin/clang
|
||||
ed_PROGRAM = /bin/ed
|
||||
INSTALL = /usr/bin/install -c
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
transform = s,x,x,
|
||||
|
||||
CFLAGS = -mdynamic-no-pic -Wformat-security
|
||||
CPPFLAGS = -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING
|
||||
DEFS = -DHAVE_CONFIG_H
|
||||
EXEEXT =
|
||||
LDFLAGS =
|
||||
LIBOBJS =
|
||||
LIBS =
|
||||
OBJEXT = o
|
||||
PACKAGE_NAME = patch
|
||||
PACKAGE_VERSION = 2.5.8
|
||||
|
||||
prefix = /usr/local
|
||||
exec_prefix = ${prefix}
|
||||
|
||||
bindir = $(exec_prefix)/bin
|
||||
|
||||
# Where to put the manual pages.
|
||||
mandir = ${prefix}/man
|
||||
man1dir = $(mandir)/man1
|
||||
# Extension (including `.') for the manual page filenames.
|
||||
man1ext = .1
|
||||
|
||||
# Hook for nonstandard builds.
|
||||
CONFIG_STATUS = config.status
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
LIBSRCS = malloc.c memchr.c mkdir.c \
|
||||
realloc.c rename.c rmdir.c strcasecmp.c strncasecmp.c
|
||||
SRCS = $(LIBSRCS) \
|
||||
addext.c argmatch.c backupfile.c \
|
||||
basename.c dirname.c \
|
||||
error.c exitfail.c \
|
||||
getopt.c getopt1.c inp.c \
|
||||
maketime.c partime.c \
|
||||
patch.c pch.c \
|
||||
quote.c quotearg.c quotesys.c \
|
||||
util.c version.c xmalloc.c
|
||||
OBJS = $(LIBOBJS) \
|
||||
addext.$(OBJEXT) argmatch.$(OBJEXT) backupfile.$(OBJEXT) \
|
||||
basename.$(OBJEXT) dirname.$(OBJEXT) \
|
||||
error.$(OBJEXT) exitfail.$(OBJEXT) \
|
||||
getopt.$(OBJEXT) getopt1.$(OBJEXT) inp.$(OBJEXT) \
|
||||
maketime.$(OBJEXT) partime.$(OBJEXT) \
|
||||
patch.$(OBJEXT) pch.$(OBJEXT) \
|
||||
quote.$(OBJEXT) quotearg.$(OBJEXT) quotesys.$(OBJEXT) \
|
||||
util.$(OBJEXT) version.$(OBJEXT) xmalloc.$(OBJEXT)
|
||||
HDRS = argmatch.h backupfile.h common.h dirname.h \
|
||||
error.h exitfail.h getopt.h \
|
||||
inp.h maketime.h partime.h patchlevel.h pch.h \
|
||||
quote.h quotearg.h quotesys.h \
|
||||
unlocked-io.h util.h version.h xalloc.h
|
||||
MISC = AUTHORS COPYING ChangeLog INSTALL Makefile.in NEWS README \
|
||||
aclocal.m4 \
|
||||
config.hin configure configure.ac \
|
||||
install-sh mkinstalldirs patch.man
|
||||
DISTFILES = $(MISC) $(SRCS) $(HDRS)
|
||||
DISTFILES_M4 = $(ACINCLUDE_INPUTS)
|
||||
DISTFILES_PC = pc/chdirsaf.c
|
||||
DISTFILES_PC_DJGPP = pc/djgpp/README pc/djgpp/config.sed \
|
||||
pc/djgpp/configure.bat pc/djgpp/configure.sed
|
||||
|
||||
patch_name = `echo patch | sed '$(transform)'`
|
||||
|
||||
all:: patch$(EXEEXT)
|
||||
|
||||
info::
|
||||
check::
|
||||
installcheck::
|
||||
|
||||
COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) -Ded_PROGRAM=\"$(ed_PROGRAM)\" \
|
||||
-I. -I$(srcdir) $(CFLAGS)
|
||||
|
||||
.c.$(OBJEXT):
|
||||
$(COMPILE) $<
|
||||
|
||||
patch$(EXEEXT): $(OBJS)
|
||||
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
|
||||
install:: all installdirs
|
||||
$(INSTALL_PROGRAM) patch$(EXEEXT) $(bindir)/$(patch_name)$(EXEEXT)
|
||||
-$(INSTALL_DATA) $(srcdir)/patch.man $(man1dir)/$(patch_name)$(man1ext)
|
||||
|
||||
installdirs::
|
||||
$(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(man1dir)
|
||||
|
||||
install-strip::
|
||||
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
|
||||
|
||||
uninstall::
|
||||
rm -f $(bindir)/$(patch_name)$(EXEEXT)
|
||||
rm -f $(man1dir)/$(patch_name)$(man1ext)
|
||||
|
||||
Makefile: Makefile.in $(CONFIG_STATUS)
|
||||
$(SHELL) $(CONFIG_STATUS)
|
||||
config.status: configure
|
||||
$(SHELL) $(CONFIG_STATUS) --recheck
|
||||
configure: configure.ac $(srcdir)/aclocal.m4
|
||||
config.hin: configure.ac $(srcdir)/aclocal.m4
|
||||
|
||||
M4DIR = $(srcdir)/m4
|
||||
ACINCLUDE_INPUTS = $(M4DIR)/c-bs-a.m4 $(M4DIR)/d-ino.m4 $(M4DIR)/error.m4 \
|
||||
$(M4DIR)/jm-glibc-io.m4 $(M4DIR)/malloc.m4 $(M4DIR)/mbstate_t.m4 \
|
||||
$(M4DIR)/mkdir.m4 $(M4DIR)/mbrtowc.m4 \
|
||||
$(M4DIR)/prereq.m4 $(M4DIR)/realloc.m4 \
|
||||
$(M4DIR)/setmode.m4 $(M4DIR)/utimbuf.m4
|
||||
|
||||
$(srcdir)/aclocal.m4: $(ACINCLUDE_INPUTS)
|
||||
cat $(ACINCLUDE_INPUTS) >$(srcdir)/aclocal.m4
|
||||
|
||||
patchlevel.h: configure
|
||||
echo '#define PATCH_VERSION "$(PACKAGE_VERSION)"' >patchlevel.h
|
||||
|
||||
TAGS: $(HDRS) patchlevel.h $(SRCS)
|
||||
etags $(HDRS) patchlevel.h $(SRCS)
|
||||
|
||||
mostlyclean::
|
||||
rm -f core* *core *.$(OBJEXT) *_.c
|
||||
|
||||
clean:: mostlyclean
|
||||
rm -f patch$(EXEEXT)
|
||||
|
||||
distclean:: clean
|
||||
rm -f Makefile config.cache config.log config.status config.h
|
||||
|
||||
maintainer-clean::
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "rebuilding the deleted files requires special tools."
|
||||
$(MAKE) distclean
|
||||
rm -f TAGS
|
||||
|
||||
PV = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
|
||||
|
||||
dist:: $(DISTFILES) $(DISTFILES_M4) $(DISTFILES_PC) $(DISTFILES_PC_DJGPP)
|
||||
rm -rf $(PV)
|
||||
mkdir $(PV) $(PV)/m4 $(PV)/pc $(PV)/pc/djgpp
|
||||
cp -p $(DISTFILES) $(PV)
|
||||
cp -p $(DISTFILES_M4) $(PV)/m4
|
||||
cp -p $(DISTFILES_PC) $(PV)/pc
|
||||
cp -p $(DISTFILES_PC_DJGPP) $(PV)/pc/djgpp
|
||||
tar -chf - $(PV) | gzip -9 >$(PV).tar.gz
|
||||
rm -rf $(PV)
|
||||
|
||||
$(OBJS): config.h
|
||||
addext.$(OBJEXT): backupfile.h dirname.h
|
||||
argmatch.$(OBJEXT): argmatch.h error.h quote.h quotearg.h unlocked-io.h
|
||||
backupfile.$(OBJEXT): argmatch.h backupfile.h dirname.h
|
||||
basename.$(OBJEXT): dirname.h
|
||||
error.$(OBJEXT): error.h unlocked-io.h
|
||||
getopt.$(OBJEXT) getopt1.$(OBJEXT): getopt.h
|
||||
inp.$(OBJEXT): backupfile.h common.h inp.h pch.h quotearg.h util.h xalloc.h
|
||||
maketime.$(OBJEXT): maketime.h partime.h
|
||||
mkdir.$(OBJEXT): dirname.h xalloc.h
|
||||
partime.$(OBJEXT): partime.h
|
||||
patch.$(OBJEXT): argmatch.h backupfile.h common.h exitfail.h getopt.h inp.h \
|
||||
pch.h quotearg.h util.h version.h xalloc.h
|
||||
pch.$(OBJEXT): backupfile.h common.h dirname.h inp.h pch.h quotearg.h util.h
|
||||
quotearg.$(OBJEXT): quotearg.h xalloc.h
|
||||
quotesys.$(OBJEXT): quotesys.h
|
||||
rename.$(OBJEXT): dirname.h xalloc.h
|
||||
util.$(OBJEXT): backupfile.h common.h dirname.h maketime.h \
|
||||
partime.h quotearg.h quotesys.h util.h version.h xalloc.h
|
||||
version.$(OBJEXT): common.h patchlevel.h util.h version.h
|
||||
xmalloc.$(OBJEXT): exitfail.h xalloc.h
|
276
gen/config.h
Normal file
276
gen/config.h
Normal file
@ -0,0 +1,276 @@
|
||||
/* config.h. Generated by configure. */
|
||||
/* config.hin. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if the `closedir' function returns void instead of `int'. */
|
||||
/* #undef CLOSEDIR_VOID */
|
||||
|
||||
/* Define if there is a member named d_ino in the struct describing directory
|
||||
headers. */
|
||||
#define D_INO_IN_DIRENT 1
|
||||
|
||||
/* Define to 1 if you have the <bp-sym.h> header file. */
|
||||
/* #undef HAVE_BP_SYM_H */
|
||||
|
||||
/* Define if backslash-a works in C strings. */
|
||||
#define HAVE_C_BACKSLASH_A 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `free', and to 0 if you don't.
|
||||
*/
|
||||
#define HAVE_DECL_FREE 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
|
||||
*/
|
||||
#define HAVE_DECL_GETENV 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `malloc', and to 0 if you don't.
|
||||
*/
|
||||
#define HAVE_DECL_MALLOC 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `mktemp', and to 0 if you don't.
|
||||
*/
|
||||
#define HAVE_DECL_MKTEMP 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_STRERROR_R 1
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define if the malloc check has been performed. */
|
||||
#define HAVE_DONE_WORKING_MALLOC_CHECK 1
|
||||
|
||||
/* Define if the realloc check has been performed. */
|
||||
#define HAVE_DONE_WORKING_REALLOC_CHECK 1
|
||||
|
||||
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
||||
/* #undef HAVE_DOPRNT */
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
|
||||
#define HAVE_FSEEKO 1
|
||||
|
||||
/* Define to 1 if you have the `geteuid' function. */
|
||||
#define HAVE_GETEUID 1
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
#define HAVE_GETUID 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `isascii' function. */
|
||||
#define HAVE_ISASCII 1
|
||||
|
||||
/* Define to 1 if you have the `iswprint' function. */
|
||||
#define HAVE_ISWPRINT 1
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you support file names longer than 14 characters. */
|
||||
#define HAVE_LONG_FILE_NAMES 1
|
||||
|
||||
/* Define to 1 if mbrtowc and mbstate_t are properly declared. */
|
||||
#define HAVE_MBRTOWC 1
|
||||
|
||||
/* ma Define to 1 if <wchar.h> declares mbstate_t. */
|
||||
#define HAVE_MBSTATE_T 1
|
||||
|
||||
/* Define to 1 if you have the `memchr' function. */
|
||||
#define HAVE_MEMCHR 1
|
||||
|
||||
/* Define to 1 if you have the `memcmp' function. */
|
||||
#define HAVE_MEMCMP 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mkdir' function. */
|
||||
#define HAVE_MKDIR 1
|
||||
|
||||
/* Define to 1 if you have the `mktemp' function. */
|
||||
#define HAVE_MKTEMP 1
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the `pathconf' function. */
|
||||
#define HAVE_PATHCONF 1
|
||||
|
||||
/* Define to 1 if you have the `raise' function. */
|
||||
#define HAVE_RAISE 1
|
||||
|
||||
/* Define to 1 if you have the `rename' function. */
|
||||
#define HAVE_RENAME 1
|
||||
|
||||
/* Define to 1 if you have the `rmdir' function. */
|
||||
#define HAVE_RMDIR 1
|
||||
|
||||
/* Define to 1 if you have the DOS-style `setmode' function. */
|
||||
/* #undef HAVE_SETMODE_DOS */
|
||||
|
||||
/* Define to 1 if you have the `sigaction' function. */
|
||||
#define HAVE_SIGACTION 1
|
||||
|
||||
/* Define to 1 if you have the `sigprocmask' function. */
|
||||
#define HAVE_SIGPROCMASK 1
|
||||
|
||||
/* Define to 1 if you have the `sigsetmask' function. */
|
||||
#define HAVE_SIGSETMASK 1
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#define HAVE_STDDEF_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `strerror_r' function. */
|
||||
#define HAVE_STRERROR_R 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strncasecmp' function. */
|
||||
#define HAVE_STRNCASECMP 1
|
||||
|
||||
/* Define if struct utimbuf is declared -- usually in <utime.h>. Some systems
|
||||
have utime.h but don't declare the struct anywhere. */
|
||||
#define HAVE_STRUCT_UTIMBUF 1
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the <utime.h> header file. */
|
||||
#define HAVE_UTIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <varargs.h> header file. */
|
||||
/* #undef HAVE_VARARGS_H */
|
||||
|
||||
/* Define to 1 if you have the `vprintf' function. */
|
||||
#define HAVE_VPRINTF 1
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#define HAVE_WCHAR_H 1
|
||||
|
||||
/* Define to 1 if you have the <wctype.h> header file. */
|
||||
#define HAVE_WCTYPE_H 1
|
||||
|
||||
/* Define to 1 if you have the `_doprintf' function. */
|
||||
/* #undef HAVE__DOPRINTF */
|
||||
|
||||
/* Define if mkdir takes only one argument. */
|
||||
/* #undef MKDIR_TAKES_ONE_ARG */
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "bug-patch@gnu.org"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "patch"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "patch 2.5.8"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "patch"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "2.5.8"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if strerror_r returns char *. */
|
||||
/* #undef STRERROR_R_CHAR_P */
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
/* # undef _ALL_SOURCE */
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
|
||||
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
|
||||
/* #undef _LARGEFILE_SOURCE */
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
/* #undef _LARGE_FILES */
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
/* #undef _MINIX */
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
/* #undef _POSIX_1_SOURCE */
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
/* #undef _POSIX_SOURCE */
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define to rpl_malloc if the replacement function should be used. */
|
||||
/* #undef malloc */
|
||||
|
||||
/* Define to a type if <wchar.h> does not define. */
|
||||
/* #undef mbstate_t */
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
/* #undef mode_t */
|
||||
|
||||
/* Define to `long' if <sys/types.h> does not define. */
|
||||
/* #undef off_t */
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
/* #undef pid_t */
|
||||
|
||||
/* Define to rpl_realloc if the replacement function should be used. */
|
||||
/* #undef realloc */
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||
/* #undef size_t */
|
1349
gen/config.log
Normal file
1349
gen/config.log
Normal file
File diff suppressed because it is too large
Load Diff
1001
gen/config.status
Executable file
1001
gen/config.status
Executable file
File diff suppressed because it is too large
Load Diff
3
gen/install.log
Normal file
3
gen/install.log
Normal file
@ -0,0 +1,3 @@
|
||||
/bin/sh ../patch/mkinstalldirs /usr/local/bin /usr/local/man/man1
|
||||
/usr/bin/install -c patch /usr/local/bin/`echo patch | sed 's,x,x,'`
|
||||
/usr/bin/install -c -m 644 ../patch/patch.man /usr/local/man/man1/`echo patch | sed 's,x,x,'`.1
|
48
gen/make.log
Normal file
48
gen/make.log
Normal file
@ -0,0 +1,48 @@
|
||||
cat ../patch/m4/c-bs-a.m4 ../patch/m4/d-ino.m4 ../patch/m4/error.m4 ../patch/m4/jm-glibc-io.m4 ../patch/m4/malloc.m4 ../patch/m4/mbstate_t.m4 ../patch/m4/mkdir.m4 ../patch/m4/mbrtowc.m4 ../patch/m4/prereq.m4 ../patch/m4/realloc.m4 ../patch/m4/setmode.m4 ../patch/m4/utimbuf.m4 >../patch/aclocal.m4
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/addext.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/argmatch.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/backupfile.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/basename.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/dirname.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/error.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/exitfail.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/getopt.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/getopt1.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/inp.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/maketime.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/partime.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/patch.c
|
||||
../patch/patch.c:318:11: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
|
||||
"s" + (last_offset == 1));
|
||||
~~~~^~~~~~~~~~~~~~~~~~~~
|
||||
../patch/patch.c:318:11: note: use array indexing to silence this warning
|
||||
"s" + (last_offset == 1));
|
||||
^
|
||||
& [ ]
|
||||
../patch/patch.c:420:55: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
|
||||
say ("%d out of %d hunk%s %s", failed, hunk, "s" + (hunk == 1),
|
||||
~~~~^~~~~~~~~~~~~
|
||||
../patch/patch.c:420:55: note: use array indexing to silence this warning
|
||||
say ("%d out of %d hunk%s %s", failed, hunk, "s" + (hunk == 1),
|
||||
^
|
||||
& [ ]
|
||||
2 warnings generated.
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/pch.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/quote.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/quotearg.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/quotesys.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/util.c
|
||||
../patch/util.c:198:18: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
|
||||
if (! (O_CREAT && O_TRUNC))
|
||||
^ ~~~~~~~
|
||||
../patch/util.c:198:18: note: use '&' for a bitwise operation
|
||||
if (! (O_CREAT && O_TRUNC))
|
||||
^~
|
||||
&
|
||||
../patch/util.c:198:18: note: remove constant to silence this warning
|
||||
if (! (O_CREAT && O_TRUNC))
|
||||
~^~~~~~~~~~
|
||||
1 warning generated.
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/version.c
|
||||
/Users/ariel/private-bin/clang -c -arch x86_64 -arch i386 -isystem/Users/ariel/git/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/arch/build/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem/Users/ariel/git/darling/framework-include -DDARLING -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I../patch -mdynamic-no-pic -Wformat-security ../patch/xmalloc.c
|
||||
/Users/ariel/private-bin/clang -o patch -mdynamic-no-pic -Wformat-security addext.o argmatch.o backupfile.o basename.o dirname.o error.o exitfail.o getopt.o getopt1.o inp.o maketime.o partime.o patch.o pch.o quote.o quotearg.o quotesys.o util.o version.o xmalloc.o
|
Loading…
Reference in New Issue
Block a user