pkgsrc-Bugs archive

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

pkg/55401: pktools/pkg_install 'IS_URL' macro redefined during bootstrap



>Number:         55401
>Category:       pkg
>Synopsis:       pktools/pkg_install 'IS_URL' macro redefined during bootstrap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 19 15:55:00 +0000 2020
>Originator:     Sevan Janiyan
>Release:        pkgrsc-current
>Organization:
>Environment:
FreeBSD 12.1-RELEASE amd64
>Description:
cc -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/tmp/pkg3/pkgdb\" -I/usr/pkgsrc/bootstrap/work/libnbcompat -I/usr/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I. -DSYSCONFDIR=\"/tmp/pkg3/etc\" -DBOOTSTRAP -g -O2 -c pkg_io.c
In file included from pkg_io.c:58:
./lib.h:243:9: warning: 'IS_URL' macro redefined [-Wmacro-redefined]
#define IS_URL(str)     (URLlength(str) > 0)
        ^
pkg_io.c:53:9: note: previous definition is here
#define IS_URL(x) 0
        ^
1 warning generated.
>How-To-Repeat:

>Fix:
Index: pkgtools/pkg_install/files/lib/pkg_io.c
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/lib/pkg_io.c,v
retrieving revision 1.13
diff -u -p -r1.13 pkg_io.c
--- pkgtools/pkg_install/files/lib/pkg_io.c     16 Jul 2017 16:51:48 -0000      1.13
+++ pkgtools/pkg_install/files/lib/pkg_io.c     19 Jun 2020 15:48:11 -0000
@@ -48,14 +48,14 @@ __RCSID("$NetBSD: pkg_io.c,v 1.13 2017/0
 #endif
 #include <stdlib.h>
 
+#include "lib.h"
+
 #ifdef BOOTSTRAP
 #undef IS_URL
 #define IS_URL(x) 0
 #else
 #include <fetch.h>
 #endif
-
-#include "lib.h"
 
 struct pkg_path {
        TAILQ_ENTRY(pkg_path) pl_link;



Home | Main Index | Thread Index | Old Index