Re: UPDATE: devel/pkgconf

2019-08-05 Thread Adam Steen
‐‐‐ Original Message ‐‐‐
On Tuesday, August 6, 2019 3:50 AM, Christoph R. Winter  wrote:

> Hello !
>
> Here is a diff to update devel/pkgconf to 1.6.3.
>
> In /cc to the maintainer.
>
> I have not submitted a diff for a very long time so, I am sorry if I forgot 
> something / did something wrong.
>
> Regards,
>
> Christoph

Looks good to me

Cheers
Adam

ps I don't have consistent access to a computer atm, thanks for the update.


>
> Index: devel/pkgconf/Makefile
>
> ===
>
> RCS file: /cvs/ports/devel/pkgconf/Makefile,v
> retrieving revision 1.4
> diff -u -p -u -r1.4 Makefile
> --- devel/pkgconf/Makefile 12 Jul 2019 20:45:16 - 1.4
> +++ devel/pkgconf/Makefile 6 Aug 2019 03:36:39 -
> @@ -2,7 +2,7 @@
>
> COMMENT = package compiler and linker metadata toolkit
>
> -DISTNAME = pkgconf-1.6.0
> +DISTNAME = pkgconf-1.6.3
>
> SHARED_LIBS += pkgconf 0.0 # 3.0
>
> Index: devel/pkgconf/distinfo
>
> 
>
> RCS file: /cvs/ports/devel/pkgconf/distinfo,v
> retrieving revision 1.2
> diff -u -p -u -r1.2 distinfo
> --- devel/pkgconf/distinfo 30 Apr 2019 05:35:01 - 1.2
> +++ devel/pkgconf/distinfo 6 Aug 2019 03:36:39 -
> @@ -1,2 +1,2 @@
> -SHA256 (pkgconf-1.6.0.tar.gz) = mqD8Hf5Aw7j+L7wBmvqoZotSVWfhr5Yw9Cxbj3y38Ks=
> -SIZE (pkgconf-1.6.0.tar.gz) = 423120
> +SHA256 (pkgconf-1.6.3.tar.gz) = Ap4UP8JlxN+F0WgPqmNEyuBnUIx03Hxiu/NPHCvZFYg=
> +SIZE (pkgconf-1.6.3.tar.gz) = 425296




UPDATE: pkgconf-1.6.0

2019-04-26 Thread Adam Steen


Hi All

Update pkgconf to version 1.6.0


Cheers
Adam

Index: devel/pkgconf/Makefile
===
RCS file: /cvs/ports/devel/pkgconf/Makefile,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile
--- devel/pkgconf/Makefile  3 Apr 2019 08:17:15 -   1.2
+++ devel/pkgconf/Makefile  26 Apr 2019 13:07:08 -
@@ -2,8 +2,7 @@

 COMMENT =  package compiler and linker metadata toolkit

-DISTNAME = pkgconf-1.4.2
-REVISION = 0
+DISTNAME = pkgconf-1.6.0

 SHARED_LIBS += pkgconf 0.0 # 3.0

Index: devel/pkgconf/distinfo
===
RCS file: /cvs/ports/devel/pkgconf/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 distinfo
--- devel/pkgconf/distinfo  11 Mar 2018 22:34:40 -  1.1.1.1
+++ devel/pkgconf/distinfo  26 Apr 2019 13:07:08 -
@@ -1,2 +1,2 @@
-SHA256 (pkgconf-1.4.2.tar.gz) = V40I1ONodgpUV0SIUw4yh4JeXqayXqgNphAXLg/j+rY=
-SIZE (pkgconf-1.4.2.tar.gz) = 417118
+SHA256 (pkgconf-1.6.0.tar.gz) = mqD8Hf5Aw7j+L7wBmvqoZotSVWfhr5Yw9Cxbj3y38Ks=
+SIZE (pkgconf-1.6.0.tar.gz) = 423120



Re: [UPDATE]: sysutils/opam -> 2.0.4

2019-04-24 Thread Adam Steen
Ping!

