Re: NEW: security/sn0int

2019-05-13 Thread kpcyrd
On Fri, May 03, 2019 at 12:27:28PM +0200, Gonzalo L. Rodriguez wrote:
> I have tried a bit the port, I am not a rust expert but so far looks good and
> portcheck is happy with it, once installed:
> 
> [+] Connecting to database
> [+] Loaded 27 modules
> [sn0int][default] > use ctlogs
> [sn0int][default][kpcyrd/ctlogs] > run
> [-] Failed "foobar.org": Failed to find current executable
> [+] Finished kpcyrd/ctlogs (1 errors)
> [sn0int][default][kpcyrd/ctlogs] >
> 
> Do I am missing something here?

Thanks for pointing this out, I've looked into this bug and released a
bugfix release, the updated port is attached to this email.

The in-depth analysis of this bug is that I've been using
std::env::current_exe() which has a special catch on openbsd if the
binary location has been resolved with $PATH instead of a relative or
absolute path. In that specific case it fails to spawn a child process
that is used as a sandbox to run the script.

This has been resolved in 0.11.2.


sn0int-0.11.2.tar.gz
Description: application/gzip


NEW: devel/cxxtest

2019-05-13 Thread mtw

Attached is cxxtest port

>From the projects homepage
http://cxxtest.com/

"CxxTest is a unit testing framework for C++ that is similar in spirit
to JUnit, CppUnit, and xUnit. CxxTest is easy to use because it does
not require precompiling a CxxTest testing library, it employs no
advanced features of C++ (e.g. RTTI) and it supports a very flexible
form of test discovery."

Thanks,
Mitch


cxxtest.tgz
Description: Binary data


Re: portgen(1) - better detection of EXTRACT_SUFX

2019-05-13 Thread Andrew Hewus Fresh
On Mon, May 13, 2019 at 11:49:02PM +0200, Charlene Wendling wrote:
> On Mon, 13 May 2019 13:46:46 -0700
> Andrew Hewus Fresh  wrote:
> 
> > This should make portgen(1) recognize the EXTRACT_CASES in
> > bsd.port.mk(5) and set EXTRACT_SUFX correctly.
> > 
> > Anyway, Comments, OKs?
> 
> I tested against various Perl and Python ports that have EXTRACT_SUFX:
> it works well (but many of them moved to tar.gz with updated versions).
> 
> OK cwen@ but 

So, cwen@ pointed out that if we switched from something else to .tar.gz
for the EXTRACT_SUFX, as in x11/py-kiwi or net/p5-Net-Ping-External,
instead of removing it we would copy the now wrong one to the new port,
which we don't want.

How about like this?


Index: infrastructure/lib/OpenBSD/PortGen/Port.pm
===
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port.pm,v
retrieving revision 1.15
diff -u -p -r1.15 Port.pm
--- infrastructure/lib/OpenBSD/PortGen/Port.pm  13 May 2019 01:30:05 -  
1.15
+++ infrastructure/lib/OpenBSD/PortGen/Port.pm  13 May 2019 22:31:11 -
@@ -132,6 +132,38 @@ sub set_pkgname {
$self->{PKGNAME} = $pkgname;
 }
 
