Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: trying to build rpm with perl bindings
Date: Fri, 4 Nov 2016 08:49:52 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1611040841040.623@ca624034.mitel.com> (raw)


  for my qemuppc target, i wanted to add perl bindings to the target
"rpm" command, so i checked the "rpm_5.4.16.bb" recipe file to find:

  # Perl modules are not built, but they could be enabled fairly easily
  # the perl module creation and installation would need to be patched.
  # (currently has host perl contamination issues)
  WITH_PERL = "--with-perl --without-perlembed --without-perl-urpm"
  WITHOUT_PERL = "--without-perl --without-perl-urpm"
  PACKAGECONFIG[perl] = "${WITH_PERL},${WITHOUT_PERL},perl,"

um ... ok, no idea what the issue is here but what the heck, let's
just try it and see what happens, so added:

  PACKAGECONFIG_append_pn-rpm = " perl"

to "local.conf", ran "bitbake rpm" and eventually got:

| Making all in perl
| make[2]: Entering directory
'/home/rpjday/oe/builds/msm_qemuppc/tmp/work/ppc7400-poky-linux/rpm/5.4.16-r0/build/perl'
| /usr/bin/perl Makefile.PL CC="powerpc-poky-linux-gcc  -m32
-mhard-float -mcpu=7400 -mno-spe
--sysroot=/home/rpjday/oe/builds/msm_qemuppc/tmp/sysroots/qemuppc"
MAKEFILE=Makefile.perl
| Bareword found where operator expected at Makefile.PL line 71, near
"--sysroot"
| 	(Missing operator before sysroot?)
| Can't modify constant item in postdecrement (--) at Makefile.PL line
71, near "spe --"
| syntax error at Makefile.PL line 71, near "--sysroot"
... snip ...

 ????. so i open build/perl/Makefile.PL and, sure enough, down at line
71:

  WriteMakefile(
        'NAME'  => 'RPM',
        'OBJECT'        => join(' ', @objects),
        'VERSION' => '5.4.16',
        'MAKEFILE'=> 'Makefile.perl',
        'CC'      => powerpc-poky-linux-gcc  -m32 -mhard-float -mcpu=7400 -mno-spe
  --sysroot=/home/rpjday/oe/builds/msm_qemuppc/tmp/sysroots/qemuppc,
        ... snip ...

doesn't that 'CC' line also need quotes around the value being
assigned? that seems to be a fairly blatant error, no? or am i
misreading something?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================





                 reply	other threads:[~2016-11-04 12:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=alpine.LFD.2.20.1611040841040.623@ca624034.mitel.com \
    --to=rpjday@crashcourse.ca \
    --cc=openembedded-core@lists.openembedded.org \
    /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