pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53293: [patch] devel/nasm: fix build with gcc8



>Number:         53293
>Category:       pkg
>Synopsis:       [patch] devel/nasm: fix build with gcc8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed May 16 10:40:00 +0000 2018
>Originator:     nia
>Release:        current
>Organization:
>Environment:
Linux zenbook 4.16.6-1-ARCH #1 SMP PREEMPT Mon Apr 30 12:30:03 UTC 2018 x86_64 GNU/Linux
>Description:
devel/nasm enforces -Werror=attributes. The configure line that adds it to CFLAGS could be patched out, but this fixes the problem which causes the warning/error.

seg_init appears absent in upstream HEAD, so this bug should be fixed in the next release.
>How-To-Repeat:

>Fix:
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/nasm/distinfo,v
retrieving revision 1.29
diff -u -r1.29 distinfo
--- distinfo	25 Feb 2018 16:41:56 -0000	1.29
+++ distinfo	16 May 2018 10:27:28 -0000
@@ -6,3 +6,4 @@
 Size (nasm-2.13.03.tar.xz) = 806636 bytes
 SHA1 (patch-Makefile.in) = a85054afeb827b61b0db3352825088454e3013d4
 SHA1 (patch-doc_Makefile.in) = 20bb04e4fb00ec14d1e2bb31a3fe2497673132ef
+SHA1 (patch-include_nasmlib.h) = 2ec6f98dcb7a7583e5f8cd1051a97f70eae223f5
Index: patches/patch-include_nasmlib.h
===================================================================
RCS file: patches/patch-include_nasmlib.h
diff -N patches/patch-include_nasmlib.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-include_nasmlib.h	16 May 2018 10:27:28 -0000
@@ -0,0 +1,15 @@
+$NetBSD$
+
+error: 'pure' attribute on function returning 'void'
+
+--- include/nasmlib.h.orig	2018-02-07 21:40:15.000000000 +0000
++++ include/nasmlib.h
+@@ -191,7 +191,7 @@ int64_t readstrnum(char *str, int length
+  * seg_init: Initialise the segment-number allocator.
+  * seg_alloc: allocate a hitherto unused segment number.
+  */
+-void pure_func seg_init(void);
++void seg_init(void);
+ int32_t pure_func seg_alloc(void);
+ 
+ /*


Home | Main Index | Thread Index | Old Index