Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 2014 07:23:42 GMT
From:      Frederic Culot <culot@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/187387: misc/ossp-uuid: broken Perl binding
Message-ID:  <201403090723.s297NgPu097663@freefall.freebsd.org>
Resent-Message-ID: <201403090730.s297U03s099945@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187387
>Category:       ports
>Synopsis:       misc/ossp-uuid: broken Perl binding
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 09 07:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Frederic Culot
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
FreeBSD
>Environment:
System: FreeBSD freefall.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r262685: Sun Mar 2 11:35:38 UTC 2014 peter@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64
>Description:
Hi,

ossp-uuid's Perl binding is broken currently. The patch below was kindly provided by az@ and fixes the issue.
Could you please update this port using the provided patch so that the Perl module would build again?

Many thanks!

PS: do you happen to remember why the library was renamed from libuuid.la to libuuid.a in the first place?
>How-To-Repeat:
cd misc/ossp-uuid && make WITH_PERL=1 install
>Fix:

Index: misc/ossp-uuid/Makefile
===================================================================
--- misc/ossp-uuid/Makefile	(revision 347530)
+++ misc/ossp-uuid/Makefile	(working copy)
@@ -3,7 +3,7 @@
 
 PORTNAME=	uuid
 PORTVERSION=	1.6.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	misc devel
 MASTER_SITES=	${MASTER_SITE_OSSP}
 MASTER_SITE_SUBDIR=	lib/${PORTNAME}
@@ -20,14 +20,15 @@
 		--includedir=${PREFIX}/include/ossp
 
 .if defined(WITH_PERL)
+MAKE_JOBS_UNSAFE=	yes
 USES+=		perl5
 CONFIGURE_ENV+=	PERL=${PERL5}
 CONFIGURE_ARGS+=	--with-perl
-PLIST_SUB+=	WITH_PERL=''
+PLIST_SUB+=	WITH_PERL=""
 MAN3=		OSSP::uuid.3
 MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VER}
 .else
-PLIST_SUB+=	WITH_PERL='@comment '
+PLIST_SUB+=	WITH_PERL="@comment "
 .endif
 
 .include <bsd.port.pre.mk>
Index: misc/ossp-uuid/files/patch-perl__Makefile.PL
===================================================================
--- misc/ossp-uuid/files/patch-perl__Makefile.PL	(revision 0)
+++ misc/ossp-uuid/files/patch-perl__Makefile.PL	(working copy)
@@ -0,0 +1,15 @@
+--- ./perl/Makefile.PL.orig	2014-03-09 09:35:38.194191962 +0400
++++ ./perl/Makefile.PL	2014-03-09 09:35:56.845209501 +0400
+@@ -33,9 +33,9 @@
+ use ExtUtils::MakeMaker;
+ 
+ #   determine source directory
+-my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.la$//; $d }
+-               grep { -f $_ } ("../libuuid.la", glob("../*/libuuid.la"))
+-    or die "no source directory found (where libuuid.la is located)";
++my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.a$//; $d }
++               grep { -f $_ } ("../libuuid.a", glob("../*/libuuid.a"))
++    or die "no source directory found (where libuuid.a is located)";
+ 
+ #   determine extra build options
+ my $compat = 0;
Index: misc/ossp-uuid/pkg-plist
===================================================================
--- misc/ossp-uuid/pkg-plist	(revision 347530)
+++ misc/ossp-uuid/pkg-plist	(working copy)
@@ -6,6 +6,11 @@
 lib/libuuid++.a
 lib/libuuid++.la
 libdata/pkgconfig/uuid.pc
+man/man1/uuid-config.1.gz
+man/man1/uuid.1.gz
+man/man3/uuid.3.gz
+man/man3/uuid++.3.gz
+%%WITH_PERL%%%%PERL5_MAN3%%/OSSP::uuid.3.gz
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/OSSP/uuid.pm
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/OSSP/uuid.pod
 %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/OSSP/uuid/.packlist

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403090723.s297NgPu097663>