diff options
-rw-r--r-- | app-text/dos2unix/ChangeLog | 12 | ||||
-rw-r--r-- | app-text/dos2unix/dos2unix-3.1-r2.ebuild | 45 | ||||
-rw-r--r-- | app-text/dos2unix/dos2unix-5.0.ebuild | 51 | ||||
-rw-r--r-- | app-text/dos2unix/dos2unix-5.1.1.ebuild | 6 | ||||
-rw-r--r-- | app-text/dos2unix/dos2unix-5.1.ebuild | 6 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1-includes.patch | 11 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1-manpage-update.patch | 180 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1-preserve-file-modes.patch | 30 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1-safeconv.patch | 88 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1-segfault.patch | 93 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1-workaround-rename-EXDEV.patch | 56 | ||||
-rw-r--r-- | app-text/dos2unix/files/dos2unix-3.1.patch | 20 |
12 files changed, 16 insertions, 582 deletions
diff --git a/app-text/dos2unix/ChangeLog b/app-text/dos2unix/ChangeLog index 9d661122efa2..c7195844af16 100644 --- a/app-text/dos2unix/ChangeLog +++ b/app-text/dos2unix/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-text/dos2unix -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/ChangeLog,v 1.53 2010/09/03 05:29:35 jlec Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/ChangeLog,v 1.54 2011/01/05 09:14:05 jlec Exp $ + + 05 Jan 2011; Justin Lecher <jlec@gentoo.org> -dos2unix-3.1-r2.ebuild, + -files/dos2unix-3.1-includes.patch, -files/dos2unix-3.1-manpage-update.patch, + -files/dos2unix-3.1-preserve-file-modes.patch, + -files/dos2unix-3.1-safeconv.patch, -files/dos2unix-3.1-segfault.patch, + -files/dos2unix-3.1-workaround-rename-EXDEV.patch, -files/dos2unix-3.1.patch, + -dos2unix-5.0.ebuild, dos2unix-5.1.ebuild, dos2unix-5.1.1.ebuild: + Some Clean up, removed old *dos2unix-5.1.1 (03 Sep 2010) diff --git a/app-text/dos2unix/dos2unix-3.1-r2.ebuild b/app-text/dos2unix/dos2unix-3.1-r2.ebuild deleted file mode 100644 index e1c1d0ee6f33..000000000000 --- a/app-text/dos2unix/dos2unix-3.1-r2.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-3.1-r2.ebuild,v 1.14 2010/01/15 04:02:22 abcd Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Dos2unix converts DOS or MAC text files to UNIX format" -HOMEPAGE="none" -SRC_URI="mirror://gentoo/${P}.tar.bz2" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" -IUSE="" - -DEPEND="" -RDEPEND="!app-text/hd2u" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}.patch - epatch "${FILESDIR}"/${P}-segfault.patch - epatch "${FILESDIR}"/${P}-includes.patch - epatch "${FILESDIR}"/${P}-preserve-file-modes.patch - epatch "${FILESDIR}"/${P}-manpage-update.patch - epatch "${FILESDIR}"/${P}-safeconv.patch - epatch "${FILESDIR}"/${P}-workaround-rename-EXDEV.patch - sed -i -e 's:\(^#endif \).*:\1:' \ - -e 's:\(^#else \).*:\1:' dos2unix.c dos2unix.h - rm -f dos2unix mac2unix mac2unix.1 *~ *.orig core -} - -src_compile() { - tc-export CC - emake || die -} - -src_install() { - dobin dos2unix || die - dosym dos2unix /usr/bin/mac2unix - - doman dos2unix.1 - dosym dos2unix.1 /usr/share/man/man1/mac2unix.1 -} diff --git a/app-text/dos2unix/dos2unix-5.0.ebuild b/app-text/dos2unix/dos2unix-5.0.ebuild deleted file mode 100644 index 7edcedcb66b0..000000000000 --- a/app-text/dos2unix/dos2unix-5.0.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.0.ebuild,v 1.4 2010/03/22 07:36:28 jlec Exp $ - -EAPI="3" - -inherit toolchain-funcs - -DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa" -HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html http://sourceforge.net/projects/dos2unix/" -SRC_URI=" - http://www.xs4all.nl/~waterlan/${PN}/${P}.tar.gz - mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" -IUSE="nls" - -DEPEND="virtual/libintl" -RDEPEND=" - ${DEPEND} - !app-text/hd2u - !app-text/unix2dos" - -src_prepare() { - sed \ - -e '/^LDFLAGS/s|=|+=|' \ - -e '/^CC/s|=|?=|' \ - -e '/CFLAGS_OS \+=/d' \ - -e '/LDFLAGS_EXTRA \+=/d' \ - -i "${S}"/Makefile - tc-export CC -} - -lintl() { - # same logic as from virtual/libintl - use !elibc_glibc && use !elibc_uclibc && echo "-lintl" -} - -src_compile() { - emake prefix="${EPREFIX}"/usr \ - $(use nls && echo "LDFLAGS_EXTRA=$(lintl)" || echo "ENABLE_NLS=") \ - || die -} - -src_install() { - emake DESTDIR="${D}" prefix="${EPREFIX}"/usr \ - $(use nls || echo "ENABLE_NLS=") install \ - || die "emake install failed" -} diff --git a/app-text/dos2unix/dos2unix-5.1.1.ebuild b/app-text/dos2unix/dos2unix-5.1.1.ebuild index ed5e8e052114..7433788eb2d0 100644 --- a/app-text/dos2unix/dos2unix-5.1.1.ebuild +++ b/app-text/dos2unix/dos2unix-5.1.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.1.1.ebuild,v 1.1 2010/09/03 05:29:35 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.1.1.ebuild,v 1.2 2011/01/05 09:14:05 jlec Exp $ EAPI="3" @@ -29,7 +29,7 @@ src_prepare() { -e '/^CC/s|=|?=|' \ -e '/CFLAGS_OS \+=/d' \ -e '/LDFLAGS_EXTRA \+=/d' \ - -i "${S}"/Makefile + -i "${S}"/Makefile || die tc-export CC } diff --git a/app-text/dos2unix/dos2unix-5.1.ebuild b/app-text/dos2unix/dos2unix-5.1.ebuild index 616b3fc2ced5..df8481b76301 100644 --- a/app-text/dos2unix/dos2unix-5.1.ebuild +++ b/app-text/dos2unix/dos2unix-5.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.1.ebuild,v 1.7 2010/07/06 08:47:22 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.1.ebuild,v 1.8 2011/01/05 09:14:05 jlec Exp $ EAPI="3" @@ -29,7 +29,7 @@ src_prepare() { -e '/^CC/s|=|?=|' \ -e '/CFLAGS_OS \+=/d' \ -e '/LDFLAGS_EXTRA \+=/d' \ - -i "${S}"/Makefile + -i "${S}"/Makefile || die tc-export CC } diff --git a/app-text/dos2unix/files/dos2unix-3.1-includes.patch b/app-text/dos2unix/files/dos2unix-3.1-includes.patch deleted file mode 100644 index a71c205973e7..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1-includes.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- dos2unix-3.1/dos2unix.c -+++ dos2unix-3.1/dos2unix.c -@@ -71,6 +71,8 @@ - #endif __MSDOS__ - #include <stdio.h> - #include <stdlib.h> -+#include <unistd.h> -+#include <fcntl.h> - #include <string.h> - #include <utime.h> - #include <sys/stat.h> diff --git a/app-text/dos2unix/files/dos2unix-3.1-manpage-update.patch b/app-text/dos2unix/files/dos2unix-3.1-manpage-update.patch deleted file mode 100644 index 7e4b70591a38..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1-manpage-update.patch +++ /dev/null @@ -1,180 +0,0 @@ -Ripped from Fedora - -The dos2unix man page examples are confusing. -For instance, one piece of text mentions "c.txt", but that file -isn't used in the following example. - -Patch by Bill Anderson -https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57507 - ---- dos2unix-3.1/dos2unix.1 -+++ dos2unix-3.1/dos2unix.1 -@@ -4,127 +4,104 @@ - .SH NAME - - dos2unix \- DOS/MAC to UNIX text file format converter -+.SH SYNOPSIS - --.SH SYNOPSYS -- --dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...] --.PP --Options: --.PP --[-hkqV] [--help] [--keepdate] [--quiet] [--version] -+\fBdos2unix\fR [options] [\-c convmode] [\-o file ...] [\-n infile outfile ...] - -+\fBdos2unix\fR [\-hkqV] [\-\-help] [\-\-keepdate] [\-\-quiet] [\-\-version] - .SH DESCRIPTION - - .PP --This manual page documents dos2unix, the program that converts plain text -+This manual page documents \fBdos2unix\fR, the program that converts plain text - files in DOS/MAC format to UNIX format. -- - .SH OPTIONS - --The following options are available: - .TP --.B \-h --help -+.B \-h \-\-help - Print online help. -- - .TP --.B \-k --keepdate -+.B \-k \-\-keepdate - Keep the date stamp of output file same as input file. -- - .TP --.B \-q --quiet -+.B \-q \-\-quiet - Quiet mode. Suppress all warning and messages. -- - .TP --.B \-V --version -+.B \-V \-\-version - Prints version information. -- - .TP --.B \-c --convmode convmode --Sets conversion mode. Simulates dos2unix under SunOS. -- -+.B \-c \-\-convmode convmode -+Sets conversion mode. convmode is one of: -+.B ASCII, 7bit, ISO, Mac -+with ASCII being the default. Simulates dos2unix under SunOS. - .TP --.B \-o --oldfile file ... -+.B \-o \-\-oldfile file ... - Old file mode. Convert the file and write output to it. The program - default to run in this mode. Wildcard names may be used. -- - .TP --.B \-n --newfile infile outfile ... -+.B \-n \-\-newfile infile outfile ... - New file mode. Convert the infile and write output to outfile. File names - must be given in pairs and wildcard names should NOT be used or you WILL - lost your files. -- - .SH EXAMPLES - - .LP - Get input from stdin and write output to stdout. - .IP - .B dos2unix -- - .LP - Convert and replace a.txt. Convert and replace b.txt. - .IP - .B dos2unix a.txt b.txt - .IP --.B dos2unix -o a.txt b.txt -- -+.B dos2unix \-o a.txt b.txt - .LP - Convert and replace a.txt in ASCII conversion mode. -+.IP -+.B dos2unix a.txt \-c iso b.txt -+.LP - Convert and replace b.txt in ISO conversion mode. -+.IP -+.B dos2unix \-c ascii a.txt \-c iso b.txt -+.LP - Convert c.txt from Mac to Unix ascii format. - .IP --.B dos2unix a.txt -c iso b.txt --.IP --.B dos2unix -c ascii a.txt -c iso b.txt --.IP --.B dos2unix -c mac a.txt b.txt -- -+.B dos2unix \-c mac c.txt b.txt - .LP - Convert and replace a.txt while keeping original date stamp. - .IP --.B dos2unix -k a.txt -+.B dos2unix \-k a.txt - .IP --.B dos2unix -k -o a.txt -- -+.B dos2unix \-k \-o a.txt - .LP - Convert a.txt and write to e.txt. - .IP --.B dos2unix -n a.txt e.txt -- -+.B dos2unix \-n a.txt e.txt - .LP - Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt. - .IP --.B dos2unix -k -n a.txt e.txt -- -+.B dos2unix \-k \-n a.txt e.txt - .LP - Convert and replace a.txt. Convert b.txt and write to e.txt. - .IP --.B dos2unix a.txt -n b.txt e.txt -+.B dos2unix a.txt \-n b.txt e.txt - .IP --.B dos2unix -o a.txt -n b.txt e.txt -- -+.B dos2unix \-o a.txt \-n b.txt e.txt - .LP - Convert c.txt and write to e.txt. Convert and replace a.txt. - Convert and replace b.txt. Convert d.txt and write to f.txt. - .IP --.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt -- --.SH DIAGNOSTICS -- -+.B dos2unix \-n c.txt e.txt \-o a.txt b.txt \-n d.txt f.txt - .SH BUGS - - The program does not work properly under MSDOS in stdio processing mode. - If you know why is that so, please tell me. -- - .SH AUTHORS - --Benjamin Lin - -+Benjamin Lin - .B <blin@socs.uts.edu.au> -- -- -+.br - Bernd Johannes Wuebben (mac2unix mode) - .B <wuebben@kde.org> -- -- - .SH MISCELLANY - - Tested environment: -@@ -136,7 +114,6 @@ - MS-DOS 6.20 with Borland C++ 4.02 - .PP - Suggestions and bug reports are welcome. -- - .SH SEE ALSO --unix2dos(1) mac2unix(1) -- -+.BR unix2dos (1), -+.BR mac2unix (1) diff --git a/app-text/dos2unix/files/dos2unix-3.1-preserve-file-modes.patch b/app-text/dos2unix/files/dos2unix-3.1-preserve-file-modes.patch deleted file mode 100644 index a357b0b138df..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1-preserve-file-modes.patch +++ /dev/null @@ -1,30 +0,0 @@ -Ripped from Fedora - ---- dos2unix-3.1/dos2unix.c -+++ dos2unix-3.1/dos2unix.c -@@ -345,11 +345,14 @@ int ConvertDosToUnixOldFile(char* ipInFN - char TempPath[16]; - struct stat StatBuf; - struct utimbuf UTimeBuf; -+ mode_t mode = S_IRUSR | S_IWUSR; - int fd; - - /* retrieve ipInFN file date stamp */ -- if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) -+ if (stat(ipInFN, &StatBuf)) - RetVal = -1; -+ else -+ mode = StatBuf.st_mode; - - strcpy (TempPath, "./u2dtmpXXXXXX"); - if((fd=mkstemp (TempPath))<0) { -@@ -357,6 +360,9 @@ int ConvertDosToUnixOldFile(char* ipInFN - RetVal = -1; - } - -+ if (!RetVal && fchmod (fd, mode) && fchmod (fd, S_IRUSR | S_IWUSR)) -+ RetVal = -1; -+ - #ifdef DEBUG - fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); - #endif DEBUG diff --git a/app-text/dos2unix/files/dos2unix-3.1-safeconv.patch b/app-text/dos2unix/files/dos2unix-3.1-safeconv.patch deleted file mode 100644 index 11998be1fddf..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1-safeconv.patch +++ /dev/null @@ -1,88 +0,0 @@ -* Fix http://bugzilla.redhat.com/57508 (make dos2unix not modify Mac - files unless in mac2unix mode) -* Make mac2unix mode not create duplicate Unix line delimiters when - run on a DOS file. (mschwendt@users.sf.net) - -diff -Nur dos2unix-3.1-orig/dos2unix.c dos2unix-3.1/dos2unix.c ---- dos2unix-3.1-orig/dos2unix.c 1998-11-19 13:19:25.000000000 +0100 -+++ dos2unix-3.1/dos2unix.c 2004-09-26 20:57:41.606587616 +0200 -@@ -153,6 +153,24 @@ - } - - -+void StripDelimiter(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, int CurChar) -+{ -+ int TempNextChar; -+ /* Don't modify Mac files when in dos2unix mode. */ -+ if ( (TempNextChar = getc(ipInF)) != EOF) { -+ ungetc( TempNextChar, ipInF ); /* put back peek char */ -+ if ( TempNextChar != '\x0a' ) { -+ putc( CurChar, ipOutF ); /* Mac line, put back CR */ -+ } -+ } -+ else if ( CurChar == '\x0d' ) { /* EOF: last Mac line delimiter (CR)? */ -+ putc( CurChar, ipOutF ); -+ } -+ if (ipFlag->NewLine) { /* add additional LF? */ -+ putc('\n', ipOutF); -+ } -+} -+ - /* converts stream ipInF to UNIX format text and write to stream ipOutF - * RetVal: 0 if success - * -1 otherwise -@@ -161,6 +179,7 @@ - { - int RetVal = 0; - int TempChar; -+ int TempNextChar; - - if ( macmode ) - ipFlag->ConvMode = 3; -@@ -177,9 +196,7 @@ - break; - } - } else { -- if (ipFlag->NewLine) { -- putc('\n', ipOutF); -- } -+ StripDelimiter( ipInF, ipOutF, ipFlag, TempChar ); - } - } - break; -@@ -193,9 +210,7 @@ - break; - } - } else { -- if (ipFlag->NewLine) { -- putc('\n', ipOutF); -- } -+ StripDelimiter( ipInF, ipOutF, ipFlag, TempChar ); - } - } - break; -@@ -209,9 +224,7 @@ - break; - } - } else { -- if (ipFlag->NewLine) { -- putc('\n', ipOutF); -- } -+ StripDelimiter( ipInF, ipOutF, ipFlag, TempChar ); - } - } - break; -@@ -227,6 +240,13 @@ - } - } - else{ -+ if ( (TempNextChar = getc(ipInF)) != EOF) { -+ ungetc( TempNextChar, ipInF ); /* put back peek char */ -+ /* Don't touch this delimiter if it's a CR,LF pair. */ -+ if ( TempNextChar == '\x0a' ) { -+ continue; -+ } -+ } - if (putc('\x0a', ipOutF) == EOF) - { - RetVal = -1; diff --git a/app-text/dos2unix/files/dos2unix-3.1-segfault.patch b/app-text/dos2unix/files/dos2unix-3.1-segfault.patch deleted file mode 100644 index 5ead232d51b6..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1-segfault.patch +++ /dev/null @@ -1,93 +0,0 @@ ---- dos2unix-3.1/dos2unix.c -+++ dos2unix-3.1/dos2unix.c -@@ -147,9 +147,9 @@ - * RetVal: NULL if failure - * file stream otherwise - */ --FILE* OpenOutFile(char *ipFN) -+FILE* OpenOutFile(int fd) - { -- return (fopen(ipFN, W_CNTRL)); -+ return (fdopen(fd, W_CNTRL)); - } - - -@@ -260,14 +260,17 @@ - char TempPath[16]; - struct stat StatBuf; - struct utimbuf UTimeBuf; -+ int fd; - - /* retrieve ipInFN file date stamp */ - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) - RetVal = -1; - -- strcpy (TempPath, "./d2utmp"); -- strcat (TempPath, "XXXXXX"); -- mktemp (TempPath); -+ strcpy (TempPath, "./d2utmpXXXXXX"); -+ if((fd=mkstemp (TempPath))<0) { -+ perror("Failed to open output temp file"); -+ RetVal = -1; -+ } - - #ifdef DEBUG - fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); -@@ -278,7 +281,7 @@ - RetVal = -1; - - /* can open out file? */ -- if ((!RetVal) && (InF) && ((TempF=OpenOutFile(TempPath)) == NULL)) -+ if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) - { - fclose (InF); - RetVal = -1; -@@ -295,6 +298,8 @@ - /* can close out file? */ - if ((TempF) && (fclose(TempF) == EOF)) - RetVal = -1; -+ if(fd>=0) -+ close(fd); - - if ((!RetVal) && (ipFlag->KeepDate)) - { -@@ -340,14 +345,17 @@ - char TempPath[16]; - struct stat StatBuf; - struct utimbuf UTimeBuf; -+ int fd; - - /* retrieve ipInFN file date stamp */ - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) - RetVal = -1; - -- strcpy (TempPath, "./u2dtmp"); -- strcat (TempPath, "XXXXXX"); -- mktemp (TempPath); -+ strcpy (TempPath, "./u2dtmpXXXXXX"); -+ if((fd=mkstemp (TempPath))<0) { -+ perror("Failed to open output temp file"); -+ RetVal = -1; -+ } - - #ifdef DEBUG - fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath); -@@ -358,7 +366,7 @@ - RetVal = -1; - - /* can open out file? */ -- if ((!RetVal) && (InF) && ((TempF=OpenOutFile(TempPath)) == NULL)) -+ if ((!RetVal) && (InF) && ((TempF=OpenOutFile(fd)) == NULL)) - { - fclose (InF); - RetVal = -1; -@@ -376,6 +384,9 @@ - if ((TempF) && (fclose(TempF) == EOF)) - RetVal = -1; - -+ if(fd>=0) -+ close(fd); -+ - if ((!RetVal) && (ipFlag->KeepDate)) - { - UTimeBuf.actime = StatBuf.st_atime; diff --git a/app-text/dos2unix/files/dos2unix-3.1-workaround-rename-EXDEV.patch b/app-text/dos2unix/files/dos2unix-3.1-workaround-rename-EXDEV.patch deleted file mode 100644 index 71a3a697e5dd..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1-workaround-rename-EXDEV.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- ./dos2unix.c.orig 2007-04-17 11:16:32.000000000 +0400 -+++ ./dos2unix.c 2007-04-17 12:41:01.000000000 +0400 -@@ -279,7 +279,7 @@ - int RetVal = 0; - FILE *InF = NULL; - FILE *TempF = NULL; -- char TempPath[16]; -+ char *TempPath = (char *) malloc(sizeof(char) * strlen(ipInFN)+14); - struct stat StatBuf; - struct utimbuf UTimeBuf; - int fd; -@@ -288,7 +288,8 @@ - if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf)) - RetVal = -1; - -- strcpy (TempPath, "./d2utmpXXXXXX"); -+ strcpy (TempPath, ipInFN); -+ strcat (TempPath, "_u2dtmpXXXXXX"); - if((fd=mkstemp (TempPath))<0) { - perror("Failed to open output temp file"); - RetVal = -1; -@@ -349,6 +350,7 @@ - RetVal = -1; - } - } -+ free (TempPath); - return RetVal; - } - -@@ -364,7 +366,7 @@ - int RetVal = 0; - FILE *InF = NULL; - FILE *TempF = NULL; -- char TempPath[16]; -+ char *TempPath = (char *) malloc(sizeof(char) * strlen(ipInFN)+14); - struct stat StatBuf; - struct utimbuf UTimeBuf; - mode_t mode = S_IRUSR | S_IWUSR; -@@ -376,7 +378,8 @@ - else - mode = StatBuf.st_mode; - -- strcpy (TempPath, "./u2dtmpXXXXXX"); -+ strcpy (TempPath, ipInFN); -+ strcat (TempPath, "_u2dtmpXXXXXX"); - if((fd=mkstemp (TempPath))<0) { - perror("Failed to open output temp file"); - RetVal = -1; -@@ -442,6 +445,7 @@ - } - RetVal = -1; - } -+ free (TempPath); - return RetVal; - } - diff --git a/app-text/dos2unix/files/dos2unix-3.1.patch b/app-text/dos2unix/files/dos2unix-3.1.patch deleted file mode 100644 index 676ecc5e8d65..000000000000 --- a/app-text/dos2unix/files/dos2unix-3.1.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- dos2unix-3.1/Makefile -+++ dos2unix-3.1/Makefile -@@ -1,7 +1,7 @@ - - - dos2unix: -- gcc -O dos2unix.c -o dos2unix -+ $(CC) -Wall $(CFLAGS) $(LDFLAGS) dos2unix.c -o dos2unix - - - link: -@@ -12,7 +14,7 @@ - ln -s dos2unix.1 mac2unix.1 - - clean: -- rm dos2unix -+ $(RM) dos2unix mac2unix mac2unix.1 *~ *.orig core - - install: - install -m 755 dos2unix /usr/local/bin |