FreeBSD Bugzilla – Attachment 169241 Details for
Bug 208704
[PATCH] converters/uudx: Update MASTER_SITES
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
converters_uudx.diff
converters_uudx.diff (text/plain), 2.06 KB, created by
tkato432
on 2016-04-12 15:30:38 UTC
(
hide
)
Description:
converters_uudx.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2016-04-12 15:30:38 UTC
Size:
2.06 KB
patch
obsolete
>diff -urN /usr/ports/converters/uudx/Makefile converters/uudx/Makefile >--- /usr/ports/converters/uudx/Makefile 2016-04-01 23:26:06.924531000 +0900 >+++ converters/uudx/Makefile 2016-04-13 00:00:00.000000000 +0900 >@@ -12,15 +12,13 @@ > > BUILD_DEPENDS= nkf:japanese/nkf > >-USES= lha > NO_WRKSUBDIR= yes >-PLIST_FILES= bin/uudx \ >- man/ja/man1/uudx.1.gz > >-pre-patch: >- @${CP} ${FILESDIR}/Makefile ${WRKSRC} >+USES= dos2unix lha >+DOS2UNIX_FILES= uudx.1 uudx.c >+MAKEFILE= ${FILESDIR}/Makefile > >-post-patch: >- @${REINPLACE_CMD} -e '/sprintf()/d' ${WRKSRC}/uudx.c >+PLIST_FILES= bin/uudx \ >+ man/ja/man1/uudx.1.gz > > .include <bsd.port.mk> >diff -urN /usr/ports/converters/uudx/files/patch-uudx.c converters/uudx/files/patch-uudx.c >--- /usr/ports/converters/uudx/files/patch-uudx.c 2015-08-24 03:58:11.956231000 +0900 >+++ converters/uudx/files/patch-uudx.c 2016-04-13 00:00:00.000000000 +0900 >@@ -1,23 +1,27 @@ >---- uudx.c.orig Sun Jan 29 16:44:42 1995 >-+++ uudx.c Sat Feb 12 19:31:31 2000 >-@@ -89,7 +89,11 @@ >- #else >- #define strchr index >- extern char *strchr(); >+--- uudx.c.orig 1995-01-29 07:44:42 UTC >++++ uudx.c >+@@ -87,10 +87,15 @@ struct utimbuf { >+ #if !BSD >+ #include <string.h> >+ #else > +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) >- extern char *sprintf(); >+ #define strchr index >+ extern char *strchr(); >+ extern char *sprintf(); >+ extern char *strcpy(); > +#else >-+extern int sprintf(); >++#include <string.h> >++#include <unistd.h> > +#endif >- extern char *strcpy(); >- #endif /* BSD */ >- >-@@ -346,7 +350,7 @@ >- norm_dir(work_file_name, p); >- } >- strcat(work_file_name, "udXXXXXX"); >-- if (mktemp(work_file_name) == NULL) { >-+ if (mkstemp(work_file_name) == NULL) { >- cant("make", "work_file_name", 1); >- /* NOTREACHED */ >- } >+ #endif /* BSD */ >+ >+ #define NAMLEN 256 >+@@ -346,7 +351,7 @@ main(int argc, char *argv[]) >+ norm_dir(work_file_name, p); >+ } >+ strcat(work_file_name, "udXXXXXX"); >+- if (mktemp(work_file_name) == NULL) { >++ if (mkstemp(work_file_name) == NULL) { >+ cant("make", "work_file_name", 1); >+ /* NOTREACHED */ >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208704
:
169199
| 169241