* still fighting to get an OE recipe for "libfilesys-smbclient-perl"
@ 2017-01-19 20:58 Robert P. J. Day
2017-01-19 23:45 ` Burton, Ross
2017-01-20 6:25 ` Mike Looijmans
0 siblings, 2 replies; 6+ messages in thread
From: Robert P. J. Day @ 2017-01-19 20:58 UTC (permalink / raw)
To: OE Core mailing list
following up on the whining i did a while back to finish off a few
perl recipes for OE, i have just a few left to resolve, and this is
one of them. i managed to get several dozen perl recipes to work
simply by throwing together recipes based on very little understanding
of perl cpan mechanics and just mindlessly cribbing boilerplate from
other recipes. if it worked, yee ha, move on.
here's my current recipe for this module (again, slapped together
without really understanding what's going on under the hood):
///// start /////
DESCRIPTION = "Filesys::SmbClient"
SECTION = "libs"
LICENSE = "Artisticv1 | GPLv1+"
PR = "r0"
MAINTAINER= "rday"
HOMEPAGE= "https://metacpan.org/pod/Filesys::SmbClient"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
DEPENDS += "samba"
SRC_URI = "https://cpan.metacpan.org/authors/id/A/AL/ALIAN/Filesys-SmbClient-3.2.tar.gz"
SRC_URI[md5sum] = "8a4205fe748aac7f43fb2a0e8ef502b2"
SRC_URI[sha256sum] = "a9f2f3d4675de76f9dcae2be40bda93495cd5fafb1bb6326d71833cea451bc6e"
S = "${WORKDIR}/Filesys-SmbClient-${PV}"
inherit cpan
EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}/samba-4.0' LIBS='-L${STAGING_LIBDIR}'"
BBCLASSEXTEND = "native"
///// end /////
and the error i get when i try to build makes it *clear* that the
configuration is failing to set up properly for cross-compiling for my
powerpc target:
$ bitbake libfilesys-smbclient-perl
... snip ...
| Where can I find libsmbclient.h ? []
*************************************************************
| ** WHAT !!!!
| ** I Can't find /libsmbclient.h : No such file or directory.
| *************************************************************
... snip ...
| Where can I find libsmbclient.so ? []
*************************************************************
| ** WHAT !!!!
| ** I Can't find libsmbclient.so : No such file or directory.
... snip ...
| checking for C compiler default output... a.out
| checking whether the C compiler works... configure: error: cannot
run C compiled programs.
| If you meant to cross compile, use `--host'.
| See `config.log' for more details.
and sure enough, the config.log for this build contains:
Target: powerpc-poky-linux
Configured with:
../../../../../../work-shared/gcc-6.3.0-r0/gcc-6.3.0/configure
--build=x86_64-linux --host=x86_64-linux --target=powerpc-poky-linux
...
beyond this, i'm not sure how to use an OE patch to adjust this
source the right way, given that dozens and dozens of other modules
cross-compiled just fine.
thoughts? i am in now way a perl expert so i really have no idea
where to go from here.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: still fighting to get an OE recipe for "libfilesys-smbclient-perl"
2017-01-19 20:58 still fighting to get an OE recipe for "libfilesys-smbclient-perl" Robert P. J. Day
@ 2017-01-19 23:45 ` Burton, Ross
2017-01-20 3:21 ` Tim Orling
2017-01-20 11:48 ` Robert P. J. Day
2017-01-20 6:25 ` Mike Looijmans
1 sibling, 2 replies; 6+ messages in thread
From: Burton, Ross @ 2017-01-19 23:45 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: OE Core mailing list
[-- Attachment #1: Type: text/plain, Size: 772 bytes --]
On 19 January 2017 at 20:58, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> beyond this, i'm not sure how to use an OE patch to adjust this
> source the right way, given that dozens and dozens of other modules
> cross-compiled just fine.
>
> thoughts? i am in now way a perl expert so i really have no idea
> where to go from here
>
Is this the module you asked about earlier that I had a quick look at? I'd
say that basically it can't be cross-compiled easily - or with moderate
effort - because of various pieces of crazy in the way it builds.
My recommendation is to either find or become a Perl build system expert
and entirely rewrite the build to use something modern and sane, instead of
something archaic, hand-coded and crazy.
Ross
[-- Attachment #2: Type: text/html, Size: 1208 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: still fighting to get an OE recipe for "libfilesys-smbclient-perl"
2017-01-19 23:45 ` Burton, Ross
@ 2017-01-20 3:21 ` Tim Orling
2017-01-20 11:48 ` Robert P. J. Day
1 sibling, 0 replies; 6+ messages in thread
From: Tim Orling @ 2017-01-20 3:21 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE Core mailing list
[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]
On Thu, Jan 19, 2017 at 3:45 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 19 January 2017 at 20:58, Robert P. J. Day <rpjday@crashcourse.ca>
> wrote:
>
>> beyond this, i'm not sure how to use an OE patch to adjust this
>> source the right way, given that dozens and dozens of other modules
>> cross-compiled just fine.
>>
>> thoughts? i am in now way a perl expert so i really have no idea
>> where to go from here
>>
>
> Is this the module you asked about earlier that I had a quick look at?
> I'd say that basically it can't be cross-compiled easily - or with moderate
> effort - because of various pieces of crazy in the way it builds.
>
> My recommendation is to either find or become a Perl build system expert
> and entirely rewrite the build to use something modern and sane, instead of
> something archaic, hand-coded and crazy.
>
>
I have to agree with Ross here.
The original Perl module is in sorry shape. I would start with getting
somebody in the Perl world to rewrite it first (at least the build
mechanism). It has native code that is just not going to be easy to
cross-compile the way it is without serious effort and hacking. If it was
ANY kind of sane, modern, perl build system I would have it done already
and collected the bounty. The bounty is an order of magnitude too low for
the effort it would take me to get it to work (and that might still be an
underbid by a factor of 2 or more). You might be better off contracting
someone to meet the API in a new perl module. Perhaps the maintainer of
meta-cpan?
--Tim
Ross
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
[-- Attachment #2: Type: text/html, Size: 3216 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: still fighting to get an OE recipe for "libfilesys-smbclient-perl"
2017-01-19 20:58 still fighting to get an OE recipe for "libfilesys-smbclient-perl" Robert P. J. Day
2017-01-19 23:45 ` Burton, Ross
@ 2017-01-20 6:25 ` Mike Looijmans
2017-01-20 11:34 ` Robert P. J. Day
1 sibling, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2017-01-20 6:25 UTC (permalink / raw)
To: openembedded-core
On 19-01-17 21:58, Robert P. J. Day wrote:
>
> following up on the whining i did a while back to finish off a few
> perl recipes for OE, i have just a few left to resolve, and this is
> one of them. i managed to get several dozen perl recipes to work
> simply by throwing together recipes based on very little understanding
> of perl cpan mechanics and just mindlessly cribbing boilerplate from
> other recipes. if it worked, yee ha, move on.
>
> here's my current recipe for this module (again, slapped together
> without really understanding what's going on under the hood):
>
> ///// start /////
>
> DESCRIPTION = "Filesys::SmbClient"
>
> SECTION = "libs"
> LICENSE = "Artisticv1 | GPLv1+"
> PR = "r0"
>
> MAINTAINER= "rday"
> HOMEPAGE= "https://metacpan.org/pod/Filesys::SmbClient"
>
> LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
> file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
>
> DEPENDS += "samba"
>
> SRC_URI = "https://cpan.metacpan.org/authors/id/A/AL/ALIAN/Filesys-SmbClient-3.2.tar.gz"
>
> SRC_URI[md5sum] = "8a4205fe748aac7f43fb2a0e8ef502b2"
> SRC_URI[sha256sum] = "a9f2f3d4675de76f9dcae2be40bda93495cd5fafb1bb6326d71833cea451bc6e"
>
> S = "${WORKDIR}/Filesys-SmbClient-${PV}"
>
> inherit cpan
>
> EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}/samba-4.0' LIBS='-L${STAGING_LIBDIR}'"
>
> BBCLASSEXTEND = "native"
>
> ///// end /////
>
> and the error i get when i try to build makes it *clear* that the
> configuration is failing to set up properly for cross-compiling for my
> powerpc target:
>
> $ bitbake libfilesys-smbclient-perl
> ... snip ...
> | Where can I find libsmbclient.h ? []
> *************************************************************
> | ** WHAT !!!!
> | ** I Can't find /libsmbclient.h : No such file or directory.
> | *************************************************************
> ... snip ...
> | Where can I find libsmbclient.so ? []
> *************************************************************
> | ** WHAT !!!!
> | ** I Can't find libsmbclient.so : No such file or directory.
> ... snip ...
> | checking for C compiler default output... a.out
> | checking whether the C compiler works... configure: error: cannot
> run C compiled programs.
> | If you meant to cross compile, use `--host'.
> | See `config.log' for more details.
>
>
> and sure enough, the config.log for this build contains:
>
> Target: powerpc-poky-linux
> Configured with:
> ../../../../../../work-shared/gcc-6.3.0-r0/gcc-6.3.0/configure
> --build=x86_64-linux --host=x86_64-linux --target=powerpc-poky-linux
> ...
Quick observation: I think host and target are wrong. The "host" is where the
software will run. The line above builds something that runs on x86_64 and
that compiles for a powerpc target (target only makes sense if you're
compiling a compiler). You probably wanted --host=powerpc-poky-linux and no
"--target" at all.
>
> beyond this, i'm not sure how to use an OE patch to adjust this
> source the right way, given that dozens and dozens of other modules
> cross-compiled just fine.
>
> thoughts? i am in now way a perl expert so i really have no idea
> where to go from here.
>
> rday
>
Kind regards,
Mike Looijmans
System Expert
TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: still fighting to get an OE recipe for "libfilesys-smbclient-perl"
2017-01-20 6:25 ` Mike Looijmans
@ 2017-01-20 11:34 ` Robert P. J. Day
0 siblings, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2017-01-20 11:34 UTC (permalink / raw)
To: Mike Looijmans; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 3994 bytes --]
On Fri, 20 Jan 2017, Mike Looijmans wrote:
> On 19-01-17 21:58, Robert P. J. Day wrote:
> >
> > following up on the whining i did a while back to finish off a few
> > perl recipes for OE, i have just a few left to resolve, and this is
> > one of them. i managed to get several dozen perl recipes to work
> > simply by throwing together recipes based on very little understanding
> > of perl cpan mechanics and just mindlessly cribbing boilerplate from
> > other recipes. if it worked, yee ha, move on.
> >
> > here's my current recipe for this module (again, slapped together
> > without really understanding what's going on under the hood):
> >
> > ///// start /////
> >
> > DESCRIPTION = "Filesys::SmbClient"
> >
> > SECTION = "libs"
> > LICENSE = "Artisticv1 | GPLv1+"
> > PR = "r0"
> >
> > MAINTAINER= "rday"
> > HOMEPAGE= "https://metacpan.org/pod/Filesys::SmbClient"
> >
> > LIC_FILES_CHKSUM =
> > "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798
> > \
> > file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
> >
> > DEPENDS += "samba"
> >
> > SRC_URI =
> > "https://cpan.metacpan.org/authors/id/A/AL/ALIAN/Filesys-SmbClient-3.2.tar.gz"
> >
> > SRC_URI[md5sum] = "8a4205fe748aac7f43fb2a0e8ef502b2"
> > SRC_URI[sha256sum] =
> > "a9f2f3d4675de76f9dcae2be40bda93495cd5fafb1bb6326d71833cea451bc6e"
> >
> > S = "${WORKDIR}/Filesys-SmbClient-${PV}"
> >
> > inherit cpan
> >
> > EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}/samba-4.0'
> > LIBS='-L${STAGING_LIBDIR}'"
> >
> > BBCLASSEXTEND = "native"
> >
> > ///// end /////
> >
> > and the error i get when i try to build makes it *clear* that the
> > configuration is failing to set up properly for cross-compiling for my
> > powerpc target:
> >
> > $ bitbake libfilesys-smbclient-perl
> > ... snip ...
> > | Where can I find libsmbclient.h ? []
> > *************************************************************
> > | ** WHAT !!!!
> > | ** I Can't find /libsmbclient.h : No such file or directory.
> > | *************************************************************
> > ... snip ...
> > | Where can I find libsmbclient.so ? []
> > *************************************************************
> > | ** WHAT !!!!
> > | ** I Can't find libsmbclient.so : No such file or directory.
> > ... snip ...
> > | checking for C compiler default output... a.out
> > | checking whether the C compiler works... configure: error: cannot
> > run C compiled programs.
> > | If you meant to cross compile, use `--host'.
> > | See `config.log' for more details.
> >
> >
> > and sure enough, the config.log for this build contains:
> >
> > Target: powerpc-poky-linux
> > Configured with:
> > ../../../../../../work-shared/gcc-6.3.0-r0/gcc-6.3.0/configure
> > --build=x86_64-linux --host=x86_64-linux --target=powerpc-poky-linux
> > ...
>
> Quick observation: I think host and target are wrong. The "host" is where the
> software will run. The line above builds something that runs on x86_64 and
> that compiles for a powerpc target (target only makes sense if you're
> compiling a compiler). You probably wanted --host=powerpc-poky-linux and no
> "--target" at all.
right, that was why i reproduced that bit ... to show that the
"--host" value is clearly wrong, and even suggests that problem a few
lines earlier:
> > | checking whether the C compiler works... configure: error: cannot
> > run C compiled programs.
> > | If you meant to cross compile, use `--host'.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: still fighting to get an OE recipe for "libfilesys-smbclient-perl"
2017-01-19 23:45 ` Burton, Ross
2017-01-20 3:21 ` Tim Orling
@ 2017-01-20 11:48 ` Robert P. J. Day
1 sibling, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2017-01-20 11:48 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE Core mailing list
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
On Thu, 19 Jan 2017, Burton, Ross wrote:
>
> On 19 January 2017 at 20:58, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> beyond this, i'm not sure how to use an OE patch to adjust this
> source the right way, given that dozens and dozens of other modules
> cross-compiled just fine.
>
> thoughts? i am in now way a perl expert so i really have no idea
> where to go from here
>
>
> Is this the module you asked about earlier that I had a quick look
> at?
that's the one, sorry, i thought i'd asked about a different module
back then. they're all starting to blur together. that can't be
healthy.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-01-20 11:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-19 20:58 still fighting to get an OE recipe for "libfilesys-smbclient-perl" Robert P. J. Day
2017-01-19 23:45 ` Burton, Ross
2017-01-20 3:21 ` Tim Orling
2017-01-20 11:48 ` Robert P. J. Day
2017-01-20 6:25 ` Mike Looijmans
2017-01-20 11:34 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox