Skip to contentSkip to conversation

"Can't install perl-soap-lite-1.20-r0@all: no package provides /bin/env" ??

DISCUSSION Robert P. J. Day 3 participants 7 messages Nov 6, 2016

lore
Share & tools
lore
#0 lore raw

currently writing my first batch of perl recipes, fairly mindlessly
plagiarizing from existing recipes, first bunch worked fine, then i whipped together a recipe for SOAP::Lite from here:

https://metacpan.org/pod/SOAP::Lite

built fine, but when i tried to add the perl-soap-lite-1.20-r0.all.rpm to my core-image-minimal build, i got:

  Computing transaction...error: Can't install \
    perl-soap-lite-1.20-r0@all: no package provides /bin/env

sure enough, that rpm has that dependency:

  $ rpm -qpR perl-soap-lite-1.20-r0.all.rpm
  /bin/env
  /usr/bin/env
  perl
  $

and when i fire up my "qemuppc" session for that core-image-minimal image, there is indeed no /bin/env file (hence the error), but there is:

/usr/bin/env -> /bin/busybox.nosuid

so ... what is the proper solution for this? i suspect i'm going to run into this issue again in upcoming recipes, so i'd love to resolve it in a minimally hacky way.

rday

p.s. now that i think about it, why would a package have a dependency on *both* /bin/env and /usr/bin/env? isn't that sort of redundant?

p.p.s. i searched for the phrase "no package provides /bin/env" as a first attempt, and i weirdly got this:

https://www.google.ca/search?q=%22no+package+provides+/bin/env%22&ie=utf-8&oe=utf-8&gws_rd=cr&ei=jBMfWJ20JIfZjwTKzarIBg

never heard of that website before, and no other matches. seems a bit odd.

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 24 lines · Robert P. J. Day

currently writing my first batch of perl recipes, fairly mindlessly
plagiarizing from existing recipes, first bunch worked fine, then i whipped together a recipe for SOAP::Lite from here:

https://metacpan.org/pod/SOAP::Lite

built fine, but when i tried to add the perl-soap-lite-1.20-r0.all.rpm to my core-image-minimal build, i got:

  Computing transaction...error: Can't install \
    perl-soap-lite-1.20-r0@all: no package provides /bin/env

sure enough, that rpm has that dependency:

  $ rpm -qpR perl-soap-lite-1.20-r0.all.rpm
  /bin/env
  /usr/bin/env
  perl
  $

and when i fire up my "qemuppc" session for that core-image-minimal image, there is indeed no /bin/env file (hence the error), but there is:

Quoted 6 lines

/usr/bin/env -> /bin/busybox.nosuid

so ... what is the proper solution for this? i suspect i'm going to run into this issue again in upcoming recipes, so i'd love to resolve it in a minimally hacky way.

Sounds like there’s a script in that package with a #!/bin/env, which is wrong.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 28 lines · Christopher Larson

On Sun, Nov 6, 2016 at 4:28 AM, Robert P. J. Day <[email protected]> wrote:
  currently writing my first batch of perl recipes, fairly mindlessly plagiarizing from existing recipes, first bunch worked fine, then i whipped together a recipe for SOAP::Lite from here:

  https://metacpan.org/pod/SOAP::Lite

built fine, but when i tried to add the perl-soap-lite-1.20-r0.all.rpm to my core-image-minimal build, i got:

  Computing transaction...error: Can't install \
    perl-soap-lite-1.20-r0@all: no package provides /bin/env

sure enough, that rpm has that dependency:

  $ rpm -qpR perl-soap-lite-1.20-r0.all.rpm
  /bin/env
  /usr/bin/env
  perl
  $

and when i fire up my "qemuppc" session for that core-image-minimal image, there is indeed no /bin/env file (hence the error), but there is:

  /usr/bin/env -> /bin/busybox.nosuid

Quoted 7 lines

so ... what is the proper solution for this? i suspect i'm going to run into this issue again in upcoming recipes, so i'd love to resolve it in a minimally hacky way.

Sounds like there’s a script in that package with a #!/bin/env, which is wrong.

dang, i should have thought of that ... and, yes, after fetching and
unpacking source (no patches yet):

