Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2011 20:31:44 -0400
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        Stephen Montgomery-Smith <stephen@missouri.edu>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: portlint: DATADIR and NOEXAMPLEDOCS
Message-ID:  <4E277370.8080206@freebsd.org>
In-Reply-To: <4E273D4C.6060105@missouri.edu>
References:  <4E273D4C.6060105@missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/20/11 4:40 PM, Stephen Montgomery-Smith wrote:
> I have a couple of questions.
> 
> 1)  Why does portlint complain if a port is not DATADIR compliant?

The warning is very conditional.  It tries to provide information so one
can make an informed decision as to whether or not they want to be
DATADIR-safe.

> 
> What was the rationale behind making ports DATADIR compliant, so that if
> one types "make install DATADIR=/somewhere_else" then what would be
> stored in /usr/local/share/port_name will now be in /somewhere_else.
> 
> If there are one hundred ports depending upon port x/y, and those ports
> use the x/y DATADIR, then each of those hundred ports will have to include:
> DATADIR!=    cd ${.CURDIR}/../../x/y && make -V DATADIR

This doesn't make sense for all ports.  That's why the warning is soft.

> 
> This will really slow down makeindex.
> 
> It seems to me that you cannot use:
> DATADIR=    `cd ${.CURDIR}/../../x/y && make -V DATADIR`
> because this won't properly set PLIST_SUB.
> 
> 2)  Why does portlint NOT complain if a port is not NOPORTEXAMPLES
> compliant?

No one asked for it.

> 
> This would seem a natural extension of portlint complaining if a port is
> not NOPORTDOCS compliant.

I agree.  Patches welcome.

Joe

> 
> Stephen
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> 


-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E277370.8080206>