From: Oliver Fromme on
Hi,

I just csupped fresh ports on a new stable/8 box, installed
textproc/aspell-without-dicten (i.e. with WITHOUT_DICTEN=YES)
and then proceeded to install editors/joe. Both installed
successfully, as far as I can tell. There were no error
messages, and joe seems to work fine. But ...

joe has a dependency on aspell (both build dependency _and_
run dependency), so I expected it to be recorded in the
package database. But it isn't. pkg_info -r joe\* and
pkg_info -R aspell\* don't report this dependency.

While building joe, it _does_ display that it depends on
aspell, and it correctly reports it as "found". It also
depends in libiconv, which _is_ correctly recorded in the
package database.

Am I doing something wrong, or is there a bug somewhere?

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Gesch�ftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M�n-
chen, HRB 125758, Gesch�ftsf�hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd

"With sufficient thrust, pigs fly just fine. However, this
is not necessarily a good idea. It is hard to be sure where
they are going to land, and it could be dangerous sitting
under them as they fly overhead." -- RFC 1925
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Erik Trulsson on
On Mon, Mar 08, 2010 at 12:50:05PM +0100, Oliver Fromme wrote:
> Hi,
>
> I just csupped fresh ports on a new stable/8 box, installed
> textproc/aspell-without-dicten (i.e. with WITHOUT_DICTEN=YES)
> and then proceeded to install editors/joe. Both installed
> successfully, as far as I can tell. There were no error
> messages, and joe seems to work fine. But ...
>
> joe has a dependency on aspell (both build dependency _and_
> run dependency), so I expected it to be recorded in the
> package database. But it isn't. pkg_info -r joe\* and
> pkg_info -R aspell\* don't report this dependency.
>
> While building joe, it _does_ display that it depends on
> aspell, and it correctly reports it as "found". It also
> depends in libiconv, which _is_ correctly recorded in the
> package database.
>
> Am I doing something wrong, or is there a bug somewhere?

If there is a bug it is in the ports system in general when a given
dependency can be fulfilled by more than one port.

If a port declares that it depends on file/library/whatever "foo" from
the port "bar", but you have "foo" installed from the port "baz" then
the dependency check will be fine (since it finds "foo") but when the
dependency should be registered in the package database it will try to
register a dependency on the package "bar", which is not installed, and
then no dependency is registered.
(In your case "foo" = "/usr/local/bin/aspell", "bar" = "textproc/aspell",
and "baz" = "textproc/aspell-without-dicten".)

It might be better if a dependency was registered on the package that
the depended-on file actually was installed from, but this is currently
not done.


--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013(a)student.uu.se
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Lars Eighner on
On Mon, 8 Mar 2010, Oliver Fromme wrote:

> joe has a dependency on aspell (both build dependency _and_
> run dependency), so I expected it to be recorded in the
> package database. But it isn't. pkg_info -r joe\* and
> pkg_info -R aspell\* don't report this dependency.

joe does not really depend upon aspell. It comes with a macro that assumes
aspell, and of course the macro won't work without aspell. The joe binary
uses different configuration files depending upon how it is called (i.e.
one to make it act like pico if you call joe with jpico, act like emacs if
called as jmacs, etc.)

The binary runs fine without aspell. In fact you can edit the configuration
files, which are plain ascii so that one of joe's faces uses ispell, one
uses aspell, and another has no mapping for a speller. If you had ispell
instead of aspell you could simply edit the configuration of the one(s) you
want to use. The joe macro language is very easy, but just changing one
letter in the spelling filter is a true no-brainer.

It would be wrong for the joe build to fail without aspell because aspell
has nothing whatever to do with the joe binary. It would be great if the
build could rewrite the spelling macro according to which speller it could
find or disable the macro if it couldn't find any.

With joe you can filter text through just about anything that can read from
STDIN and write to STDOUT: sed, tr, etc., including really heavy stuff like
(o)nsgmls. But it would be silly to say joe depends on them. It's the
bundled macro that uses aspell, and it can easily be edited to use anything
else.

