Subject: annoying warnings from pkglint
To: None <tech-pkg@netbsd.org>
From: Dave <dgriffi@cs.csubak.edu>
List: tech-pkg
Date: 10/29/2004 00:46:04
I've just put together a new package for cpmtools (like mtools, but for
CP/M filesystems).  Here's the problem:

zaphod:/usr/pkgsrc/sysutils/cpmtools$ pkglint
WARN: possible direct use of command "file" found. Use ${FILE_CMD} instead.
WARN: "BUILD_DEPENDS" has to appear earlier.
0 errors and 2 warnings found.
zaphod:/usr/pkgsrc/sysutils/cpmtools$

The package builds and works fine.  If I comment out the line

.include "../../mk/autoconf.mk"

the package passes pkglint, but now fsed.cpm won't compile because ncurses
symbols are missing.  What am I doing wrong?

I've put the package at http://www.cs.csubak.edu/~dgriffi/cpmtools.tar.gz
for anyone who's curious.

Here's the package Makefile:

# $NetBSD$
#

DISTNAME=		cpmtools-2.4
CATEGORIES=		sysutils
MASTER_SITES=		http://www.moria.de/~michael/cpmtools/

MAINTAINER=		dgriffi@cs.csubak.edu
HOMEPAGE=		http://www.moria.de/~michael/cpmtools/
COMMENT=		Similar to mtools, except for CP/M filesystems

BUILD_DEPENDS+=		autoconf>=2.59:../../devel/autoconf

USE_BUILDLINK3=		yes
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes

INCOMPAT_CURSES=	NetBSD-1.4* NetBSD-1.5* NetBSD-1.6[-_.]*
INCOMPAT_CURSES+=	NetBSD-1.6[A-Z]-* NetBSD-1.6Z[A-C]*

pre-configure:
	cd ${WRKSRC};			\
	${AUTOCONF}

.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/autoconf.mk"
.include "../../mk/bsd.pkg.mk"


-- 
David Griffith
dgriffi@cs.csubak.edu