PrintLogo

Base: patch-2.5.4




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
.
.
.
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







This article comes from NoNIC:
http://nonic.org/

The URL for this story is:
http://nonic.org/art44.html



Copyright 2006-2008 NoNIC.org. Read our Terms of Use.