ports/121733: net/iscsi-target: [PATCH] sysconfdir allways defaults to /etc
Dierk Sacher
dierk at blaxxtarz.de
Sat Mar 15 12:40:03 UTC 2008
>Number: 121733
>Category: ports
>Synopsis: net/iscsi-target: [PATCH] sysconfdir allways defaults to /etc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Mar 15 12:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Dierk Sacher
>Release: FreeBSD 7.0-RELEASE i386
>Organization:
DSITC
>Environment:
System: FreeBSD 7.0-RELEASE #0: Wed Mar 5 19:18:41 CET 2008
root at blaxxtarz.evangelion.free:/usr/obj/usr/src/sys/BLAXXTARZ70
>Description:
Sysconfdir allways defaults to /etc. Thus, the auths file will not be found.
>How-To-Repeat:
Install Port, configure a target, use authentication -> syslog:
Mar 15 12:32:04 maxx kernel: Mar 15 12:32:04 maxx iscsi-target: pid 20499:parameters.c:404: ***ERROR*** can't open `/etc/iscsi/auths'
>Fix:
Make the build respect the SYSCONFDIR setting. Attached patch will do that.
Patch goes into files and is against iscsi-target-20080207:
--- patch-Makefile.in begins here ---
--- Makefile.in.orig Thu Feb 7 10:25:13 2008
+++ Makefile.in Sat Mar 15 12:56:05 2008
@@ -20,7 +20,7 @@
PTHREAD_LDFLAGS= -pthread
PTHREAD_LIBS= -lpthread
GCC_CFLAGS= -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -Wno-trigraphs
-COMMON_CFLAGS += -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+COMMON_CFLAGS += -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DSYSCONFDIR=\"${SYSCONFDIR}\"
COMMON_CFLAGS += -DHAVE_CONFIG_H
COMMON_CFLAGS += -I${INCDIR}
CFLAGS= @CFLAGS@ ${GCC_CFLAGS} ${COMMON_CFLAGS} -I${INCLUDE} ${PTHREAD_FLAGS}
--- patch-Makefile.in ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list