Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: [PPM (Perl Package Manager)] Installing multiple modules from a single ppd file (Alien-Sisyphusion-Gtk2WebKitdlls)

by syphilis (Chancellor)
on Mar 29, 2017 at 10:10 UTC ( #1186351=note: print w/replies, xml ) Need Help??


in reply to Re^3: [PPM (Perl Package Manager)] Installing multiple modules from a single ppd file (Alien-Sisyphusion-Gtk2WebKitdlls)
in thread [PPM (Perl Package Manager)] Installing multiple modules from a single ppd file

Why not a simple dependency on Alien-Sisyphusion-Gtk2WebKitdlls

I considered that with another issue a year or two ago (when BrowserUk suggested much the same thing) - but I found that Strawberry's PPM utility took no notice of the "REQUIRE NAME" entry. So I canned the idea without giving it much more thought.
Tonight I discovered that Strawberry's PPM does however honour the "DEPENDENCY NAME" entry. (I guess Strawberry's ppm is not modern enough to know about "REQUIRE NAME".)

So ... I 'll =~ s/REQUIRE NAME/DEPENDENCY NAME/g in the PPD files and package.xml, and go with the approach you've suggested. Thanks !!
Might get a bit messy with AciveState perls if they decide to make "DEPENDENCY NAME" obsolete. They haven't done that yet, have they ?

Cheers,
Rob
  • Comment on Re^4: [PPM (Perl Package Manager)] Installing multiple modules from a single ppd file (Alien-Sisyphusion-Gtk2WebKitdlls)
  • Download Code

Replies are listed 'Best First'.
Re^5: [PPM (Perl Package Manager)] Installing multiple modules from a single ppd file (Alien-Sisyphusion-Gtk2WebKitdlls)
by beech (Vicar) on Mar 29, 2017 at 10:22 UTC

    Might get a bit messy with AciveState perls if they decide to make "DEPENDENCY NAME" obsolete. They haven't done that yet, have they ?

    No, I don't think they will ever do that as they just map DEPENDENCY into REQUIRE

    http://docs.activestate.com/activeperl/5.24/lib/ActivePerl/PPM/PPD.html says

    Deprecated. Required attribute is NAME. Optional attribute is VERSION. No content. Element might be repeated any number of times. Parent must be an IMPLEMENTATION element. This element expresses a dependency on another package with the given name and with the given version number or better. The other package must be installed for this package to work. This element is still recommended for PPDs that are to be used by both PPM4 and PPM3 clients, as the PPM3 clients will ignore any REQUIRE elements provided. PPM4 clients regard DEPENDENCY the same as REQUIRE, but will simply ignore the VERSION provided.
      PPM4 clients regard DEPENDENCY the same as REQUIRE, but will simply ignore the VERSION provided

      Thanks for digging that up.
      It effectively means that I can't simply just do the s/REQUIRE NAME/DEPENDENCY NAME/g that I was hoping to do.
      However, specifying both (putting DEPENDENCY NAME ahead of REQUIRE NAME) seems to work ok with both ppm4 and the version that ships with Strawberry.
      So I'll do that and see how it all goes.

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1186351]
help
Chatterbox?
[Discipulus]: someone can explain last faq by jdporter? if humor i missed it

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2018-06-22 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (122 votes). Check out past polls.

    Notices?