Added v86d

This commit is contained in:
Suwako Moriya 2019-05-04 11:06:33 +02:00
parent 945e9d4c61
commit fbfd75a49c
3 changed files with 75 additions and 0 deletions

3
sys-apps/v86d/Manifest Normal file
View File

@ -0,0 +1,3 @@
AUX 00000000-atomic_t.patch 207 BLAKE2B c934a4d06b593aaf362ef62f206410ef0a544cf917c205f5eb2241dc525efc87aae618f03413ba9be276a65b99e32db547ba514431cbe48cae73118311373872 SHA512 9ca2b1697f4d1b6c6a903a260a30b525224d5614ac60fa0e5d46eb0ea2c00238444538552fdaceba92e07d30a174db6348cb5e32f9ad2a11b08562090b45f632
DIST v86d-0.1.10.tar.gz 88520 BLAKE2B 0b382c1cb3a3fd3637c4169b806ecae504834a6c1afa46d2e23eb0a0f5ea5aa7268366f3cf7cb41532db8727ebdf1714467fd6002be4ebde56fc7216a0c24029 SHA512 148b1676d932d1207da396defeae0fc39b664139eca5f29be98ceedc33e89566f7c35057df93249303c8e2c1bff0427430a077f88a85997e62ea96c29b5db9d1
EBUILD v86d-0.1.10-r1.ebuild 1538 BLAKE2B bc22f12a5f03c4a3dab9faacd001cf5fa326bb7bddb1008433833b1c28c1df880b830f0ae77a028fe9ec7bf80bdd2f89ff4fba8b09f22399c5dfa21bc703ea7a SHA512 db8beae78186f75453e269cff1088e701bffb0aef0a9f3842919cab2d196e1f5eebdaa0eb6d38b33e21970e9ec962c24404a07f6f21728a0b6a7a08da8d8ba29

View File

@ -0,0 +1,11 @@
--- v86d-0.1.10-orig/v86.h
+++ v86d-0.1.10/v86.h
@@ -19,6 +19,8 @@
struct completion;
+typedef struct { int counter; } atomic_t;
+
#include <video/uvesafb.h>
//#define ulog(args...) do {} while (0)

View File

@ -0,0 +1,61 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools eutils flag-o-matic linux-info multilib
DESCRIPTION="A daemon to run x86 code in an emulated environment"
HOMEPAGE="https://dev.gentoo.org/~spock/projects/uvesafb/"
SRC_URI="https://github.com/mjanusz/${PN}/archive/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug x86emu"
DEPEND="dev-libs/klibc"
RDEPEND=""
PATCHES=( "${FILESDIR}/00000000-atomic_t.patch" )
MY_PN=${PN/v/}
S="${WORKDIR}/${PN}-${MY_PN}-${PV}"
pkg_setup() {
linux-info_pkg_setup
}
src_prepare() {
if [ -z "$(grep V86D ${ROOT}/usr/$(get_libdir)/klibc/include/linux/connector.h)" ]; then
eerror "You need to compile klibc against a kernel tree patched with uvesafb"
eerror "prior to merging this package."
die "Kernel not patched with uvesafb."
fi
default
}
src_configure() {
./configure --with-klibc $(use_with debug) $(use_with x86emu) || die
}
src_compile() {
# Disable stack protector, as it does not work with klibc (bug #346397).
filter-flags -fstack-protector -fstack-protector-all
#append-cflags "-nostdinc -I/usr/include -I/usr/local/include"
emake KDIR="${KV_DIR}" || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc README ChangeLog
insinto /usr/share/${PN}
doins misc/initramfs
}
pkg_postinst() {
elog "If you wish to place v86d into an initramfs image, you might want to use"
elog "'/usr/share/${PN}/initramfs' in your kernel's CONFIG_INITRAMFS_SOURCE."
}