pkgsrc-Bugs archive

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

pkg/44373: pkgsrc/pkgtools/rpm2pkg fails to build

>Number:         44373
>Category:       pkg
>Synopsis:       pkgsrc/pkgtools/rpm2pkg fails to build
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 12 05:00:01 +0000 2011
>Originator:     Peter Avalos
>Release:        DragonFly 2.9
DragonFly rama 2.9-DEVELOPMENT DragonFly v2.9.1.438.gdf01a-DEVELOPMENT #12: Tue 
Jan 11 15:42:04 HST 2011     root@rama:/usr/obj/usr/src/sys/RAMA  i386
The new rpm2pkg fails to compile due to -Werror and using <strings.h> instead 
of <string.h> in package-list.c.  strlen() and friends are in <string.h>, not 
<strings.h>...I'm assuming this was just a typo.
Compile rpm2pkg.
Include <string.h> instead of <strings.h> in package-list.c:

diff --git a/pkgtools/rpm2pkg/files/package-list.c 
index 8f3f9d9..5d6a086 100644
--- a/pkgtools/rpm2pkg/files/package-list.c
+++ b/pkgtools/rpm2pkg/files/package-list.c
@@ -32,7 +32,7 @@
 #include "package-list.h"
 #include <stdlib.h>
-#include <strings.h>
+#include <string.h>
 PListEntry *
 PListInsert(PListEntry **Tree,char *Name)

Home | Main Index | Thread Index | Old Index