svn commit: r332589 - in head/sysutils: . grub2-bhyve

Alexey Dokuchaev danfe at FreeBSD.org
Wed Nov 6 06:29:02 UTC 2013


On Sun, Nov 03, 2013 at 05:11:59AM +0000, Kris Moore wrote:
> New Revision: 332589
> URL: http://svnweb.freebsd.org/changeset/ports/332589
> 
> +MASTER_SITES=	http://github.com/${GH_ACCOUNT}/${PORTNAME}/archive/v${DISTVERSION}.tar.gz?dummy=/

Why is this (ugly) line needed in presence of USE_GITHUB?

> +USE_GCC=	4.7

Why USE_GCC=yes (or even any) cannot be used?  Even more, what's exactly
wrong with Clang that port cannot be patched to support any compiler?

> +USE_GMAKE=	yes

USE_GMAKE is deprecated, you should've added "gmake" to USES instead.

> +ONLY_FOR_ARCHS=	amd64

Misplaced line.  It is not build-environment related; better reads just
after COMMENT or LICENSE.

> +MAKE_JOBS_UNSAFE=	yes

I will take a look how to make it -jX safe.

> +CONFIGURE_ARGS=	--with-platform=emu CC=gcc47 LEX=${LOCALBASE}/bin/flex --enable-grub-mount=no --enable-grub-mkfont=no

Very long line.  Makefiles support line wrapping via backslash (\).

> +WRKSRC=	${WRKDIR}/${PORTNAME}-${DISTVERSION}

If you would've used GH_* knobs correctly, you would not have to set WRKSRC.

> +do-configure:
> +	@ cd ${WRKSRC}/ && ./configure ${CONFIGURE_ARGS}

What's wrong with default do-configure target?

> +do-build:
> +	@ cd ${WRKSRC}/ && ${GMAKE}

What's wrong with default do-build target?  Also, referencing GMAKE here is
wrong, it should be MAKE_CMD.

> +do-install:
> +	@${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve

We do not mute installation comments, it pessimises debugging and confuses
user that nothing was installed at all.

./danfe

P.S.  With all due respect Kris, don't get me wrong, but quantity of quite
a few common mistakes in this commit makes me wondering if you're subscribed
to svn-ports-* ML, like you probably should.


More information about the svn-ports-head mailing list