Subject: Re: Pkgsrc.tar.gz & make error
To: wangqiang <wangqiang@hit.edu.cn>
From: David Ferlier <david@netbsd-fr.org>
List: netbsd-help
Date: 02/14/2004 04:47:25
On Sat, Feb 14, 2004 at 11:12:25AM +0800, wangqiang wrote:
> Hi all friends:
> I installed NetBSD 1.6.1 , full installation.
>
> And get pkgsrc.tar.gz from ftp.netbsd.org
> Untared in /usr, and got a tree of /usr/pkgsrc
>
> When I enter /usr/pkgsrc/edotors/joe, and type make
> It shows:
> ----------------------------------------------------------------------------
> #make
> Pkg_info: unknown option -- K
> Usage: pkg_info [...... etc]
> ...
> Make:"usr/pkgsrc/editors/joe/../../mk/compiler/../../mk/complier/gcc.mk"
> line 311: Malformed conditional (!empty(_LANGUAGES.gcc))
> Make:"usr/pkgsrc/editors/joe/../../mk/compiler/../../mk/complier/gcc.mk"
> line 348:if-less endif
> Make:"usr/pkgsrc/editors/joe/../../mk/compiler/../../mk/complier/gcc.mk"
> line 348:Need an operator
> Make: Fatal errors encountered -- cannot continue
>
> Make:stopped in /usr/pkgsrc/editors/joe
Well, you took the -current pkgsrc.tgz. Recently, some .mk files were
changed, and it's now impossible to make anything without an updated
pkgtools/pkg_install (the modified .mk runs pkg_info with the -K flag,
which is a new feature only available with the new pkg_install package).
There are a few solutions. One of them (which i use) is to:
- fetch a release tree of pkgsrc (say the 1.6 release one)
- fetch the current pkgsrc tree
- copy pkgtools/pkg_install of the current tree to the release tree
- go into /usr/pkgsrc-release/pkgtools/pkg_install and make install (this
will work since it will use the .mk files of the release-pkgsrc)
- rm -rf /usr/pkgsrc-release :)
- continue to use your current pkgsrc, /usr/pkgsrc
Yeah that's lame. The reason of the modification and a fix was surely
explained in tech-pkg@, but i didn't check.
Hope it helps, temporarly.
David
>
>
>
> ----------------------------------------------------------------------------
> How to fix that?
> I did not edit any thing.
>
> Thankyou all.
>
>
>
--
David Ferlier -- david@yazzy.org