pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/nasm Version 2.12.02



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b04e385dc95
branches:  trunk
changeset: 358519:5b04e385dc95
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Feb 14 08:05:30 2017 +0000

description:
Version 2.12.02

Fix preprocessor errors, especially %error and %warning, inside %if statements.
Fix relative relocations in 32-bit Mach-O.
More Codeview debug format fixes.
If the MASM PTR keyword is encountered, issue a warning. This is much more likely to indicate a MASM-ism encountered in NASM than it is a valid label. This warning can be suppressed with -w-ptr, the 
[warning] directive (see section 2.1.24) or by the macro definition %idefine ptr %??.
When an error or a warning comes from the expansion of a multi-line macro, display the file and line numbers for the expanded macros. Macros defined with .nolist do not get displayed.
Add macros ilog2fw() and ilog2cw() to the ifunc macro package.

diffstat:

 devel/nasm/Makefile                      |   6 +--
 devel/nasm/distinfo                      |  15 ++++-----
 devel/nasm/patches/patch-Makefile.in     |  34 ++++++++++++++++++++++
 devel/nasm/patches/patch-aa              |  32 ---------------------
 devel/nasm/patches/patch-ab              |  45 ------------------------------
 devel/nasm/patches/patch-ac              |  15 ----------
 devel/nasm/patches/patch-doc_Makefile.in |  48 ++++++++++++++++++++++++++++++++
 7 files changed, 91 insertions(+), 104 deletions(-)

diffs (235 lines):

diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/Makefile
--- a/devel/nasm/Makefile       Tue Feb 14 07:35:37 2017 +0000
+++ b/devel/nasm/Makefile       Tue Feb 14 08:05:30 2017 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.52 2016/07/09 06:38:10 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2017/02/14 08:05:30 adam Exp $
 
-DISTNAME=      nasm-2.12.01
-PKGREVISION=   1
+DISTNAME=      nasm-2.12.02
 CATEGORIES=    devel lang
 MASTER_SITES=  http://www.nasm.us/pub/nasm/releasebuilds/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
@@ -17,7 +16,6 @@
 USE_TOOLS+=            gmake makeinfo perl
 GCC_REQD+=             3.0
 GNU_CONFIGURE=         yes
-#MAKE_JOBS_SAFE=               NO
 
 INFO_FILES=            yes
 BUILD_TARGET=          everything
diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/distinfo
--- a/devel/nasm/distinfo       Tue Feb 14 07:35:37 2017 +0000
+++ b/devel/nasm/distinfo       Tue Feb 14 08:05:30 2017 +0000
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.25 2016/05/07 05:02:59 wen Exp $
+$NetBSD: distinfo,v 1.26 2017/02/14 08:05:30 adam Exp $
 
