Second "RFC" on pkg-data idea for ports
Kris Kennaway
kris at obsecurity.org
Mon Apr 19 19:01:36 PDT 2004
On Mon, Apr 19, 2004 at 09:59:35PM -0400, Garance A Drosihn wrote:
> At 8:10 PM -0700 4/13/04, Kris Kennaway wrote:
> >On Tue, Apr 13, 2004 at 07:22:26PM -0400, Garance A Drosihn wrote:
> > > At 12:53 AM +0200 4/14/04, Martin wrote:
> > > > It is very difficult to parse the Makefiles to find out
> > > > which version number and which dependencies it has. Some
> > > > versions (like KDE3) are just variables and I don't have an
> >> > idea how to fetch them yet.
> >>
> >> If it is easy for you to execute commands, then something
> >> like:
> >>
> >> /bin/make -f /usr/ports/shells/bash2/Makefile -V PORTVERSION
> >>
> >> might give you the result you want. But I do not know if
> >> that will work for all ports.
> >
> >It should, modulo s,/bin,/usr/bin, :-).
>
> Oops! Yeah. It helps to get the right command!
>
> But the other thing I was thinking of is that the above is not
> sufficient for some ports. In some cases, you also have to 'cd'
> into the directory of the port before doing the `make'. Eg:
>
> (32) cd
> (33) make -f /usr/ports/shells/zsh+euc_hack/Makefile -V PORTNAME
> "/usr/ports/shells/zsh+euc_hack/Makefile", line 18: Could not find
> /root/../zsh/Makefile
> make: fatal errors encountered -- cannot continue
>
> (34) cd /usr/ports/shells/zsh+euc_hack
> (35) make -f /usr/ports/shells/zsh+euc_hack/Makefile -V PORTNAME
> zsh
Or use make -C.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040419/7ec5a676/attachment.bin
More information about the freebsd-current
mailing list