Re: [NEW PORT] math/mpdecimal

2021-02-27 Thread Stefan Krah
On Thu, Feb 25, 2021 at 10:36:10PM +, Stuart Henderson wrote:
> https://www.openbsd.org/faq/ports/specialtopics.html#SharedLibs

Thanks! I'm not sure though how to replace SHARED_LIBS automatically in
the GNU machinery, so I resorted to patches (which will have to be
updated if SHARED_LIBS changes).


> missing WANTLIB, see "make port-lib-depends-check"

``make lib-depends-check'' is not happy about the internal dependency
of libmpdec++ on libmpdec:

openbsd-amd64# make lib-depends-check
 
mpdecimal-2.5.1(math/mpdecimal):
Missing lib: mpdec.0 (/usr/local/lib/libmpdec++.so.0.0) (NOT REACHABLE)
Extra:  c.96
Scanning: ok
*** Error 1 in /usr/ports/math/mpdecimal 
(/usr/ports/infrastructure/mk/bsd.port.mk:2430 'lib-depends-check': @case 
X${_DEPENDS_CACHE} in  X)...)



I also tried splitting the package into two libraries by literally
copying devel/gmp/Makefile and substituting the necessary parts.

But I never got that particular check to work.


> portcheck(1) may spot other things

portcheck -N is silent, I've attached a new version, which does not
split the library packages.


Stefan Krah




mpdecimal-openbsd-port-2.tar.gz
Description: application/gzip


Re: [NEW PORT] math/mpdecimal

2021-02-25 Thread Stefan Krah
On Thu, Feb 25, 2021 at 09:33:39PM +, Stuart Henderson wrote:
> > it would be nice to add math/mpdecimal.  If the port is accepted, Python
> 
> Please send as an attachment

Ok, here it is.


mpdecimal-openbsd-port.tar.gz
Description: application/gzip


[NEW PORT] math/mpdecimal

2021-02-25 Thread Stefan Krah


Hello,

it would be nice to add math/mpdecimal.  If the port is accepted, Python
could be build --with-system-libmpdec.  Here's the archive:

   https://www.bytereef.org/contrib/mpdecimal-openbsd-port.tar.gz


Stefan Krah