-SHA1 (nasm-2.12.01.tar.xz) = c290c7ace283c5da2a2ddcf5411fbaed590badf2
-RMD160 (nasm-2.12.01.tar.xz) = bd23e4fe270f672af8e5227fd65cae662761ab23
-SHA512 (nasm-2.12.01.tar.xz) = c016b2b26f2ef00fe8de673dc7b2effa55ddd23d1f15145380c2767a2cd4a5c60c77732faebcd5868b325f780c0bf76a5e0c49eb6189609b21e2493d2af9347c
-Size (nasm-2.12.01.tar.xz) = 780112 bytes
-SHA1 (patch-aa) = 36635ae37b09df164039563228b79cfba805e687
-SHA1 (patch-ab) = 8e3e96c8a04f348fcc94b13efaf00e63b03c5a64
-SHA1 (patch-ac) = 77d88fe7fc0c03bfc0ffc59ba02bca0d433fcf72
+SHA1 (nasm-2.12.02.tar.xz) = a0e6e655d04009178d4b7c15d935a46a691a617c
+RMD160 (nasm-2.12.02.tar.xz) = 7929d01e0a53860c2e6a5c2d3b819d4abd693975
+SHA512 (nasm-2.12.02.tar.xz) = a2b4728386aa451160cee00455d5052dbf983866693c5faa9532c57b9d246c27a4f4f07cf7ca77ee7547c1702f685e9bee8f370dd0aedb5b5fa1898f25389b83
+Size (nasm-2.12.02.tar.xz) = 782444 bytes
+SHA1 (patch-Makefile.in) = 256fb7cb3483cbce67f2f608fa83732f3bcbfad6
+SHA1 (patch-doc_Makefile.in) = 9e5e8bd407c1516a99dd76396dc0ff4197f01dee
diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nasm/patches/patch-Makefile.in      Tue Feb 14 08:05:30 2017 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-Makefile.in,v 1.1 2017/02/14 08:05:30 adam Exp $
+
+Use correct tools.
+
+--- Makefile.in.orig   2016-07-06 20:44:27.000000000 +0000
++++ Makefile.in
+@@ -23,7 +23,7 @@ INTERNAL_CFLAGS = -I$(srcdir) -I.
+ ALL_CFLAGS    = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
+ LDFLAGS               = @LDFLAGS@
+ LIBS          = @LIBS@
+-PERL          = perl -I$(srcdir)/perllib -I$(srcdir)
++PERL          = ${PERL5}
+ 
+ XOBJS         = @XOBJS@
+ 
+@@ -216,12 +216,12 @@ nsis: nsis/nasm.nsi nsis/arch.nsh nsis/v
+ manpages: nasm.1 ndisasm.1
+ 
+ install: nasm$(X) ndisasm$(X)
+-      $(MKDIR) -p $(INSTALLROOT)$(bindir)
+-      $(INSTALL_PROGRAM) nasm$(X) $(INSTALLROOT)$(bindir)/nasm$(X)
+-      $(INSTALL_PROGRAM) ndisasm$(X) $(INSTALLROOT)$(bindir)/ndisasm$(X)
+-      $(MKDIR) -p $(INSTALLROOT)$(mandir)/man1
+-      $(INSTALL_DATA) $(srcdir)/nasm.1 $(INSTALLROOT)$(mandir)/man1/nasm.1
+-      $(INSTALL_DATA) $(srcdir)/ndisasm.1 $(INSTALLROOT)$(mandir)/man1/ndisasm.1
++      $(BSD_INSTALL_PROGRAM_DIR) $(INSTALLROOT)$(bindir)
++      $(BSD_INSTALL_PROGRAM) nasm$(X) $(INSTALLROOT)$(bindir)/nasm$(X)
++      $(BSD_INSTALL_PROGRAM) ndisasm$(X) $(INSTALLROOT)$(bindir)/ndisasm$(X)
++      $(BSD_INSTALL_MAN_DIR) $(INSTALLROOT)$(mandir)/man1
++      $(BSD_INSTALL_MAN) $(srcdir)/nasm.1 $(INSTALLROOT)$(mandir)/man1/nasm.1
++      $(BSD_INSTALL_MAN) $(srcdir)/ndisasm.1 $(INSTALLROOT)$(mandir)/man1/ndisasm.1
+ 
+ clean:
+       $(RM) -f *.$(O) *.s *.i
diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/patches/patch-aa
--- a/devel/nasm/patches/patch-aa       Tue Feb 14 07:35:37 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2014/04/08 12:50:43 adam Exp $
-
---- Makefile.in.orig   2014-02-20 00:04:27.000000000 +0000
-+++ Makefile.in
-@@ -22,7 +22,7 @@ INTERNAL_CFLAGS = -I$(srcdir) -I.
- ALL_CFLAGS    = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
- LDFLAGS               = @LDFLAGS@
- LIBS          = @LIBS@
--PERL          = perl -I$(srcdir)/perllib
-+PERL          = ${PERL5}
- 
- XOBJS         = @XOBJS@
- 
-@@ -201,12 +201,12 @@ perlreq: $(PERLREQ)
- manpages: nasm.1 ndisasm.1
- 
- install: nasm$(X) ndisasm$(X)
--      $(MKDIR) -p $(INSTALLROOT)$(bindir)
--      $(INSTALL_PROGRAM) nasm$(X) $(INSTALLROOT)$(bindir)/nasm$(X)
--      $(INSTALL_PROGRAM) ndisasm$(X) $(INSTALLROOT)$(bindir)/ndisasm$(X)
--      $(MKDIR) -p $(INSTALLROOT)$(mandir)/man1
--      $(INSTALL_DATA) $(srcdir)/nasm.1 $(INSTALLROOT)$(mandir)/man1/nasm.1
--      $(INSTALL_DATA) $(srcdir)/ndisasm.1 $(INSTALLROOT)$(mandir)/man1/ndisasm.1
-+      $(BSD_INSTALL_PROGRAM_DIR) $(INSTALLROOT)$(bindir)
-+      $(BSD_INSTALL_PROGRAM) nasm$(X) $(INSTALLROOT)$(bindir)/nasm$(X)
-+      $(BSD_INSTALL_PROGRAM) ndisasm$(X) $(INSTALLROOT)$(bindir)/ndisasm$(X)
-+      $(BSD_INSTALL_MAN_DIR) $(INSTALLROOT)$(mandir)/man1
-+      $(BSD_INSTALL_MAN) $(srcdir)/nasm.1 $(INSTALLROOT)$(mandir)/man1/nasm.1
-+      $(BSD_INSTALL_MAN) $(srcdir)/ndisasm.1 $(INSTALLROOT)$(mandir)/man1/ndisasm.1
- 
- clean:
-       $(RM) -f *.$(O) *.s *.i
diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/patches/patch-ab
--- a/devel/nasm/patches/patch-ab       Tue Feb 14 07:35:37 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-$NetBSD: patch-ab,v 1.7 2009/07/22 21:21:33 wiz Exp $
-
---- doc/Makefile.in.orig       2009-07-20 05:22:29.000000000 +0000
-+++ doc/Makefile.in
-@@ -8,7 +8,8 @@ prefix         = @prefix@
- exec_prefix   = @exec_prefix@
- bindir                = @bindir@
- mandir                = @mandir@
--docdir                = $(prefix)/doc/nasm
-+docdir                = $(prefix)/share/doc/nasm
-+htmldocdir    = $(docdir)/html
- infodir               = @infodir@
- datarootdir   = @datarootdir@
- 
-@@ -16,7 +17,7 @@ INSTALL              = @INSTALL@
- INSTALL_PROGRAM       = @INSTALL_PROGRAM@
- INSTALL_DATA  = @INSTALL_DATA@
- 
--PERL          = perl
-+PERL          = ${PERL5}
- MAKEINFO      = makeinfo
- TEXI2DVI        = texi2dvi
- TEXI2IPF      = texi2ipf
-@@ -27,7 +28,7 @@ PSTOPDF              = @PSTOPDF@             # BSD/MacOS X util
- PS2PDF          = @PS2PDF@            # Part of GhostScript
- 
- SRCS          = nasmdoc.src inslist.src changes.src
--OUT           = info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
-+OUT           = info html nasmdoc.txt nasmdoc.ps # nasmdoc.pdf
- 
- # exports
- export srcdir
-@@ -96,7 +97,8 @@ spotless: clean
- 
- install: all
-       mkdir -p $(INSTALLROOT)$(infodir)
--      $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
--      mkdir -p $(INSTALLROOT)$(docdir)/html
--      $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
--      $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)
-+      $(BSD_INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
-+      $(BSD_INSTALL_DATA_DIR) $(INSTALLROOT)$(docdir)
-+      $(BSD_INSTALL_DATA_DIR) $(INSTALLROOT)$(htmldocdir)
-+      $(BSD_INSTALL_DATA) html/* $(INSTALLROOT)$(htmldocdir)
-+      $(BSD_INSTALL_DATA) nasmdoc.ps nasmdoc.txt $(INSTALLROOT)$(docdir)
diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/patches/patch-ac
--- a/devel/nasm/patches/patch-ac       Tue Feb 14 07:35:37 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ac,v 1.7 2014/04/08 12:50:43 adam Exp $
-
-Add -Wno-char-subscripts to CFLAGS
-
---- configure.orig     2013-08-13 07:58:03.000000000 +0000
-+++ configure
-@@ -4299,7 +4299,7 @@ rm -f core conftest.err conftest.$ac_obj
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wall" >&5
- $as_echo_n "checking if $CC accepts -Wall... " >&6; }
-  pa_add_cflags__old_cflags="$CFLAGS"
-- CFLAGS="$CFLAGS -Wall"
-+ CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- #include <stdio.h>
diff -r fceb8f0f5104 -r 5b04e385dc95 devel/nasm/patches/patch-doc_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nasm/patches/patch-doc_Makefile.in  Tue Feb 14 08:05:30 2017 +0000
@@ -0,0 +1,48 @@
+$NetBSD: patch-doc_Makefile.in,v 1.1 2017/02/14 08:05:30 adam Exp $
+
+Use correct paths and tools.
+Do not build nasmdoc.pdf.
+
+--- doc/Makefile.in.orig       2016-07-06 20:44:04.000000000 +0000
++++ doc/Makefile.in
+@@ -9,7 +9,8 @@ prefix         = @prefix@
+ exec_prefix   = @exec_prefix@
+ bindir                = @bindir@
+ mandir                = @mandir@
+-docdir                = $(prefix)/doc/nasm
++docdir                = $(prefix)/share/doc/nasm
++htmldocdir    = $(docdir)/html
+ infodir               = @infodir@
+ datarootdir   = @datarootdir@
+ 
+@@ -17,7 +18,7 @@ INSTALL              = @INSTALL@
+ INSTALL_PROGRAM       = @INSTALL_PROGRAM@
+ INSTALL_DATA  = @INSTALL_DATA@
+ 
+-PERL          = perl -I$(srcdir)
++PERL          = ${PERL5}
+ MAKEINFO      = makeinfo
+ TEXI2DVI        = texi2dvi
+ TEXI2IPF      = texi2ipf
+@@ -28,7 +29,7 @@ PSTOPDF              = @PSTOPDF@             # BSD/MacOS X util
+ PS2PDF          = @PS2PDF@            # Part of GhostScript
+ 
+ SRCS          = nasmdoc.src inslist.src changes.src version.src
+-OUT           = info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
++OUT           = info html nasmdoc.txt nasmdoc.ps #nasmdoc.pdf
+ 
+ # exports
+ export srcdir
+@@ -105,7 +106,8 @@ spotless: clean
+ 
+ install: all
+       mkdir -p $(INSTALLROOT)$(infodir)
+-      $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
+-      mkdir -p $(INSTALLROOT)$(docdir)/html
+-      $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
+-      $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)
++      $(BSD_INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
++      $(BSD_INSTALL_DATA_DIR) $(INSTALLROOT)$(docdir)
++      $(BSD_INSTALL_DATA_DIR) $(INSTALLROOT)$(htmldocdir)
++      $(BSD_INSTALL_DATA) html/* $(INSTALLROOT)$(htmldocdir)
++      $(BSD_INSTALL_DATA) nasmdoc.ps nasmdoc.txt $(INSTALLROOT)$(docdir)



Home | Main Index | Thread Index | Old Index