On Sat, Apr 13, 2019 at 23:50,  wrote:

> ok krw@, but I assume for after the ports tree is unlocked?
>
>  Ken
>
>> On Apr 13, 2019, at 6:53 AM, Christopher Zimmermann  
>> wrote:
>>
>> Hello,
>>
>> this is a very simple update. OK?
>>
>> Christopher
>>
>>
>> Index: Makefile
>> ===
>> RCS file: /cvs/ports/sysutils/opam/Makefile,v
>> retrieving revision 1.11
>> diff -u -p -r1.11 Makefile
>> --- Makefile 12 Mar 2019 05:36:06 - 1.11
>> +++ Makefile 13 Apr 2019 13:49:57 -
>> @@ -4,8 +4,7 @@ COMMENT = OCaml source-based package ma
>>
>> CATEGORIES = sysutils devel
>>
>> -V = 2.0.3
>> -REVISION = 0
>> +V = 2.0.4
>> PKGNAME = opam-${V}
>> DISTNAME = opam-full-${V}
>>
>> Index: distinfo
>> ===
>> RCS file: /cvs/ports/sysutils/opam/distinfo,v
>> retrieving revision 1.4
>> diff -u -p -r1.4 distinfo
>> --- distinfo 12 Mar 2019 05:36:06 - 1.4
>> +++ distinfo 13 Apr 2019 13:49:57 -
>> @@ -1,2 +1,2 @@
>> -SHA256 (opam-full-2.0.3.tar.gz) = 
>> BYnaTaGEWEpURdWThQCVNlNPYLwOJ3ciRbL0nl+o8OI=
>> -SIZE (opam-full-2.0.3.tar.gz) = 7870020
>> +SHA256 (opam-full-2.0.4.tar.gz) = 
>> 3r+4KLQA+1EcopDxv8ko25HK107BzL3c/b/v8m9wmeU=
>> +SIZE (opam-full-2.0.4.tar.gz) = 7868547
>>
>>
>> --
>> http://gmerlin.de
>> OpenPGP: http://gmerlin.de/christopher.pub
>> CB07 DA40 B0B6 571D 35E2 0DEF 87E2 92A7 13E5 DEE1


[WIP] ocaml-re (required for OPAM 2 )

2019-02-23 Thread Adam Steen
Hi All

I am working through updating ocaml to 4.07.1 and OPAM 2, and related ports, 
based on chrisz@ patch (via krw@).

I have hit a snag, which shows my ignorance.

I am getting the following error for ocaml-re

===>  Verifying install for ocaml-re-* in devel/ocaml-re
===>  Building for ocaml-re-1.8.0
File "lib/jbuild", line 6, characters 14-17:
6 |   (libraries (seq))
  ^^^
Error: Library "seq" not found.
Hint: try: dune external-lib-deps --missing @install
gmake: *** [Makefile:4: all] Error 1

I take it this means i need to create a new ocaml-seq port?

and if so is there a good example to follow?
and if not, what to do next?

But digging a little deeper, its not that simple, to quote from its OPAM meta 
file

name="seq"
version="[distributed with OCaml 4.07 or above]"
description="dummy backward-compatibility package for iterators"
requires=""

which just confuses me more, maybe i missed something in my ocaml patch.

Cheers
Adam

ps my progress for ocaml 4.07.1 and related ports is here 
https://github.com/adamsteen/openbsd-ports/tree/ocaml
if i could figure out how to create a diff of openbsd/ports, i would attach it.



Re: UPDATE of lang/ocaml to 4.07 and dependent ports

2019-02-14 Thread Adam Steen
‐‐‐ Original Message ‐‐‐
On Friday, February 15, 2019 10:08 AM,  wrote:

> The last diff I have is from before the dune move to devel/. If no one has an 
> updated one I can send that one.
>
>  Ken

The one I was going to base my work on is from chrisz at 2018-07-21 8:40:11. 
https://marc.info/?l=openbsd-ports=153216412010547=2

Adam

