Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2021 23:12:47 +0200
From:      Thierry Thomas <thierry@freebsd.org>
To:        ports@freebsd.org
Subject:   Re: New port: math/polymake -- some questions and help needed
Message-ID:  <YMfGT1e6yy%2BX9Phr@graf.pompo.net>
In-Reply-To: <87dbb6a1-2b1e-ef43-cf3c-b4becddff1b9@smo.de>
References:  <87dbb6a1-2b1e-ef43-cf3c-b4becddff1b9@smo.de>

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

--FueMtWkMyUf0jvXA
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Le lun. 14 juin 21 =C3=A0 21:41:02 +0200, Philipp Ost <pj@smo.de>
 =C3=A9crivait=C2=A0:

> Hi ports@

Hello,

> I've been working on a port of polymake (polymake.org). Most of the work=
=20
> is done, but there are some questions. Please advise:

Remark: this is a resurrection

$ grep polymake /usr/ports/MOVED
math/polymake||2014-06-22|Has expired: Does not build with any supported ve=
rsion of Perl

> - How to deal with machine/installation dependent path names?
> polymake installs a helper library into=20
> ${PREFIX}/libexec/polymake/perlx/%%PERL_VERSION%%/amd64-freebsd-thread-mu=
lti/auto/Polymake/Ext/Ext.so
>=20
> amd64-freebsd-thread-multi is the output of
>=20
> 	perl -E 'use Config; print "$Config::Config{archname}\n";'
>=20
> How do I correctly handle this entry in pkg-plist?

You can define a variable to be passed in plist:
PLIST_SUB=3D     ARCH=3D${ARCH}

and then %%ARCH%% will be available.

> - From reading the Porters Handbook, I get the impression that setting=20
> DESTDIR is frowned upon. However, if I don't set DESTDIR=3D${STAGEDIR} in=
=20
> the do-install target, "make stage" dumps everything to ${PREFIX}. Any=20
> comments on this?

I guess that you=E2=80=99ll have to patch the Makefile=E2=80=A6

> - polymake installs a shared library libpolymake.so. I set USE_LDCONFIG,=
=20
> but "portlint -A" complains that no libraries are installed. Why?
>=20
> If I do install the port in its current form, everything looks fine:
> $ pkg info polymake
> ...
> Shared Libs provided:
>          libpolymake-apps-rt.so.4.4
>          libpolymake.so.4.4
> ...
> $
>=20
> Should I worry about this?

What is the output of `ldconfig -r | grep polymake'?

On FreeBSD, if your library is libpolymake.so.4.4, you should also
install a symlink for libpolymake.so and libpolymake.so.4.
Without that, it won=E2=80=99t be registered in the libraries hints file.

> You can find the current state of affairs at philippost.de/polymake.tar.xz
>=20
> I appreciate any hints and comments you may have. It's my first port and=
=20
> I hope I didn't miss anything important. ;-)
>=20
> Thanks in advance!

Thanks for this revival!
--=20
Th. Thomas.

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

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

iQJ8BAEBCgBmBQJgx8ZPXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG
MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTpCcP/RIneQRKdJ/YhHCguyDN8ekx
3CqAOTB1MfleSVMqnTOV8rOo8/xJCVTokBKkp1a9bP1stqLi8PfOb2gzYNY8xKBT
N298gLnFx0x9tYk7Oc7fQzDHSvLlymjB2Hd/pdsevhsvKhMOIuApsiNSZh9L4cLO
8QUp9TMAZizv/uCn9p2QUXYOchW+WQK2Sco1kzW3NTdByo2gUcW3Jgz0nNNOX/50
XN+3Kp61b4h9/ZzsFzGG0mQ3ULhoOBGp5vL2hv0B2HvsW6qj37bHD6jtL9kJ8d11
4Pd46risLOLwJjhbiyCt58hQmoHwooNMpsfWoXM6IRecB/juo5EO49BvqSf1plp4
KKed189mi5e2U32xkMwG01u3g5ps4w1xXI2zyAUOHkSqMq3EsnBPOU9rkhrXnED2
6LkcnnJsc6P38IgNlBjzEAoGJB2OBakEDxgrpS7bJNz+hADL33dL1lNnisPPzOL3
41l/VBbD4PfUddu5LdORxNx/VUbns4B7y43RXuaqotfETN8tBY05am8d7YU2dS37
ic8g2mQGkK+8SDYDoOTVj1n5OBIKFEobAH5qvapDPB/LQiIFyNUqrrs5FdwjamyK
/AqG51bwrhB9aszMWfwfR6LbagMpdQ2VCzWWkdFr/McyqQtXyOA+q6PfQgQcaj5y
iCI0TJjHPWpF8r82iIyx
=KxTv
-----END PGP SIGNATURE-----

--FueMtWkMyUf0jvXA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YMfGT1e6yy%2BX9Phr>