ports/118200: [patch] misc/birthday fix build on sparc64

Pietro Cerutti gahr at gahr.ch
Thu Nov 22 15:30:01 UTC 2007


>Number:         118200
>Category:       ports
>Synopsis:       [patch] misc/birthday fix build on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 22 15:30:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #12: Tue Nov 20 17:46:40 CET 2007
    root at gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:


makemake.c doesn't explicitly return (0) from main, thus the OS assumes an error...


>How-To-Repeat:


cd /usr/ports/misc/birthday && make


>Fix:


--- _birthday.diff begins here ---
--- /dev/null	2007-11-22 16:11:00.000000000 +0100
+++ files/patch-makemake.c	2007-11-22 16:18:20.000000000 +0100
@@ -0,0 +1,20 @@
+--- makemake.c.orig	2007-11-22 16:13:14.000000000 +0100
++++ makemake.c	2007-11-22 16:13:25.000000000 +0100
+@@ -17,7 +17,7 @@
+   { "UNIX", "ifeq (", ",", ")", "else", "endif" }
+ };
+ 
+-main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+   enum {DOS=0,UNIX=1} os;
+   char buf[256];
+@@ -51,6 +51,8 @@
+     } else
+       printf("%s", buf);
+   }
++
++  return (0);
+ }
+ 
+     
--- _birthday.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list