>
> > On Feb 14, 2019, at 8:45 PM, Adam Steen a...@adamsteen.com.au wrote:
> > On Friday, February 15, 2019 1:55 AM, Anil Madhavapeddy a...@recoil.org 
> > wrote:
> > 
> >
> > > regards,
> > > Anil
> >
> > Sorry for hijacking the thread, but does anyone have an update to date 
> > patch for "lang/ocaml to 4.07 and dependent ports", before i attempt to get 
> > things going?
> > There was a problem with SPARC when this was looked at last time[1], but it 
> > appears SPARC support has been remove[2]
> > Cheers
> > Adam
> > [1] https://marc.info/?l=openbsd-ports=153397081114752=2
> > [2] Remove SPARC backend https://github.com/ocaml/ocaml/pull/659



Re: UPDATE of lang/ocaml to 4.07 and dependent ports

2019-02-14 Thread Adam Steen
On Friday, February 15, 2019 1:55 AM, Anil Madhavapeddy  wrote:



> regards,
> Anil

Sorry for hijacking the thread, but does anyone have an update to date patch 
for "lang/ocaml to 4.07 and dependent ports", before i attempt to get things 
going?

There was a problem with SPARC when this was looked at last time[1], but it 
appears SPARC support has been remove[2]

Cheers
Adam

[1] https://marc.info/?l=openbsd-ports=153397081114752=2
[2] Remove SPARC backend https://github.com/ocaml/ocaml/pull/659



Re: UPDATE of lang/ocaml to 4.07 and dependent ports

2018-08-10 Thread Adam Steen
Hi All

What is the status of Ocaml 4.07, OPAM 2 and associated ports?

Is there anything I can do to help out!

My usage of ocaml is limited, but with the patch ocaml 4.07, OPAM 2, my project 
works great!

Cheers
Adam

On Sat, Jul 21, 2018 at 16:40, Christopher Zimmermann  
wrote:

> On 2018-06-21 Christopher Zimmermann  wrote:
>> Hi,
>>
>> the last few days I prepared an update of ocaml to 4.06 and opam to
>> 2.00rc2 and along with it updates or REVISION bumps of the dependent
>> ports.
>
> Here comes a reworked diff to upgrade to OCaml 4.07. (attached gzipped)
> Thanks for the testing and fixes you supplied so far.
> I believe I included all of them so far.
> I will need some help in moving sysutils/dune to devel/, because I
> imported it into the wrong category.
> Also building dune on sparc64 was broken. I suspect the stack size
> needs to be increased with ulimit -s 8192. Can someone with access to
> sparc64 please test this as I don't have access to any sparc64 machine?
>
> Christopher
>
> --
> http://gmerlin.de
> OpenPGP: http://gmerlin.de/christopher.pub
> CB07 DA40 B0B6 571D 35E2 0DEF 87E2 92A7 13E5 DEE1


Re: UPDATE of lang/ocaml to 4.06 and dependent ports

2018-06-21 Thread Adam Steen
Hi Chris

I applied your patch like so (just after updating my ports tree)

cd /usr/ports
patch < $HOME/downloads/ocaml.diff
cd /usr/ports/lang/ocaml
make install

but it fails with

===>  Building package for ocaml-graphics-4.06.1
Create /usr/ports/packages/amd64/all/ocaml-graphics-4.06.1.tgz
Creating package ocaml-graphics-4.06.1
checking dependencies|lang/ocaml,-main
Error: Can't obtain dependency ocaml-=4.06.1 from ports tree
checksumming...
Fatal error: can't continue
 at /usr/libdata/perl5/OpenBSD/PkgCreate.pm line 1655.
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1935 
'/usr/ports/packages/amd64/all/ocaml-graphics-4.06.1.tgz')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2403 
'_internal-package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2382 'package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1948 
'/var/db/pkg/ocaml-4.06.1/+CONTENTS')
*** Error 1 in /usr/ports/lang/ocaml 
(/usr/ports/infrastructure/mk/bsd.port.mk:2382 'install')

​​Cheers
Adam

‐‐‐ Original Message ‐‐‐

