Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2008 13:38:50 +0100
From:      "Dierk Sacher" <dierk@blaxxtarz.de>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        mark@foster.cc
Subject:   ports/121733: net/iscsi-target: [PATCH] sysconfdir allways defaults to /etc
Message-ID:  <1205584730.48498@blaxxtarz.evangelion.free>
Resent-Message-ID: <200803151240.m2FCe2ks029990@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1205584730.48498>