Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 18:13:25 +0200
From:      Udo Schweigert <udo.schweigert@siemens.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        ports@FreeBSD.ORG, eivind@FreeBSD.ORG
Subject:   Re: Updated dialog-based config patches
Message-ID:  <20021007161324.GA96101@alaska.cert.siemens.de>
In-Reply-To: <20021006202120.GA96047@xor.obsecurity.org>
References:  <20020930062804.GA50001@xor.obsecurity.org> <20021006202120.GA96047@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 06, 2002 at 13:21:21 -0700, Kris Kennaway wrote:
> On Sun, Sep 29, 2002 at 11:28:04PM -0700, Kris Kennaway wrote:
> 
>> There's only one bug I'm aware of, involving reconstructing the list
>> of options with saved default values, and passing the reconstructed
>> list to dialog (this is the 'sed s, ,_,g' thing that shows up in the
>> option descriptions).  Probably there's a way to fix this, but I
>> couldn't see it today.
> 
> I fixed this just now: the updated version has no further problems I
> am aware of.  I'm intending to commit this in the next week or two;
> speak up now if you have any comments.
> 
>   http://people.freebsd.org/~kris/bsd.port.mk-config.patch
> 

This only works if the variable is not used for updating files to be fetched
(and maybe other stuff).

For example I have this in one of my ports:

.if defined(WITH_MUTT_COMPRESSED_FOLDERS) 
PATCHFILES+=	patch-${PATCH_VERSION}.rr.compressed.gz
CONFIGURE_ARGS+=	--enable-compressed
SGML_NEEDED=	yes
.endif

Now I added something like this:

OPTIONS=        MUTT_COMPRESSED_FOLDERS "Compressed folders support" off

Everything then works OK, i.e. dialog is comming up, and the chosen options 
are recorded in the /var/db/ports/... file. But: the option is not in effect.

Only aborting the make with a new "make clean; make" will have the chosen 
options in effect. I think this is because the /var/db/ports file is then read
on startup whereas options chosen in dialog do not make their way to "make".

Do you think there's a possible solution for that? Or do I miss something?

Best regards

--
Udo Schweigert, Siemens AG   | Voice      : +49 89 636 42170
CT IC CERT, Siemens CERT     | Fax        : +49 89 636 41166
D-81730 Muenchen / Germany   | email      : udo.schweigert@siemens.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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