On June 21, 2018 7:27 PM, Adam Steen  wrote:

> ​​
> 
> On June 21, 2018 5:17 PM, Christopher Zimmermann chr...@openbsd.org wrote:
> 
> > Hi,
> > 
> > the last few days I prepared an update of ocaml to 4.06 and opam to
> > 
> > 2.00rc2 and along with it updates or REVISION bumps of the dependent
> > 
> > ports.
> > 
> > I tested dpb builds on amd64 with and without native code support
> > 
> > enabled. I could not test on other archs.
> > 
> > The ports affected are:
> > 
> > devel/cil
> > 
> > devel/coccinelle
> > 
> > devel/cudf
> > 
> > devel/frama-c
> > 
> > devel/ocaml-cmdliner
> > 
> > devel/ocaml-cppo
> > 
> > devel/ocaml-dose
> > 
> > devel/ocaml-extlib
> > 
> > devel/ocaml-graph
> > 
> > devel/ocaml-jsonm
> > 
> > devel/ocaml-menhir
> > 
> > devel/ocaml-ocamlbuild
> > 
> > devel/ocaml-parmap
> > 
> > devel/ocaml-pcre
> > 
> > devel/ocaml-re
> > 
> > devel/ocaml-uutf
> > 
> > devel/omake
> > 
> > devel/ounit
> > 
> > graphics/pdfsandwich
> > 
> > lang/obc
> > 
> > lang/ocaml
> > 
> > lang/ocaml-camlp4
> > 
> > lang/ocaml-camlp5
> > 
> > math/coq
> > 
> > net/mldonkey
> > 
> > net/unison/2.4x
> > 
> > net/unison/2.5x
> > 
> > sysutils/findlib
> > 
> > sysutils/opam
> > 
> > textproc/bibtex2html
> > 
> > textproc/hevea
> > 
> > x11/lablgtk2
> > 
> > two ports have been added since num has been removed from the OCaml
> > 
> > distribution.
> > 
> > math/ocaml-num
> > 
> > math/Zarith
> > 
> > I'd like to collect some OKs from developers familiar with OCaml ports.
> > 
> > If someone owning a powerpc or sparc machine feels like it he could try
> > 
> > to enable OCaml native-code
> > 
> > in /usr/ports/infrastructure/mk/arch-defines.mk for his arch and test
> > 
> > whether it is working again.
> > 
> > The diff is attached as ocaml.diff.gz.
> > 
> > Christopher
> 
> Thank you, I will be testing this tomorrow




Re: UPDATE of lang/ocaml to 4.06 and dependent ports

2018-06-21 Thread Adam Steen
On June 21, 2018 5:17 PM, Christopher Zimmermann  wrote:

> ​​
> 
> Hi,
> 
> the last few days I prepared an update of ocaml to 4.06 and opam to
> 
> 2.00rc2 and along with it updates or REVISION bumps of the dependent
> 
> ports.
> 
> I tested dpb builds on amd64 with and without native code support
> 
> enabled. I could not test on other archs.
> 
> The ports affected are:
> 
> devel/cil
> 
> devel/coccinelle
> 
> devel/cudf
> 
> devel/frama-c
> 
> devel/ocaml-cmdliner
> 
> devel/ocaml-cppo
> 
> devel/ocaml-dose
> 
> devel/ocaml-extlib
> 
> devel/ocaml-graph
> 
> devel/ocaml-jsonm
> 
> devel/ocaml-menhir
> 
> devel/ocaml-ocamlbuild
> 
> devel/ocaml-parmap
> 
> devel/ocaml-pcre
> 
> devel/ocaml-re
> 
> devel/ocaml-uutf
> 
> devel/omake
> 
> devel/ounit
> 
> graphics/pdfsandwich
> 
> lang/obc
> 
> lang/ocaml
> 
> lang/ocaml-camlp4
> 
> lang/ocaml-camlp5
> 
> math/coq
> 
> net/mldonkey
> 
> net/unison/2.4x
> 
> net/unison/2.5x
> 
> sysutils/findlib
> 
> sysutils/opam
> 
> textproc/bibtex2html
> 
> textproc/hevea
> 
> x11/lablgtk2
> 
> two ports have been added since num has been removed from the OCaml
> 
> distribution.
> 
> math/ocaml-num
> 
> math/Zarith
> 
> I'd like to collect some OKs from developers familiar with OCaml ports.
> 
> If someone owning a powerpc or sparc machine feels like it he could try
> 
> to enable OCaml native-code
> 
> in /usr/ports/infrastructure/mk/arch-defines.mk for his arch and test
> 
> whether it is working again.
> 
> The diff is attached as ocaml.diff.gz.
> 
> Christopher
> 