$ grep -r "/bin/env" *
bin/stubmaker.pl:#!/usr/bin/env perl
bin/SOAPsh.pl:#!/bin/env perl
examples/XMLRPC/xmlrpc.daemon:#!/usr/bin/env perl
examples/XMLRPC/xmlrpc.cgi:#!/usr/bin/env perl
t/15-daemon.t:#!/bin/env perl
t/17-mod_soap.t:#!/bin/env perl
t/05-customxml.t:#!/bin/env perl
t/03-server.t:#!/bin/env perl
t/04-attach.t:#!/bin/env perl
t/11-cgi.t:#!/bin/env perl
t/02-payload.t:#!/bin/env perl
t/12-cgi_https.t:#!/bin/env perl
t/24-wsdl.t:#!/bin/env perl
t/14-cgi_apache.t:#!/bin/env perl
t/23-ppm.t:#!/bin/env perl
t/01-core.t:#!/bin/env perl
t/13-mod_perl.t:#!/bin/env perl
t/22-interop_apache.t:#!/bin/env perl
t/19-apachesoap.t:#!/bin/env perl
t/08-schema.t:#!/bin/env perl
t/06-modules.t:#!/bin/env perl
t/21-public.t:#!/bin/env perl
$

is the obvious solution to just patch all those "/bin/env" to
"/usr/bin/env"?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#3 lore raw
In reply to Robert P. J. Day

https://github.com/redhotpenguin/soaplite/search?utf8=✓&q=%2Fbin%2Fenv
<https://github.com/redhotpenguin/soaplite/search?utf8=%E2%9C%93&q=%2Fbin%2Fenv>

It's only for the tests (in the ${S}/t directory by convention for perl modules). I would try just doing sed to /usr/bin/env on all those.

Cheers.

--Tim

Quoted 61 lines · Robert P. J. Day

currently writing my first batch of perl recipes, fairly mindlessly
plagiarizing from existing recipes, first bunch worked fine, then i whipped together a recipe for SOAP::Lite from here:

https://metacpan.org/pod/SOAP::Lite

built fine, but when i tried to add the perl-soap-lite-1.20-r0.all.rpm to my core-image-minimal build, i got:

  Computing transaction...error: Can't install \
    perl-soap-lite-1.20-r0@all: no package provides /bin/env

sure enough, that rpm has that dependency:

  $ rpm -qpR perl-soap-lite-1.20-r0.all.rpm
  /bin/env
  /usr/bin/env
  perl
  $

and when i fire up my "qemuppc" session for that core-image-minimal image, there is indeed no /bin/env file (hence the error), but there is:

/usr/bin/env -> /bin/busybox.nosuid

so ... what is the proper solution for this? i suspect i'm going to run into this issue again in upcoming recipes, so i'd love to resolve it in a minimally hacky way.

rday

p.s. now that i think about it, why would a package have a dependency on *both* /bin/env and /usr/bin/env? isn't that sort of redundant?

p.p.s. i searched for the phrase "no package provides /bin/env" as a first attempt, and i weirdly got this:

https://www.google.ca/search?q=%22no+package+provides+/bin/
env%22&ie=utf-8&oe=utf-8&gws_rd=cr&ei=jBMfWJ20JIfZjwTKzarIBg

never heard of that website before, and no other matches. seems a bit odd.

--

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

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

========================================================================

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 5 lines · Tim Orling

https://github.com/redhotpenguin/soaplite/search?utf8=✓&q=%2Fbin%2Fenv

It's only for the tests (in the ${S}/t directory by convention for perl modules). I would try just doing sed to /usr/bin/env on all those.

that's what i did, fixed the problem.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#5 lore raw

I created a ticket https://rt.cpan.org/Ticket/Display.html?id=118654
And sent a pull request https://github.com/redhotpenguin/soaplite/pull/28

Should be merged/released shortly as maintainer is already in contact.

Cheers.

--Tim

Quoted 23 lines · Robert P. J. Day
Quoted 1 line · Tim Orling

https://github.com/redhotpenguin/soaplite/search?utf8=✓&q=%2Fbin%2Fenv

<https://github.com/redhotpenguin/soaplite/search?utf8=%E2%9C%93&q=%2Fbin%2Fenv>

Quoted 4 lines

It's only for the tests (in the ${S}/t directory by convention for perl modules). I would try just doing sed to /usr/bin/env on all those.

that's what i did, fixed the problem.

rday

--

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

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

========================================================================

#6 lore raw
Quoted 6 lines · Tim Orling

I created a ticket https://rt.cpan.org/Ticket/Display.html?id=118654
And sent a pull request
https://github.com/redhotpenguin/soaplite/pull/28

Should be merged/released shortly as maintainer is already in contact.

that was quick, thanks. as a temporary fix, i just added a patch
that mindlessly changed every "/bin/env" to "/usr/bin/env", and that did the trick. i suspect that's pretty much what your patch does.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

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