Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2021 17:46:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255670] Mk/Keywords/sample.ucl: Deleting any configuration files automatically is a bug
Message-ID:  <bug-255670-7788-0SrUBbnBFg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255670-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255670-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255670

--- Comment #5 from dave@jetcafe.org ---
(In reply to Adam Weinberger from comment #4)

> they should be recreated immediately when the package is upgraded/reinsta=
lled

I have not observed this behavior consistently. Instead, with recent upgrad=
es
(1.14.6 -> 1.16.3) I've observed that in some cases the -dist files are not
automatically installed (leaving no file in it's place), and in others they
are. Note that this will likely be a separate (but related) issue, as I do =
not
have enough actionable data to file a bug report yet (nor do I know if the
inconsistent behavior is, in fact, a bug or something else).=20

Still, this technically unrelated behavior is, in fact, the stimulus for my
change request. Not installing -dist files is somewhat expected given that =
they
are -dist files, but not expected by the person who wrote the nginx.conf fi=
le
which includes them. I'm unclear why the current behavior of pre-deinstall-=
lua
contains any notion of os.remove() ... I find this to be an unsafe practice.

As far as I can tell, the mechanism in question is with the @sample keyword=
 in
the pkg-plist file. However, maybe this mechanism is insufficient or perhap=
s I
am naive about my understanding of this idea? There are two cases I can see
happening:

1) The port needs those files installed even if they are samples

2) The port does not need those files installed.=20

The sample keyword appears to assume (2), not (1). Neither case implies
deleting what is already there.=20

Do you know of a way to increase verbosity of pkg in a way that sheds more
light on this and related issues?

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255670-7788-0SrUBbnBFg>