Thank you, I will be testing this tomorrow



Ocaml and OPAM

2018-04-30 Thread Adam Steen
Good Morning

I have recently started using ocaml and opam on OpenBSD, but some the packages 
i use need Ocaml 4.06, i use opam switch to update.

I was just wondering if anyone is working on updating Ocaml and with the soon 
to be release OPAM 2, updating opam?

I know chrisz@ looks after OPAM and avsm@ looks after ocaml.

If no one is, was just wondering the best process to update ocaml?

Cheers
Adam



Re: [New] pkgconf 1.4.2

2018-03-11 Thread Adam Steen
On March 11, 2018 11:13 AM, Stuart Henderson <s...@spacehopper.org> wrote:

> ​​
> 
> On 2018/03/11 06:40, Adam Steen wrote:
> 
> > The only read for ONLY\_FOR\_ARCHS, was I don't have any other arch to 
> > easily test with.
> 
> Generally leave that out, unless either you know there's a reason why
> 
> something is arch-specific, or it's known to fail and can't be fixed easily.
> 
> > With a library version of 0.0 in SHARED_LIBS; I now get a problem with the 
> > plist.
> > 
> > The rule "@lib lib/libpkgconf.so.${LIBpkgconf_VERSION}" was generated by 
> > make plist, which seems to require a version of 3.0, I am not sure how to 
> > reconcile this?
> 
> You just need to recompileto use the version from SHARED_LIBS. Ports
> 
> infrastructure passes that in to the build, the number is under control
> 
> of the port rather than the upstream software.
> 
> (Sometimes this doesn't work as-is - in that case it needs fixing because
> 
> very occasionally we do need to force library bumps in ports following a
> 
> change in the base OS - but that's unusual for things that use libtool or
> 
> cmake to build their libraries).

Just to confirm after a make clean=all, the make install was successful, with a 
0.0 version'd  lib.

thank you for you help Stuart.

Adam



Re: [New] pkgconf 1.4.2

2018-03-11 Thread Adam Steen
On March 11, 2018 9:21 AM, Stuart Henderson <s...@spacehopper.org> wrote:

> ​​
> 
> On 2018/03/11 03:23, Adam Steen wrote:
> 
> > I updated the TEST\_DEPENDS and PORT\_HOME and everything seems to be 
> > correct.
> > 
> > Can we add this?
> 
> We'd normally align thjngs a bit with tabs in the Makefile, and start
> 
> with a 0.0 library version in SHARED_LIBS. Also is there a reason for the
> 
> ONLY\_FOR\_ARCHS?
> 
> I've attached a proposed new Makefile, with that it's OK sthen@ to import.

alignment with tabs noted.

The only read for ONLY_FOR_ARCHS, was I don't have any other arch to easily 
test with.

With a library version of 0.0 in SHARED_LIBS; I now get a problem with the 
plist. 

The rule "@lib lib/libpkgconf.so.${LIBpkgconf_VERSION}" was generated by make 
plist,  which seems to require a version of 3.0, I am not sure how to reconcile 
this?

Adam



Re: [New] pkgconf 1.4.2

2018-03-10 Thread Adam Steen
On March 10, 2018 10:30 AM, Stuart Henderson <s...@spacehopper.org> wrote:

