NetBSD Problem Report #36766
From yx@solo.x.ua Fri Aug 10 15:45:09 2007
Return-Path: <yx@solo.x.ua>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 0B26F63BAB3
for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Aug 2007 15:45:09 +0000 (UTC)
Message-Id: <200708101544.l7AFixIC064522@solo.x.ua>
Date: Fri, 10 Aug 2007 18:44:59 +0300 (EEST)
From: Yakovetsky Vladimir <yx@x.ua>
Reply-To: yx@x.ua
To: jdolecek@NetBSD.org
Cc: gnats-bugs@NetBSD.org
Subject: net/php-xmlrpc fails to build on freebsd
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:
>Number: 36766
>Category: pkg
>Synopsis: net/php-xmlrpc: fails to build on freebsd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 10 15:50:00 +0000 2007
>Closed-Date: Fri Aug 10 16:41:51 +0000 2007
>Last-Modified: Fri Aug 10 16:45:01 +0000 2007
>Originator: Yakovetsky Vladimir
>Release:
>Organization:
>Environment:
System: FreeBSD solo.x.ua 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #0: Thu Jul 12 18:36:30 EEST 2007 yx@solo.x.ua:/usr/obj/usr/src/sys/solo i386
>Description:
net/php-xmlrpc fails to build on freebsd
(php4 and php5 both affected).
>How-To-Repeat:
% uname -sr
FreeBSD 6.2-RELEASE-p6
% cd /usr/pkgsrc/net/php-xmlrpc
% bmake
...
checking iconv dir for XMLRPC-EPI... shared,/usr/pkg
configure: error: Please specify the install prefix of iconv with --with-iconv=<DIR>
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/net/php-xmlrpc
*** Error code 1
>Fix:
--- net/php-xmlrpc/Makefile.orig
+++ net/php-xmlrpc/Makefile
@@ -33,7 +33,11 @@
.if !empty(USE_BUILTIN.iconv:M[nN][oO]) || \
!empty(BUILTIN_LIB_FOUND.iconv:M[yY][eE][sS])
+. if ${OPSYS} != "FreeBSD"
CONFIGURE_ARGS+= --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
+. else
+CONFIGURE_ARGS+= --with-iconv-dir=${BUILDLINK_PREFIX.iconv}
+. endif
.else
CONFIGURE_ARGS+= --with-iconv-dir
.endif
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: Yakovetsky Vladimir <yx@x.ua>
Subject: Re: pkg/36766: net/php-xmlrpc fails to build on freebsd
Date: Fri, 10 Aug 2007 17:57:27 +0200
--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Fri, Aug 10, 2007 at 03:50:00PM +0000, Yakovetsky Vladimir wrote:
> >Fix:
> --- net/php-xmlrpc/Makefile.orig
> +++ net/php-xmlrpc/Makefile
> @@ -33,7 +33,11 @@
>
> .if !empty(USE_BUILTIN.iconv:M[nN][oO]) || \
> !empty(BUILTIN_LIB_FOUND.iconv:M[yY][eE][sS])
> +. if ${OPSYS} != "FreeBSD"
> CONFIGURE_ARGS+= --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
> +. else
> +CONFIGURE_ARGS+= --with-iconv-dir=${BUILDLINK_PREFIX.iconv}
> +. endif
> .else
> CONFIGURE_ARGS+= --with-iconv-dir
> .endif
Hm. I don't like this conditionals. Does the attached version work for
you?
Joerg
--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Makefile.diff"
Index: Makefile
===================================================================
RCS file: /home/joerg/repo/netbsd/pkgsrc/net/php-xmlrpc/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile 22 Feb 2007 19:26:57 -0000 1.8
+++ Makefile 10 Aug 2007 15:56:27 -0000
@@ -31,9 +31,8 @@
.include "../../converters/libiconv/builtin.mk"
CHECK_BUILTIN.iconv:= no
-.if !empty(USE_BUILTIN.iconv:M[nN][oO]) || \
- !empty(BUILTIN_LIB_FOUND.iconv:M[yY][eE][sS])
-CONFIGURE_ARGS+= --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
+.if !empty(USE_BUILTIN.iconv:M[nN][oO])
+CONFIGURE_ARGS+= --with-iconv-dir=${BUILDLINK_PREFIX.iconv}
.else
CONFIGURE_ARGS+= --with-iconv-dir
.endif
--VbJkn9YxBvnuCH5J--
From: Yakovetsky Vladimir <yx@x.ua>
To: Joerg Sonnenberger <joerg@britannica.bec.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36766: net/php-xmlrpc fails to build on freebsd
Date: Fri, 10 Aug 2007 19:08:43 +0300
On Fri, Aug 10, 2007 at 05:57:27PM +0200, Joerg Sonnenberger wrote:
> On Fri, Aug 10, 2007 at 03:50:00PM +0000, Yakovetsky Vladimir wrote:
>> .if !empty(USE_BUILTIN.iconv:M[nN][oO]) || \
>> !empty(BUILTIN_LIB_FOUND.iconv:M[yY][eE][sS])
>> +. if ${OPSYS} != "FreeBSD"
>> CONFIGURE_ARGS+= --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
>> +. else
>> +CONFIGURE_ARGS+= --with-iconv-dir=${BUILDLINK_PREFIX.iconv}
>> +. endif
>
> Hm. I don't like this conditionals. Does the attached version work for
> you?
>
> -.if !empty(USE_BUILTIN.iconv:M[nN][oO]) || \
> - !empty(BUILTIN_LIB_FOUND.iconv:M[yY][eE][sS])
> -CONFIGURE_ARGS+= --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
> +.if !empty(USE_BUILTIN.iconv:M[nN][oO])
> +CONFIGURE_ARGS+= --with-iconv-dir=${BUILDLINK_PREFIX.iconv}
It works too.
--
Yakovetsky Vladimir
State-Changed-From-To: open->closed
State-Changed-By: joerg@netbsd.org
State-Changed-When: Fri, 10 Aug 2007 16:41:51 +0000
State-Changed-Why:
Committed. Thanks.
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36766 CVS commit: pkgsrc/net/php-xmlrpc
Date: Fri, 10 Aug 2007 16:41:51 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Fri Aug 10 16:41:51 UTC 2007
Modified Files:
pkgsrc/net/php-xmlrpc: Makefile
Log Message:
Cleanup conditional for systems without native iconv.
Based on patch from Yakovetsky Vladimir in PR 36766.
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 pkgsrc/net/php-xmlrpc/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.