pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/fwbuilder



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Jun 17 19:52:13 UTC 2017

Modified Files:
        pkgsrc/security/fwbuilder: Makefile distinfo
Added Files:
        pkgsrc/security/fwbuilder/patches:
            patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp
            patch-src_libfwbuilder_src_fwbuilder_uint128.h
            patch-src_libgui_startup__tip__url.h

Log Message:
Fix C++11 issues. Fix obvious string handling bug. Bump revision.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/security/fwbuilder/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/security/fwbuilder/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp \
    pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_uint128.h \
    pkgsrc/security/fwbuilder/patches/patch-src_libgui_startup__tip__url.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/fwbuilder/Makefile
diff -u pkgsrc/security/fwbuilder/Makefile:1.45 pkgsrc/security/fwbuilder/Makefile:1.46
--- pkgsrc/security/fwbuilder/Makefile:1.45     Thu Apr 21 10:44:40 2016
+++ pkgsrc/security/fwbuilder/Makefile  Sat Jun 17 19:52:13 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2016/04/21 10:44:40 jperkin Exp $
+# $NetBSD: Makefile,v 1.46 2017/06/17 19:52:13 joerg Exp $
 
 DISTNAME=      fwbuilder-5.1.0.3599
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    security net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=fwbuilder/}
 

Index: pkgsrc/security/fwbuilder/distinfo
diff -u pkgsrc/security/fwbuilder/distinfo:1.11 pkgsrc/security/fwbuilder/distinfo:1.12
--- pkgsrc/security/fwbuilder/distinfo:1.11     Thu Apr 21 10:44:40 2016
+++ pkgsrc/security/fwbuilder/distinfo  Sat Jun 17 19:52:13 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2016/04/21 10:44:40 jperkin Exp $
+$NetBSD: distinfo,v 1.12 2017/06/17 19:52:13 joerg Exp $
 
 SHA1 (fwbuilder-5.1.0.3599.tar.gz) = 4a693eb7d5cd51b5eb16e874540cb27c5b726dc5
 RMD160 (fwbuilder-5.1.0.3599.tar.gz) = 38cb91aaa137bb5f0bc14b8d7e70da5a83467349
@@ -12,3 +12,6 @@ SHA1 (patch-ae) = d0a20d6592c54065d26c10
 SHA1 (patch-configure.in) = b8c65d446b5761f835ea3275476c395f8426d6d7
 SHA1 (patch-src_gui_main.cpp) = 36b869852d9ed25aa1124f79ff926fe060558c08
 SHA1 (patch-src_libfwbuilder_qmake.inc.in) = 43043c98224da7c3050b1a1d9b7a01a7950a5c30
+SHA1 (patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp) = bd56835ae173bad81d239f6030076080c330d6e1
+SHA1 (patch-src_libfwbuilder_src_fwbuilder_uint128.h) = e978e3892ff84442f8384871ac8e784cb7ee079b
+SHA1 (patch-src_libgui_startup__tip__url.h) = d20d06a16e674f7b638109a8614d60e7c3eb0150

Added files:

Index: pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp
diff -u /dev/null pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp:1.1
--- /dev/null   Sat Jun 17 19:52:13 2017
+++ pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp     Sat Jun 17 19:52:13 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp,v 1.1 2017/06/17 19:52:13 joerg Exp $
+
+Adding integer to a char[] string doesn't do the right thing.
+
+--- src/libfwbuilder/src/fwbuilder/AddressRange.cpp.orig       2017-06-10 17:41:07.168361613 +0000
++++ src/libfwbuilder/src/fwbuilder/AddressRange.cpp
+@@ -79,7 +79,7 @@ FWObject& AddressRange::shallowDuplicate
+     const AddressRange *n = dynamic_cast<const AddressRange *>(o);
+     if (n==NULL)
+         throw(FWException(
+-"Attempt to copy incompatible object to AddressRange: objectID="+o->getId()));
++"Attempt to copy incompatible object to AddressRange: objectID="+std::to_string(o->getId())));
+ 
+     start_address = n->getRangeStart();
+     end_address   = n->getRangeEnd();
Index: pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_uint128.h
diff -u /dev/null pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_uint128.h:1.1
--- /dev/null   Sat Jun 17 19:52:13 2017
+++ pkgsrc/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_uint128.h    Sat Jun 17 19:52:13 2017
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_libfwbuilder_src_fwbuilder_uint128.h,v 1.1 2017/06/17 19:52:13 joerg Exp $
+
+Avoid User Defined Literals. Drop effectively redundant casts that
+actually introduce warnings.
+
+--- src/libfwbuilder/src/fwbuilder/uint128.h.orig      2017-06-10 17:34:20.490231501 +0000
++++ src/libfwbuilder/src/fwbuilder/uint128.h
+@@ -466,9 +466,9 @@ public:
+     {
+         char buf[33];
+         if (hi)
+-            sprintf(buf, "%"PRIX64"%08"PRIX64, (unsigned long long)hi,(unsigned long long)lo);
++            sprintf(buf, "%" PRIX64"%08" PRIX64, hi, lo);
+         else
+-            sprintf(buf,"%"PRIX64,(unsigned long long)lo);
++            sprintf(buf,"%" PRIX64, lo);
+         return buf;
+     }
+ 
Index: pkgsrc/security/fwbuilder/patches/patch-src_libgui_startup__tip__url.h
diff -u /dev/null pkgsrc/security/fwbuilder/patches/patch-src_libgui_startup__tip__url.h:1.1
--- /dev/null   Sat Jun 17 19:52:13 2017
+++ pkgsrc/security/fwbuilder/patches/patch-src_libgui_startup__tip__url.h      Sat Jun 17 19:52:13 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libgui_startup__tip__url.h,v 1.1 2017/06/17 19:52:13 joerg Exp $
+
+Avoid User Defined Literals.
+
+--- src/libgui/startup_tip_url.h.orig  2017-06-10 17:39:29.007229821 +0000
++++ src/libgui/startup_tip_url.h
+@@ -29,7 +29,7 @@
+ 
+ #include "../../VERSION.h"
+ 
+-#define STARTUP_TIP_URL "http://update.fwbuilder.org/tips/gettip.cgi?v="VERSION
++#define STARTUP_TIP_URL "http://update.fwbuilder.org/tips/gettip.cgi?v="; VERSION
+ 
+ #endif
+ 



Home | Main Index | Thread Index | Old Index