> ​​
> 
> On 2018/03/09 22:00, Adam Steen wrote:
> 
> > On March 7, 2018 10:49 PM, Klemens Nanni k...@openbsd.org wrote:
> > 
> > > On Tue, Mar 06, 2018 at 09:16:11PM -0500, Adam Steen wrote:
> > > 
> > > > On February 28, 2018 12:27 PM, Adam Steen a...@adamsteen.com.au wrote:
> > > > 
> > > > > On February 28, 2018 12:26 PM, Adam Steen a...@adamsteen.com.au wrote:
> > > > > 
> > > > > > Here is a new port "devel/pkgconf", it is needed are part of my 
> > > > > > long term
> > > > > > 
> > > > > > goal to port MirageOS/Solo5 to OpenBSD/vmm.
> > > 
> > > Glad to hear that, thanks for your efforts!
> > > 
> > > > I would like to get this added, is there anything more I need to do?
> > > 
> > > Please use a single space before and tabs after = in Makefile.
> > > 
> > > VERSION can be zapped and put into DISTNAME directly.
> > > 
> > > The port looks good to me so far except for tests, you're currently
> > > 
> > > missing devel/kyua-cli as TDEP. With it, the following error occurs:
> > > 
> > > kyua --config=none test --kyuafile='./Kyuafile' --build-root='.'
> > > 
> > > kyua: E: Failed to create directory /pkgconf-1.4.2\_writes\_to_HOME: 
> > > Permission denied.
> > 
> > Hi Klemens
> > 
> > I am new to ports, I have completed the fixes you suggested and now am 
> > working on ensuring the tests complete.
> > 
> > I take it the ports infrastructure prevents ports from writing to $HOME, 
> > and this where the error is coming from. To fix the problem do I need to 
> > configure the tests to write to, somewhere ? /tmp? instead? where is the 
> > preferred location? or am I miss understanding something?
> 
> Easiest is probably to set the PORTHOME make variable, something
> 
> like "PORTHOME= ${WRKDIR}" should do.
> 
> Ports infrastructure sets a distinctive HOME by default so that ports
> 
> writing there are more easily identified. This used to be more of a
> 
> problem when the "fake-install" stage was run as root, but nowadays
> 
> the build is more likely to fail due to lack of permissions rather
> 
> than quietly run and create this /xxx\_writes\_to_HOME directory.

Hi Stuart

That worked a treat, i will run through the setup again and make sure things 
work from "wo to go" and then come back with a complete port.

Cheers
Adam



Re: [New] pkgconf 1.4.2

2018-03-09 Thread Adam Steen
On March 7, 2018 10:49 PM, Klemens Nanni <k...@openbsd.org> wrote:

> ​​
> 
> On Tue, Mar 06, 2018 at 09:16:11PM -0500, Adam Steen wrote:
> 
> > On February 28, 2018 12:27 PM, Adam Steen a...@adamsteen.com.au wrote:
> > 
> > > On February 28, 2018 12:26 PM, Adam Steen a...@adamsteen.com.au wrote:
> > > 
> > > > Here is a new port "devel/pkgconf", it is needed are part of my long 
> > > > term
> > > > 
> > > > goal to port MirageOS/Solo5 to OpenBSD/vmm.
> 
> Glad to hear that, thanks for your efforts!
> 
> > I would like to get this added, is there anything more I need to do?
> 
> Please use a single space before and tabs after = in Makefile.
> 
> VERSION can be zapped and put into DISTNAME directly.
> 
> The port looks good to me so far except for tests, you're currently
> 
> missing devel/kyua-cli as TDEP. With it, the following error occurs:
> 
> kyua --config=none test --kyuafile='./Kyuafile' --build-root='.'
> 
> kyua: E: Failed to create directory /pkgconf-1.4.2\_writes\_to_HOME: 
> Permission denied.

Hi Klemens

I am new to ports, I have completed the fixes you suggested and now am working 
on ensuring the tests complete.

I take it the ports infrastructure prevents ports from writing to $HOME, and 
this where the error is coming from. To fix the problem do I need to configure 
the tests to write to, somewhere ? /tmp? instead? where is the preferred 
location? or am I miss understanding something?

