X-Original-To: alpine-aports@lists.alpinelinux.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-oln040092069016.outbound.protection.outlook.com [40.92.69.16]) by lists.alpinelinux.org (Postfix) with ESMTP id 9B45DF84E0E for ; Wed, 6 Feb 2019 16:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SRDG4n7vQ922o/VUyYkZEMnxdMXfEIBvV152LgNdK5k=; b=ZAgmIfC2VEUyeSIoWctWkr35imCTVhTSiY96JsOmsFQAPd84IotAW2jmkYQxKJRKqCDJYCzkT8vgt32IkAEItJZ2FT6ZxcCoj2h3T46hhNCESuoFyxQAE+gk/C5MHEsaqMzy4lonlQdFXsMXhDbq/qxXZrGgESlmsF4dLppHHAqZO5ZN3bIBXTQtKyU4KJejr6e1uh0kzcYTWPs1fu80Cb2FccSWY5PBjKToQRaMJqFCeY5NxBDe5DxCbSNVNVoLsunX6LEsudw6yNpo9JTeoe8o3wIXeNbBeizQGhjCD7ZoqvnimBSlpEOA3VDTZ+UEyg8uWGLcgTnQ0yapW1mzgw== Received: from VE1EUR02FT049.eop-EUR02.prod.protection.outlook.com (10.152.12.56) by VE1EUR02HT231.eop-EUR02.prod.protection.outlook.com (10.152.12.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10; Wed, 6 Feb 2019 16:35:01 +0000 Received: from VI1PR0602MB3245.eurprd06.prod.outlook.com (10.152.12.58) by VE1EUR02FT049.mail.protection.outlook.com (10.152.12.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10 via Frontend Transport; Wed, 6 Feb 2019 16:35:01 +0000 Received: from VI1PR0602MB3245.eurprd06.prod.outlook.com ([fe80::158c:76c2:a615:1be4]) by VI1PR0602MB3245.eurprd06.prod.outlook.com ([fe80::158c:76c2:a615:1be4%3]) with mapi id 15.20.1601.016; Wed, 6 Feb 2019 16:35:01 +0000 From: =?iso-8859-1?Q?Fernando_Casas_Sch=F6ssow?= To: "alpine-aports@lists.alpinelinux.org" CC: =?iso-8859-1?Q?Fernando_Casas_Sch=F6ssow?= Subject: [alpine-aports] [PATCH] testing/php7-libvirt-php: new aport Thread-Topic: [PATCH] testing/php7-libvirt-php: new aport Thread-Index: AQHUvjnnjuZscT6WvEqjP67rE16dNw== Date: Wed, 6 Feb 2019 16:35:01 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LNXP265CA0035.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::23) To VI1PR0602MB3245.eurprd06.prod.outlook.com (2603:10a6:802:7::11) x-incomingtopheadermarker: OriginalChecksum:D1414D0AAEEA479E57213FF8C482AE9574F2A808130489A2D7D34E0784B49958;UpperCasedChecksum:5AE4E03F3ED6AD23DBA276A0483AC17CAC52D806FB0C5094A66198484793AD37;SizeAsReceived:8508;Count:63 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-tmn: [t4/AhovYVbL/OR/e7NAW0skVJnSU1re7] x-microsoft-original-message-id: <20190206163328.2637-1-casasfernando@outlook.com> x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VE1EUR02HT231;6:mru2R9sO9W0X2Fv4eixipxIfUaGhVJ04Jn6yv9rVeUpIE4sPQrzOSNgpw2Dy/GPHKr0zxP4IrE8a1PhnuN0KusOxeQna64CGmYE+HLentUylfNHXyY/vYVNh9qVHYwYeQIJ80AtgSeTieyfvZ/sKJUfElEkFnLxhy6lKPCN2OC9BmESqY4+8nPGs1xw4poiJSIJKxHI86S5b85GrNmKJJc8lH6qS0j1yx7bLd00avBWnOSYTSX1WauGQ0hOYGc4pP8Xqq1iFmOIsmEkV3d6Nt6oGaF9cedk9MOtJl2eNyDhMXcVXtwsxg5PDyVhQT38MU3UbdeQxTdUuL0egiGPlwUa7Bx9197szlnPjhc/oMZjTqlcvZWd7QZGW7fPgJMZgDWScZh1ANLDpMztm0nKjruAbnDmNzBPA9/2kh/mm3k0HUy8iFnbfXZlrFLn6iAm5qwd4+QkJtPp8kY4U9fO/QA==;5:EQeMcJe1jebCPwV1m9Yte6RyF+4VkkzXwHWBcoIFtiPp2wX+oVCQ03QfpNO3Ah7NFhJACbL9kleent6+QpD11qoqASwy2vfX3mon72CJ3tv9vpgQnf+pfr89ghuIezInXr64VrvE5/+iQOQrQl+sG6h0IXKmDs9eAYt7ikaK9cklxqOPraN+wJlxTBGbI/Kj6iyx8m5kSZNjxTpu6ROmmw==;7:6lfmtNJHyf3KK/9zwI5OKnaT2mG7g7eh5zAHc+5gyUUMPQsyoH93JZpPicXTKXQcYP8Noq7IhWRI8UhitU2UTQgFnycWKGriPxm3e/s2K4u+KEHRZkmm3fd4u9OwcWZDSFX5EbTgOnbVN2QjV79acg== x-incomingheadercount: 63 x-eopattributedmessage: 0 x-ms-exchange-slblob-mailprops: =?iso-8859-1?Q?2qjZ0jFMB7pK2bFe5a2rVlploVP1j0f2lvIuo5+RITTFVkiNv+jRdOUofu?= =?iso-8859-1?Q?9FQ60dbiTzIShwCyfRwNblnEUFZjNn0S3NNn0T2/IQjbss2AysKQu859Nv?= =?iso-8859-1?Q?OvLDhFCQetiYiebd1ztASHWRUfEBiqFrY9iR+JoMAPascirxHjHItltofs?= =?iso-8859-1?Q?GIRTxbLUfe0rMIXu50yZo5SYMuliBQIqh5hhv5DCnGUxW2h0Tsi1+twTH7?= =?iso-8859-1?Q?GviQnu1Qm3F7Cg9G1OjSUYVVkMoyOCUXdZsL/6RN968msUURbrcUYwUxnv?= =?iso-8859-1?Q?uL8CisPBfARQfnAC8cXeFQ0DUM2rxPnkYATBcpW4d7KpxT/z8hHSFJ/5BH?= =?iso-8859-1?Q?sRM3kDcbLBbtlW0/9zfX2v8fh0cV/vgsaSDAupR63a4M4u80Qig2ZhpFDL?= =?iso-8859-1?Q?pKGIbheUsIbMo4u4I60Md4+7PlrPRrMpy7z6f7d1GTVIJcAyoTxFjQPVTS?= =?iso-8859-1?Q?96A1PNHjW/hYzwPg84c/94CXd3CUoT+y5OJND9kza4mKpIezZ4eRELbxeA?= =?iso-8859-1?Q?yF1kYMYC2Ean8wVBRIfDxkB1RrEn7B+09Ns98Ubiqwyxb+DCAoOXTgona1?= =?iso-8859-1?Q?7imE6zxd+uNhWANZXkUiSE44BCuP/LYeq3gbxMNd56RRzYzTgGQpBaNh9h?= =?iso-8859-1?Q?BDzMNWKbzlm+DvxQj/lIqSltInPXsHB9ZOlwApCLUX20AArkyNjEn+k+Vd?= =?iso-8859-1?Q?suEDCM3MH/xySg+NS+/nEvytzfENA/Mi6dpK2o0gZysRY/yASdliaHO4UU?= =?iso-8859-1?Q?DSCWExQ+O1fzc3iWUwhBcJGq8eAaUs/aBf7SRxjA6nMNx0qtUR8+Iwjc/s?= =?iso-8859-1?Q?ZlhK1EelExXBiQQvQpchEcDV3WBDTp3+pOMaXNL6gDx2FvSX3egNPptBgD?= =?iso-8859-1?Q?v7rVBbOMVA13QG1h+YQHtHWe7XEj/k6rncs/sxacPgcOa7Mf6BQsgwdifR?= =?iso-8859-1?Q?mqt9+sHI0jehd3ia50tMGlMz+6sUItmzA3W1/irmcayIf+f8haZUafOO51?= =?iso-8859-1?Q?WR83CuSXdCD4tZy0ohKNrycY3EMHIFPhQOdCny?= x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(201702181274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:VE1EUR02HT231; x-ms-traffictypediagnostic: VE1EUR02HT231: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:VE1EUR02HT231;BCL:0;PCL:0;RULEID:;SRVR:VE1EUR02HT231; x-microsoft-antispam-message-info: bnttqLkmnQvNCI4M4eTwhDKkgP2MhRwCuWm0ugbzIza4UR5HlaUW2jprmaQOcfjj Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: c001924d-3e68-4f40-89c2-901a49278da7 X-MS-Exchange-CrossTenant-Network-Message-Id: 0c926073-c722-4003-0793-08d68c5109e5 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: c001924d-3e68-4f40-89c2-901a49278da7 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2019 16:35:00.3586 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT231 https://libvirt.org/php/ PHP language bindings for Libvirt API. For more details see: http://www.lib= virt.org/php/ --- testing/php7-libvirt-php/APKBUILD | 36 +++++++++++++++++++++++ testing/php7-libvirt-php/musl-fixes.patch | 16 ++++++++++ 2 files changed, 52 insertions(+) create mode 100644 testing/php7-libvirt-php/APKBUILD create mode 100644 testing/php7-libvirt-php/musl-fixes.patch diff --git a/testing/php7-libvirt-php/APKBUILD b/testing/php7-libvirt-php/A= PKBUILD new file mode 100644 index 0000000000..d9858a395b --- /dev/null +++ b/testing/php7-libvirt-php/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Fernando Casas Schossow +# Maintainer: Fernando Casas Schossow +pkgname=3Dphp7-libvirt-php +pkgver=3D0.5.4 +pkgrel=3D0 +pkgdesc=3D"PHP language bindings for Libvirt API. For more details see: ht= tp://www.libvirt.org/php/" +url=3D"https://libvirt.org/php/" +arch=3D"all" +license=3D"LGPL-2.1" +makedepends=3D"autoconf libvirt-dev libxml2-dev libxml2-utils libxslt php7= -dev php7-pecl-imagick libtool linux-headers" +subpackages=3D"$pkgname-doc" +source=3D"http://libvirt.org/sources/php/libvirt-php-$pkgver.tar.gz + musl-fixes.patch" +builddir=3D"$srcdir/libvirt-php-$pkgver" + +build() { + cd "$builddir" + autoconf + ./configure --prefix=3D/usr + make +} + +check() { + cd "$builddir" + php7 --no-php-ini --define extension=3Dsrc/.libs/libvirt-php.so --modules= | grep libvirt +} + +package() { + cd "$builddir" + make DESTDIR=3D"$pkgdir" install + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + rm "$pkgdir/usr/lib/php7/modules/libvirt-php.la" +} + +sha512sums=3D"b5b204549e6810668203d1df8404a5cb71f646ae7e01ea223c6e9b9eec9b= 1f6500cc5bb4559859959d821a213ff992f22a97e4b683da2c683be3732710943487 libvi= rt-php-0.5.4.tar.gz +732f22ca206187b7a0ea41fe2d63808c8afc0994f941fbbb933dbde219f597d108aa3ed10b= 67e074fe90ac6ab571ee0dc70ef725ce8ed746d8f6e4689e972291 musl-fixes.patch" diff --git a/testing/php7-libvirt-php/musl-fixes.patch b/testing/php7-libvi= rt-php/musl-fixes.patch new file mode 100644 index 0000000000..92388095b4 --- /dev/null +++ b/testing/php7-libvirt-php/musl-fixes.patch @@ -0,0 +1,16 @@ +diff --git a/tools/generate-api-docs.c b/tools/generate-api-docs.c +index 3b88f16..12c0283 100644 +--- a/tools/generate-api-docs.c ++++ b/tools/generate-api-docs.c +@@ -129,7 +129,9 @@ void free_functions(int function_number) + free(functions[i].args[j]); + free(functions[i].name); + free(functions[i].desc); +- free(functions[i].returns); ++ //Commenting the line below as when compiled with musl libc it is creati= ng a SIGSEGV ++ //Moreover this program is only used to create libvirt-php html document= ation at compile time ++ //free(functions[i].returns); + } + free(functions); + } + --=20 2.20.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---