>
> While building joe, it _does_ display that it depends on
> aspell, and it correctly reports it as "found". It also
> depends in libiconv, which _is_ correctly recorded in the
> package database.
>
> Am I doing something wrong, or is there a bug somewhere?

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Oliver Fromme on

Erik Trulsson wrote:
> On Mon, Mar 08, 2010 at 12:50:05PM +0100, Oliver Fromme wrote:
> > I just csupped fresh ports on a new stable/8 box, installed
> > textproc/aspell-without-dicten (i.e. with WITHOUT_DICTEN=YES)
> > and then proceeded to install editors/joe. Both installed
> > successfully, as far as I can tell. There were no error
> > messages, and joe seems to work fine. But ...
> >
> > joe has a dependency on aspell (both build dependency _and_
> > run dependency), so I expected it to be recorded in the
> > package database. But it isn't. pkg_info -r joe\* and
> > pkg_info -R aspell\* don't report this dependency.
>
> If there is a bug it is in the ports system in general when a given
> dependency can be fulfilled by more than one port.
>
> If a port declares that it depends on file/library/whatever "foo" from
> the port "bar", but you have "foo" installed from the port "baz" then
> the dependency check will be fine (since it finds "foo") but when the
> dependency should be registered in the package database it will try to
> register a dependency on the package "bar", which is not installed, and
> then no dependency is registered.
> (In your case "foo" = "/usr/local/bin/aspell", "bar" = "textproc/aspell",
> and "baz" = "textproc/aspell-without-dicten".)
>
> It might be better if a dependency was registered on the package that
> the depended-on file actually was installed from, but this is currently
> not done.

Thanks for the insights. That explains what I'm seeing.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Gesch�ftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M�n-
chen, HRB 125758, Gesch�ftsf�hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Oliver Fromme on

Lars Eighner wrote:
> On Mon, 8 Mar 2010, Oliver Fromme wrote:
> > joe has a dependency on aspell (both build dependency _and_
> > run dependency), so I expected it to be recorded in the
> > package database. But it isn't. pkg_info -r joe\* and
> > pkg_info -R aspell\* don't report this dependency.
>
> joe does not really depend upon aspell. It comes with a macro that assumes
> aspell, and of course the macro won't work without aspell. The joe binary
> uses different configuration files depending upon how it is called (i.e.
> one to make it act like pico if you call joe with jpico, act like emacs if
> called as jmacs, etc.)
>
> The binary runs fine without aspell. In fact you can edit the configuration
> files, which are plain ascii so that one of joe's faces uses ispell, one
> uses aspell, and another has no mapping for a speller. If you had ispell
> instead of aspell you could simply edit the configuration of the one(s) you
> want to use. The joe macro language is very easy, but just changing one
> letter in the spelling filter is a true no-brainer.
>
> It would be wrong for the joe build to fail without aspell because aspell
> has nothing whatever to do with the joe binary. It would be great if the
> build could rewrite the spelling macro according to which speller it could
> find or disable the macro if it couldn't find any.
>
> With joe you can filter text through just about anything that can read from
> STDIN and write to STDOUT: sed, tr, etc., including really heavy stuff like
> (o)nsgmls. But it would be silly to say joe depends on them. It's the
> bundled macro that uses aspell, and it can easily be edited to use anything
> else.

Yeah, I know all of that. I'm using joe for about 20 years.
That doesn't explain the problem I'm seeing, though.
(But Erik explained that very well.)

Actually I don't need no freakin' spell checker at all, but
the joe port insists on installing one. If it weren't for
my lazyness I had submitted a patch for WITHOUT_ASPELL a
long time ago ... ;-)

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Gesch�ftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M�n-
chen, HRB 125758, Gesch�ftsf�hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd

"C++ is the only current language making COBOL look good."
-- Bertrand Meyer
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

 |  Next  |  Last
Pages: 1 2
Prev: gimp-gap
Next: lang/python26 -- without threads