From owner-svn-ports-head@FreeBSD.ORG Sun Jul 27 18:13:32 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CAFA116E; Sun, 27 Jul 2014 18:13:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A87912464; Sun, 27 Jul 2014 18:13:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s6RIDWvh051382; Sun, 27 Jul 2014 18:13:32 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s6RIDVEb051377; Sun, 27 Jul 2014 18:13:31 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201407271813.s6RIDVEb051377@svn.freebsd.org> From: John Marino Date: Sun, 27 Jul 2014 18:13:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r363087 - in head/sysutils/grub2: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 18:13:32 -0000 Author: marino Date: Sun Jul 27 18:13:31 2014 New Revision: 363087 URL: http://svnweb.freebsd.org/changeset/ports/363087 QAT: https://qat.redports.org/buildarchive/r363087/ Log: sysutils/grub2: Fix wrong lz4 endianness and general port cleanup Due to lack of inclusion of , the lz4 code incorrectly assumes a big-endian system. The result issues manifest with errors like, "error: no such device: ." and "lz3 decompression failed" at the grub prompt. Modify existing patch to add . While here, simplify the port with OPTIONS_SUB framework and fix the manpage stuff on the options which apparently has been broken since this unmaintained port was staged. PR: 192066 Submitted by: Andrey Zholos Modified: head/sysutils/grub2/Makefile head/sysutils/grub2/files/patch-grub-2.00-zfs-feature-flag-support head/sysutils/grub2/pkg-plist Modified: head/sysutils/grub2/Makefile ============================================================================== --- head/sysutils/grub2/Makefile Sun Jul 27 18:13:01 2014 (r363086) +++ head/sysutils/grub2/Makefile Sun Jul 27 18:13:31 2014 (r363087) @@ -3,7 +3,7 @@ PORTNAME= grub2 PORTVERSION= 2.00 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= GNU/grub DISTNAME= grub-${PORTVERSION} @@ -18,12 +18,11 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${P CONFLICTS= grub-0* SSP_UNSAFE= yes -USE_XZ= yes USE_GCC= yes USE_AUTOTOOLS= automake aclocal autoconf ACLOCAL_ARGS= -Im4 GNU_CONFIGURE= yes -USES= bison gettext gmake +USES= bison gettext gmake tar:xz ONLY_FOR_ARCHS= i386 amd64 INFO= grub grub-dev MAKE_JOBS_UNSAFE= yes @@ -33,44 +32,31 @@ CONFIGURE_ENV= CPP="${CC} -E" \ LEX=${LOCALBASE}/bin/flex OPTIONS_DEFINE= MKFONT FUSE +OPTIONS_SUB= yes MKFONT_DESC= Build grub-mkfont (require freetype2) FUSE_DESC= Build grub-mount (require FUSE) -.include - -.if ${ARCH} != "amd64" -EFIEMU= "@comment " -.endif - -PLIST_SUB+= EFIEMU=${EFIEMU} +MKFONT_CONFIGURE_ENABLE= grub-mkfont +MKFONT_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 +MKFONT_BUILD_DEPENDS= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu -.if ${PORT_OPTIONS:MMKFONT} -LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 -BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu -MAN1+= grub-mkfont.1 -CONFIGURE_ARGS+= --enable-grub-mkfont -.else -CONFIGURE_ARGS+= --disable-grub-mkfont -MKFONT= "@comment " -.endif +FUSE_CONFIGURE_ENABLE= grub-mount +FUSE_LIB_DEPENDS= libfuse.so:${PORTSDIR}/sysutils/fusefs-libs -PLIST_SUB+= MKFONT=${MKFONT} +.include -.if ${PORT_OPTIONS:MFUSE} -LIB_DEPENDS+= libfuse.so:${PORTSDIR}/sysutils/fusefs-libs -CONFIGURE_ARGS+= --enable-grub-mount +.if ${ARCH} != amd64 +PLIST_SUB+= EFIEMU="@comment " .else -CONFIGURE_ARGS+= --disable-grub-mount -FUSE= "@comment " +PLIST_SUB+= EFIEMU="" .endif -PLIST_SUB+= FUSE=${FUSE} - post-patch: @${LN} -s ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf ${WRKSRC} @${TOUCH} -t 200001010000 ${WRKSRC}/Makefile.util.def post-configure: - @${LN} -sfh /usr/include/machine /usr/include/sys /usr/include/x86 ${WRKSRC}/grub-core + @${LN} -sfh /usr/include/machine /usr/include/sys /usr/include/x86 \ + ${WRKSRC}/grub-core .include Modified: head/sysutils/grub2/files/patch-grub-2.00-zfs-feature-flag-support ============================================================================== --- head/sysutils/grub2/files/patch-grub-2.00-zfs-feature-flag-support Sun Jul 27 18:13:01 2014 (r363086) +++ head/sysutils/grub2/files/patch-grub-2.00-zfs-feature-flag-support Sun Jul 27 18:13:31 2014 (r363087) @@ -395,7 +395,7 @@ new file mode 100644 index 0000000..ff85a77 --- /dev/null +++ grub-core/fs/zfs/zfs_lz4.c -@@ -0,0 +1,317 @@ +@@ -0,0 +1,318 @@ +/* + * LZ4 - Fast LZ compression algorithm + * Header File @@ -430,6 +430,7 @@ index 0000000..ff85a77 + * - LZ4 source repository : http://code.google.com/p/lz4/ + */ + ++#include +#include +#include +#include Modified: head/sysutils/grub2/pkg-plist ============================================================================== --- head/sysutils/grub2/pkg-plist Sun Jul 27 18:13:01 2014 (r363086) +++ head/sysutils/grub2/pkg-plist Sun Jul 27 18:13:31 2014 (r363087) @@ -1,6 +1,7 @@ %%FUSE%%bin/grub-mount -%%FUSE%%man/man1/grub-mount.1 +%%FUSE%%man/man1/grub-mount.1.gz %%MKFONT%%bin/grub-mkfont +%%MKFONT%%man/man1/grub-mkfont.1.gz %%MKFONT%%share/grub/themes/starfield/dejavu_10.pf2 %%MKFONT%%share/grub/themes/starfield/dejavu_12.pf2 %%MKFONT%%share/grub/themes/starfield/dejavu_bold_14.pf2