ports/118568: [patch] converters/base64: fix unnecessary creation of dos line ending files + adopt
Nikola Lecic
nikola.lecic at anthesphoria.net
Wed Dec 12 06:50:02 UTC 2007
>Number: 118568
>Category: ports
>Synopsis: [patch] converters/base64: fix unnecessary creation of dos line ending files + adopt
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Dec 12 06:50:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Nikola Lecic
>Release: FreeBSD 6.3-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD xxx.xxx 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Mon Nov 26 16:30:52 2007 root at xxx.xxx.xxx:/usr/obj/usr/src/sys/kernel amd64
>Description:
base64 unnecessarily creates dos line ending files, without an option
to change this behaviour. The patch that follows
- fixes this
- improves pkg-descr and COMMENT a bit
- changes maintainership (adopting this port)
>How-To-Repeat:
cd /usr/ports/converters/base64 ; make install
/usr/local/bin/base64 anyfile anyfile.encoded
(This produces dos-style file.)
>Fix:
This patch creates new directory and file (files/patch-base64.c).
Please 'mkdir files' before patching if necessary.
--- base64-1.5_1.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/ports/converters/base64/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile 16 Jun 2007 10:12:46 -0000 1.12
+++ Makefile 12 Dec 2007 06:28:19 -0000
@@ -7,12 +7,13 @@
PORTNAME= base64
PORTVERSION= 1.5
+PORTREVISION= 1
CATEGORIES= converters
MASTER_SITES= http://www.fourmilab.ch/webtools/base64/ \
http://dl.droso.net/FreeBSD/distfiles/
-MAINTAINER= ports at FreeBSD.org
-COMMENT= Simple program to convert binary files to base64
+MAINTAINER= nikola.lecic at anthesphoria.net
+COMMENT= Utility to encode and decode base64 files
GNU_CONFIGURE= yes
ALL_TARGET= prog
Index: pkg-descr
===================================================================
RCS file: /usr/cvsroot/ports/converters/base64/pkg-descr,v
retrieving revision 1.2
diff -u -r1.2 pkg-descr
--- pkg-descr 24 Jul 2001 17:48:16 -0000 1.2
+++ pkg-descr 12 Dec 2007 05:58:38 -0000
@@ -1,6 +1,6 @@
-Base64 is a simple program to convert binary files to base64 for use
-with MIME attachments and such.
-
---will
+Base64 is a command line utility which encodes/decodes arbitrary
+binary information in the base64 format used by MIME-encoded
+documents, such as electronic mail messages with embedded files
+(RFC 1341 and successors).
WWW: http://www.fourmilab.ch/webtools/base64/
Index: files/patch-base64.c
===================================================================
RCS file: files/patch-base64.c
diff -N files/patch-base64.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-base64.c 12 Dec 2007 05:46:50 -0000
@@ -0,0 +1,17 @@
+--- base64.c.orig Sun Nov 11 21:52:10 2007
++++ base64.c Sun Nov 11 21:52:19 2007
+@@ -63,13 +63,7 @@
+ static int ateof= FALSE;
+ static byte dtable[256];
+ static int linelength= 0;
+-static char eol[]=
+-#ifdef FORCE_BINARY_IO
+-"\n"
+-#else
+-"\r\n"
+-#endif
+-;
++static char eol[]="\n";
+ static int errcheck= TRUE;
+
+ /*:5*/
--- base64-1.5_1.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list