From b3a92810238748e58dee61eae02c9e6acc7a298f Mon Sep 17 00:00:00 2001 From: John Sheu Date: Wed, 19 Dec 2012 16:17:08 -0800 Subject: [PATCH] fbset: upgraded package to upstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upgraded sys-apps/fbset to version 2.1 on x86 For fbdev testing for nonroot-X effort BUG=chromium-os:388 TEST=local build, run on x86 Change-Id: I7fe298a80f2c17d9bf008ef517e95ed3da713c5b Reviewed-on: https://gerrit.chromium.org/gerrit/39993 Reviewed-by: Stéphane Marchesin Tested-by: John Sheu Commit-Queue: John Sheu --- .../metadata/md5-cache/sys-apps/fbset-2.1 | 11 ++++++ .../portage-stable/sys-apps/fbset/Manifest | 1 + .../sys-apps/fbset/fbset-2.1.ebuild | 36 +++++++++++++++++++ .../fbset/files/fbset-2.1-build.patch | 21 +++++++++++ 4 files changed, 69 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-apps/fbset-2.1 create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/fbset/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/fbset/fbset-2.1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/fbset/files/fbset-2.1-build.patch diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-apps/fbset-2.1 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-apps/fbset-2.1 new file mode 100644 index 0000000000..10a1b0f9ac --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-apps/fbset-2.1 @@ -0,0 +1,11 @@ +DEFINED_PHASES=compile install unpack +DEPEND=sys-devel/bison sys-devel/flex +DESCRIPTION=A utility to set the framebuffer videomode +HOMEPAGE=http://users.telenet.be/geertu/Linux/fbdev/ +IUSE=static +KEYWORDS=alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 +LICENSE=GPL-2 +SLOT=0 +SRC_URI=http://users.telenet.be/geertu/Linux/fbdev/fbset-2.1.tar.gz +_eclasses_=eutils 33ef77a15337022e05342d2c772a7a5a flag-o-matic 01a8b1eb019305bc4b4a8bd0b04e4cd8 multilib 5f4ad6cf85e365e8f0c6050ddd21659e portability 0be430f759a631e692678ed796e09f5c toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 user 9e552f935106ff0bc92af16da64b4b29 +_md5_=93cc0b0c6a3885f62ee3ae044d7cc2db diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/fbset/Manifest b/sdk_container/src/third_party/portage-stable/sys-apps/fbset/Manifest new file mode 100644 index 0000000000..30f3e5d080 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/fbset/Manifest @@ -0,0 +1 @@ +DIST fbset-2.1.tar.gz 27721 RMD160 4517560fd79d98ad71c94550eeefb1041ca56352 SHA1 141c42769818a08f1370a60dc3a809d87530db78 SHA256 40ff4ab0247b75138a0887ed40f81c1a6184f340b77126c16d074b1075b41c20 diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/fbset/fbset-2.1.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/fbset/fbset-2.1.ebuild new file mode 100644 index 0000000000..a3d5ff2a34 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/fbset/fbset-2.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/fbset/fbset-2.1.ebuild,v 1.35 2012/07/10 08:50:50 flameeyes Exp $ + +inherit toolchain-funcs flag-o-matic eutils + +DESCRIPTION="A utility to set the framebuffer videomode" +HOMEPAGE="http://users.telenet.be/geertu/Linux/fbdev/" +SRC_URI="http://users.telenet.be/geertu/Linux/fbdev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" +IUSE="static" + +DEPEND="sys-devel/bison + sys-devel/flex" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-build.patch" +} + +src_compile() { + use static && append-ldflags -static + tc-export CC + emake || die "emake failed" +} + +src_install() { + dobin fbset modeline2fb || die "dobin failed" + doman *.[58] + dodoc etc/fb.modes.* INSTALL +} diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/fbset/files/fbset-2.1-build.patch b/sdk_container/src/third_party/portage-stable/sys-apps/fbset/files/fbset-2.1-build.patch new file mode 100644 index 0000000000..94a323bb39 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/fbset/files/fbset-2.1-build.patch @@ -0,0 +1,21 @@ +Index: fbset-2.1/Makefile +=================================================================== +--- fbset-2.1.orig/Makefile ++++ fbset-2.1/Makefile +@@ -2,7 +2,6 @@ + # Linux Frame Buffer Device Configuration + # + +-CC = gcc -Wall -O2 -I. + BISON = bison -d + FLEX = flex + INSTALL = install +@@ -20,6 +19,8 @@ lex.yy.o: lex.yy.c fbset.h modes.tab.h + lex.yy.c: modes.l + $(FLEX) modes.l + ++modes.tab.h: modes.tab.c ++ + modes.tab.c: modes.y + $(BISON) modes.y +