+sub pick_distfile
+{
+   my ( $self, @files ) = @_;
+
+   my ($distname, $ext);
+   foreach my $filename (@files) {
+   # from EXTRACT_CASES
+   ($distname, $ext) = $filename =~ /^(.*)(\.(?:
+   tar\.xz  | tar\.lzma
+ | tar\.lz
+ | zip
+ | tar\.bz2 | tbz2| tbz
+ | shar\.gz | shar\.Z | sh\.Z | sh\.gz
+ | shar | shar\.sh
+ | tar
+ | tar\.gz  | tgz
+   ))$/xms;
+
+   next unless $ext;
+
+   # These are our preferred suffixes
+   if ( $ext eq '.tar.gz' or $ext eq '.tgz' or $ext eq '.tar' ) {
+   last;
+   }
+   }
+
+   $self->add_notice("Failed to pick a distname from @files") unless 
$distname;
+
+   $self->set_other( EXTRACT_SUFX => $ext ) if $ext;
+   return $self->set_distname($distname);
+}
+
 sub set_distname
 {
my ( $self, $distname ) = @_;
@@ -283,6 +315,7 @@ sub write_makefile
if (@template) {
%copy_values = map { $_->{key} => 1 }
grep { $_->{name} ne 'REVISION' }
+   grep { $_->{name} ne 'EXTRACT_SUFX' }
grep { ref } @template;
} else {
my $tag = 'OpenBSD';
@@ -304,6 +337,10 @@ sub write_makefile
sort { $equals{$b} <=> $equals{$a} } keys %equals;
};
$default_equal ||= ' =';
+
+   # If we got an EXTRACT_SUFX, we don't need to print the default
+   delete $configs{EXTRACT_SUFX}
+   if $configs{EXTRACT_SUFX} and $configs{EXTRACT_SUFX} eq '.tar.gz';
 
my @makefile;
foreach my $line (@template) {
Index: infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm
===
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm,v
retrieving revision 1.7
diff -u -p -r1.7 CPAN.pm
--- infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm 11 May 2019 19:36:27 
-  1.7
+++ infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm 13 May 2019 22:31:11 
-
@@ -182,7 +182,7 @@ sub fill_in_makefile
my ( $self, $di, $vi ) = @_;
 
$self->set_comment( $di->{abstract} );
-   $self->set_distname( $di->{name} );
+   $self->pick_distfile( $di->{archive} );
$self->set_license(
$di->{metadata}->{license}[0] eq 'unknown'
? ''
@@ -192,12 +192,6 @@ sub fill_in_makefile
 
$self->set_other( 'CPAN_AUTHOR', $di->{author} )
if $self->needs_author($di);
-
-   my ($sufx) = $di->{archive} =~ /(\.[\.A-Za-z]+)$/;
-
-   if ( defined $sufx and $sufx ne '.tar.gz' ) {
-   $self->set_other( 'EXTRACT_SUFX', $sufx );
-   }
 }
 
 sub postextract
Index: infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm
===
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm,v
retrieving revision 1.12
diff -u -p -r1.12 PyPI.pm
--- infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 12 May 2019 20:23:33 
-  1.12
+++ infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 13 May 2019 22:31:11 
-
@@ -68,9 +68,22 @@ sub fill_in_makefile
$self->set_other( 'MODPY_PI', 'Yes' );
$self->set_other( 'MODPY_SETUPTOOLS', 'Yes' );
$self->set_comment( $di->{info}{summary} );
-   $self->set_other( 'MODPY_EGG_VERSION', $di->{info}{version} );
-   $self->set_distname( "$di->{info}{name}" . '-${MODPY_EGG_VERSION}' );
-   my $pkgname = $di->{info}->{name};
+
+   my $pkgname  = $di->{info}->{name};
+   my $version  = $di->{info}->{version};
+   my $distname = $self->pick_distf

Re: portgen(1) - better detection of EXTRACT_SUFX

2019-05-13 Thread Kurt Mosiejczuk
On Mon, May 13, 2019 at 11:49:02PM +0200, Charlene Wendling wrote:
> On Mon, 13 May 2019 13:46:46 -0700
> Andrew Hewus Fresh  wrote:

> > This should make portgen(1) recognize the EXTRACT_CASES in
> > bsd.port.mk(5) and set EXTRACT_SUFX correctly.

> > I didn't adjust Ruby handling because I don't really understand how
> > the ruby gems things work, but it appears all ruby modules are just
> > gems and so nothing to set.

> > I do feel a little bad about not documenting how to write a new
> > PortGen::Port subclass, but not completely sure where those docs
> > should live.

> > Anyway, Comments, OKs?

> I tested against various Perl and Python ports that have EXTRACT_SUFX:
> it works well (but many of them moved to tar.gz with updated versions).

> OK cwen@ but there is a typo:

Good catch. I also tested it with various Python ports that use different
extensions. (which is tar.gz, zip, and tar.bz2).

OK kmos@ (also with the typo fix).

--Kurt

> > Index: infrastructure/lib/OpenBSD/PortGen/Port.pm
> > ===
> > RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port.pm,v
> > retrieving revision 1.15
> > diff -u -p -r1.15 Port.pm
> > --- infrastructure/lib/OpenBSD/PortGen/Port.pm  13 May 2019
> > 01:30:05 -  1.15 +++
> > infrastructure/lib/OpenBSD/PortGen/Port.pm  13 May 2019
> > 20:37:31 - @@ -132,6 +132,40 @@ sub set_pkgname
> > { $self->{PKGNAME} = $pkgname; }
> >  
> > +sub pick_distfile
> > +{
> > +   my ( $self, @files ) = @_;
> > +
> > +   my ($distname, $ext);
> > +   foreach my $filename (@files) {
> > +   # from EXTRACT_CASES
> > +   ($distname, $ext) = $filename =~ /^(.*)(\.(?:
> > +   tar\.xz  | tar\.lzma
> > + | tar.lz
>^ here
> > + | zip
> > + | tar\.bz2 | tbz2| tbz
> > + | shar\.gz | shar\.Z | sh\.Z | sh\.gz
> > + | shar | shar\.sh
> > + | tar
> > + | tar\.gz  | tgz
> > +   ))$/xms;
> > +
> > +   # These are our preferred suffixes
> > +   if ( $ext eq '.tar.gz' ) {
> > +   $ext = '';
> > +   last;
> > +   }
> > +   elsif ( $ext eq '.tgz' or $ext eq '.tar' ) {
> > +   last;
> > +   }
> > +   }
> > +
> > +   $self->add_notice("Failed to pick a distname from @files")
> > unless $distname; +
> > +   $self->set_other( EXTRACT_SUFX => $ext ) if $ext;
> > +   return $self->set_distname($distname);
> > +}
> > +
> >  sub set_distname
> >  {
> > my ( $self, $distname ) = @_;
> > Index: infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm
> > ===
> > RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm,v
> > retrieving revision 1.7
> > diff -u -p -r1.7 CPAN.pm
> > --- infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm 11 May
> > 2019 19:36:27 - 1.7 +++
> > infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm 13 May 2019
> > 20:37:31 - @@ -182,7 +182,7 @@ sub fill_in_makefile my ( $self,
> > $di, $vi ) = @_; 
> > $self->set_comment( $di->{abstract} );
> > -   $self->set_distname( $di->{name} );
> > +   $self->pick_distfile( $di->{archive} );
> > $self->set_license(
> > $di->{metadata}->{license}[0] eq 'unknown'
> > ? ''
> > @@ -192,12 +192,6 @@ sub fill_in_makefile
> >  
> > $self->set_other( 'CPAN_AUTHOR', $di->{author} )
> > if $self->needs_author($di);
> > -
> > -   my ($sufx) = $di->{archive} =~ /(\.[\.A-Za-z]+)$/;
> > -
> > -   if ( defined $sufx and $sufx ne '.tar.gz' ) {
> > -   $self->set_other( 'EXTRACT_SUFX', $sufx );
> > -   }
> >  }
> >  
> >  sub postextract
> > Index: infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm
> > ===
> > RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm,v
> > retrieving revision 1.12
> > diff -u -p -r1.12 PyPI.pm
> > --- infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 12 May
> > 2019 20:23:33 - 1.12 +++
> > infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 13 May 2019
> > 20:37:31 - @@ -68,9 +100,22 @@ sub fill_in_makefile
> > $self->set_other( 'MODPY_PI', 'Yes' );
> > $self->set_other( 'MODPY_SETUPTOOLS', 'Yes' );
> > $self->set_comment( $di->{info}{summary} );
> > -   $self->set_other( 'MODPY_EGG_VERSION', $di->{info}
> > {version} );
> > -   $self->set_distname( "$di->{info}{name}" . '-$
> > {MODPY_EGG_VERSION}' );
> > -   my $pkgname = $di->{info}->{name};
> > +
> > +   my $pkgname  = $di->{info}->{name};
> > +   my $version  = $di->{info}->{version};
> > +   my $distname = $self->pick_distfile(
> > +map { $_->{filename} } @{ $di->{urls} || [] } );
> > +
> > +   $self->add_notice("distname $distname does not match pkgname
> > $pkgname")
> > +   unless $distname !~ /^\Q$pkgname/;
> > +
> > +   $self->set_o

Re: portgen(1) - better detection of EXTRACT_SUFX

2019-05-13 Thread Charlene Wendling
On Mon, 13 May 2019 13:46:46 -0700
Andrew Hewus Fresh  wrote:

> This should make portgen(1) recognize the EXTRACT_CASES in
> bsd.port.mk(5) and set EXTRACT_SUFX correctly.
> 
> I didn't adjust Ruby handling because I don't really understand how
> the ruby gems things work, but it appears all ruby modules are just
> gems and so nothing to set.
> 
> I do feel a little bad about not documenting how to write a new
> PortGen::Port subclass, but not completely sure where those docs
> should live.
> 
> Anyway, Comments, OKs?

I tested against various Perl and Python ports that have EXTRACT_SUFX:
it works well (but many of them moved to tar.gz with updated versions).

OK cwen@ but there is a typo:

> Index: infrastructure/lib/OpenBSD/PortGen/Port.pm
> ===
> RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port.pm,v
> retrieving revision 1.15
> diff -u -p -r1.15 Port.pm
> --- infrastructure/lib/OpenBSD/PortGen/Port.pm13 May 2019
> 01:30:05 -1.15 +++
> infrastructure/lib/OpenBSD/PortGen/Port.pm13 May 2019
> 20:37:31 - @@ -132,6 +132,40 @@ sub set_pkgname
> { $self->{PKGNAME} = $pkgname; }
>  
> +sub pick_distfile
> +{
> + my ( $self, @files ) = @_;
> +
> + my ($distname, $ext);
> + foreach my $filename (@files) {
> + # from EXTRACT_CASES
> + ($distname, $ext) = $filename =~ /^(.*)(\.(?:
> + tar\.xz  | tar\.lzma
> +   | tar.lz
   ^ here
> +   | zip
> +   | tar\.bz2 | tbz2| tbz
> +   | shar\.gz | shar\.Z | sh\.Z | sh\.gz
> +   | shar | shar\.sh
> +   | tar
> +   | tar\.gz  | tgz
> + ))$/xms;
> +
> + # These are our preferred suffixes
> + if ( $ext eq '.tar.gz' ) {
> + $ext = '';
> + last;
> + }
> + elsif ( $ext eq '.tgz' or $ext eq '.tar' ) {
> + last;
> + }
> + }
> +
> + $self->add_notice("Failed to pick a distname from @files")
> unless $distname; +
> + $self->set_other( EXTRACT_SUFX => $ext ) if $ext;
> + return $self->set_distname($distname);
> +}
> +
>  sub set_distname
>  {
>   my ( $self, $distname ) = @_;
> Index: infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm
> ===
> RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm,v
> retrieving revision 1.7
> diff -u -p -r1.7 CPAN.pm
> --- infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm   11 May
> 2019 19:36:27 -   1.7 +++
> infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm   13 May 2019
> 20:37:31 - @@ -182,7 +182,7 @@ sub fill_in_makefile my ( $self,
> $di, $vi ) = @_; 
>   $self->set_comment( $di->{abstract} );
> - $self->set_distname( $di->{name} );
> + $self->pick_distfile( $di->{archive} );
>   $self->set_license(
>   $di->{metadata}->{license}[0] eq 'unknown'
>   ? ''
> @@ -192,12 +192,6 @@ sub fill_in_makefile
>  
>   $self->set_other( 'CPAN_AUTHOR', $di->{author} )
>   if $self->needs_author($di);
> -
> - my ($sufx) = $di->{archive} =~ /(\.[\.A-Za-z]+)$/;
> -
> - if ( defined $sufx and $sufx ne '.tar.gz' ) {
> - $self->set_other( 'EXTRACT_SUFX', $sufx );
> - }
>  }
>  
>  sub postextract
> Index: infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm
> ===
> RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm,v
> retrieving revision 1.12
> diff -u -p -r1.12 PyPI.pm
> --- infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm   12 May
> 2019 20:23:33 -   1.12 +++
> infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm   13 May 2019
> 20:37:31 - @@ -68,9 +100,22 @@ sub fill_in_makefile
> $self->set_other( 'MODPY_PI', 'Yes' );
> $self->set_other( 'MODPY_SETUPTOOLS', 'Yes' );
> $self->set_comment( $di->{info}{summary} );
> - $self->set_other( 'MODPY_EGG_VERSION', $di->{info}
> {version} );
> - $self->set_distname( "$di->{info}{name}" . '-$
> {MODPY_EGG_VERSION}' );
> - my $pkgname = $di->{info}->{name};
> +
> + my $pkgname  = $di->{info}->{name};
> + my $version  = $di->{info}->{version};
> + my $distname = $self->pick_distfile(
> +  map { $_->{filename} } @{ $di->{urls} || [] } );
> +
> + $self->add_notice("distname $distname does not match pkgname
> $pkgname")
> + unless $distname !~ /^\Q$pkgname/;
> +
> + $self->set_other( 'MODPY_EGG_VERSION', $version );
> + $distname =~ s/-\Q$version\E$/-\$\{MODPY_EGG_VERSION\}/
> + or $self->add_notice("Didn't set distname version to \$
> {MODPY_EGG_VERSION}"); +
> + $self->set_distname($distname);
> +
> + # TODO: These assume the PKGNAME is the DISTNAME
>   my $to_lower = $pkgname =~ /\p{Upper}/ ? ':L' 

Re: [Update] devel/p5-Time-Duration and devel/p5-Time-Duration-Parse

2019-05-13 Thread Andrew Hewus Fresh
On Mon, May 13, 2019 at 06:16:30AM +, wen heping wrote:
> Hi,
> 
>Here is a patch to update devel/p5-Time-Duration to 0.21 and update
> devel/p5-Time-Duration-Parse to 0.15. Both build well and passed test
> on my amd64-current system.
> 
>2 port depends on devel/p5-Time-Duration:
>devel/p5-Time-Duration-Parse : build well and passed all tests.
>sysutils/moreutils : build well , have no test.

I think this one needs another MAKE_ENV
-MAKE_ENV += TEST_POD=1
+MAKE_ENV += TEST_POD=1 RELEASE_TESTING=1

and we don't need the BUILD_DEPENDS+=${TEST_DEPENDS} line.

With those changes, OK afresh1@


> 
>1 port depends on devel/p5-Time-Duration-Parse:
>security/p5-Net-SSL-ExpireDate: build well and pass all tests.

This one is OK afresh1@


>Comments?
> 
> wen

> Index: p5-Time-Duration/Makefile
> ===
> RCS file: /cvs/ports/devel/p5-Time-Duration/Makefile,v
> retrieving revision 1.9
> diff -u -p -r1.9 Makefile
> --- p5-Time-Duration/Makefile 20 Mar 2016 19:56:40 -  1.9
> +++ p5-Time-Duration/Makefile 13 May 2019 06:07:22 -
> @@ -4,7 +4,7 @@ COMMENT = module for rounded or exact en
>  
>  MODULES =cpan
>  PKG_ARCH =   *
> -DISTNAME =   Time-Duration-1.20
> +DISTNAME =   Time-Duration-1.21
>  CATEGORIES = devel
>  
>  EPOCH =  0
> Index: p5-Time-Duration/distinfo
> ===
> RCS file: /cvs/ports/devel/p5-Time-Duration/distinfo,v
> retrieving revision 1.3
> diff -u -p -r1.3 distinfo
> --- p5-Time-Duration/distinfo 27 Apr 2015 08:04:25 -  1.3
> +++ p5-Time-Duration/distinfo 13 May 2019 06:07:22 -
> @@ -1,2 +1,2 @@
> -SHA256 (Time-Duration-1.20.tar.gz) = 
> RYIFtSiBjnQXV7KFSvrF+a8lf5gwAKrgwLHQS1qcu7g=
> -SIZE (Time-Duration-1.20.tar.gz) = 15478
> +SHA256 (Time-Duration-1.21.tar.gz) = 
> /jQOuodl+SY2lGdOXf8UgzRD4Zhl5f9Ce715t7X4qbg=
> +SIZE (Time-Duration-1.21.tar.gz) = 16205
> Index: p5-Time-Duration-Parse/Makefile
> ===
> RCS file: /cvs/ports/devel/p5-Time-Duration-Parse/Makefile,v
> retrieving revision 1.11
> diff -u -p -r1.11 Makefile
> --- p5-Time-Duration-Parse/Makefile   20 Mar 2016 19:56:40 -  1.11
> +++ p5-Time-Duration-Parse/Makefile   13 May 2019 06:07:22 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =parse strings that represent time durations
>  
> -DISTNAME =   Time-Duration-Parse-0.13
> +DISTNAME =   Time-Duration-Parse-0.15
>  CATEGORIES = devel
>  MODULES =cpan
>  PKG_ARCH =   *
> Index: p5-Time-Duration-Parse/distinfo
> ===
> RCS file: /cvs/ports/devel/p5-Time-Duration-Parse/distinfo,v
> retrieving revision 1.5
> diff -u -p -r1.5 distinfo
> --- p5-Time-Duration-Parse/distinfo   29 Oct 2015 07:09:38 -  1.5
> +++ p5-Time-Duration-Parse/distinfo   13 May 2019 06:07:22 -
> @@ -1,2 +1,2 @@
> -SHA256 (Time-Duration-Parse-0.13.tar.gz) = 
> QUoYSkH/BqGcdvmuMOYoUFbraarmCvmbye34qOFvzik=
> -SIZE (Time-Duration-Parse-0.13.tar.gz) = 11604
> +SHA256 (Time-Duration-Parse-0.15.tar.gz) = 
> YdgUOo5pgcwfepdIBNSSA55eVnFnZ4KdXkvNntdK44E=
> +SIZE (Time-Duration-Parse-0.15.tar.gz) = 11735



portgen(1) - better detection of EXTRACT_SUFX

2019-05-13 Thread Andrew Hewus Fresh
This should make portgen(1) recognize the EXTRACT_CASES in
bsd.port.mk(5) and set EXTRACT_SUFX correctly.

I didn't adjust Ruby handling because I don't really understand how the
ruby gems things work, but it appears all ruby modules are just gems and
so nothing to set.

I do feel a little bad about not documenting how to write a new
PortGen::Port subclass, but not completely sure where those docs should
live.

Anyway, Comments, OKs?

Index: infrastructure/lib/OpenBSD/PortGen/Port.pm
===
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port.pm,v
retrieving revision 1.15
diff -u -p -r1.15 Port.pm
--- infrastructure/lib/OpenBSD/PortGen/Port.pm  13 May 2019 01:30:05 -  
1.15
+++ infrastructure/lib/OpenBSD/PortGen/Port.pm  13 May 2019 20:37:31 -
@@ -132,6 +132,40 @@ sub set_pkgname {
$self->{PKGNAME} = $pkgname;
 }
 
+sub pick_distfile
+{
+   my ( $self, @files ) = @_;
+
+   my ($distname, $ext);
+   foreach my $filename (@files) {
+   # from EXTRACT_CASES
+   ($distname, $ext) = $filename =~ /^(.*)(\.(?:
+   tar\.xz  | tar\.lzma
+ | tar.lz
+ | zip
+ | tar\.bz2 | tbz2| tbz
+ | shar\.gz | shar\.Z | sh\.Z | sh\.gz
+ | shar | shar\.sh
+ | tar
+ | tar\.gz  | tgz
+   ))$/xms;
+
+   # These are our preferred suffixes
+   if ( $ext eq '.tar.gz' ) {
+   $ext = '';
+   last;
+   }
+   elsif ( $ext eq '.tgz' or $ext eq '.tar' ) {
+   last;
+   }
+   }
+
+   $self->add_notice("Failed to pick a distname from @files") unless 
$distname;
+
+   $self->set_other( EXTRACT_SUFX => $ext ) if $ext;
+   return $self->set_distname($distname);
+}
+
 sub set_distname
 {
my ( $self, $distname ) = @_;
Index: infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm
===
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm,v
retrieving revision 1.7
diff -u -p -r1.7 CPAN.pm
--- infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm 11 May 2019 19:36:27 
-  1.7
+++ infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm 13 May 2019 20:37:31 
-
@@ -182,7 +182,7 @@ sub fill_in_makefile
my ( $self, $di, $vi ) = @_;
 
$self->set_comment( $di->{abstract} );
-   $self->set_distname( $di->{name} );
+   $self->pick_distfile( $di->{archive} );
$self->set_license(
$di->{metadata}->{license}[0] eq 'unknown'
? ''
@@ -192,12 +192,6 @@ sub fill_in_makefile
 
$self->set_other( 'CPAN_AUTHOR', $di->{author} )
if $self->needs_author($di);
-
-   my ($sufx) = $di->{archive} =~ /(\.[\.A-Za-z]+)$/;
-
-   if ( defined $sufx and $sufx ne '.tar.gz' ) {
-   $self->set_other( 'EXTRACT_SUFX', $sufx );
-   }
 }
 
 sub postextract
Index: infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm
===
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm,v
retrieving revision 1.12
diff -u -p -r1.12 PyPI.pm
--- infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 12 May 2019 20:23:33 
-  1.12
+++ infrastructure/lib/OpenBSD/PortGen/Port/PyPI.pm 13 May 2019 20:37:31 
-
@@ -68,9 +100,22 @@ sub fill_in_makefile
$self->set_other( 'MODPY_PI', 'Yes' );
$self->set_other( 'MODPY_SETUPTOOLS', 'Yes' );
$self->set_comment( $di->{info}{summary} );
-   $self->set_other( 'MODPY_EGG_VERSION', $di->{info}{version} );
-   $self->set_distname( "$di->{info}{name}" . '-${MODPY_EGG_VERSION}' );
-   my $pkgname = $di->{info}->{name};
+
+   my $pkgname  = $di->{info}->{name};
+   my $version  = $di->{info}->{version};
+   my $distname = $self->pick_distfile(
+map { $_->{filename} } @{ $di->{urls} || [] } );
+
+   $self->add_notice("distname $distname does not match pkgname $pkgname")
+   unless $distname !~ /^\Q$pkgname/;
+
+   $self->set_other( 'MODPY_EGG_VERSION', $version );
+   $distname =~ s/-\Q$version\E$/-\$\{MODPY_EGG_VERSION\}/
+   or $self->add_notice("Didn't set distname version to 
\${MODPY_EGG_VERSION}");
+
+   $self->set_distname($distname);
+
+   # TODO: These assume the PKGNAME is the DISTNAME
my $to_lower = $pkgname =~ /\p{Upper}/ ? ':L' : '';
if ($pkgname =~ /^python-/) {
$self->set_pkgname("\${DISTNAME:S/^python-/py-/$to_lower}");
@@ -78,6 +123,7 @@ sub fill_in_makefile
elsif ($pkgname !~ /^py-/) {
$self->set_pkgname("py-\${DISTNAME$to_lower}");
}
+
$self->set_modules('lang/python');
$self->set_other( 'HOMEPAGE', $di->{info}

Re: rm java/jBCrypt

2019-05-13 Thread Ian Darwin
On Mon, May 13, 2019 at 09:05:10PM +0100, Stuart Henderson wrote:
> On 2019/05/13 15:02, Ian Darwin wrote:
> > Another library that people will get from Maven Central instead of
> > installing as a port and then burying in a local classpath directory.
> 
> Please keep that, I use it for some web stuff.

Done.
 
> If you happen to come across any versions that support "new" bcrypt
> ($2b$ prefix) could you let me know please? :)

Will do.



Re: rm java/jBCrypt

2019-05-13 Thread Stuart Henderson
On 2019/05/13 15:02, Ian Darwin wrote:
> Another library that people will get from Maven Central instead of
> installing as a port and then burying in a local classpath directory.

Please keep that, I use it for some web stuff.

If you happen to come across any versions that support "new" bcrypt
($2b$ prefix) could you let me know please? :)



Re: Update: lang/janet to v0.5.0

2019-05-13 Thread Fred

On 5/13/19 8:33 PM, James Turner wrote:

Thanks Fred,

I was waiting for things to slow down a bit since there is a hackathon
going on right now before looking into this update. But since you did
most of the work for me, I'll try to take a look tonight after I get my
laptop on the latest snapshot.



Hi James,

I'm also seeing if I can build Janet on armv7 and arm64 I'll let you now 
the outcome.


Cheers

Fred




Re: Update: lang/janet to v0.5.0

2019-05-13 Thread James Turner
Thanks Fred,

I was waiting for things to slow down a bit since there is a hackathon
going on right now before looking into this update. But since you did
most of the work for me, I'll try to take a look tonight after I get my
laptop on the latest snapshot. 

On Mon, May 13, 2019 at 04:27:11PM +0100, Fred wrote:
> Hi James,
> 
> Was having a play with lang/janet and noticed that the stable version was
> now at v0.5.0.
> 
> A diff to bring Janet up to v0.5.0 is attached below.
> 
> Cheers
> 
> Fred
> --
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/janet/Makefile,v
> retrieving revision 1.4
> diff -u -p -u -r1.4 Makefile
> --- Makefile  16 Apr 2019 01:56:16 -  1.4
> +++ Makefile  13 May 2019 11:30:32 -
> @@ -5,7 +5,7 @@ CATEGORIES =  lang
> 
>  GH_ACCOUNT = janet-lang
>  GH_PROJECT = janet
> -GH_TAGNAME = v0.4.1
> +GH_TAGNAME = v0.5.0
> 
>  HOMEPAGE =   https://www.janet-lang.org/
>  MAINTAINER = James Turner 
> Index: distinfo
> ===
> RCS file: /cvs/ports/lang/janet/distinfo,v
> retrieving revision 1.3
> diff -u -p -u -r1.3 distinfo
> --- distinfo  16 Apr 2019 00:29:26 -  1.3
> +++ distinfo  13 May 2019 11:30:32 -
> @@ -1,2 +1,2 @@
> -SHA256 (janet-0.4.1.tar.gz) = rV6qet9xT8H/90OnOeMLo/abveh6vLonxzO3obkdcC4=
> -SIZE (janet-0.4.1.tar.gz) = 405290
> +SHA256 (janet-0.5.0.tar.gz) = 9ckBInFYaWV0J8u6YoCaHVPqrO0iaOfVUgIwHWWnUHY=
> +SIZE (janet-0.5.0.tar.gz) = 409322
> Index: patches/patch-Makefile
> ===
> RCS file: /cvs/ports/lang/janet/patches/patch-Makefile,v
> retrieving revision 1.2
> diff -u -p -u -r1.2 patch-Makefile
> --- patches/patch-Makefile13 Mar 2019 01:14:47 -  1.2
> +++ patches/patch-Makefile13 May 2019 11:30:32 -
> @@ -1,16 +1,16 @@
> -$OpenBSD: patch-Makefile,v 1.2 2019/03/13 01:14:47 jturner Exp $
> +$OpenBSD$
> 
>  Use a date stamp for JANET_BUILD to avoid using git.
>  Replace hardcoded -O2.
>  Fix installation.
> 
>  Index: Makefile
>  Makefile.orig
> -+++ Makefile
> -@@ -26,15 +26,15 @@ PREFIX?=/usr/local
> -
> +--- Makefile.origMon May 13 12:13:49 2019
>  Makefile Mon May 13 12:15:25 2019
> +@@ -27,15 +27,15 @@ PREFIX?=/usr/local
>   INCLUDEDIR=$(PREFIX)/include
>   BINDIR=$(PREFIX)/bin
> + LIBDIR=$(PREFIX)/lib
>  -JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\""
>  +JANET_BUILD?="\"$(shell date +%Y%m%d)\""
>   CLIBS=-lm
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/lang/janet/pkg/PLIST,v
> retrieving revision 1.3
> diff -u -p -u -r1.3 PLIST
> --- pkg/PLIST 16 Apr 2019 00:29:26 -  1.3
> +++ pkg/PLIST 13 May 2019 11:30:32 -
> @@ -9,4 +9,7 @@ lib/janet/cook.janet
>  lib/janet/highlight.janet
>  lib/janet/janet.h
>  lib/janet/janetconf.h
> +lib/libjanet.so
> +lib/libjanet.so.0
> +@bin lib/libjanet.so.0.5.0
>  @man man/man1/janet.1

-- 
James Turner



Re: update misc/memcached to 1.5.14

2019-05-13 Thread Giovanni Bechis
On Mon, May 13, 2019 at 12:24:29PM +0100, Stuart Henderson wrote:
> On 2019/05/13 12:23, Stuart Henderson wrote:
> > On 2019/05/13 09:02, Giovanni Bechis wrote:
> > > On 5/13/19 8:42 AM, David CARLIER wrote:
> > > > If you mention testapp executable it does not coredump. No worries if
> > > > you wanna keep the no_drop_privileges patch tho.
> > > > Regards.
> > > > 
> > > > On Mon, 13 May 2019 at 07:32, Giovanni Bechis  
> > > > wrote:
> > > >>
> > > >> On Sun, May 12, 2019 at 01:08:51PM +0100, David CARLIER wrote:
> > > >>> Hi,
> > > >>>
> > > >>> Here a proposal straight to 1.5.14, removing a patch due to
> > > >>> drop_privilege support feature.
> > > >>>
> > > >> why you removed that patch ? I think in OpenBSD dropping privileges 
> > > >> should be
> > > >> mandatory.
> > > >> Does it pass regression tests (at least the same tests that passes 
> > > >> with 1.5.6) ?
> > > >> I have a 1.5.12 port on my tree that core dumps during regression 
> > > >> tests, I haven't
> > > >> checked 1.5.14 yet.
> > > >>  Giovanni
> > > > 
> > > New diff attached, I will commit it in a few days.
> > 
> > Maybe worth adding --enable-tls (and syncing WANTLIB)?
> > 
> > OK either way.
> > 
> 
> Oh actually... hold for a little while, I want to make sure it still builds 
> on arm64.
> 
I do not know if it's useful or not, there is a "--enable-arm-crc32 (ARMv8 
CRC32 instructions)" 
option as well in configure.
 Giovanni



rm java/jBCrypt

2019-05-13 Thread Ian Darwin
Another library that people will get from Maven Central instead of
installing as a port and then burying in a local classpath directory.

Will unhook from parent dir.  Will use Quirks reason 1, not useful to package.

OK to attic-ify?

Index: Makefile
===
RCS file: Makefile
diff -N Makefile
--- Makefile24 Mar 2019 22:24:13 -  1.7
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,34 +0,0 @@
-# $OpenBSD: Makefile,v 1.7 2019/03/24 22:24:13 sthen Exp $
-
-COMMENT=   BCrypt library for Java
-
-DISTNAME=  jBCrypt-0.4
-REVISION=  1
-
-CATEGORIES=security
-
-HOMEPAGE=  http://www.mindrot.org/projects/jBCrypt/
-
-MAINTAINER=Stuart Henderson 
-
-# ISC
-PERMIT_PACKAGE_CDROM=  Yes
-
-MASTER_SITES=  http://www.mindrot.org/files/jBCrypt/
-
-MODULES=   java
-MODJAVA_VER=   1.8+
-MODJAVA_BUILD= ant
-
-# JUnit tests exist but unsure how to handle non-ascii chars
-NO_TEST=   Yes
-
-do-configure:
-   cp ${FILESDIR}/build.xml ${WRKSRC}/
-
-do-install:
-   ${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR} ${MODJAVA_DOC_DIR}/BCrypt
-   ${INSTALL_DATA} ${WRKSRC}/build/lib/BCrypt.jar ${MODJAVA_JAR_DIR}
-   ${INSTALL_DATA} ${WRKSRC}/{README,LICENSE} ${MODJAVA_DOC_DIR}/BCrypt
-
-.include 
Index: distinfo
===
RCS file: distinfo
diff -N distinfo
--- distinfo6 Feb 2015 14:11:46 -   1.3
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,2 +0,0 @@
-SHA256 (jBCrypt-0.4.tar.gz) = HCDVsdF5+2PZpOspX3DJbinNvbYXMVCDhUAhAhBiMFM=
-SIZE (jBCrypt-0.4.tar.gz) = 15167
Index: files/build.xml
===
RCS file: files/build.xml
diff -N files/build.xml
--- files/build.xml 23 May 2012 15:02:52 -  1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,40 +0,0 @@
-
-
-
-
-  
-
-  
-  
-  
-  
-  
-  
-
-  
-
-
-
-
-
-  
-
-  
-
-  
-
-  
-
-
-  
-
-  
-
-  
-
-  
-
-  
-
-
-
Index: pkg/DESCR
===
RCS file: pkg/DESCR
diff -N pkg/DESCR
--- pkg/DESCR   23 May 2012 15:02:52 -  1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,11 +0,0 @@
-jBCrypt is a Java implementation of OpenBSD's Blowfish password
-hashing code, compatible with the canonical C implementation of the
-bcrypt algorithm.
-
-This system hashes passwords using a version of Bruce Schneier's
-Blowfish block cipher with modifications designed to raise the cost
-of off-line password cracking and frustrate fast hardware implementation.
-The computation cost of the algorithm is parametised, so it can be
-increased as computers get faster. The intent is to make a compromise
-of a password database less likely to result in an attacker gaining
-knowledge of the plaintext passwords (e.g. using John the Ripper).
Index: pkg/PLIST
===
RCS file: pkg/PLIST
diff -N pkg/PLIST
--- pkg/PLIST   23 May 2012 15:02:52 -  1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,8 +0,0 @@
-@comment $OpenBSD: PLIST,v 1.1.1.1 2012/05/23 15:02:52 sthen Exp $
-share/java/
-share/java/classes/
-share/java/classes/BCrypt.jar
-share/java/doc/
-share/java/doc/BCrypt/
-share/java/doc/BCrypt/LICENSE
-share/java/doc/BCrypt/README



Re: Libraries without SONAME

2019-05-13 Thread Antoine Jacoutot
On Mon, May 13, 2019 at 08:20:22PM +0200, Christian Weisgerber wrote:
> All shared libraries should have a SONAME:
> 
> $ readelf -d /usr/lib/libc.so.95.0 | fgrep '(SONAME)' 
>  0x000e (SONAME) Library soname: [libc.so.95.0]
> 
> I ran a throwaway script over the packages from an amd64 bulk build,
> and the libraries listed below lack a SONAME.  We fixed libtool to
> add the SONAME, so these must have been built differently.  It makes
> little sense to approach this port by port; instead we should look
> for commonly used build tools that fail to embed SONAME and fix
> those.  Sui generis cases can be cleaned up later.

Thanks for the list naddy.
First quick win would be to fix cmake...

-- 
Antoine



Libraries without SONAME

2019-05-13 Thread Christian Weisgerber
All shared libraries should have a SONAME:

$ readelf -d /usr/lib/libc.so.95.0 | fgrep '(SONAME)' 
 0x000e (SONAME) Library soname: [libc.so.95.0]

I ran a throwaway script over the packages from an amd64 bulk build,
and the libraries listed below lack a SONAME.  We fixed libtool to
add the SONAME, so these must have been built differently.  It makes
little sense to approach this port by port; instead we should look
for commonly used build tools that fail to embed SONAME and fix
those.  Sui generis cases can be cleaned up later.


R-3.6.0/lib/R/lib/libR.so.35.0
R-3.6.0/lib/R/lib/libRblas.so.35.0
R-3.6.0/lib/R/lib/libRlapack.so.35.0
addresses-0.4.8p10/lib/GNUstep/Frameworks/AddressView.framework/Versions/0.1/libAddressView.so.0.1
addresses-0.4.8p10/lib/GNUstep/Frameworks/Addresses.framework/Versions/0.1/libAddresses.so.0.1
adns-1.5.1p0/lib/libadns.so.2.0
akonadi-1.13.0p5/lib/libakonadiprotocolinternals.so.4.0
analitza-18.12.0p0/lib/libAnalitza.so.0.1
analitza-18.12.0p0/lib/libAnalitzaGui.so.0.1
analitza-18.12.0p0/lib/libAnalitzaPlot.so.0.1
analitza-18.12.0p0/lib/libAnalitzaWidgets.so.0.1
aqsis-1.8.2p10/lib/libaqsis_core.so.1.0
aqsis-1.8.2p10/lib/libaqsis_math.so.1.0
aqsis-1.8.2p10/lib/libaqsis_ri2rib.so.1.0
aqsis-1.8.2p10/lib/libaqsis_riutil.so.1.0
aqsis-1.8.2p10/lib/libaqsis_shadervm.so.1.0
aqsis-1.8.2p10/lib/libaqsis_slcomp.so.1.0
aqsis-1.8.2p10/lib/libaqsis_slxargs.so.1.0
aqsis-1.8.2p10/lib/libaqsis_tex.so.1.0
aqsis-1.8.2p10/lib/libaqsis_util.so.1.0
argon2-20171227/lib/libargon2.so.0.0
ark-18.12.0p0/lib/libkerfuffle.so.1.0
armadillo-9.200.4/lib/libarmadillo.so.1.0
artikulate-18.12.0p0/lib/libartikulatecore.so.0.0
artikulate-18.12.0p0/lib/libartikulatelearnerprofile.so.0.0
artikulate-18.12.0p0/lib/libartikulatesound.so.0.0
assimp-4.1.0/lib/libassimp.so.0.1
attica-0.4.2p5/lib/libattica.so.1.0
audacious-3.9p2/lib/libaudcore.so.4.0
audacious-3.9p2/lib/libaudgui.so.4.0
audacious-3.9p2/lib/libaudtag.so.3.0
audiality2-1.9.4/lib/libaudiality2.so.0.1
audiocd-kio-4.14.3p1/lib/libaudiocdplugins.so.50.0
audiocd-kio-kf5-18.12.0p0/lib/libaudiocdplugins.so.0.0
baloo-4.14.3p7/lib/libbaloocore.so.2.0
baloo-4.14.3p7/lib/libbaloofiles.so.2.0
baloo-4.14.3p7/lib/libbaloopim.so.2.0
baloo-4.14.3p7/lib/libbalooqueryparser.so.0.0
baloo-4.14.3p7/lib/libbalooxapian.so.2.0
baloo-widgets-4.14.3p1/lib/libbaloowidgets.so.1.0
blink1-1.98a/lib/libblink1.so.0.1
bluez-qt-5.54.0/lib/libKF5BluezQt.so.4.3
botan-1.10.17p1/lib/libbotan-1.10.so.1.1
bro-2.6.1/lib/libbroker.so.0.0
bro-2.6.1/lib/libcaf_core.so.0.0
bro-2.6.1/lib/libcaf_io.so.0.0
bro-2.6.1/lib/libcaf_openssl.so.0.0
brotli-1.0.7/lib/libbrotlicommon.so.1.1
brotli-1.0.7/lib/libbrotlidec.so.1.1
brotli-1.0.7/lib/libbrotlienc.so.1.0
bullet-2.87/lib/libBullet2FileLoader.so.3.0
bullet-2.87/lib/libBullet3Collision.so.3.0
bullet-2.87/lib/libBullet3Common.so.3.0
bullet-2.87/lib/libBullet3Dynamics.so.3.0
bullet-2.87/lib/libBullet3Geometry.so.3.0
bullet-2.87/lib/libBullet3OpenCL_clew.so.3.0
bullet-2.87/lib/libBulletCollision.so.4.0
bullet-2.87/lib/libBulletDynamics.so.4.0
bullet-2.87/lib/libBulletFileLoader.so.0.0
bullet-2.87/lib/libBulletInverseDynamics.so.2.0
bullet-2.87/lib/libBulletInverseDynamicsUtils.so.0.0
bullet-2.87/lib/libBulletRobotics.so.0.0
bullet-2.87/lib/libBulletSoftBody.so.4.0
bullet-2.87/lib/libBulletWorldImporter.so.0.0
bullet-2.87/lib/libBulletXmlWorldImporter.so.0.0
bullet-2.87/lib/libConvexDecomposition.so.0.0
bullet-2.87/lib/libGIMPACTUtils.so.0.0
bullet-2.87/lib/libHACD.so.0.0
bullet-2.87/lib/libLinearMath.so.4.0
bzip2-1.0.6p9/lib/libbz2.so.10.4
c-client-2.21p1v0/lib/libc-client.so.7.0
calligra-3.1.0p6/lib/libRtfReader.so.50.0
calligra-3.1.0p6/lib/libbasicflakes.so.50.0
calligra-3.1.0p6/lib/libcalligrasheetscommon.so.50.0
calligra-3.1.0p6/lib/libcalligrasheetsodf.so.50.0
calligra-3.1.0p6/lib/libcalligrastageprivate.so.50.0
calligra-3.1.0p6/lib/libflake.so.51.0
calligra-3.1.0p6/lib/libgemini.so.0.0
calligra-3.1.0p6/lib/libkarboncommon.so.50.0
calligra-3.1.0p6/lib/libkarbonui.so.50.0
calligra-3.1.0p6/lib/libkdeinit5_calligrasheets.so.0.0
calligra-3.1.0p6/lib/libkdeinit5_calligrawords.so.0.0
calligra-3.1.0p6/lib/libkdeinit5_karbon.so.0.0
calligra-3.1.0p6/lib/libkoformula.so.15.0
calligra-3.1.0p6/lib/libkomain.so.51.0
calligra-3.1.0p6/lib/libkomsooxml.so.51.0
calligra-3.1.0p6/lib/libkoodf.so.50.0
calligra-3.1.0p6/lib/libkoodf2.so.50.0
calligra-3.1.0p6/lib/libkoodfreader.so.50.0
calligra-3.1.0p6/lib/libkopageapp.so.50.0
calligra-3.1.0p6/lib/libkoplugin.so.50.0
calligra-3.1.0p6/lib/libkostore.so.16.0
calligra-3.1.0p6/lib/libkotext.so.51.0
calligra-3.1.0p6/lib/libkotextlayout.so.50.0
calligra-3.1.0p6/lib/libkovectorimage.so.50.0
calligra-3.1.0p6/lib/libkoversion.so.0.0
calligra-3.1.0p6/lib/libkowidgets.so.50.0
calligra-3.1.0p6/lib/libkowidgetutils.so.50.0
calligra-3.1.0p6/lib/libkowv2.so.51.0
calligra-3.1.0p6/lib/libkundo2.so.51.0
calligra-3.1.0p6/lib/libpigmentcms.so.50.0
calligra-3.1.0p6/lib/libwordsprivate.so.14.0
cantor-18.12.0p2/lib/libca

[update] net/p5-Net-Netmask 1.9022 -> 1.9104

2019-05-13 Thread Charlene Wendling


Here is an update for Net::Netmask.

What's new upstream (partial, see [0]): 

- IPv6 support! Also added a protocol() method to get the
  address protocol, as expected
- fix precision issue on long-double platforms
- it's now released under the same terms as Perl

Port-wise it's a simple update with additional TEST_DEPENDS.

Testing:

- 'make test' passes
- There are two consumers, mail/sympa that has no tests
  and www/perlbal that passes its tests [1].

Comments and feedback are welcome :) 

Charlène. 


[0] https://metacpan.org/changes/release/JMASLAK/Net-Netmask-1.9104
[1] http://0x0.st/zA_A.tgz


Index: Makefile
===
RCS file: /cvs/ports/net/p5-Net-Netmask/Makefile,v
retrieving revision 1.8
diff -u -p -u -p -r1.8 Makefile
--- Makefile20 Mar 2016 19:56:54 -  1.8
+++ Makefile13 May 2019 18:03:28 -
@@ -4,10 +4,13 @@ COMMENT = parse, manipulate and lookup I
 
 MODULES =  cpan
 PKG_ARCH = *
-DISTNAME = Net-Netmask-1.9022
+DISTNAME = Net-Netmask-1.9104
 CATEGORIES =   net
 
-# custom
-PERMIT_PACKAGE_CDROM = Yes
+# Perl
+PERMIT_PACKAGE_CDROM = Yes
+
+TEST_DEPENDS = devel/p5-Test-UseAllModules>=0.17 \
+   devel/p5-Test2-Suite>=0.000111
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/net/p5-Net-Netmask/distinfo,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 distinfo
--- distinfo10 Jun 2015 16:00:38 -  1.4
+++ distinfo13 May 2019 18:03:28 -
@@ -1,2 +1,2 @@
-SHA256 (Net-Netmask-1.9022.tar.gz) = 
BwmcH/TedS5vVCCzLeEuQziwW7slLlPHgrdAFzujFTM=
-SIZE (Net-Netmask-1.9022.tar.gz) = 19044
+SHA256 (Net-Netmask-1.9104.tar.gz) = 
fvxsVEt27jkjpPO/gtKyDKdFLlXP0F7GV4n86rcWkZ4=
+SIZE (Net-Netmask-1.9104.tar.gz) = 41853



Re: lang/python module: add RUN_DEPENDS to TEST_DEPENDS by default

2019-05-13 Thread Antoine Jacoutot
On Mon, May 13, 2019 at 01:07:07PM -0400, Kurt Mosiejczuk wrote:
> During our work on the portgen improvements afresh1 mentioned that the
> cpan module just adds RUN_DEPENDS to TEST_DEPENDS automatically. So I
> coded up this patch to lang/python/python.port.mk to do the same.
> 
> It will still obey MODPY_TESTDEP being set to no, in which case we 
> don't touch TEST_DEPENDS.
> 
> Thoughts? If folks like this, I can go through and update python port
> Makefiles that do this manually right now and commit this change and the
> Makefile changes at one time.

I support this move.


> 
> --Kurt
> 
> Index: lang/python/python.port.mk
> ===
> RCS file: /cvs/ports/lang/python/python.port.mk,v
> retrieving revision 1.108
> diff -u -p -r1.108 python.port.mk
> --- lang/python/python.port.mk27 Apr 2019 21:28:30 -  1.108
> +++ lang/python/python.port.mk13 May 2019 16:31:21 -
> @@ -72,10 +72,9 @@ MODPY_RUN_DEPENDS =lang/python/${MODPY_
>  MODPY_LIB_DEPENDS =  lang/python/${MODPY_VERSION}
>  _MODPY_BUILD_DEPENDS =   lang/python/${MODPY_VERSION}
>  
> +MODPY_TEST_DEPENDS = ${RUN_DEPENDS}
>  .if ${MODPY_PYTEST:L} == "yes"
> -MODPY_TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
> -.else
> -MODPY_TEST_DEPENDS = # Leave blank for now for non-pytest
> +MODPY_TEST_DEPENDS +=devel/py-test${MODPY_FLAVOR}
>  .endif
>  
>  .if ${NO_BUILD:L} == "no"
> 

-- 
Antoine



Re: portcheck: look for libraries if PKG_ARCH=*

2019-05-13 Thread Klemens Nanni
On Mon, May 13, 2019 at 12:59:27PM +0100, Stuart Henderson wrote:
> This teaches portcheck to look for plists containing shared/static
> libraries that are marked PKG_ARCH=*. Any comments/ok?
OK kn



Re: lang/python module: add RUN_DEPENDS to TEST_DEPENDS by default

2019-05-13 Thread Daniel Jakots
On Mon, 13 May 2019 13:07:07 -0400, Kurt Mosiejczuk 
wrote:

> During our work on the portgen improvements afresh1 mentioned that the
> cpan module just adds RUN_DEPENDS to TEST_DEPENDS automatically. So I
> coded up this patch to lang/python/python.port.mk to do the same.

I don't know whether it's a good or a bad move but in either case I
think it needs a better justification than "perl does it so let's do
the same in python land".

Cheers,
Daniel



Re: lang/python module: add RUN_DEPENDS to TEST_DEPENDS by default

2019-05-13 Thread Andrew Hewus Fresh
On Mon, May 13, 2019 at 01:07:07PM -0400, Kurt Mosiejczuk wrote:
> During our work on the portgen improvements afresh1 mentioned that the
> cpan module just adds RUN_DEPENDS to TEST_DEPENDS automatically. So I
> coded up this patch to lang/python/python.port.mk to do the same.
> 
> It will still obey MODPY_TESTDEP being set to no, in which case we 
> don't touch TEST_DEPENDS.
> 
> Thoughts? If folks like this, I can go through and update python port
> Makefiles that do this manually right now and commit this change and the
> Makefile changes at one time.

As a heavy user of cpan.port.mk I was surprised this didn't exist more
generally, it seems like a good idea, but I don't understand why
MODPY_TEST_DEPENDS exists and such, but I do know it's very common to
need this.

$ grep '^TEST_DEPENDS.*=.*RUN_DEPENDS' */py-*/Makefile | wc -l
 116

Although I don't know what makes it required, but it's possible it's
MODPY_PYTEST.

$ ls */py-*/Makefile | wc -l   
 652


> 
> --Kurt
> 
> Index: lang/python/python.port.mk
> ===
> RCS file: /cvs/ports/lang/python/python.port.mk,v
> retrieving revision 1.108
> diff -u -p -r1.108 python.port.mk
> --- lang/python/python.port.mk27 Apr 2019 21:28:30 -  1.108
> +++ lang/python/python.port.mk13 May 2019 16:31:21 -
> @@ -72,10 +72,9 @@ MODPY_RUN_DEPENDS =lang/python/${MODPY_
>  MODPY_LIB_DEPENDS =  lang/python/${MODPY_VERSION}
>  _MODPY_BUILD_DEPENDS =   lang/python/${MODPY_VERSION}
>  
> +MODPY_TEST_DEPENDS = ${RUN_DEPENDS}
>  .if ${MODPY_PYTEST:L} == "yes"
> -MODPY_TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
> -.else
> -MODPY_TEST_DEPENDS = # Leave blank for now for non-pytest
> +MODPY_TEST_DEPENDS +=devel/py-test${MODPY_FLAVOR}
>  .endif
>  
>  .if ${NO_BUILD:L} == "no"
> 

-- 
andrew - http://afresh1.com

Software doesn't do what you want it to do, it does what you tell it do.
  -- Stefan G. Weichinger.



Re: portcheck: look for libraries if PKG_ARCH=*

2019-05-13 Thread Andrew Hewus Fresh
On Mon, May 13, 2019 at 12:59:27PM +0100, Stuart Henderson wrote:
> On 2019/05/10 09:30, Andrew Hewus Fresh wrote:
> > p5-Ref-Util-XS could use TEST_DEPENDS=devel/p5-Readonly, as an XS module
> > is not a candidate for PKG_ARCH=* so that needs to be removed
> 
> This teaches portcheck to look for plists containing shared/static
> libraries that are marked PKG_ARCH=*. Any comments/ok?

OK afresh1@

Probably should add a similar check to portgen to avoid setting
PKG_ARCH=* if we find something.  I added it to my TODO list.



> Index: portcheck
> ===
> RCS file: /cvs/ports/infrastructure/bin/portcheck,v
> retrieving revision 1.126
> diff -u -p -r1.126 portcheck
> --- portcheck 16 Nov 2018 10:08:38 -  1.126
> +++ portcheck 13 May 2019 11:56:39 -
> @@ -851,10 +851,12 @@ sub_checks() {
>   make "${make_args[@]}" show="$vars" | {
>   local comment fullpkgname modules pkg_arch
>   local wantlib perm_pkg_cdrom perm_pkg_ftp
> + local arch_independent=false
>   read -r comment
>   read -r fullpkgname
>   read -r modules
>   read -r pkg_arch
> + [[ $pkg_arch == "*" ]] && arch_independent=true
>   read -r wantlib
>   read -r wantlib_ss
>   read -r perm_pkg_cdrom
> @@ -865,7 +867,7 @@ sub_checks() {
>   "COMMENT${subpkg%-}, please"
>   fi
>  
> - if [[ $pkg_arch == "*" && -n $wantlib ]]; then
> + if $arch_independent && [[ -n $wantlib ]]; then
>   if [[ $subpkg != - || -n $wantlib_ss 
> ]]; then
>   err "${portref}non-empty 
> $wantlib_var for" \
>   "arch-independent package"
> @@ -881,7 +883,8 @@ sub_checks() {
>   print-plist-with-depends || true) \
>  check_plist "$portref" "$fullpkgname" \
> - "$flavor" "${subpkg%-}" "$modules"
> + "$flavor" "${subpkg%-}" "$modules" \
> + "$arch_independent"
>   check_lib_depends "$portref" "$subpkg" \
>   "$modules" "$wantlib"
>   wait
> @@ -935,6 +938,8 @@ sub_checks() {
>  #
>  #   * @rcscript items and pkg-readmes have @mode, @owner and @group reset.
>  #
> +#   * PKG_ARCH is not set to * if a library is present.
> +#
>  check_plist() {
>   $debugging && echo "CALLED: check_plist($*)" >&2
>  
> @@ -943,6 +948,7 @@ check_plist() {
>   local flavor_list=$1; shift
>   local subpkg=$1; shift
>   local modules_list=$1; shift
> + local arch_independent=$1; shift
>  
>   local flavor is_static=false
>   for flavor in $flavor_list; do
> @@ -982,6 +988,7 @@ check_plist() {
>  
>   local qml_found=false qt5_qml_found=false non_qt5_qml_found=false
>   local qt4_dep=false qt5_dep=false qt5declarative_dep=false
> + local lib_found=false
>  
>   local owner_set=false group_set=false mode_set=false
>   local readme_seen=false
> @@ -1071,6 +1078,7 @@ check_plist() {
>   ;;
>   lib/qt5/qml/*)
>   qml_found=true
> + lib_found=true
>   qt5_qml_found=true
>   ;;
>   */qmldir)
> @@ -1078,6 +1086,10 @@ check_plist() {
>   non_qt5_qml_found=true
>   ;;
>  
> + *.so|*.a|*.so.*)
> + lib_found=true
> + ;;
> +
>   share/dbus-1/system-services/*)
>   dbus_suid_dep_needed=true
>   ;;
> @@ -1204,6 +1216,9 @@ check_plist() {
>   $qt5_dep && ! $qt4_dep && $non_qt5_qml_found &&
>   err "${portref}depends on Qt5 but installs QML files" \
>   "outside PREFIX/lib/qt5/qml/"
> +
> + $lib_found && $arch_independent &&
> + err "${portref}arch-independent package contains library files"
>  
>   # dbus,-suid
>   if $dbus_suid_dep_needed && ! $dbus_suid_dep && ! $is_dbus_suid; then
> 

-- 
andrew - http://afresh1.com

A printer consists of three main parts:
the case, the jammed paper tray and the blinking red light.



[update] net/p5-Net-IP-XS 0.13 -> 0.21

2019-05-13 Thread Charlene Wendling


Here is an update for Net::IP::XS. 

What's new upstream [0]:

- IP objects can now be used with threads (our Perl is built
  without threads support)
- fix type mismatch in XS code (long vs int)
- code refactoring for ipv6

What's new in the port:

- clean up depends and make use of TEST_POD=Yes
- mention the optional IP::Authority that we don't have in ports

Testing:

- 'make test' passes on amd64 and macppc
- there are no consumers (checked twice this time)

Comments/feedback are welcome.

Charlène. 


[0] https://metacpan.org/source/TOMHRR/Net-IP-XS-0.21/Changes


Index: Makefile
===
RCS file: /cvs/ports/net/p5-Net-IP-XS/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- Makefile29 Dec 2017 07:24:49 -  1.4
+++ Makefile13 May 2019 16:23:23 -
@@ -3,19 +3,21 @@
 COMMENT =  perl module for IPv4/IPv6 address parsing
 
 MODULES =  cpan
-DISTNAME = Net-IP-XS-0.13
+
+DISTNAME = Net-IP-XS-0.21
+
 CATEGORIES =   net
-REVISION = 1
 
 # GPL
 PERMIT_PACKAGE_CDROM = Yes
 
 WANTLIB += c perl
 
-BUILD_DEPENDS =${RUN_DEPENDS}
-RUN_DEPENDS =  devel/p5-IO-Capture \
-   net/p5-IP-Country \
-   devel/p5-Tie-Simple
-TEST_DEPENDS = devel/p5-Test-Pod
+RUN_DEPENDS =  devel/p5-IO-Capture \
+   devel/p5-Tie-Simple
+
+# missing optional depend for tests: IP::Authority
+
+MAKE_ENV +=TEST_POD=Yes
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/net/p5-Net-IP-XS/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 distinfo
--- distinfo2 Jan 2015 14:29:01 -   1.1.1.1
+++ distinfo13 May 2019 16:23:23 -
@@ -1,2 +1,2 @@
-SHA256 (Net-IP-XS-0.13.tar.gz) = Py+M8QmR4E1OWBl1KA1yk5gPys2DbIRcrPF38aQlrMI=
-SIZE (Net-IP-XS-0.13.tar.gz) = 64512
+SHA256 (Net-IP-XS-0.21.tar.gz) = rpGUEBra7gUMNCR1se1mdLZs+h01/O1Z2ZSuSzQSPng=
+SIZE (Net-IP-XS-0.21.tar.gz) = 63962



Update: lang/janet to v0.5.0

2019-05-13 Thread Fred

Hi James,

Was having a play with lang/janet and noticed that the stable version 
was now at v0.5.0.


A diff to bring Janet up to v0.5.0 is attached below.

Cheers

Fred
--

Index: Makefile
===
RCS file: /cvs/ports/lang/janet/Makefile,v
retrieving revision 1.4
diff -u -p -u -r1.4 Makefile
--- Makefile16 Apr 2019 01:56:16 -  1.4
+++ Makefile13 May 2019 11:30:32 -
@@ -5,7 +5,7 @@ CATEGORIES =lang

 GH_ACCOUNT =   janet-lang
 GH_PROJECT =   janet
-GH_TAGNAME =   v0.4.1
+GH_TAGNAME =   v0.5.0

 HOMEPAGE = https://www.janet-lang.org/
 MAINTAINER =   James Turner 
Index: distinfo
===
RCS file: /cvs/ports/lang/janet/distinfo,v
retrieving revision 1.3
diff -u -p -u -r1.3 distinfo
--- distinfo16 Apr 2019 00:29:26 -  1.3
+++ distinfo13 May 2019 11:30:32 -
@@ -1,2 +1,2 @@
-SHA256 (janet-0.4.1.tar.gz) = rV6qet9xT8H/90OnOeMLo/abveh6vLonxzO3obkdcC4=
-SIZE (janet-0.4.1.tar.gz) = 405290
+SHA256 (janet-0.5.0.tar.gz) = 9ckBInFYaWV0J8u6YoCaHVPqrO0iaOfVUgIwHWWnUHY=
+SIZE (janet-0.5.0.tar.gz) = 409322
Index: patches/patch-Makefile
===
RCS file: /cvs/ports/lang/janet/patches/patch-Makefile,v
retrieving revision 1.2
diff -u -p -u -r1.2 patch-Makefile
--- patches/patch-Makefile  13 Mar 2019 01:14:47 -  1.2
+++ patches/patch-Makefile  13 May 2019 11:30:32 -
@@ -1,16 +1,16 @@
-$OpenBSD: patch-Makefile,v 1.2 2019/03/13 01:14:47 jturner Exp $
+$OpenBSD$

 Use a date stamp for JANET_BUILD to avoid using git.
 Replace hardcoded -O2.
 Fix installation.

 Index: Makefile
 Makefile.orig
-+++ Makefile
-@@ -26,15 +26,15 @@ PREFIX?=/usr/local
-
+--- Makefile.orig  Mon May 13 12:13:49 2019
 Makefile   Mon May 13 12:15:25 2019
+@@ -27,15 +27,15 @@ PREFIX?=/usr/local
  INCLUDEDIR=$(PREFIX)/include
  BINDIR=$(PREFIX)/bin
+ LIBDIR=$(PREFIX)/lib
 -JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\""
 +JANET_BUILD?="\"$(shell date +%Y%m%d)\""
  CLIBS=-lm
Index: pkg/PLIST
===
RCS file: /cvs/ports/lang/janet/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -r1.3 PLIST
--- pkg/PLIST   16 Apr 2019 00:29:26 -  1.3
+++ pkg/PLIST   13 May 2019 11:30:32 -
@@ -9,4 +9,7 @@ lib/janet/cook.janet
 lib/janet/highlight.janet
 lib/janet/janet.h
 lib/janet/janetconf.h
+lib/libjanet.so
+lib/libjanet.so.0
+@bin lib/libjanet.so.0.5.0
 @man man/man1/janet.1



Re: [update] net/p5-Net-DNS-Resolver-Programmable 0.03 -> 0.09

2019-05-13 Thread Charlene Wendling
On Mon, 13 May 2019 16:20:52 +0200
Charlene Wendling  wrote:

> 
> Here is an update for Net::DNS::Resolver::Programmable.
> 
> What's new upstream (partial, see [0]):
> 
> - new maintainership, distribution tooling changed and versioning
>   has no more stupid 'v' in it
> - various bug fixes, improved testing, but most importantly no
>   backward incompatible changes
> 
> What's new in the port:
> 
> - small cleanups, drop modbuild   
> - the PLIST change is due to the fact that p5-Net-DNS pulls these
>   directories
> 
> Testing: 
> 
> - 'make test' passes
> - there are no consumers

*sigh* i typoed while refactoring my show-reverse-deps wrapper.

- There are 1 direct consumer (mail/p5-Mail-SPF) and found less failures
  due to that update [1]

> Comments and feedback are welcome :) 
> 
> Charlène. 
> 
> 
> [0]
> https://metacpan.org/source/BIGPRESH/Net-DNS-Resolver-Programmable-0.009/CHANGES
> 

[1] http://0x0.st/zAeG.tgz

Index: Makefile
===
RCS file: /cvs/ports/net/p5-Net-DNS-Resolver-Programmable/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- Makefile20 Mar 2016 19:56:52 -  1.4
+++ Makefile13 May 2019 14:18:05 -
@@ -2,18 +2,15 @@
 
 COMMENT =  programmable DNS resolver class for offline emulation 
of DNS
 
-DISTNAME = Net-DNS-Resolver-Programmable-v0.003
-REVISION = 0
-PKGNAME =  p5-${DISTNAME:S/-v/-/}
+DISTNAME = Net-DNS-Resolver-Programmable-0.009
 CATEGORIES =   net
 
-# perl
+# Perl
 PERMIT_PACKAGE_CDROM = Yes
 
 MODULES =  cpan
 PKG_ARCH = *
-CONFIGURE_STYLE =  modbuild
 
-RUN_DEPENDS =  net/p5-Net-DNS
+RUN_DEPENDS =  net/p5-Net-DNS>=0.69
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/net/p5-Net-DNS-Resolver-Programmable/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo18 Jan 2015 03:14:45 -  1.2
+++ distinfo13 May 2019 14:18:05 -
@@ -1,2 +1,2 @@
-SHA256 (Net-DNS-Resolver-Programmable-v0.003.tar.gz) = 
jUAiYJQfJZyDvxslZECOdSiN8Cj2BBNsKdoRqaagduw=
-SIZE (Net-DNS-Resolver-Programmable-v0.003.tar.gz) = 15974
+SHA256 (Net-DNS-Resolver-Programmable-0.009.tar.gz) = 
gICiq3dmKVhZEa8Reb23xNwr6/1LXv13sR0drGJFS/g=
+SIZE (Net-DNS-Resolver-Programmable-0.009.tar.gz) = 15770
Index: pkg/PLIST
===
RCS file: /cvs/ports/net/p5-Net-DNS-Resolver-Programmable/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 PLIST
--- pkg/PLIST   13 Apr 2015 16:22:50 -  1.2
+++ pkg/PLIST   13 May 2019 14:18:05 -
@@ -1,6 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.2 2015/04/13 16:22:50 sthen Exp $
-${P5SITE}/Net/
-${P5SITE}/Net/DNS/
-${P5SITE}/Net/DNS/Resolver/
 ${P5SITE}/Net/DNS/Resolver/Programmable.pm
 @man man/man3p/Net::DNS::Resolver::Programmable.3p



[update] net/p5-Net-DNS-Resolver-Programmable 0.03 -> 0.09

2019-05-13 Thread Charlene Wendling


Here is an update for Net::DNS::Resolver::Programmable.

What's new upstream (partial, see [0]):

- new maintainership, distribution tooling changed and versioning
  has no more stupid 'v' in it
- various bug fixes, improved testing, but most importantly no
  backward incompatible changes

What's new in the port:

- small cleanups, drop modbuild 
- the PLIST change is due to the fact that p5-Net-DNS pulls these
  directories

Testing: 

- 'make test' passes
- there are no consumers

Comments and feedback are welcome :) 

Charlène. 


[0]
https://metacpan.org/source/BIGPRESH/Net-DNS-Resolver-Programmable-0.009/CHANGES


Index: Makefile
===
RCS file: /cvs/ports/net/p5-Net-DNS-Resolver-Programmable/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- Makefile20 Mar 2016 19:56:52 -  1.4
+++ Makefile13 May 2019 14:18:05 -
@@ -2,18 +2,15 @@
 
 COMMENT =  programmable DNS resolver class for offline emulation 
of DNS
 
-DISTNAME = Net-DNS-Resolver-Programmable-v0.003
-REVISION = 0
-PKGNAME =  p5-${DISTNAME:S/-v/-/}
+DISTNAME = Net-DNS-Resolver-Programmable-0.009
 CATEGORIES =   net
 
-# perl
+# Perl
 PERMIT_PACKAGE_CDROM = Yes
 
 MODULES =  cpan
 PKG_ARCH = *
-CONFIGURE_STYLE =  modbuild
 
-RUN_DEPENDS =  net/p5-Net-DNS
+RUN_DEPENDS =  net/p5-Net-DNS>=0.69
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/net/p5-Net-DNS-Resolver-Programmable/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo18 Jan 2015 03:14:45 -  1.2
+++ distinfo13 May 2019 14:18:05 -
@@ -1,2 +1,2 @@
-SHA256 (Net-DNS-Resolver-Programmable-v0.003.tar.gz) = 
jUAiYJQfJZyDvxslZECOdSiN8Cj2BBNsKdoRqaagduw=
-SIZE (Net-DNS-Resolver-Programmable-v0.003.tar.gz) = 15974
+SHA256 (Net-DNS-Resolver-Programmable-0.009.tar.gz) = 
gICiq3dmKVhZEa8Reb23xNwr6/1LXv13sR0drGJFS/g=
+SIZE (Net-DNS-Resolver-Programmable-0.009.tar.gz) = 15770
Index: pkg/PLIST
===
RCS file: /cvs/ports/net/p5-Net-DNS-Resolver-Programmable/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 PLIST
--- pkg/PLIST   13 Apr 2015 16:22:50 -  1.2
+++ pkg/PLIST   13 May 2019 14:18:05 -
@@ -1,6 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.2 2015/04/13 16:22:50 sthen Exp $
-${P5SITE}/Net/
-${P5SITE}/Net/DNS/
-${P5SITE}/Net/DNS/Resolver/
 ${P5SITE}/Net/DNS/Resolver/Programmable.pm
 @man man/man3p/Net::DNS::Resolver::Programmable.3p



[NEW] games/nblood

2019-05-13 Thread Solene Rapenne
Hi

I made a port of NBlood engine to play the game "Blood" if you own the
proprietary assets.

nblood is a fork of eduke32 to make blood works, so I reused most of the
games/eduke32 Makefile. nblood is also GPLv2.


nblood.tar.gz
Description: Binary data


wrong dependency list when env vars are used

2019-05-13 Thread Emmanuel Roullit
Hello,

I noticed that environment variables can seep through the dependencies
and provoke erroneous output.

For instance:
---
openbsd-snapshot-65$ PKGNAME=foobar make -C devel/valgrind print-build-depends
This port requires package(s) "foobarp9 foobarp3 foobar foobar foobarp2
foobar foobarp3 foobarp3 gmake-4.2.1p0" to build.
---

The dependency list is wrong because the PKGNAME environment variable
has been passed on the children make targets.

The patch uses SETENV to get children processes to ignore the
environment they inherit in the following targets:
- print-build-depends
- print-all-depends
- print-run-depends
- print-test-depends
- print-package-signature

feedback, ok?

Index: bsd.port.mk
===
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.1462
diff -u -p -u -r1.1462 bsd.port.mk
--- bsd.port.mk 4 Apr 2019 02:28:06 -   1.1462
+++ bsd.port.mk 13 May 2019 10:02:37 -
@@ -1740,7 +1740,7 @@ _parse_spec = \
 
 _compute_default = \
set -f; \
-   if set -- $$(eval $$toset exec ${MAKE} _print-metadata); then \
+   if set -- $$(${SETENV} sh -c "eval $$toset exec ${MAKE} 
_print-metadata"); then \
default=$$1; pkgspec=$$2; pkgpath=$$3; \
else \
echo 1>&2 "Problem with dependency $$d"; \
@@ -3155,7 +3155,7 @@ print-run-depends:
 full-${_i}-depends:
@PKGPATH=${PKGPATH} ${MAKE} 
${_i}-dir-depends|${_sort_dependencies}|while read subdir; do \
${_flavor_fragment}; \
-   eval $$toset ${MAKE} _print-packagename ; \
+   ${SETENV} sh -c "eval $$toset ${MAKE} _print-packagename" ; \
done
 .endfor



Re: p5-Unix-Pledge, this time 0.006

2019-05-13 Thread Stuart Henderson
On 2019/05/01 22:01, cho...@jtan.com wrote:
> ... this time I've got my tar incantation correct.
> 
> Matthew
> 

I've fixed it up slightly; added $OpenBSD$ markers for cvs to write its IDs.
This version is OK sthen@ if somebody would like to import.

Your tar did not include a subdirectory; for future reference please send
tars from the parent directory, e.g. so files in the archive are like this

p5-Unix-Pledge/Makefile
p5-Unix-Pledge/pkg/PLIST
[..]






p5-Unix-Pledge.tgz
Description: application/tar-gz


Re: 回复: [Update] devel/p5-Array-Diff: update to 0.08

2019-05-13 Thread Charlene Wendling
On Mon, 13 May 2019 07:34:54 +
wen heping  wrote:

> This is the new patch for devel/p5-Array-Diff to 0.09
> Build well and passed all tests on amd64-current.
> No other ports depends on it.
> 
> Comment ?

Thanks!

> wen
> 
> 发件人: Andrew Hewus Fresh 
> 发送时间: 2019年5月11日 0:37
> 收件人: wen heping
> 抄送: ports@openbsd.org
> 主题: Re: [Update] devel/p5-Array-Diff: update to 0.08
> 
> On Thu, May 09, 2019 at 07:22:53AM +, wen heping wrote:
> > Hi, ports@:
> >
> >Here is a patch to update devel/p5-Array-Diff to 0.08.
> >It build well and passed all tests on my amd64 current system.
> >No other ports depends on it.
> >
> >Comments? OK?
> 
> 0.09 is out with some improved documentation which is this same patch,
> just slightly different values.
> 
> With that, OK afresh1@

OK cwen@


> >
> > wen
> 
> > Index: Makefile
> > ===
> > RCS file: /cvs/ports/devel/p5-Array-Diff/Makefile,v
> > retrieving revision 1.10
> > diff -u -p -r1.10 Makefile
> > --- Makefile  20 Mar 2016 19:56:13 -  1.10
> > +++ Makefile  9 May 2019 07:19:03 -
> > @@ -4,7 +4,7 @@ COMMENT=   perform diffs on arrays
> >
> >  MODULES= cpan
> >  PKG_ARCH=*
> > -DISTNAME =   Array-Diff-0.07
> > +DISTNAME =   Array-Diff-0.08
> >  PKGNAME =p5-${DISTNAME}000
> >  CATEGORIES=  devel
> >
> > Index: distinfo
> > ===
> > RCS file: /cvs/ports/devel/p5-Array-Diff/distinfo,v
> > retrieving revision 1.2
> > diff -u -p -r1.2 distinfo
> > --- distinfo  1 Dec 2014 13:36:03 -   1.2
> > +++ distinfo  9 May 2019 07:19:03 -
> > @@ -1,2 +1,2 @@
> > -SHA256 (Array-Diff-0.07.tar.gz) =
> > eOfTozdMdOEXtxmPjmZJNnopBlYbikhdOHDyQvqPg0Y= -SIZE
> > (Array-Diff-0.07.tar.gz) = 52126 +SHA256 (Array-Diff-0.08.tar.gz) =
> > HuVeL1rn3ftiO/StXD4FHT0HkCdKtQ/cnH2ijhJfJRs= +SIZE
> > (Array-Diff-0.08.tar.gz) = 11196
> 
> 
> --
> andrew - http://afresh1.com
> 
> The power The nightmares The strange medication



Re: 回复: 回复: [NEW] devel/p5-Ref-Util and devel/p5-Ref-Util-XS (again)

2019-05-13 Thread Charlene Wendling
On Mon, 13 May 2019 08:23:41 +
wen heping  wrote:

> Here is an revised patch, based on suggestions of afresh1@(Thanks !).
> removed PKG_ARCH=*, add TEST_DEPENDS=devel/p5-Readonly.
> 
> OK ? Comments ?
> 
> wen
> 
> 发件人: Andrew Hewus Fresh 
> 发送时间: 2019年5月11日 0:30
> 收件人: wen heping
> 抄送: Charlene Wendling; ports@openbsd.org
> 主题: Re: 回复: [NEW] devel/p5-Ref-Util and devel/p5-Ref-Util-XS
> (again)
> 
> On Thu, May 09, 2019 at 06:36:01AM +, wen heping wrote:
> > Hi,
> >
> > The new patch add openbsd tag in PLIST and add WANTLIB in
> > Makefile.
> >
> > Comments?
> 
> p5-Ref-Util-XS could use TEST_DEPENDS=devel/p5-Readonly, as an XS
> module is not a candidate for PKG_ARCH=* so that needs to be removed,
> and the COMMENT should not start with a capital letter and could
> probably use a space before the open paren.
> 
> For p5-Ref-Util, it also still needs the
> TEST_DEPENDS=devel/p5-Readonly and the COMMENT should not start with
> a capital letter.
> 
> 
> With that, OK afresh1@

p5-Ref-Util-XS builds and pass tests on macppc.
p5-Ref-Util has still inconsistent spacing in *_DEPENDS, but i'm
nitpicking ;) 

OK cwen@

> 
> >
> > wen
> > 
> > 发件人: Charlene Wendling 
> > 发送时间: 2019年5月8日 17:05
> > 收件人: wen heping
> > 抄送: ports@openbsd.org
> > 主题: Re: [NEW] devel/p5-Ref-Util and devel/p5-Ref-Util-XS (again)
> >
> > On Wed, 8 May 2019 00:58:25 +
> > wen heping  wrote:
> >
> > > Hi:
> > >
> > >  Here is a patch for create new port devel/p5-Ref-Util and
> > > devel/p5-Ref-Util-XS , both are needed by the future update of
> > > www/p5-Dancer2. It build and pass all the tests on my amd64
> > > system on OpenBSD-current.
> > >
> > > I submitted it in March, this time I fix some bugs which
> > > pointed by afresh1@.
> >
> > As far as Ref::Util::XS is concerned, it's still the old version
> > you're sending, without Andrew's suggestions:
> >
> > https://marc.info/?l=openbsd-ports&m=155157380201369&w=2
> >
> > Ref::Util would be happier with:
> >
> > TEST_DEPENDS=   devel/p5-Readonly
> >
> > > OK? Comments ?
> > >
> > > Regards,
> > > wen
> >
> > Charlène.
> 
> 
> 
> --
> andrew - http://afresh1.com
> 
> Computer Science: solving today's problems tomorrow.



portcheck: look for libraries if PKG_ARCH=*

2019-05-13 Thread Stuart Henderson
On 2019/05/10 09:30, Andrew Hewus Fresh wrote:
> p5-Ref-Util-XS could use TEST_DEPENDS=devel/p5-Readonly, as an XS module
> is not a candidate for PKG_ARCH=* so that needs to be removed

This teaches portcheck to look for plists containing shared/static
libraries that are marked PKG_ARCH=*. Any comments/ok?


Index: portcheck
===
RCS file: /cvs/ports/infrastructure/bin/portcheck,v
retrieving revision 1.126
diff -u -p -r1.126 portcheck
--- portcheck   16 Nov 2018 10:08:38 -  1.126
+++ portcheck   13 May 2019 11:56:39 -
@@ -851,10 +851,12 @@ sub_checks() {
make "${make_args[@]}" show="$vars" | {
local comment fullpkgname modules pkg_arch
local wantlib perm_pkg_cdrom perm_pkg_ftp
+   local arch_independent=false
read -r comment
read -r fullpkgname
read -r modules
read -r pkg_arch
+   [[ $pkg_arch == "*" ]] && arch_independent=true
read -r wantlib
read -r wantlib_ss
read -r perm_pkg_cdrom
@@ -865,7 +867,7 @@ sub_checks() {
"COMMENT${subpkg%-}, please"
fi
 
-   if [[ $pkg_arch == "*" && -n $wantlib ]]; then
+   if $arch_independent && [[ -n $wantlib ]]; then
if [[ $subpkg != - || -n $wantlib_ss 
]]; then
err "${portref}non-empty 
$wantlib_var for" \
"arch-independent package"
@@ -881,7 +883,8 @@ sub_checks() {
print-plist-with-depends || true) \
&2
 
@@ -943,6 +948,7 @@ check_plist() {
local flavor_list=$1; shift
local subpkg=$1; shift
local modules_list=$1; shift
+   local arch_independent=$1; shift
 
local flavor is_static=false
for flavor in $flavor_list; do
@@ -982,6 +988,7 @@ check_plist() {
 
local qml_found=false qt5_qml_found=false non_qt5_qml_found=false
local qt4_dep=false qt5_dep=false qt5declarative_dep=false
+   local lib_found=false
 
local owner_set=false group_set=false mode_set=false
local readme_seen=false
@@ -1071,6 +1078,7 @@ check_plist() {
;;
lib/qt5/qml/*)
qml_found=true
+   lib_found=true
qt5_qml_found=true
;;
*/qmldir)
@@ -1078,6 +1086,10 @@ check_plist() {
non_qt5_qml_found=true
;;
 
+   *.so|*.a|*.so.*)
+   lib_found=true
+   ;;
+
share/dbus-1/system-services/*)
dbus_suid_dep_needed=true
;;
@@ -1204,6 +1216,9 @@ check_plist() {
$qt5_dep && ! $qt4_dep && $non_qt5_qml_found &&
err "${portref}depends on Qt5 but installs QML files" \
"outside PREFIX/lib/qt5/qml/"
+
+   $lib_found && $arch_independent &&
+   err "${portref}arch-independent package contains library files"
 
# dbus,-suid
if $dbus_suid_dep_needed && ! $dbus_suid_dep && ! $is_dbus_suid; then



Re: update misc/memcached to 1.5.14

2019-05-13 Thread Stuart Henderson
On 2019/05/13 12:23, Stuart Henderson wrote:
> On 2019/05/13 09:02, Giovanni Bechis wrote:
> > On 5/13/19 8:42 AM, David CARLIER wrote:
> > > If you mention testapp executable it does not coredump. No worries if
> > > you wanna keep the no_drop_privileges patch tho.
> > > Regards.
> > > 
> > > On Mon, 13 May 2019 at 07:32, Giovanni Bechis  wrote:
> > >>
> > >> On Sun, May 12, 2019 at 01:08:51PM +0100, David CARLIER wrote:
> > >>> Hi,
> > >>>
> > >>> Here a proposal straight to 1.5.14, removing a patch due to
> > >>> drop_privilege support feature.
> > >>>
> > >> why you removed that patch ? I think in OpenBSD dropping privileges 
> > >> should be
> > >> mandatory.
> > >> Does it pass regression tests (at least the same tests that passes with 
> > >> 1.5.6) ?
> > >> I have a 1.5.12 port on my tree that core dumps during regression tests, 
> > >> I haven't
> > >> checked 1.5.14 yet.
> > >>  Giovanni
> > > 
> > New diff attached, I will commit it in a few days.
> 
> Maybe worth adding --enable-tls (and syncing WANTLIB)?
> 
> OK either way.
> 

Oh actually... hold for a little while, I want to make sure it still builds on 
arm64.



Re: update misc/memcached to 1.5.14

2019-05-13 Thread Stuart Henderson
On 2019/05/13 09:02, Giovanni Bechis wrote:
> On 5/13/19 8:42 AM, David CARLIER wrote:
> > If you mention testapp executable it does not coredump. No worries if
> > you wanna keep the no_drop_privileges patch tho.
> > Regards.
> > 
> > On Mon, 13 May 2019 at 07:32, Giovanni Bechis  wrote:
> >>
> >> On Sun, May 12, 2019 at 01:08:51PM +0100, David CARLIER wrote:
> >>> Hi,
> >>>
> >>> Here a proposal straight to 1.5.14, removing a patch due to
> >>> drop_privilege support feature.
> >>>
> >> why you removed that patch ? I think in OpenBSD dropping privileges should 
> >> be
> >> mandatory.
> >> Does it pass regression tests (at least the same tests that passes with 
> >> 1.5.6) ?
> >> I have a 1.5.12 port on my tree that core dumps during regression tests, I 
> >> haven't
> >> checked 1.5.14 yet.
> >>  Giovanni
> > 
> New diff attached, I will commit it in a few days.

Maybe worth adding --enable-tls (and syncing WANTLIB)?

OK either way.



Re: update misc/memcached to 1.5.14

2019-05-13 Thread Giovanni Bechis
On Sun, May 12, 2019 at 01:08:51PM +0100, David CARLIER wrote:
> Hi,
> 
> Here a proposal straight to 1.5.14, removing a patch due to
> drop_privilege support feature.
> 
why you removed that patch ? I think in OpenBSD dropping privileges should be
mandatory.
Does it pass regression tests (at least the same tests that passes with 1.5.6) ?
I have a 1.5.12 port on my tree that core dumps during regression tests, I 
haven't
checked 1.5.14 yet.
 Giovanni



回复: 回复: [NEW] devel/p5-Ref-Util and devel/p5-Ref-Util-XS (again)

2019-05-13 Thread wen heping
Here is an revised patch, based on suggestions of afresh1@(Thanks !).
removed PKG_ARCH=*, add TEST_DEPENDS=devel/p5-Readonly.

OK ? Comments ?

wen

发件人: Andrew Hewus Fresh 
发送时间: 2019年5月11日 0:30
收件人: wen heping
抄送: Charlene Wendling; ports@openbsd.org
主题: Re: 回复: [NEW] devel/p5-Ref-Util and devel/p5-Ref-Util-XS (again)

On Thu, May 09, 2019 at 06:36:01AM +, wen heping wrote:
> Hi,
>
> The new patch add openbsd tag in PLIST and add WANTLIB in Makefile.
>
> Comments?

p5-Ref-Util-XS could use TEST_DEPENDS=devel/p5-Readonly, as an XS module
is not a candidate for PKG_ARCH=* so that needs to be removed, and the
COMMENT should not start with a capital letter and could probably use a
space before the open paren.

For p5-Ref-Util, it also still needs the TEST_DEPENDS=devel/p5-Readonly
and the COMMENT should not start with a capital letter.


With that, OK afresh1@



>
> wen
> 
> 发件人: Charlene Wendling 
> 发送时间: 2019年5月8日 17:05
> 收件人: wen heping
> 抄送: ports@openbsd.org
> 主题: Re: [NEW] devel/p5-Ref-Util and devel/p5-Ref-Util-XS (again)
>
> On Wed, 8 May 2019 00:58:25 +
> wen heping  wrote:
>
> > Hi:
> >
> >  Here is a patch for create new port devel/p5-Ref-Util and
> > devel/p5-Ref-Util-XS , both are needed by the future update of
> > www/p5-Dancer2. It build and pass all the tests on my amd64 system on
> > OpenBSD-current.
> >
> > I submitted it in March, this time I fix some bugs which pointed
> > by afresh1@.
>
> As far as Ref::Util::XS is concerned, it's still the old version you're
> sending, without Andrew's suggestions:
>
> https://marc.info/?l=openbsd-ports&m=155157380201369&w=2
>
> Ref::Util would be happier with:
>
> TEST_DEPENDS=   devel/p5-Readonly
>
> > OK? Comments ?
> >
> > Regards,
> > wen
>
> Charlène.



--
andrew - http://afresh1.com

Computer Science: solving today's problems tomorrow.


p5-Ref-Util-20190513.tar.gz
Description: p5-Ref-Util-20190513.tar.gz


Re: update misc/memcached to 1.5.14

2019-05-13 Thread Giovanni Bechis
On 5/13/19 8:42 AM, David CARLIER wrote:
> If you mention testapp executable it does not coredump. No worries if
> you wanna keep the no_drop_privileges patch tho.
> Regards.
> 
> On Mon, 13 May 2019 at 07:32, Giovanni Bechis  wrote:
>>
>> On Sun, May 12, 2019 at 01:08:51PM +0100, David CARLIER wrote:
>>> Hi,
>>>
>>> Here a proposal straight to 1.5.14, removing a patch due to
>>> drop_privilege support feature.
>>>
>> why you removed that patch ? I think in OpenBSD dropping privileges should be
>> mandatory.
>> Does it pass regression tests (at least the same tests that passes with 
>> 1.5.6) ?
>> I have a 1.5.12 port on my tree that core dumps during regression tests, I 
>> haven't
>> checked 1.5.14 yet.
>>  Giovanni
> 
New diff attached, I will commit it in a few days.
 Cheers
  Giovanni
Index: Makefile
===
RCS file: /var/cvs/ports/misc/memcached/Makefile,v
retrieving revision 1.45
diff -u -p -r1.45 Makefile
--- Makefile	4 Sep 2018 12:46:16 -	1.45
+++ Makefile	13 May 2019 06:26:23 -
@@ -2,9 +2,8 @@
 
 COMMENT=	distributed memory object caching system
 
-DISTNAME=	memcached-1.5.6
+DISTNAME=	memcached-1.5.14
 CATEGORIES=	misc
-REVISION=	0
 
 HOMEPAGE=	https://www.memcached.org/
 
Index: distinfo
===
RCS file: /var/cvs/ports/misc/memcached/distinfo,v
retrieving revision 1.27
diff -u -p -r1.27 distinfo
--- distinfo	3 Mar 2018 13:39:18 -	1.27
+++ distinfo	13 May 2019 06:26:23 -
@@ -1,2 +1,2 @@
-SHA256 (memcached-1.5.6.tar.gz) = lnXuhZ19gfepUPGQpoEnILJvCCKNNWBE7FF9TVryXwM=
-SIZE (memcached-1.5.6.tar.gz) = 452038
+SHA256 (memcached-1.5.14.tar.gz) = nFvfKaeA+2xvfJ6q7toFg+/fZjGTdYw+MWyWmlEK8qk=
+SIZE (memcached-1.5.14.tar.gz) = 485076
Index: patches/patch-configure
===
RCS file: /var/cvs/ports/misc/memcached/patches/patch-configure,v
retrieving revision 1.12
diff -u -p -r1.12 patch-configure
--- patches/patch-configure	3 Mar 2018 13:39:18 -	1.12
+++ patches/patch-configure	13 May 2019 06:57:11 -
@@ -2,7 +2,7 @@ $OpenBSD: patch-configure,v 1.12 2018/03
 Index: configure
 --- configure.orig
 +++ configure
-@@ -6575,7 +6575,7 @@ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
+@@ -6818,7 +6818,7 @@ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  elif test "$GCC" = "yes"
  then
GCC_VERSION=`$CC -dumpversion`
Index: patches/patch-memcached_c
===
RCS file: /var/cvs/ports/misc/memcached/patches/patch-memcached_c,v
retrieving revision 1.16
diff -u -p -r1.16 patch-memcached_c
--- patches/patch-memcached_c	3 Mar 2018 13:39:18 -	1.16
+++ patches/patch-memcached_c	13 May 2019 06:57:58 -
@@ -1,15 +1,16 @@
-$OpenBSD: patch-memcached_c,v 1.16 2018/03/03 13:39:18 sthen Exp $
+$OpenBSD$
 
 Index: memcached.c
 --- memcached.c.orig
 +++ memcached.c
-@@ -7746,6 +7746,9 @@ int main (int argc, char **argv) {
- /* Drop privileges no longer needed */
- if (settings.drop_privileges) {
- drop_privileges();
-+} else {
-+fprintf(stderr, "no_drop_privileges option unsupported on this operating system.\n");
-+exit(EXIT_FAILURE);
- }
- 
- /* Initialize the uriencode lookup table. */
+@@ -7719,8 +7719,8 @@ int main (int argc, char **argv) {
+ start_lru_maintainer = false;
+ break;
+ case NO_DROP_PRIVILEGES:
+-settings.drop_privileges = false;
+-break;
++		fprintf(stderr, "no_drop_privileges option unsupported on this operating system.\n");
++		return 1;
+ case DROP_PRIVILEGES:
+ settings.drop_privileges = true;
+ break;
Index: pkg/PLIST
===
RCS file: /var/cvs/ports/misc/memcached/pkg/PLIST,v
retrieving revision 1.12
diff -u -p -r1.12 PLIST
--- pkg/PLIST	4 Sep 2018 12:46:16 -	1.12
+++ pkg/PLIST	13 May 2019 06:26:23 -
@@ -1,6 +1,7 @@
 @comment $OpenBSD: PLIST,v 1.12 2018/09/04 12:46:16 espie Exp $
 @newgroup _memcached:637
 @newuser _memcached:637:_memcached:daemon:memcache daemon:/var/empty:/sbin/nologin
+@rcscript ${RCDIR}/memcached
 @bin bin/memcached
 bin/memcached-tool
 include/memcached/
@@ -13,5 +14,5 @@ share/doc/memcached/protocol.txt
 share/doc/memcached/readme.txt
 share/doc/memcached/storage.txt
 share/doc/memcached/threads.txt
+share/doc/memcached/tls.txt
 share/doc/pkg-readmes/${PKGSTEM}
-@rcscript ${RCDIR}/memcached


回复: [Update] devel/p5-Array-Diff: update to 0.08

2019-05-13 Thread wen heping
This is the new patch for devel/p5-Array-Diff to 0.09
Build well and passed all tests on amd64-current.
No other ports depends on it.

Comment ?

wen

发件人: Andrew Hewus Fresh 
发送时间: 2019年5月11日 0:37
收件人: wen heping
抄送: ports@openbsd.org
主题: Re: [Update] devel/p5-Array-Diff: update to 0.08

On Thu, May 09, 2019 at 07:22:53AM +, wen heping wrote:
> Hi, ports@:
>
>Here is a patch to update devel/p5-Array-Diff to 0.08.
>It build well and passed all tests on my amd64 current system.
>No other ports depends on it.
>
>Comments? OK?

0.09 is out with some improved documentation which is this same patch,
just slightly different values.

With that, OK afresh1@

>
> wen

> Index: Makefile
> ===
> RCS file: /cvs/ports/devel/p5-Array-Diff/Makefile,v
> retrieving revision 1.10
> diff -u -p -r1.10 Makefile
> --- Makefile  20 Mar 2016 19:56:13 -  1.10
> +++ Makefile  9 May 2019 07:19:03 -
> @@ -4,7 +4,7 @@ COMMENT=   perform diffs on arrays
>
>  MODULES= cpan
>  PKG_ARCH=*
> -DISTNAME =   Array-Diff-0.07
> +DISTNAME =   Array-Diff-0.08
>  PKGNAME =p5-${DISTNAME}000
>  CATEGORIES=  devel
>
> Index: distinfo
> ===
> RCS file: /cvs/ports/devel/p5-Array-Diff/distinfo,v
> retrieving revision 1.2
> diff -u -p -r1.2 distinfo
> --- distinfo  1 Dec 2014 13:36:03 -   1.2
> +++ distinfo  9 May 2019 07:19:03 -
> @@ -1,2 +1,2 @@
> -SHA256 (Array-Diff-0.07.tar.gz) = 
> eOfTozdMdOEXtxmPjmZJNnopBlYbikhdOHDyQvqPg0Y=
> -SIZE (Array-Diff-0.07.tar.gz) = 52126
> +SHA256 (Array-Diff-0.08.tar.gz) = 
> HuVeL1rn3ftiO/StXD4FHT0HkCdKtQ/cnH2ijhJfJRs=
> +SIZE (Array-Diff-0.08.tar.gz) = 11196


--
andrew - http://afresh1.com

The power The nightmares The strange medication
Index: Makefile
===
RCS file: /cvs/ports/devel/p5-Array-Diff/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile20 Mar 2016 19:56:13 -  1.10
+++ Makefile13 May 2019 07:31:05 -
@@ -4,7 +4,7 @@ COMMENT=perform diffs on arrays
 
 MODULES=   cpan
 PKG_ARCH=  *
-DISTNAME = Array-Diff-0.07
+DISTNAME = Array-Diff-0.09
 PKGNAME =  p5-${DISTNAME}000
 CATEGORIES=devel
 
Index: distinfo
===
RCS file: /cvs/ports/devel/p5-Array-Diff/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo1 Dec 2014 13:36:03 -   1.2
+++ distinfo13 May 2019 07:31:05 -
@@ -1,2 +1,2 @@
-SHA256 (Array-Diff-0.07.tar.gz) = eOfTozdMdOEXtxmPjmZJNnopBlYbikhdOHDyQvqPg0Y=
-SIZE (Array-Diff-0.07.tar.gz) = 52126
+SHA256 (Array-Diff-0.09.tar.gz) = gAY5Lphh50FTfCu8kRbI5CuWLy4H6NZBov9qEcZEUHc=
+SIZE (Array-Diff-0.09.tar.gz) = 11335


Re: security/aircrack-ng on sparc64

2019-05-13 Thread Benoit Lecocq



On 11/05/2019 22:26, Jeremie Courreges-Anglas wrote:


The build fails because  includes another header in
/sys: sparc64/sparc64/intreg.h.

--8<--
/usr/bin/libtool --tag=disable-static  --tag=CC   --mode=compile cc -DPACKAGE_NAME=\"aircrack-ng\" -DPACKAGE_TARNAME=\"aircrack-ng\" 
-DPACKAGE_VERSION=\"1.5.2\" -DPACKAGE_STRING=\"aircrack-ng\ 1.5.2\" -DPACKAGE_BUGREPORT=\"https://forum.aircrack-ng.org\"; 
-DPACKAGE_URL=\"\" -DPACKAGE=\"aircrack-ng\" -DVERSION=\"1.5.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" 
-D_REVISION=\"1.5.2\" -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_PCAP_H=1 -DHAVE_PCAP=1 -DHAVE_PCRE=1 -DHAVE_SQLITE3_H=1 
-DHAVE_SQLITE3=1 -DHAVE_SQLITE=1 -DHAVE_ZLIB=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -D_REENTRANT=1 -DHAVE_POSIX_MEMALIGN=1 -DCACHELINE_SIZE=64 -DCACHELINE_SIZE=64 -I.  -I../.. 
-I../../src/include -I../../src  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2  -Wall -O3 -std=gnu99 -fno-strict-aliasing -Wpointer-arith -Wstrict-overflow=2 
-Wstrict-prototypes -fvisibility=hidden -O2 -pipe -MT libaircrack_osdep_la-openbsd.lo -MD -MP -MF .deps/libaircrack_osdep_la-openbsd.Tpo -c -o libaircrack_osdep_la-openbsd.lo 
`test -f 'openbsd.c' || echo './'`openbsd.c
cc -DPACKAGE_NAME="aircrack-ng" -DPACKAGE_TARNAME="aircrack-ng" -DPACKAGE_VERSION="1.5.2" -DPACKAGE_STRING="aircrack-ng 1.5.2" 
-DPACKAGE_BUGREPORT="https://forum.aircrack-ng.org"; -DPACKAGE_URL="" -DPACKAGE="aircrack-ng" -DVERSION="1.5.2" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -D_REVISION="1.5.2" -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_PCAP_H=1 
-DHAVE_PCAP=1 -DHAVE_PCRE=1 -DHAVE_SQLITE3_H=1 -DHAVE_SQLITE3=1 -DHAVE_SQLITE=1 -DHAVE_ZLIB=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -D_REENTRANT=1 -DHAVE_POSIX_MEMALIGN=1 
-DCACHELINE_SIZE=64 -DCACHELINE_SIZE=64 -I. -I../.. -I../../src/include -I../../src -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2 -Wall -O3 -std=gnu99 
-fno-strict-aliasing -Wpointer-arith -Wstrict-overflow=2 -Wstrict-prototypes -fvisibility=hidden -O2 -pipe -MT libaircrack_osdep_la-openbsd.lo -MD -MP -MF 
.deps/libaircrack_osdep_la-openbsd.Tpo -c openbsd.c -fPIC -DPIC -o .libs/libaircrack_osdep_la-openbsd.o
In file included from openbsd.c:37:
/usr/include/net80211/ieee80211_crypto.h:111: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_crypto.h:111: warning: its scope is only this 
definition or declaration, which is probably not what you want
/usr/include/net80211/ieee80211_crypto.h:112: warning: 'struct ifnet' declared 
inside parameter list
In file included from openbsd.c:40:
/usr/include/machine/intr.h:36:36: error: sparc64/sparc64/intreg.h: No such 
file or directory
In file included from openbsd.c:40:
/usr/include/machine/intr.h:64: error: 'MAXINTNUM' undeclared here (not in a 
function)
In file included from openbsd.c:42:
/usr/include/net80211/ieee80211_node.h: In function 'ieee80211_node_incref':
/usr/include/net80211/ieee80211_node.h:398: warning: implicit declaration of 
function '_splraise'
/usr/include/net80211/ieee80211_node.h:398: error: 'PIL_NET' undeclared (first 
use in this function)
/usr/include/net80211/ieee80211_node.h:398: error: (Each undeclared identifier 
is reported only once
/usr/include/net80211/ieee80211_node.h:398: error: for each function it appears 
in.)
/usr/include/net80211/ieee80211_node.h:400: warning: implicit declaration of 
function '_splx'
/usr/include/net80211/ieee80211_node.h: In function 'ieee80211_node_decref':
/usr/include/net80211/ieee80211_node.h:409: error: 'PIL_NET' undeclared (first 
use in this function)
/usr/include/net80211/ieee80211_node.h: At top level:
/usr/include/net80211/ieee80211_node.h:461: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:462: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:463: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:465: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:466: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:467: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:468: warning: 'struct ifnet' declared 
inside parameter list
In file included from openbsd.c:45:
/usr/include/net80211/ieee80211_proto.h:60: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_proto.h:61: warning: 'struct ifnet' declared 
inside paramete