From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 26 17:04:54 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 177C216A4CE for ; Mon, 26 Jan 2004 17:04:54 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7EFD43D3F for ; Mon, 26 Jan 2004 17:02:30 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0R10aFR089964 for ; Mon, 26 Jan 2004 17:00:36 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0R10aTG089963; Mon, 26 Jan 2004 17:00:36 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 26 Jan 2004 17:00:36 -0800 (PST) Resent-Message-Id: <200401270100.i0R10aTG089963@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jochen Gensch Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54E6216A4CE for ; Mon, 26 Jan 2004 16:52:52 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C419243DA2 for ; Mon, 26 Jan 2004 16:50:58 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i0R0oPdL022427 for ; Mon, 26 Jan 2004 16:50:25 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i0R0oPVD022426; Mon, 26 Jan 2004 16:50:25 -0800 (PST) (envelope-from nobody) Message-Id: <200401270050.i0R0oPVD022426@www.freebsd.org> Date: Mon, 26 Jan 2004 16:50:25 -0800 (PST) From: Jochen Gensch To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: ports/61974: Inn 2.4.1 Port doesn't handle the "--with-etc-dir" option properly -> Inn unusable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 01:04:54 -0000 >Number: 61974 >Category: ports >Synopsis: Inn 2.4.1 Port doesn't handle the "--with-etc-dir" option properly -> Inn unusable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 26 17:00:35 PST 2004 >Closed-Date: >Last-Modified: >Originator: Jochen Gensch >Release: 4.8 and 5.2 >Organization: >Environment: FreeBSD jail-1 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386 FreeBSD incmc.da-butze.uga 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Mon Jan 19 21:34:53 CET 2004 incmc@incmc.da-butze.uga:/usr/obj/usr/src/sys/BRENNKERNEL i386 >Description: In Inn you can use the option "--with-etc-dir=PATH" to set a different etc dir for the config files. I used "--with-etc-dir=/usr/local/etc/inn" by adding this to the Makefile of /usr/ports/news/inn. However there occur a few errors if you use this option. The first thing is, it stops the installation process started by a "portinstall inn" as follows (a make install clean nearly produces the same output): If you install Inn 2.4.1 with the option "--with-etc-dir=PATH" by adding this line to the Makefile it stops at install time with the follwing last output (tested on 3 Systems) Checking for configuration files find: /usr/local/news/etc/: No such file or directory Creating empty history database... makedbz: open of /usr/local/etc/inn/inn.conf failed: No such file or directory mv: rename history.n.dir to history.dir: No such file or directory *** Error code 1 Stop in /usr/ports/news/inn. *** Error code 1 Stop in /usr/ports/news/inn. ! news/inn (install error) So first it looks for the default etc dir /usr/local/news/etc, what isn't correct at all. Then it look at the right place again: "makedbz: open of /usr/local/etc/inn/inn.conf failed: No such file or directory" but the conf files were installed incorrectly -> they all have the ending ".dist", which causes makedbz not the find the file "inn.conf" because its name is "inn.conf.dist". Even if you rename the ".dist" files manually and install inn again... then it will finish installation, but it still doesn't start because it still seems to expect the conf files under the default etc dir (/usr/local/news/etc) >How-To-Repeat: Use a system, which hasn't installed inn, yet or remove any previously installes inn files, add "--with-etc-dir=/usr/local/etc" to the proper place in the inn Makefile and run a "portinstall inn" or "make install clean". The last way doesn't provide that much information when it stops installing. >Fix: >Release-Note: >Audit-Trail: >Unformatted: