Subject: Re: pkglint make update failed
To: =?UTF-8?B?TWFyaWphbiBVbmV0acSH?= <marijan.unetic@epta.hr>
From: =?UTF-8?B?TWFyaWphbiBVbmV0acSH?= <marijan.unetic@epta.hr>
List: tech-pkg
Date: 01/03/2006 09:25:40
Julio,

old symbolic links in the pkgsrc were left in the pklint directory,
so pkglint again complained for the same reason.
After they were deleted manually everything passed.
pkg_comp, pkg_chk and pkglint are great tools.

Marijan


Marijan Unetić wrote:

> I changed WRKDIR_BASENAME to work.bulk.
> It is so since pkg_comp config file has a name bulk.conf.
> I got:
>
> /usr/pkg/bin/pkglint -q 1>&2
> ERROR: bulk: Only files and directories are allowed in pkgsrc.
> ERROR: default: Only files and directories are allowed in pkgsrc.
>
> Marijan
>
> Julio M. Merino Vidal wrote:
>
>> On 12/29/05, Marijan Unetić <marijan.unetic@epta.hr> wrote:
>>  
>>
>>> Hi,
>>>
>>> I was building pkgsrc under pkg_comp chroot tree with
>>> pkg_chk of pkgchk.conf predefined list.
>>> Everything was running well until pkglint.
>>>
>>> It fails with:
>>> ERROR: default: Only files and directories are allowed in pkgsrc.
>>>
>>> there is a symbolic link in the /usr/pkgsrc/pkgtools/pkglint
>>> lrwxr-xr-x   1 root   users    45 Dec 29 03:33 default ->
>>> /pkg_comp/obj/pkgsrc/pkgtools/pkglint/default
>>>
>>> I could try to run without pkglint in the pkg_comp tree,
>>> but am curious about this.
>>>   
>>
>>
>> Are you building with a rw pkgsrc?  I.e., doesn't REAL_PKGSRC_OPTS
>> have '-o ro' in it?
>>
>> If so, 'default' is one of the (link to) work directories and pkglint 
>> does
>> not detect it as such.  Try changing WRKDIR_BASENAME in
>> pkg_comp's configuration file to 'work.default' or something like that
>> (but keeping with 'work.' prefix); I hope pkglint will catch it 
>> correctly
>> if you do this.
>>
>> -- 
>> Julio M. Merino Vidal <jmmv84@gmail.com>
>> The Julipedia - http://julipedia.blogspot.com/
>> The NetBSD Project - http://www.NetBSD.org/
>>  
>>
>
>