From nobody Mon Jun 14 21:12:47 2021 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1697E11CFCDC for ; Mon, 14 Jun 2021 21:12:57 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G3kgX18YMz3DHg for ; Mon, 14 Jun 2021 21:12:55 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [82.66.0.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id 43D88101D83 for ; Mon, 14 Jun 2021 23:12:48 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id CD3BA31EA66; Mon, 14 Jun 2021 23:12:47 +0200 (CEST) Date: Mon, 14 Jun 2021 23:12:47 +0200 From: Thierry Thomas To: ports@freebsd.org Subject: Re: New port: math/polymake -- some questions and help needed Message-ID: Mail-Followup-To: ports@freebsd.org References: <87dbb6a1-2b1e-ef43-cf3c-b4becddff1b9@smo.de> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FueMtWkMyUf0jvXA" Content-Disposition: inline In-Reply-To: <87dbb6a1-2b1e-ef43-cf3c-b4becddff1b9@smo.de> X-Operating-System: FreeBSD 13.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc;y=\ipKMNm<1J>lv@PP~7Z<.tKjAnXLs: X-PGP: 0xF1C516B3C8359753 X-Rspamd-Queue-Id: 4G3kgX18YMz3DHg X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of thierry@pompo.net designates 80.67.160.88 as permitted sender) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-5.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[80.67.160.88:from]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[thierry]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[80.67.160.88:from:127.0.2.255]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[ports] X-ThisMailContainsUnwantedMimeParts: N --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 =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--