Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: patch-2.5.4   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
rm -rf patch-2.5.4 &&
tar -xjf patch-2.5.4.tar.bz2 &&
cd patch-2.5.4 &&
CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr &&
make &&
make install

The output should look something like this:

creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /bin/install -c
checking whether make sets ${MAKE}... yes
checking for ed... /bin/ed
checking build system type... i686-pc-linux-gnu
checking for getconf... getconf
checking for CFLAGS value to request large file support...
no
checking for LDFLAGS value to request large file support...
no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for working const... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for utime.h... yes
checking for varargs.h... no
checking for inttypes.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for size_t... yes
checking whether time.h and sys/time.h may both be
included... yes
checking for utime.h... (cached) yes
checking for struct utimbuf... yes
checking for getopt_long... yes
checking for _doprintf... no
checking for isascii... yes
checking for fseeko... yes
.
.
.
checking for utime.h... (cached) yes
checking for struct utimbuf... yes
checking for getopt_long... yes
checking for _doprintf... no
checking for isascii... yes
checking for fseeko... yes
checking for memcmp... yes
checking for mktemp... yes
checking for pathconf... yes
checking for raise... yes
checking for setmode... no
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for strerror... yes
checking for memchr... yes
checking for mkdir... yes
checking for rename... yes
checking for rmdir... yes
checking for working malloc... yes
checking for working realloc... yes
checking whether closedir returns void... no
checking for vprintf... yes
checking for long file names... yes
checking for d_ino member in directory struct... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 addext.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 argmatch.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 backupfile.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 basename.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 error.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 inp.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 maketime.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 partime.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 patch.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 pch.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 quotearg.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 quotesys.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 util.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 version.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H
-Ded_PROGRAM=\""/bin/ed\"" -I. -I. -g -O2 xmalloc.c
gcc -o patch -g -O2  addext.o argmatch.o backupfile.o
basename.o error.o inp.o maketime.o partime.o patch.o pch.o
quotearg.o quotesys.o util.o version.o xmalloc.o  
patch.o(.text+0xb35): In function `make_temp':
/sources/patch-2.5.4/patch.c:1325: warning: the use of
`mktemp' is dangerous, better use `mkstemp'
/bin/sh ./mkinstalldirs /usr/bin /usr/man/man1
/bin/install -c patch /usr/bin/`echo patch | sed 's,x,x,'`
/bin/install -c -m 644 ./patch.man /usr/man/man1/`echo
patch | sed 's,x,x,'`.1


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS