FreeBSD Bugzilla – Attachment 138307 Details for
Bug 184235
net/pmf: Fix build on -current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net_pmf.diff
net_pmf.diff (text/x-diff), 5.74 KB, created by
tkato432
on 2014-02-24 17:56:15 UTC
(
hide
)
Description:
net_pmf.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2014-02-24 17:56:15 UTC
Size:
5.74 KB
patch
obsolete
>diff -urN /usr/ports/net/pmf/Makefile net/pmf/Makefile >--- /usr/ports/net/pmf/Makefile 2014-02-22 05:44:20.000000000 +0900 >+++ net/pmf/Makefile 2014-02-25 00:00:00.000000000 +0900 >@@ -12,35 +12,29 @@ > > WRKSRC= ${WRKDIR}/pmfdir/src > >-SYSSRC= ${WRKSRC}/../system_dir >-DOCSRC= ${WRKSRC}/../doc >-XMPSRC= ${WRKSRC}/../examples >-SUB_FILES= pmfrc.default >- >-CFLAGS+= -Wno-return-type >+USES= readline > >-NO_STAGE= yes >+SUB_FILES= pmfrc.default > > OPTIONS_DEFINE= DOCS EXAMPLES > >-.include <bsd.port.options.mk> >+post-build: >+ @${LN} -sf .pmfrc ${WRKSRC}/../examples/dot.pmfrc > > do-install: >- ${INSTALL_PROGRAM} ${WRKSRC}/pmf ${PREFIX}/bin >- @${MKDIR} ${DATADIR} >- ${INSTALL_DATA} ${SYSSRC}/NEWS ${DATADIR} >- ${INSTALL_DATA} ${WRKDIR}/pmfrc.default ${DATADIR} >- @${MKDIR} ${DATADIR}/helpfiles >- ${INSTALL_DATA} ${SYSSRC}/helpfiles/.pmfrc ${DATADIR}/helpfiles >- ${INSTALL_DATA} ${SYSSRC}/helpfiles/* ${DATADIR}/helpfiles >-.if ${PORT_OPTIONS:MEXAMPLES} >- @${MKDIR} ${EXAMPLESDIR} >- ${INSTALL_DATA} ${XMPSRC}/.pmfrc ${EXAMPLESDIR}/dot.pmfrc >- ${INSTALL_DATA} ${XMPSRC}/* ${EXAMPLESDIR} >-.endif >-.if ${PORT_OPTIONS:MDOCS} >- @${MKDIR} ${DOCSDIR} >- ${INSTALL_DATA} ${DOCSRC}/* ${DOCSDIR} >-.endif >+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} pmf ${STAGEDIR}${PREFIX}/bin) >+ @${MKDIR} ${STAGEDIR}${DATADIR} >+ (cd ${WRKSRC}/../system_dir && ${INSTALL_DATA} NEWS \ >+ ${STAGEDIR}${DATADIR}) >+ (cd ${WRKDIR} && ${INSTALL_DATA} pmfrc.default \ >+ ${STAGEDIR}${DATADIR}) >+ @(cd ${WRKSRC}/../system_dir && ${COPYTREE_SHARE} helpfiles \ >+ ${STAGEDIR}${DATADIR}) >+ @${MKDIR} ${STAGEDIR}${DOCSDIR} >+ (cd ${WRKSRC}/../doc && ${INSTALL_DATA} * \ >+ ${STAGEDIR}${DOCSDIR}) >+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >+ (cd ${WRKSRC}/../examples && ${INSTALL_DATA} * \ >+ ${STAGEDIR}${EXAMPLESDIR}) > > .include <bsd.port.mk> >diff -urN /usr/ports/net/pmf/files/patch-Makefile net/pmf/files/patch-Makefile >--- /usr/ports/net/pmf/files/patch-Makefile 2014-01-23 04:08:16.000000000 +0900 >+++ net/pmf/files/patch-Makefile 2014-02-25 00:00:00.000000000 +0900 >@@ -34,26 +34,26 @@ > > ###################################################################### > >-@@ -104,7 +105,8 @@ >- READLINE_LIB = $(READLINE_DIR)/libreadline.a >+@@ -101,7 +102,7 @@ >+ >+ READLINE_DIR = readline >+ C_PACKAGES_DIR = c_packages >+-READLINE_LIB = $(READLINE_DIR)/libreadline.a >++#READLINE_LIB = $(READLINE_DIR)/libreadline.a > C_PACKAGES_LIB = $(C_PACKAGES_DIR)/libc_packs.a > >--LIBS = $(READLINE_LIB) $(C_PACKAGES_LIB) >-+#LIBS = $(READLINE_LIB) $(C_PACKAGES_LIB) >-+LIBS = $(C_PACKAGES_LIB) -lreadline -lcompat >- >- INCLUDEDIRS = -I$(C_PACKAGES_DIR)/safe_malloc \ >- -I$(C_PACKAGES_DIR)/generic_list \ >-@@ -123,7 +125,7 @@ >+ LIBS = $(READLINE_LIB) $(C_PACKAGES_LIB) >+@@ -123,8 +124,7 @@ > > pmf: $(OBJECTS) $(LIBS) > rm -f compile_time.c > - $(CC) -o pmf $(CFLAGS) $(OBJECTS) $(LIBS) -ltermcap -lresolv >-+ $(CC) -o pmf $(CFLAGS) $(OBJECTS) $(LIBS) -ltermcap >- strip pmf >+- strip pmf >++ $(CC) -o pmf $(CFLAGS) $(OBJECTS) $(LIBS) -ltermcap -lreadline -lcompat > rm -f compile_time.o > >-@@ -133,10 +135,10 @@ >+ compile_time.c: >+@@ -133,10 +133,10 @@ > ###################################################################### > > $(READLINE_LIB): >diff -urN /usr/ports/net/pmf/files/patch-help.c net/pmf/files/patch-help.c >--- /usr/ports/net/pmf/files/patch-help.c 1970-01-01 09:00:00.000000000 +0900 >+++ net/pmf/files/patch-help.c 2014-02-25 00:00:00.000000000 +0900 >@@ -0,0 +1,15 @@ >+--- help.c.orig >++++ help.c >+@@ -16,10 +16,11 @@ >+ #include "globals.h" >+ >+ extern char compile_time[], version[]; >++extern void cmd_help(); >+ >+ /*---------------------------------------------------------------------------*/ >+ >+-cmd_help(orig_arg) >++void cmd_help(orig_arg) >+ char *orig_arg; >+ { >+ char *arg, *lc = NULL, *try2 = NULL, *try3 = NULL, *try4 = NULL; >diff -urN /usr/ports/net/pmf/files/patch-ipc.c net/pmf/files/patch-ipc.c >--- /usr/ports/net/pmf/files/patch-ipc.c 1970-01-01 09:00:00.000000000 +0900 >+++ net/pmf/files/patch-ipc.c 2014-02-25 00:00:00.000000000 +0900 >@@ -0,0 +1,21 @@ >+--- ipc.c.orig >++++ ipc.c >+@@ -35,8 +35,7 @@ >+ #endif /* FD_ZERO */ >+ >+ extern char *get_now_date_string(); >+- >+-extern int errno; >++extern void telnet_protocol(); >+ >+ static struct in_addr host_address; >+ static struct sockaddr_in socket_address; >+@@ -360,7 +359,7 @@ >+ /* This function takes the three bytes from a telnet command, >+ * and implements a very limited telnet protocol. >+ */ >+-telnet_protocol(one, two, three) >++void telnet_protocol(one, two, three) >+ unsigned int one, two, three; >+ { >+ unsigned char reply[3]; >diff -urN /usr/ports/net/pmf/files/patch-putget.c net/pmf/files/patch-putget.c >--- /usr/ports/net/pmf/files/patch-putget.c 1970-01-01 09:00:00.000000000 +0900 >+++ net/pmf/files/patch-putget.c 2014-02-25 00:00:00.000000000 +0900 >@@ -0,0 +1,28 @@ >+--- putget.c.orig >++++ putget.c >+@@ -30,6 +30,7 @@ >+ *expand_variables(), >+ *find_robot_action_string(), >+ *return_last(); >++extern void cmd_putfile(), cmd_getfile(); >+ >+ /* This is a temporary buffer of text received from the MUD game. >+ * If the flag "getfiling" is true, the routines that receive the MUD >+@@ -44,7 +45,7 @@ >+ /*---------------------------------------------------------------------------*/ >+ >+ /* Send a file to LPmud using the built-in editor */ >+-cmd_putfile(filename, optional_filename) >++void cmd_putfile(filename, optional_filename) >+ char *filename, *optional_filename; >+ { >+ char *local_filename, *remote_filename, cmd_buffer[MAX_LINE_LENGTH + 1]; >+@@ -103,7 +104,7 @@ >+ /*---------------------------------------------------------------------------*/ >+ >+ /* Get a file from LPmud using the built-in editor */ >+-cmd_getfile(filename, optional_filename) >++void cmd_getfile(filename, optional_filename) >+ char *filename, *optional_filename; >+ { >+ char *local_filename, *remote_filename, cmd_buffer[MAX_LINE_LENGTH + 1];
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 184235
:
138305
|
138306
| 138307