Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2017 20:17:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220978] mail/dcc-dccd mixes data and code, offends hier(7)
Message-ID:  <bug-220978-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 220978
           Summary: mail/dcc-dccd mixes data and code, offends hier(7)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: mi@ALDAN.algebra.com
                CC: pkubaj@anongoth.pl
                CC: pkubaj@anongoth.pl
             Flags: maintainer-feedback?(pkubaj@anongoth.pl)

Created attachment 184675
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184675&action=
=3Dedit
do it

The current version of the port mixes together the scripts/binaries and the
data. Maintaining read-only ${PREFIX} becomes impossible because the port t=
ries
to change ${PREFX}/dcc/map and other data.

Fortunately, vendor's configure allows for the "home directory" to be diffe=
rent
from where the executables are...

The attached patch does the following:

 1. Introduces the DCCDATA knob pointing at /var/dcc (which is the vendor's
default)
 2. Changes the destination of data files throughout the port to point there
 3. Changes port's own ${PREFIX}/dcc/libexec to simply ${PREFIX}/libexec --=
 as
hier(7) suggests
 4. Teaches vendor's Makefiles to use "install -s" instead of strip-ing in =
the
port's post-install
 5. Eliminates the vendor's own MD5 implementation -- the code is already
linked with our -lmd, but was *still* compiling its own md5.c

Potential further improvements:
 . Change the various scripts in the port's files/*.in to share the single
dcc_home-knob instead of each script looking for its own foo_home
 . Find a better location for cgi-bin -- ${PREFIX}/www ?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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