Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2022 11:51:54 +0200
From:      Felix Palmen <zirias@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Cc:        "Michael A. Oshin" <micadeyeye@gmail.com>
Subject:   Re: New Port: Security/liblurch & Security/Pidgin-lurch
Message-ID:  <20220827095154.knlgcnt6tatzuvsf@nexus.home.palmen-it.de>
In-Reply-To: <CAN2Rk0cwhzZrhrrnNWdWjdRUa4guBarxF7tN=kn7yKUSqCW0Aw@mail.gmail.com>
References:  <CAN2Rk0eJU-q%2BBSsS_yvXbkGLYGPn8tnR5kd4sujM=ZNt7Q7sVw@mail.gmail.com> <1062387933.146.1661491191507@localhost> <CAN2Rk0dZcGmqGDS8C6RCv4=dORBUVBeQNU-UNgv9yWSd17cudg@mail.gmail.com> <1126283524.90.1661501545184@localhost> <CAN2Rk0dPVFWBfK0wE-kUQt9eB_5eUOuRpV=vZ1O-q6oQsfjuCg@mail.gmail.com> <CAN2Rk0enAt-0hVj1p%2BafGw5RjAnp4zWcGPGcCEJB5aoyisOP6Q@mail.gmail.com> <ac46f61c-4812-3417-6a5f-1b5068b39790@klop.ws> <CAN2Rk0cwhzZrhrrnNWdWjdRUa4guBarxF7tN=kn7yKUSqCW0Aw@mail.gmail.com>

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

--4c66idmixh2aco2n
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Michael A. Oshin <micadeyeye@gmail.com> [20220827 17:26]:
> I shall work on them. I don't know what else to use if not do-install. Mo=
st
> Makefiles had post-install, which emitted pkg-static dir. access error wh=
en
> used here.

do-install is for completely overriding the installation (to the
STAGEDIR). This should only ever be used if upstream either doesn't
provide any means for installation at all, or it's broken beyond any
repair.

post-install is for fixing up things after upstream's installation was
done, so this is used quite often. It's not meant to contain your own
installation logic.

For this port, upstream's installation works just fine, except it
doesn't strip the plugin, therefore a post-install is needed.

See also:
<https://lists.freebsd.org/archives/freebsd-ports/2022-August/002545.html>;
<https://lists.freebsd.org/archives/freebsd-ports/2022-August/002546.html>;

> The lib, before being ported, was also installing into the
> ~/.purple/plugins dir for pidgin to  use. I think that is where the otr l=
ib
> goes into too.

A port or package can *never* install anything in a home directory. A
package contains a list of files, with fixed paths. It can't know which
users would even exist on the target machine it will be installed on, to
begin with...

libpurple searches two locations for plugins. A system-wide location (on
FreeBSD /usr/local/lib/purple-2), and a per-user location
(~/.purple/plugins). If you build some plugin locally, it makes sense to
install it just for your user.

Cheers, Felix

--=20
 Felix Palmen <zirias@FreeBSD.org>     {private}   felix@palmen-it.de
 -- ports committer (mentee) --            {web}  http://palmen-it.de
 {pgp public key}  http://palmen-it.de/pub.txt
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231

--4c66idmixh2aco2n
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCYwnpOV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz
NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny
Mb0WAP0Zuq3+70wYamY0KHSlj1snfhtuo9J7KUDDghn3pMwLLAD/YoTuvArAHSoy
ElxZu1l8IRI5zPOtpHZ6PZ4qD82jgQI=
=mVNn
-----END PGP SIGNATURE-----

--4c66idmixh2aco2n--



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