buildroot.busybox.net archive mirror
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Pascal de Bruijn <p.debruijn@unilogic.nl>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: "aduskett@gmail.com" <aduskett@gmail.com>,
	"buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 3/3] package/php: enable opcache jit
Date: Thu, 5 Aug 2021 18:41:47 +0200	[thread overview]
Message-ID: <55d97e13-1e0f-7877-17da-c8507bdc7161@mind.be> (raw)
In-Reply-To: <1dab04a3-644c-d583-049d-2a1a3f3f8f6f@mind.be>



On 05/08/2021 18:27, Arnout Vandecappelle wrote:
> 
> 
> On 05/08/2021 16:47, Pascal de Bruijn wrote:
>> Hey,
>>
>>>     > In ed355dec (PATCH 2/3) the following line is what makes opcache actually
>>>     work:
>>>
>>>     What is ed355dec ? I don't have any commit with that reference in
>>>     Buildroot. If it's the reference of the commit of PATCH 2/3 in your
>>>     Buildroot Git repository, then it doesn't make sense to reference it,
>>>     as this commit won't have the same hash when we'll apply your patch,
>>>     i.e ed355dec means nothing expect just to you locally.
>>
>> I know, which is why I referenced both. So I'm referencing the second of three
>> patches in my recently submitted series regarding package/php.
>>
>>>     > PHP_CHECK_LIBRARY(rt, shm_unlink,
>>>     [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)])
>>>
>>>     And what is this doing ? Again shm_unlink() is no longer in librt, it's
>>>     in libc since glibc 2.17 (if I remember correctly).
>>
>> PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)])
>> is executed for non-cross-compiles, and with my patch also executes for
>> cross-compiles.
>>
>> Though I haven't looked deeply into the PHP specific autotools macros...
>> https://github.com/php/php-src/blob/PHP-8.0.9/build/php.m4#L1507
> 
>  This bit is indeed useless with modern glibc, but all libc still install an
> (empty?) librt for backward compatibility, so it doesn't hurt either.

 But now I think more about it: how does this patch make it succeed at runtime?
Unless you are indeed using an ancient glibc, it should do exactly nothing. Or
is it the define of HAVE_SHM_MMAP_POSIX (also added by patch 2/3) that makes the
difference?

 Regards,
 Arnout

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

  reply	other threads:[~2021-08-05 16:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05  8:53 [Buildroot] [PATCH 1/3] package/php: remove ineffective opcache patch Pascal de Bruijn
2021-08-05  8:53 ` [Buildroot] [PATCH 2/3] package/php: opcache link against librt for shm_unlink Pascal de Bruijn
2021-08-05 16:39   ` Arnout Vandecappelle
2021-08-05  8:53 ` [Buildroot] [PATCH 3/3] package/php: enable opcache jit Pascal de Bruijn
2021-08-05 13:31   ` Thomas Petazzoni
2021-08-05 13:53     ` Pascal de Bruijn
2021-08-05 14:01       ` Thomas Petazzoni
2021-08-05 14:04         ` Pascal de Bruijn
2021-08-05 14:10           ` Thomas Petazzoni
2021-08-05 14:47             ` Pascal de Bruijn
2021-08-05 16:27               ` Arnout Vandecappelle
2021-08-05 16:41                 ` Arnout Vandecappelle [this message]
2021-08-05 16:44 ` [Buildroot] [PATCH 1/3] package/php: remove ineffective opcache patch Arnout Vandecappelle
2021-08-10 19:01 ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55d97e13-1e0f-7877-17da-c8507bdc7161@mind.be \
    --to=arnout@mind.be \
    --cc=aduskett@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=p.debruijn@unilogic.nl \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).