Cheers
Adam



Re: [New] pkgconf 1.4.2

2018-03-06 Thread Adam Steen
On February 28, 2018 12:27 PM, Adam Steen <a...@adamsteen.com.au> wrote:
> 
> On February 28, 2018 12:26 PM, Adam Steen a...@adamsteen.com.au wrote:
>  
> > On February 23, 2018 12:37 PM, Stuart Henderson s...@spacehopper.org wrote:
> > 
> > > On 2018/02/23 06:46, Adam Steen wrote:
> > > 
> > > > Thank you that worked perfectly, now for some testing.
> > > > 
> > > > Please note
> > > > 
> > > > pkg-config -> https://www.freedesktop.org/wiki/Software/pkg-config/
> > > > 
> > > > is different from
> > > > 
> > > > pkgconf -> https://github.com/pkgconf/pkgconf
> > > > 
> > > > Cheers
> > > > 
> > > > Adam
> > > 
> > > Yes, I realise, but pkgconf just copied pkg.m4 from pkg-config.
> > 
> > Hi Stuart
> > 
> > Thank you, I didn't realise.
> > 
> > Hi Ports
> > 
> > Here is a new port "devel/pkgconf", it is needed are part of my long term
> > 
> > goal to port MirageOS/Solo5 to OpenBSD/vmm.
> > 
> > After using it pgfconf over the weekend on my laptop, it appears to be 
> > working
> > 
> > fine.
> > 
> > I hope to get this committed to ports.
> > 
> > Cheers
> > 
> > Adam
> 
> and attached.

Good Morning Ports

I would like to get this added, is there anything more I need to do?

Cheers
Adam




pkgconf-1.4.2.tar.gz
Description: application/gzip


Re: [New] pkgconf 1.4.2

2018-02-28 Thread Adam Steen
‐‐‐ Original Message ‐‐‐

On February 28, 2018 12:26 PM, Adam Steen <a...@adamsteen.com.au> wrote:

> ​​
> 
> ‐‐‐ Original Message ‐‐‐
> 
> On February 23, 2018 12:37 PM, Stuart Henderson s...@spacehopper.org wrote:
> 
> > On 2018/02/23 06:46, Adam Steen wrote:
> > 
> > > Thank you that worked perfectly, now for some testing.
> > > 
> > > Please note
> > > 
> > > pkg-config -> https://www.freedesktop.org/wiki/Software/pkg-config/
> > > 
> > > is different from
> > > 
> > > pkgconf -> https://github.com/pkgconf/pkgconf
> > > 
> > > Cheers
> > > 
> > > Adam
> > 
> > Yes, I realise, but pkgconf just copied pkg.m4 from pkg-config.
> 
> Hi Stuart
> 
> Thank you, I didn't realise.
> 
> Hi Ports
> 
> Here is a new port "devel/pkgconf", it is needed are part of my long term
> 
> goal to port MirageOS/Solo5 to OpenBSD/vmm.
> 
> After using it pgfconf over the weekend on my laptop, it appears to be working
> 
> fine.
> 
> I hope to get this committed to ports.
> 
> Cheers
> 
> Adam

and attached.


pkgconf-1.4.2.tar.gz
Description: application/gzip


Re: [New] pkgconf 1.4.2

2018-02-28 Thread Adam Steen
‐‐‐ Original Message ‐‐‐

On February 23, 2018 12:37 PM, Stuart Henderson <s...@spacehopper.org> wrote:

> ​​
> 
> On 2018/02/23 06:46, Adam Steen wrote:
> 
> > Thank you that worked perfectly, now for some testing.
> > 
> > Please note
> > 
> > pkg-config -> https://www.freedesktop.org/wiki/Software/pkg-config/
> > 
> > is different from
> > 
> > pkgconf -> https://github.com/pkgconf/pkgconf
> > 
> > Cheers
> > 
> > Adam
> 
> Yes, I realise, but pkgconf just copied pkg.m4 from pkg-config.

Hi Stuart

Thank you, I didn't realise.

Hi Ports

Here is a new port "devel/pkgconf", it is needed are part of my long term
goal to port MirageOS/Solo5 to OpenBSD/vmm.

After using it pgfconf over the weekend on my laptop, it appears to be working
fine.

I hope to get this committed to ports.

Cheers
Adam



[New] [WIP] pkgconf 1.4.2

2018-02-23 Thread Adam Steen
Hi All

I am attempting to port pkgconf[1] to OpenBSD, everything builds fine.

When I try to make install, I get the following error.  What is the best way
to handle this?

asteen:/usr/ports/devel/pkgconf:2250$ make install
===>  Installing pkgconf-1.4.2 from /usr/ports/packages/amd64/all/
doas (ast...@x220.adamsteen.com.au) password:
Collision in pkgconf-1.4.2: the following files already exist
/usr/local/share/aclocal/pkg.m4 (metaauto-1.0p1 and pkgconf-1.4.2)
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1960
'/var/db/pkg/pkgconf-1.4.2/+CONTENTS': @if /usr/sbin/pkg_info -e pkgconf-1.4...)
*** Error 1 in /usr/ports/devel/pkgconf
(/usr/ports/infrastructure/mk/bsd.port.mk:2419 'install')

Cheers
Adam

[1] https://github.com/pkgconf/pkgconf


pkgconf-1.4.2.tar.gz
Description: application/gzip


error: unknown type name 'pid_t', attempting to port Mirage to OpenBSD

2017-12-07 Thread Adam Steen
Hi

I am not sure if this is the correct place to post this, I am working
towards getting MirageOS [1] working on OpenBSD, The changes to
OpenBSD current have been completed [2], [3], [4] [5], the changes to
solo5 have been completed [6], and the changes in ocaml-freestanding
[7] are done, i think.

But i am getting the following error, and i am at a loss to fix.

In file included from startup.c:24:
   In file included from ../byterun/caml/fail.h:20:
   In file included from
/home/asteen/.opam/system/build/ocaml-freestanding.0.2.3/nolibc/include/setjmp.h:1:
   In file included from
/home/asteen/.opam/system/lib/pkgconfig/../../include/solo5-kernel-ukvm/include/host/signal.h:38:
   In file included from
/home/asteen/.opam/system/lib/pkgconfig/../../include/solo5-kernel-ukvm/include/host/sys/signal.h:107:
 
/home/asteen/.opam/system/lib/pkgconfig/../../include/solo5-kernel-ukvm/include/host/sys/siginfo.h:139:4:
error: unknown type name 'pid_t'
   pid_t   _pid;   /* process ID */

My understanding is probably wrong, but i thought signal.h includes
sys/types.h which defines pid_t. I think " __BSD_VISIBLE ||
__POSIX_VISIBLE || __XPG_VISIBLE" is not defined for some reason.

steps to reproduce, with ocaml installed.

- need to install pkgconf 1.3.7 [5]
  symbolically link from pkgconf to pkg-config on your path, i install
  it to /home/asteen/.local/bin
  (ln -s  /home/asteen/.local/pkgconf/bin/pkgconf
/home/asteen/.local/bin/pkg-config)

depending on your setup you may need
- opam init -n
- eval `opam config env`
- export OPAMNOASPCUD=1

- export LD=ld.lld
- opam install mirage -y ( if not installed )
- opam pin add solo5-kernel-ukvm git://github.com/adamsteen/solo5 -y
- opam pin add ocaml-freestanding
git://github.com/adamsteen/ocaml-freestanding -y

Cheers
Adam

[1] https://mirage.io/
[2] https://marc.info/?l=openbsd-cvs=151192357631681=2
[3] https://marc.info/?l=openbsd-cvs=151192418831778=2
[4] https://marc.info/?l=openbsd-cvs=150877329531981=2
[5] https://marc.info/?l=openbsd-cvs=150729683900949=2
[6] https://github.com/adamsteen/solo5
[7] https://github.com/adamsteen/ocaml-freestanding