No worries! Uou can apply a patchfile using the patch utility, which
should be installed already. The file debian/patches/series is
probably the order that the packager uses when applying the files. You
can apply them all by running this command from the root of the git
repo:
cat debian/patches/series | while read -r I; do cat
debian/patches/$I | patch -p1; done
You can verify the changes with git diff, or do the usual things to
install the module.
On Tue, 16 Apr 2019 at 21:55, Neil Gunton <[email protected]> wrote:
>
> Hi Nigel, thanks! I am able to get the embperl repo at the
> salsa.debian.org site, and it makes a promising directory with the usual
> files which looks very familiar. However I'm not familiar with how to
> apply the debian patches, presumably there is some command or tool that
> is used to do that? When I google this, all I get is a lot of stuff
> about how to make your own patches, but all I want to do is apply what's
> there. Is there a simple way to do that? Sorry for my ignorance, never
> had to use patch much (at all actually). I generally just use apt-get
> update on debian, or else I build from source, neither of which involves
> use of patches.
>
> Thanks for any clues,
>
> Neil
>
> Nigel Gregoire wrote:
> > Hello!
> >
> > The trunk code is at
> > http://svn.apache.org/repos/asf/perl/embperl/trunk . However, it uses
> > a deprecated variable removed in Perl 5.22, so it's probably not going
> > to work for you.
> >
> > I'd suggest grabbing Debian's embperl repo at
> > https://salsa.debian.org/perl-team/modules/packages/libembperl-perl .
> > Their patches are all under debian/patches (see
> > debian/patches/series), and applying them should get the repo in
> > working order. I tried it out on my computer against Perl 5.28 and was
> > able to successfully install Embperl.
> >
> > Good luck!
> >
> > On Tue, 16 Apr 2019 at 17:32, Neil Gunton <[email protected]> wrote:
> >>
> >> This is nuts. I know now that a version 2.5.0-10 exists of Embperl, but
> >> I can't get it from Debian except as a compiled package, or the src one
> >> that is mysteriously "debianized" and unrecognizable to me as something
> >> I can just build in the usual fashion. Does anyone know where I can
> >> simply download the latest version as source that I can build as I have
> >> always built Embperl, without any of the Debian crap?
> >> Embperl-2.5.0-10.tar.gz? Debian packaging is just a nightmare of
> >> dependencies and I don't want to install their apr and apache-bin etc, I
> >> build those myself from source and I want to be able to build my Embperl
> >> against my own apache version, not Debian's.
> >>
> >> Anybody know where I can get Embperl-2.5.0-10.tar.gz? It must exist
> >> somewhere outside of the Debian maze, surely..
> >>
> >> Thanks,
> >>
> >> Neil
> >>
> >> Neil Gunton wrote:
> >>> Yes, I was just looking at that. But the trouble is it wants to bring in
> >>> a bunch of other packages that I don't want or need, e.g. apache (I
> >>> build my own apache). So right now I'm trying to figure out how/if I can
> >>> download the source for the Embperl package from somewhere so I can
> >>> build it manually. Thanks for the pointer, this looks promising - if
> >>> it's packaged with Debian then I guess it must work with stretch. I
> >>> thought there was some talk about removing Embperl from Debian, but I
> >>> guess they must have gotten past that. I'm glad to see it's still there.
> >>> Now I just have to figure out how to extricate it from Debian's
> >>> dependencies. I just want the src so I can compile it myself. That's a
> >>> Debian issue, obviously.
> >>>
> >>> Thanks again, I never thought to look in the Debian packages, like I
> >>> said I thought it was removed a while back.
> >>>
> >>> Neil
> >>>
> >>> Jim Tappe wrote:
> >>>> I don't use Debian but I guess here. Stable version is 2.5.0-10?
> >>>>
> >>>> https://tracker.debian.org/pkg/libembperl-perl
> >>>>
> >>>> On Tue, Apr 16, 2019 at 4:58 PM Neil Gunton <[email protected]
> >>>> <mailto:[email protected]>> wrote:
> >>>>
> >>>> Great, thanks, I had no idea there was a 2.5.0-5 release. I have been
> >>>> using 2.5.0-3 for years. Can anybody tell me where I can get
> >>>> 2.5.0-5? I
> >>>> tried Github, but it seemed to give me an older version and it had
> >>>> the
> >>>> same compile error. Anywhere else this is kept?
> >>>>
> >>>> Jim Tappe wrote:
> >>>> > Just a guess.
> >>>> >
> >>>> > It might be fixed in version libembperl-perl/2.5.0-5 ?
> >>>> >
> >>>> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812617
> >>>> >
> >>>> > On Tue, Apr 16, 2019 at 4:40 PM Neil Gunton <[email protected]
> >>>> <mailto:[email protected]>
> >>>> > <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >>>> >
> >>>> > Just upgraded my workstation from Debian 8 (Jessie) to 9
> >>>> (Stretch).
> >>>> >
> >>>> > Embperl was working on Debian Jessie, though with some bugs or
> >>>> different
> >>>> > behavior which I mentioned in previous email to the list. Now
> >>>> I tried
> >>>> > upgrading to Stretch to bring myself up to date with Debian
> >>>> stable
> >>>> > finally, and Embperl no longer compiles.
> >>>> >
> >>>> > perl version: v5.24.1
> >>>> > gcc version: 6.3.0
> >>>> > apache version: 2.4.39 (built from src)
> >>>> >
> >>>> > perl Makefile.PL completes ok
> >>>> >
> >>>> > but then make fails on the following:
> >>>> >
> >>>> > "/usr/bin/perl" "/usr/share/perl/5.24/ExtUtils/xsubpp"
> >>>> -typemap
> >>>> > "/usr/share/perl/5.24/ExtUtils/typemap" -typemap "typemap"
> >>>> Embperl.xs >
> >>>> > Embperl.xsc && mv Embperl.xsc Embperl.c
> >>>> > x86_64-linux-gnu-gcc -c -I/usr/local/httpd_perl/include
> >>>> > -I/usr/local/httpd_perl/regex -I/usr/local/httpd_perl/os/unix
> >>>> > -I/usr/local/apr/include/apr-1 -I/usr/src/Embperl-2.5.0_3/xs
> >>>> > -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
> >>>> -fno-strict-aliasing -pipe
> >>>> > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> >>>> > -I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE -DMOD_PERL
> >>>> -DMP_COMPAT_1X
> >>>> > -fgnu89-inline -DLINUX -O2 -g -DVERSION=\"2.5.0_3\"
> >>>> > -DXS_VERSION=\"2.5.0_3\" -fPIC
> >>>> > "-I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE" -DAPACHE
> >>>> -DAPACHE2 -DEP2
> >>>> > -o Embperl.o Embperl.c
> >>>> > In file included from ep.h:174:0,
> >>>> > from Embperl.xs:16:
> >>>> > ./Old.xs: In function ‘XS_Embperl__Req_log_svs’:
> >>>> > epnames.h:329:21: error: ‘PL_sv_objcount’ undeclared (first
> >>>> use in this
> >>>> > function)
> >>>> > #define sv_objcount PL_sv_objcount
> >>>> > ^
> >>>> > ./Old.xs:253:93: note: in expansion of macro ‘sv_objcount’
> >>>> > lprintf (r->pApp,"[%d]MEM: %s: SVs: %d OBJs: %d\n",
> >>>> > r->pThread->nPid, sText, sv_count, sv_objcount) ;
> >>>> >
> >>>> > ^~~~~~~~~~~
> >>>> > epnames.h:329:21: note: each undeclared identifier is reported
> >>>> only once
> >>>> > for each function it appears in
> >>>> > #define sv_objcount PL_sv_objcount
> >>>> > ^
> >>>> > ./Old.xs:253:93: note: in expansion of macro ‘sv_objcount’
> >>>> > lprintf (r->pApp,"[%d]MEM: %s: SVs: %d OBJs: %d\n",
> >>>> > r->pThread->nPid, sText, sv_count, sv_objcount) ;
> >>>> >
> >>>> > ^~~~~~~~~~~
> >>>> > Makefile:775: recipe for target 'Embperl.o' failed
> >>>> > make: *** [Embperl.o] Error 1
> >>>> >
> >>>> >
> >>>> >
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> > To unsubscribe, e-mail: [email protected]
> >>>> <mailto:[email protected]>
> >>>> > <mailto:[email protected]
> >>>> <mailto:[email protected]>>
> >>>> > For additional commands, e-mail: [email protected]
> >>>> <mailto:[email protected]>
> >>>> > <mailto:[email protected]
> >>>> <mailto:[email protected]>>
> >>>> >
> >>>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >
> >
>
--
Nigel
http://www.forgreatjustice.ca/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]