Package Details: php-systemd 0.1.2-6

Git Clone URL: https://aur.archlinux.org/php-systemd.git (read-only, click to copy)
Package Base: php-systemd
Description: PHP extension allowing native interaction with systemd and its journal
Upstream URL: https://github.com/systemd/php-systemd
Keywords: journald php systemd
Licenses: MIT
Submitter: NiNjA
Maintainer: Thaodan
Last Packager: Thaodan
Votes: 6
Popularity: 0.000242
First Submitted: 2016-01-21 19:04 (UTC)
Last Updated: 2022-04-15 13:50 (UTC)

Latest Comments

1 2 Next › Last »

risto3 commented on 2023-05-21 11:38 (UTC)

I think yes, perhaps something like is done for php- and php-legacy imagick.

Thaodan commented on 2023-02-23 22:16 (UTC)

Hey,

Do you mean build for both legacy and regular php?

jip commented on 2023-02-17 22:49 (UTC)

I actually already have a patch but I'm not sure how I should send it.

jip commented on 2023-02-17 22:48 (UTC)

Could you please update package to build php-legacy-systemd? I can provide a patch if necessary but that should be straightforward.

Thaodan commented on 2022-04-15 13:52 (UTC)

I added some patches to fix the issues mentioned an replaced the patches used to then upstream patches.

https://github.com/systemd/php-systemd/pull/8

NiNjA commented on 2021-09-16 15:57 (UTC)

@j12t: I have the same problem. This patch should fix the issue: http://ix.io/3z4i

I'm not sure when the problem arose.

j12t commented on 2021-09-16 03:33 (UTC)

Getting lots of "'PHP Warning: Missing arginfo for sd_journal_send() in Unknown on line 0" with PHP 8. Not sure how to fix this. There is an example here: https://github.com/php/php-src/tree/master/ext/skeleton but I don't understand enough about all those macros to known how to apply them. Anybody know more than I do?

Thaodan commented on 2021-03-27 17:37 (UTC)

@marcool04: Care to upstream that fix?

marcool04 commented on 2021-02-26 22:37 (UTC)

In order to make this work with php8, I had to add this:

sed -ie 's/ZEND_NUM_ARGS() TSRMLS_CC/ZEND_NUM_ARGS()/' systemd.c

under the patch lines in the build() function. See first part of answer 1 here

muhviehstarr commented on 2021-02-20 12:30 (UTC)

fix build for php8

Maintainer: Heine Pedersen <heinep at gmail dot com>

pkgname=php-systemd pkgver=0.1.2 ~ pkgrel=5

pkgdesc="PHP extension allowing native interaction with systemd and its journal" arch=("any") url="https://github.com/systemd/php-systemd" license=("MIT") makedepends=("php") depends=("libsystemd") backup=("etc/php/conf.d/systemd.ini")

~ source=("https://github.com/systemd/php-systemd/archive/master.zip" "php7-support.patch" "fix-systemd-include-path.patch" "fix-file-macro.patch" "systemd.ini")

~ sha512sums=('f55a893e40ff9a3fc37499783070bf80ce6ae348b848befca2bd011b54b9201d58a5ce8d0289cc3d14290fd43407a2bdd516bc8c162a17c8166d9b39feeb70bf' ~ '550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10' ~ '9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271' ~ '67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca' ~ '86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4')

build() { + mv -v ${srcdir}/php-systemd-master ${srcdir}/${pkgname}-release-${pkgver} cd ${srcdir}/${pkgname}-release-${pkgver} ~ # patch -p0 < ../fix-systemd-include-path.patch ~ # patch -p0 < ../php7-support.patch ~ # patch -p0 < ../fix-file-macro.patch phpize ./configure --prefix=/usr --with-systemd make }

  • check() {
  • cd ${srcdir}/${pkgname}-release-${pkgver}
  • make test
  • } + + package() { cd ${srcdir}/${pkgname}-release-${pkgver} install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt install -Dm644 ${srcdir}/systemd.ini ${pkgdir}/etc/php/conf.d/systemd.ini install -Dm644 modules/systemd.so ${pkgdir}/usr/lib/php/modules/systemd.so }

# vim:set ts=2 sw=2 et: