This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libming and ploticus (Attn: SWI-Prolog maintainer)


Ugh, top-posting...  Reformatted.

On Mon, 26 Sep 2005, Reini Urban wrote:

> On 9/26/05, Igor Pechtchanski <pechtcha@XX.XXX.XXX> wrote:

Ahem...

> > On Mon, 26 Sep 2005, Andrew Schulman wrote:
> >
> > > OK, I won't worry about SWF for now.
> > >
> > > > I would be happy if you would like to propose it, but not so happy if
> > > > you leave out the prefabs, docs, samples and testsuite.
> > >
> > > prefabs and docs, definitely.  Samples and testsuite, sure, why not.
> >
> > First off, thank you for packaging ploticus.
> >
> > IMO, the testsuite can definitely be omitted.  The samples could be useful
> > (in /usr/share/ploticus*).
> >
> > > > I forgot if Bitstream Vera is in any other package yet. package-grep
> > > > doesn't find it. Should be so.
> > >
> > > Sorry, I don't find these or any other fonts in the ploticus source.  Where
> > > do they come from?  Does ploticus depend on them?  Just for SWF, or for
> > > other formats too?  Should they go into a font package instead?
> >
> > I would suggest just creating separate fonts package(s?), if you can
> > figure out where the fonts come from...
> >
> > > > Maybe like this?
> > > > /usr/bin/ploticus.exe
> > > > postinstall.sh:
> > > >    test -f /usr/bin/pl || ln -s /usr/bin/ploticus /usr/bin/pl
> > >
> > > Or how about this:
> > >
> > >   rm -f /usr/bin/pl
> > >   ln -s /usr/bin/ploticus /usr/bin/pl
> > >
> > > :)  Just kidding... but how annoying that Prolog has already
> > > claimed /usr/bin/pl... what the heck is Prolog anyway?  Is anyone using it?
> >
> > Yes, it's a filename clash -- we had those before.  The solution would be
> > for *both* packages to provide a uniquely-named executable and a
> > postinstall script that would create a symlink.  Then the nature of
> > /usr/bin/pl would depend on the order of package installation (actually,
> > the order of postinstall script execution).
> >
> > > Seriously though, under your proposal, if a user installed ploticus and
> > > then later installed SWI-Prolog, would it cause a problem that
> > > /usr/bin/pl already existed?
> >
> > Well, it wouldn't in a sense that you'd have both /usr/bin/pl and
> > /usr/bin/pl.exe (the latter will shadow the former).  But you'd definitely
> > need to coordinate with the maintainer of SWI-Prolog (Corinna?) to add
> > those postinstall scripts together.
> >         Igor
>
> I forgot to mention that SWI-Prolog already has pl.exe in a seperate
> location, and /usr/bin/pl is just a symlink to that.
>
> On SWI-Prolog installation the symlink is overwritten by setup.exe to
> use the prolog binary, and on ploticus installation the same, just by
> the postinstall script. There's no action required at the SWI-Prolog
> side.

I'm not sure I parsed the last paragraph correctly, but if I did, then the
action of creating the symlink for SWI-Prolog is unconditional.  It needs
to be made conditional, just like the one for ploticus, otherwise
installing SWI-Prolog will *always* overwrite the symlink.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]