NetBSD Problem Report #55508
From www@netbsd.org Tue Jul 21 14:54:45 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 79A7A1A9213
for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Jul 2020 14:54:45 +0000 (UTC)
Message-Id: <20200721145444.8EF4B1A9217@mollari.NetBSD.org>
Date: Tue, 21 Jul 2020 14:54:44 +0000 (UTC)
From: osa@FreeBSD.org
Reply-To: osa@FreeBSD.org
To: gnats-bugs@NetBSD.org
Subject: lang/php56: install shared library
X-Send-Pr-Version: www-1.0
>Number: 55508
>Category: pkg
>Synopsis: lang/php56: install shared library
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jul 21 14:55:00 +0000 2020
>Closed-Date: Sat Aug 01 09:53:20 +0000 2020
>Last-Modified: Fri Nov 20 15:55:01 +0000 2020
>Originator: Sergey Osokin
>Release: NetBSD 9.0
>Organization:
>Environment:
NetBSD netbsd 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Hi there,
I'm going to port an application to NetBSD, and that requires a php shared library installed. The lang/php56 doesn't build/install the libphp5.so now.
>How-To-Repeat:
cd /usr/pkgsrc/lang/php56 && make install
>Fix:
To fix the issue, apply the patch.
>Release-Note:
>Audit-Trail:
From: "Sergey A. Osokin" <osa@freebsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55508: lang/php56: install shared library
Date: Tue, 21 Jul 2020 14:57:54 +0000
--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
On Tue, Jul 21, 2020 at 02:55:00PM +0000, gnats-admin@netbsd.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `pkg/55508'.
> The individual assigned to look at your
> report is: pkg-manager.
>
> >Category: pkg
> >Responsible: pkg-manager
> >Synopsis: lang/php56: install shared library
> >Arrival-Date: Tue Jul 21 14:55:00 +0000 2020
>
Here is the patch.
--
Sergey
--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=koi8-r
Content-Disposition: attachment; filename="patch-php56.txt"
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/php56/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile 2 Jun 2020 08:22:46 -0000 1.25
+++ Makefile 21 Jul 2020 14:48:56 -0000
@@ -4,7 +4,7 @@
# We can't omit PKGNAME here to handle PKG_OPTIONS.
#
PKGNAME= php-${PHP_VERSION}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= lang
HOMEPAGE= https://www.php.net/
@@ -56,5 +56,8 @@
cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR}${PREFIX}/share/php
+ ${MKDIR} ${DESTDIR}${PREFIX}/include/php/sapi/embed
+ ${INSTALL_DATA} ${WRKSRC}/sapi/embed/php_embed.h ${DESTDIR}${PREFIX}/include/php/sapi/embed/
+ ${INSTALL_LIB} ${WRKSRC}/libs/libphp5.so ${DESTDIR}${PREFIX}/lib/
.include "../../mk/bsd.pkg.mk"
Index: Makefile.php
===================================================================
RCS file: /cvsroot/pkgsrc/lang/php56/Makefile.php,v
retrieving revision 1.7
diff -u -r1.7 Makefile.php
--- Makefile.php 31 Mar 2019 20:48:18 -0000 1.7
+++ Makefile.php 21 Jul 2020 14:48:56 -0000
@@ -37,6 +37,7 @@
CONFIGURE_ARGS+= --disable-json
CONFIGURE_ARGS+= --enable-cgi
+CONFIGURE_ARGS+= --enable-embed
CONFIGURE_ARGS+= --enable-mysqlnd
CONFIGURE_ARGS+= --enable-xml
CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/lang/php56/PLIST,v
retrieving revision 1.3
diff -u -r1.3 PLIST
--- PLIST 5 Apr 2017 12:28:59 -0000 1.3
+++ PLIST 21 Jul 2020 14:48:56 -0000
@@ -241,6 +241,8 @@
include/php/main/win32_internal_function_disabled.h
include/php/main/win95nt.h
include/php/sapi/cli/cli.h
+include/php/sapi/embed/php_embed.h
+lib/libphp5.so
lib/php/build/Makefile.global
lib/php/build/acinclude.m4
lib/php/build/config.guess
--yrj/dFKFPuw6o+aM--
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 01 Aug 2020 09:53:20 +0000
State-Changed-Why:
Fixed by adding a 'php-embed' option to the package. Thanks for the submission!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55508 CVS commit: pkgsrc/lang/php56
Date: Sat, 1 Aug 2020 09:52:52 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Sat Aug 1 09:52:51 UTC 2020
Modified Files:
pkgsrc/lang/php56: Makefile.php PLIST
Added Files:
pkgsrc/lang/php56: options.mk
Log Message:
php56: add default-off php-embed option to install embed SAPI
Requested by Sergey Osokin in PR 55508.
While here, split off option handling into options.mk.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/php56/Makefile.php
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/php56/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/php56/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Sergey A. Osokin" <osa@freebsd.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: PR/55508 CVS commit: pkgsrc/lang/php56
Date: Tue, 4 Aug 2020 18:22:01 +0000
Thanks very much for the update!
Is there any chance to merge the update to other lang/php* distributions?
Please let me know if I need to submit a patch or raise a request.
Thanks.
--
Sergey
On Sat, Aug 01, 2020 at 09:55:02AM +0000, Thomas Klausner wrote:
> The following reply was made to PR pkg/55508; it has been noted by GNATS.
>
> From: "Thomas Klausner" <wiz@netbsd.org>
> To: gnats-bugs@gnats.NetBSD.org
> Cc:
> Subject: PR/55508 CVS commit: pkgsrc/lang/php56
> Date: Sat, 1 Aug 2020 09:52:52 +0000
>
> Module Name: pkgsrc
> Committed By: wiz
> Date: Sat Aug 1 09:52:51 UTC 2020
>
> Modified Files:
> pkgsrc/lang/php56: Makefile.php PLIST
> Added Files:
> pkgsrc/lang/php56: options.mk
>
> Log Message:
> php56: add default-off php-embed option to install embed SAPI
>
> Requested by Sergey Osokin in PR 55508.
>
> While here, split off option handling into options.mk.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/php56/Makefile.php
> cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/php56/PLIST
> cvs rdiff -u -r0 -r1.1 pkgsrc/lang/php56/options.mk
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
From: "Juraj Lutter" <otis@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55508 CVS commit: pkgsrc/lang/php74
Date: Fri, 20 Nov 2020 15:13:31 +0000
Module Name: pkgsrc
Committed By: otis
Date: Fri Nov 20 15:13:31 UTC 2020
Modified Files:
pkgsrc/lang/php74: Makefile Makefile.php PLIST
Log Message:
php74: add default-off php-embed option to install embed SAPI
Requested by Sergey Osokin in PR 55508.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/php74/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/php74/Makefile.php \
pkgsrc/lang/php74/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Juraj Lutter" <otis@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55508 CVS commit: pkgsrc/lang/php73
Date: Fri, 20 Nov 2020 15:34:11 +0000
Module Name: pkgsrc
Committed By: otis
Date: Fri Nov 20 15:34:11 UTC 2020
Modified Files:
pkgsrc/lang/php73: Makefile Makefile.php PLIST
Log Message:
php73: add default-off php-embed option to install embed SAPI
Requested by Sergey Osokin in PR 55508.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/php73/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/php73/Makefile.php
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/php73/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Juraj Lutter" <otis@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55508 CVS commit: pkgsrc/lang/php72
Date: Fri, 20 Nov 2020 15:51:25 +0000
Module Name: pkgsrc
Committed By: otis
Date: Fri Nov 20 15:51:25 UTC 2020
Modified Files:
pkgsrc/lang/php72: Makefile Makefile.php PLIST
Log Message:
php72: add default-off php-embed option to install embed SAPI
Requested by Sergey Osokin in PR 55508.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/lang/php72/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/php72/Makefile.php
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/php72/PLIST
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.