Trouble with MODULES=devel/gettext

2010-12-06 Thread David Cantrell

On ports that have:

MODULES = devel/gettext

in the Makefile, I am consistently getting these errors when trying to 
build:


===  Verifying specs: c intl=5 iconv=6 c intl=5 iconv=6
Missing library for intl=5.=0.0
Missing library for iconv=6.=0.0
Fatal error

I have searched documentation and read through bsd.port.mk and 
resolve-lib in /usr/ports/infrastructure, but I cannot determine what is 
happening.


Any pointers people can provide, I'd appreciate it.

Thanks,

--
David Cantrell | KB1PCX
http://www.burdell.org/



Re: Trouble with MODULES=devel/gettext

2010-12-06 Thread Stuart Henderson
On 2010/12/06 14:24, David Cantrell wrote:
 On ports that have:
 
   MODULES = devel/gettext
 
 in the Makefile, I am consistently getting these errors when trying
 to build:
 
 ===  Verifying specs: c intl=5 iconv=6 c intl=5 iconv=6
 Missing library for intl=5.=0.0
 Missing library for iconv=6.=0.0
 Fatal error
 
 I have searched documentation and read through bsd.port.mk and
 resolve-lib in /usr/ports/infrastructure, but I cannot determine what
 is happening.
 
 Any pointers people can provide, I'd appreciate it.

Make sure that all of base and /usr/ports are up to date.



Re: Trouble with MODULES=devel/gettext

2010-12-06 Thread David Cantrell

On 12/06/2010 04:05 PM, Stuart Henderson wrote:

On 2010/12/06 14:24, David Cantrell wrote:

On ports that have:

MODULES = devel/gettext

in the Makefile, I am consistently getting these errors when trying
to build:

===   Verifying specs: c intl=5 iconv=6 c intl=5 iconv=6
Missing library for intl=5.=0.0
Missing library for iconv=6.=0.0
Fatal error

I have searched documentation and read through bsd.port.mk and
resolve-lib in /usr/ports/infrastructure, but I cannot determine what
is happening.

Any pointers people can provide, I'd appreciate it.


Make sure that all of base and /usr/ports are up to date.



I was overlooking base, thanks.  The change I needed was in 
/usr/libdata/perl5/OpenBSD/LibSpec/Build.pm.  Specifically:


@@ -102,7 +102,7 @@
 sub to_string
 {
my $self = shift;
-   return join('.', $self-key, =.$self-major, $self-minor);
+   return $self-key.=.$self-major...$self-minor;

 }

@@ -115,9 +115,9 @@
my ($class, $string) = @_;

$string =~ s/\.$//;
-   if (my ($stem, $strict, $major, $minor) = $string =~ 
m/^(.*)\.(\?)\=(\d+)\.(\d+)$/o) {
+   if (my ($stem, $strict, $major, $minor) = $string =~ 
m/^(.*?)(\?)\=(\d+)\.(\d+)$/o) {

return $class-new_object($stem, $strict, $major, $minor);
-   } elsif (($stem, $strict, $major) = $string =~ 
m/^(.*)\.(\?)\=(\d+)$/o) {
+   } elsif (($stem, $strict, $major) = $string =~ 
m/^(.*?)(\?)\=(\d+)$/o) {

return $class-new_object($stem, $strict, $major, 0);
} else {
return $class-new_object($string, '', 0, 0);

--
David Cantrell | KB1PCX
http://www.burdell.org/