pkgsrc-Bugs archive

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

pkg/43068: [PATCH] graphics/netpbm fails to compile due to usage of non-standard signals



>Number:         43068
>Category:       pkg
>Synopsis:       [PATCH] graphics/netpbm fails to compile due to usage of 
>non-standard signals
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 28 10:45:00 +0000 2010
>Originator:     Rumko
>Release:        /
>Organization:
>Environment:
DragonFly rumko.rumko.net 2.5.1-DEVELOPMENT DragonFly 
v2.5.1.1017.g245ec-DEVELOPMENT #97: Sun Mar 21 17:40:02 CET 2010     
root%rumko.rumko.net@localhost:/usr/obj/usr/src/sys/MYPRECIOUS  i386
>Description:
netpbm uses non-standard signals (namely SIGPWR) that are not implemented in 
all OS'. SIGPWR is not implemented in at least DragonFly BSD, but I doubt it's 
the only one. The patch adds a simple check if the signal is defined before 
using it.
>How-To-Repeat:

>Fix:
diff --git a/graphics/netpbm/distinfo b/graphics/netpbm/distinfo
index 13ae450..b49065a 100644
--- a/graphics/netpbm/distinfo
+++ b/graphics/netpbm/distinfo
@@ -18,5 +18,5 @@ SHA1 (patch-db) = 23a05e54043ee84a0b7ec507a383d5cd8adfcca5
 SHA1 (patch-dc) = 8ed1365dccf5abb0e158a4f7a65749ff5b244ef3
 SHA1 (patch-dd) = 2acbcffeef96fd8b0419e60fa44a1eaf9f4b291b
 SHA1 (patch-eb) = 5c3dfac08038fce372fabc7c526081bb8051e908
-SHA1 (patch-ec) = 042bf6f3f1bc9d66e0c958d9eebd9f2e3898af2e
+SHA1 (patch-ec) = 265926e509b33c7705994b39b284e0ae43b2caa7
 SHA1 (patch-ppmdraw) = d901a690f8f21a1af940129d1edef509b369ea1a
diff --git a/graphics/netpbm/patches/patch-ec b/graphics/netpbm/patches/patch-ec
index 310f73e..6255c08 100644
--- a/graphics/netpbm/patches/patch-ec
+++ b/graphics/netpbm/patches/patch-ec
@@ -2,7 +2,16 @@ $NetBSD: patch-ec,v 1.1 2010/02/19 18:25:44 drochner Exp $

 --- lib/libsystem.c.orig       2009-12-29 20:46:34.000000000 +0000
 +++ lib/libsystem.c
-@@ -223,8 +223,11 @@ signalName(unsigned int const signalClas
+@@ -216,15 +216,20 @@
+             return "SIGWINCH";
+         case SIGIO:
+             return "SIGIO";
++#if defined(SIGPWR)
+         case SIGPWR:
+             return "SIGPWR";
++#endif
+         case SIGSYS:
+             return "SIGSYS";
          default:
              return "???";
          }



Home | Main Index | Thread Index | Old Index