mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 23:46:59 +02:00
chore(sys-devel/dev86): import from portage
Change-Id: I28832fe1aa1362ccdf3df501347a8e76cdaa2c2a
This commit is contained in:
parent
f8ee11f0a0
commit
a57a660b27
110
sdk_container/src/third_party/portage-stable/sys-devel/dev86/ChangeLog
vendored
Normal file
110
sdk_container/src/third_party/portage-stable/sys-devel/dev86/ChangeLog
vendored
Normal file
@ -0,0 +1,110 @@
|
||||
# ChangeLog for sys-devel/dev86
|
||||
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/ChangeLog,v 1.25 2012/11/28 10:41:09 polynomial-c Exp $
|
||||
|
||||
28 Nov 2012; Lars Wendler <polynomial-c@gentoo.org> metadata.xml:
|
||||
Dropped myself as maintainer.
|
||||
|
||||
*dev86-0.16.19 (02 Nov 2012)
|
||||
|
||||
02 Nov 2012; Mike Frysinger <vapier@gentoo.org> +dev86-0.16.19.ebuild,
|
||||
+files/dev86-0.16.19-fortify.patch, +files/dev86-0.16.19-memmove.patch:
|
||||
Version bump. Include fix from Debian for ncc #354351 by Joerg Neikes. Fix
|
||||
stripping errors #413275 by Michele Ciacci. Also fix up libdir handling as
|
||||
bcc had /usr/lib/gcc/ hardcoded.
|
||||
|
||||
06 Aug 2012; Rick Farina <zerochaos@gentoo.org> dev86-0.16.18.ebuild:
|
||||
fixed multilib-strict QA violation
|
||||
|
||||
28 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> dev86-0.16.18.ebuild:
|
||||
x86 stable wrt bug #400685
|
||||
|
||||
25 Jan 2012; Markos Chandras <hwoarang@gentoo.org> dev86-0.16.18.ebuild:
|
||||
Stable on amd64 wrt bug #400685
|
||||
|
||||
20 Apr 2011; Justin Lecher <jlec@gentoo.org> dev86-0.16.17-r6.ebuild,
|
||||
dev86-0.16.18.ebuild:
|
||||
Respect CC
|
||||
|
||||
*dev86-0.16.18 (07 Dec 2010)
|
||||
|
||||
07 Dec 2010; Lars Wendler <polynomial-c@gentoo.org> +dev86-0.16.18.ebuild:
|
||||
Version bump.
|
||||
|
||||
15 Nov 2010; Lars Wendler <polynomial-c@gentoo.org>
|
||||
dev86-0.16.17-r6.ebuild:
|
||||
Don't mess with CPPFLAGS as they tend to break compilation (bug #343655).
|
||||
|
||||
24 Oct 2010; Lars Wendler <polynomial-c@gentoo.org>
|
||||
dev86-0.16.17-r6.ebuild, +files/dev86-0.16.17-make382.patch:
|
||||
Fixed compilation with make-3.82 (bug #336544). Patch kindly provided by
|
||||
upstream.
|
||||
|
||||
09 Nov 2009; Markus Meier <maekke@gentoo.org> dev86-0.16.17-r6.ebuild:
|
||||
amd64 stable, bug #289014
|
||||
|
||||
18 Oct 2009; Christian Faulhammer <fauli@gentoo.org>
|
||||
dev86-0.16.17-r6.ebuild:
|
||||
stable x86, bug 289014
|
||||
|
||||
05 Oct 2009; Mike Frysinger <vapier@gentoo.org> dev86-0.16.17-r6.ebuild:
|
||||
Update HOMEPAGE/SRC_URI #259106 by Mr. Anderson, and clean up some of the
|
||||
build code in the process.
|
||||
|
||||
*dev86-0.16.17-r6 (02 Feb 2009)
|
||||
|
||||
02 Feb 2009; Harald van Dijk <truedfx@gentoo.org>
|
||||
+files/dev86-0.16.17-fortify.patch, +dev86-0.16.17-r6.ebuild:
|
||||
Fix possible buffer overflow (#256782)
|
||||
|
||||
06 Mar 2008; Christoph Mende <angelos@gentoo.org> dev86-0.16.17-r5.ebuild:
|
||||
Stable on amd64, bug #208905
|
||||
|
||||
*dev86-0.16.17-r5 (26 Feb 2008)
|
||||
|
||||
26 Feb 2008; Raúl Porcel <armin76@gentoo.org> -dev86-0.16.17-r3.ebuild,
|
||||
-dev86-0.16.17-r4.ebuild, +dev86-0.16.17-r5.ebuild:
|
||||
Fix bug #167790 and bug #201313
|
||||
|
||||
*dev86-0.16.17-r4 (04 Nov 2007)
|
||||
|
||||
04 Nov 2007; Charlie Shepherd <masterdriverz@gentoo.org>
|
||||
+dev86-0.16.17-r4.ebuild:
|
||||
Move man pages from /usr/man to /usr/share/man. Bug 167790, thanks to Andy
|
||||
Romeril for reporting.
|
||||
|
||||
15 Jul 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
|
||||
Assigning to m-needed, as beu is being retired (#66608).
|
||||
|
||||
13 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
|
||||
add <herd>no-herd</herd>
|
||||
|
||||
11 Dec 2006; Elfyn McBratney <beu@gentoo.org> dev86-0.16.17-r3.ebuild:
|
||||
Kill redundant DEPEND on virtual/libc.
|
||||
|
||||
11 Aug 2006; Chris Bainbridge <chrb@gentoo.org> -dev86-0.16.17-r2.ebuild,
|
||||
dev86-0.16.17-r3.ebuild:
|
||||
stable on x86
|
||||
|
||||
*dev86-0.16.17-r3 (04 Aug 2006)
|
||||
|
||||
04 Aug 2006; Chris Bainbridge <chrb@gentoo.org> +dev86-0.16.17-r3.ebuild:
|
||||
Add bin86 as a depend and fix collisions, bug #139188
|
||||
|
||||
*dev86-0.16.17-r2 (11 Nov 2005)
|
||||
|
||||
11 Nov 2005; <chrb@gentoo.org> +files/dev86-pic.patch,
|
||||
+dev86-0.16.17-r2.ebuild:
|
||||
Fix PIC compile, CFLAGS (#111257)
|
||||
|
||||
*dev86-0.16.17-r1 (10 Nov 2005)
|
||||
|
||||
10 Nov 2005; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+dev86-0.16.17-r1.ebuild:
|
||||
New revision that compiles on amd64.
|
||||
|
||||
*dev86-0.16.17 (26 Oct 2005)
|
||||
|
||||
26 Oct 2005; Chris Bainbridge <chrb@gentoo.org> +metadata.xml,
|
||||
+dev86-0.16.17.ebuild:
|
||||
This package was submitted by Olaf Wepner in bug #101754
|
33
sdk_container/src/third_party/portage-stable/sys-devel/dev86/Manifest
vendored
Normal file
33
sdk_container/src/third_party/portage-stable/sys-devel/dev86/Manifest
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX dev86-0.16.17-fortify.patch 658 SHA256 8f03870ef8e769d0d112f992f7d911e946e54579c1e214495abf9cd2f126b626 SHA512 91829385361708eb004bdd4c09c44cb01e38bd982e3a4aed0d001405da9c404d5184d38896828b48ee1ba5f50f4a85bbe7dccbd5a8c787fa3bf3691fb3d79b8e WHIRLPOOL 8d7784bf3c8dc6f0d332531e0c4e478327c4846c92b64d48a16e02586ba62a524ae939c572f3caceff7d165a43b2299876c4a32e008cc792dd3aa5fbdec54b6b
|
||||
AUX dev86-0.16.17-make382.patch 299 SHA256 782d221b2e829a29e4d056d1d52b7c6d0b1ccfc21fc7ce7c07416a28a64303ef SHA512 8e7264f1d7d8ea8e8f6ac92a43e53c8741d08f6f0f95391210f7f05dac1e6abd0fae13dd578a74c9aaba7768275a5a618257071aadd61b7a12acf4ad75441de4 WHIRLPOOL 68dbc9dea46105718953656942c1f84fbebcdc43dabe4a6d3b1edc55852abeca9b6b2034871ac66480f4f9d44a085c839fe4960701784b62b92bd6e983d9fa18
|
||||
AUX dev86-0.16.19-fortify.patch 325 SHA256 1a10082f8bfcd0e1e5335c53b0243994360dcdc75d9c3da431bc069e76a1af44 SHA512 04195831db5802ae25a5a1957979b5439168c708d9d3702a62c1d267090fca59e565ac78bb3a6bfb312282ce002b52760903e9d4ab30f3c906568a70dc349696 WHIRLPOOL 600dd6ab2947b593d65e220307faa7a95b23140c6c02c329b28d4857101b58d127631c5a22f3b41e811cfa772577071e86ad105de34965afcb03102c405eede9
|
||||
AUX dev86-0.16.19-memmove.patch 401 SHA256 f8a0db2d1f9bd944fa3e5a918fe6fc990820883d0dd8046c55429e10318b4ca5 SHA512 4fa5ee815636048db2a0f5faeeb48b06e559639fb21be1db3319495bfe5f5e1ee1afcfc920d496845cf4bb3eae7ff4bf9aa77124638788f918ae27599d153a6a WHIRLPOOL 6e54a52fa49a846353d63b1e89b74e017a64ffe6a33b256a58ed21aeb7df76c72ec47bffc17058e749910194a8acb3dd44c5535a9e76d88a5a88211c6f077008
|
||||
AUX dev86-pic.patch 546 SHA256 d1859e3409a70a6b78bdf7ef6664421b1ce272b068836b8fb93b5fce1b20d440 SHA512 33a62c710e22f82141a08ebd02f47c17e2955c683d3a2ce9e8d35db728cf6d3d14089cc258abd9de386f2580ee076ad32aa912ab65c2c8f53c6705684010ab46 WHIRLPOOL 5d8bacf7f4846b55d4755694fa2b006c95f54d147bc4d56ecadb4995636586723d3047242f75be018d34c84206f80cbae07dd8c58d0d2fd4a8e9f34c3cc9878c
|
||||
DIST Dev86src-0.16.17.tar.gz 703028 SHA256 52ed4980c0e4b68d2624aadb0ceb0339cb3fd8dd7c2175419d4f77a451846cbe
|
||||
DIST Dev86src-0.16.18.tar.gz 705030 SHA256 049852a83898d3ee0ba97b88e526897ec6eaf0a051f4af1e9e073b1151178ff1 SHA512 d14523bc1623e027188f4003be9725adaa56a1703edc434d747c1a0e6cffdfdf8dfa593d430eda28e7e77ae84e97e65a119f4b5d2e7fe6146f3a84f42e3c92ac WHIRLPOOL 4d5e06fca2356191b001912a4673b935692d45dcf5e3b5d23e203a3e9656fb798395e046a52a8de14f6196d3a68e3d470c28f62790edadf235974831446eb05e
|
||||
DIST Dev86src-0.16.19.tar.gz 713688 SHA256 33398b87ca85e2b69e4062cf59f2f7354af46da5edcba036c6f97bae17b8d00e SHA512 4077f7ac800330eb4658ffaa53dc8cc982792b1dcd7a59625cba4a5dac494117c6bd4ec5307bf02349ad6ae3d0c0903ab2e41123a8df94373e469092fa005cd3 WHIRLPOOL 87862b606be25f81c2c487534f36b20ac04d1df4303d644a46563e9f382686574dbe650c80265d44e53913f5bda7503c35cf056f7ffd8c5e559729e36c9db4d2
|
||||
EBUILD dev86-0.16.17-r6.ebuild 1669 SHA256 74ed0aaa8f41652cd69020c1984dbdbd1dfed96a86bf9762278b85eea34b4c5f SHA512 a917b18de07ce10ee17875ba63aa49cd13ad15fb1c7f4c181ede4307e5a605d231207af9df1ce95f64d68d3689d3a41ee793cc2c8232ec39d0c8ceb452847263 WHIRLPOOL eca2646aaee24dd7592f28e68304fd9d7a9fcbd74368bcf20b4d73a2bfafe80e86b76966df15818fa7b2935d529f47dc85b3bc077c1fda354ee0f39f35a7a373
|
||||
EBUILD dev86-0.16.18.ebuild 1713 SHA256 405e5f1f334f312c4a7e3660b669b9fde5694772c27a277158090f49a8ba52bb SHA512 222c7550599d8d6ca3c50cf13fa7c6f9aecb9ee665882a53a033ba90c8d611bc6c3894af69f4008fa37de70511887d20f8944447f74d29fc89275082df15ee82 WHIRLPOOL 6afed943d21299709e62cfeb90d70a9757c9dc68b3c143bf22b4b641ab8e5adf1a2d00bdbe69bbb3aa96e8980d039438424bc9262a27eef39c2d2a440a5196b6
|
||||
EBUILD dev86-0.16.19.ebuild 1933 SHA256 a5cb0c940357582c9c524240a78d18399ca491402ca85f3432485db1aa355923 SHA512 fe7275fcd1d21a175b93536419cab232dd40868a707acfba6b9d9b033cf29f080cc380987a87fe6e80415bfbfae1cc9f7a4651378a528368859d69d2f8f9d717 WHIRLPOOL d6d7e4690c6f1ef5a7036a2ece45933091dd50a1abf10b2a45dafd62a9b77055b4e96722aa60e4fe5bb8277c416b51d1f5c1f7ca7530773457eac4d713f4f400
|
||||
MISC ChangeLog 3821 SHA256 deda117ae998ff870e21939138c7c836f107d7c5791d1b30119a0b18e6ad802b SHA512 6f4d65640cd4b23e11e6efd506cadb7e5b5fe17b27226f1d69773599c350aec350b54ecfaded1d695d545e1c818d8b29fd5cb63cab48f6054055f80ef0dc487f WHIRLPOOL faf867120678bafcebad2040009835a92839ad78a18ba559641ed7bf9b4b1f2f6de6970ecf0386b24a7e3a60090839b672b9ba49617c4b57489c1396854a84c9
|
||||
MISC metadata.xml 316 SHA256 ce1a344560f15a1b658644fa288401154d6f889bf32d45e5fbcb5880b8b378a2 SHA512 200d98a582514d0b3297092d94f8bda71dcbbae74dab686eda1dc108d2566a8bff32408dbca80e600cb65578ef65ec45bf5d9d90c2ea6c5ed9f9397ae9ad9206 WHIRLPOOL 0d8a93b9396876c5cf6437660a0156c5883088c4b0b3c1cf9f6bc2c9cafe4f0b7f38e6582ab5eedb3d8006efd53645563d5da20c79464534b9ca91624dd1dfb0
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJQtepGAAoJEPiazRVxLXTFwdkP+gJnl2G3Xu0z090aUN+7d8wc
|
||||
HdCTiW1hkOqPybQdeZUxwalHx0yxEM9QvLdL3qxB8PsrtJwPEWEjhB9esBw11fR5
|
||||
WoVL5Zl4hNPv8B95mW2Ms5gOgVfHLRCDCVFhCyZyykBx3yzbynfooTibcn0j3Q2W
|
||||
RLuWkbYG0BT4TJPAeRIzWO6RfY/Rg+RO2vmgyIaY2NkLRsexu+SYziIGFtMvtgRS
|
||||
CFEEL792hy5smaZ9yTVHPe3XoUTesrOoRsx2RZeY1uMnNuWvKsuD8Y29BUJM9WUd
|
||||
E557NbQyfnGPehz+tEPK+ZqH6k+cnOQbqHKEtBe3UucHrNy/aJzsuS2gfS+oSJr6
|
||||
QVjhQU0AMyghxgmIqr/4OfbEfvTELSdAT2bquqwrFY6PLP/NTUi5G4Hor3TjUYFI
|
||||
kY+PyIHVkJ7w0kXoL6t/5fll9eqCczZXrWM0Oon6cPOCbz8j9winxKj4JIeF7WHK
|
||||
kFKcYadQcChOkcqTOTWq6sZCJT2Oh990vqh0uDiP2iC95ikYhoGy+o1e+6yfIsnZ
|
||||
1tWYWhvkrUV413C4Qo36H/aSwJTNVzXpDpW0Z9tix1BSgU+VRTv+UXlvo9kovSk7
|
||||
bwV6zZTRd9fM0a4D9vhZfA0bBLCv5yIukRSHmWyy3KSLGWCsoKkNYvw73TrANVd6
|
||||
RLsGmjCee+IyYTxFm3gA
|
||||
=NFXf
|
||||
-----END PGP SIGNATURE-----
|
67
sdk_container/src/third_party/portage-stable/sys-devel/dev86/dev86-0.16.17-r6.ebuild
vendored
Normal file
67
sdk_container/src/third_party/portage-stable/sys-devel/dev86/dev86-0.16.17-r6.ebuild
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/dev86-0.16.17-r6.ebuild,v 1.7 2011/04/20 20:23:45 jlec Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Bruce's C compiler - Simple C compiler to generate 8086 code"
|
||||
HOMEPAGE="http://www.debath.co.uk/"
|
||||
SRC_URI="http://www.debath.co.uk/dev86/Dev86src-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="sys-devel/bin86"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gperf"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
# elksemu doesn't compile under amd64
|
||||
if use amd64; then
|
||||
einfo "Not compiling elksemu on amd64"
|
||||
sed -i.orig \
|
||||
-e 's,alt-libs elksemu,alt-libs,' \
|
||||
-e 's,install-lib install-emu,install-lib,' \
|
||||
"${S}"/makefile.in
|
||||
fi
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/dev86-pic.patch
|
||||
epatch "${FILESDIR}"/${P}-fortify.patch
|
||||
epatch "${FILESDIR}"/${P}-make382.patch
|
||||
sed -i \
|
||||
-e "s:-O2 -g:${CFLAGS}:" \
|
||||
-e '/INEXE=/s:-s::' \
|
||||
makefile.in
|
||||
sed -i -e '/INSTALL_OPTS=/s:-s::' bin86/Makefile
|
||||
sed -i -e '/install -m 755 -s/s:-s::' dis88/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Don't mess with CPPFLAGS as they tend to break compilation
|
||||
# (bug #343655).
|
||||
CPPFLAGS=""
|
||||
|
||||
emake -j1 DIST="${D}" CC="$(tc-getCC)" || die
|
||||
|
||||
export PATH=${S}/bin:${PATH}
|
||||
cd bin
|
||||
ln -s ncc bcc
|
||||
cd ..
|
||||
cd bootblocks
|
||||
ln -s ../bcc/version.h .
|
||||
emake DIST="${D}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install-all DIST="${D}" || die
|
||||
dobin bootblocks/makeboot || die
|
||||
# remove all the stuff supplied by bin86
|
||||
cd "${D}"
|
||||
rm usr/bin/{as,ld,nm,objdump,size}86 || die
|
||||
rm usr/man/man1/{as,ld}86.1 || die
|
||||
dodir /usr/share/man
|
||||
mv usr/man usr/share/ || die
|
||||
}
|
66
sdk_container/src/third_party/portage-stable/sys-devel/dev86/dev86-0.16.18.ebuild
vendored
Normal file
66
sdk_container/src/third_party/portage-stable/sys-devel/dev86/dev86-0.16.18.ebuild
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/dev86-0.16.18.ebuild,v 1.5 2012/08/06 02:28:35 zerochaos Exp $
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Bruce's C compiler - Simple C compiler to generate 8086 code"
|
||||
HOMEPAGE="http://www.debath.co.uk/"
|
||||
SRC_URI="http://www.debath.co.uk/dev86/Dev86src-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="sys-devel/bin86"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gperf"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
# elksemu doesn't compile under amd64
|
||||
if use amd64; then
|
||||
einfo "Not compiling elksemu on amd64"
|
||||
sed -i.orig \
|
||||
-e 's,alt-libs elksemu,alt-libs,' \
|
||||
-e 's,install-lib install-emu,install-lib,' \
|
||||
"${S}"/makefile.in
|
||||
fi
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/dev86-pic.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.16.17-fortify.patch
|
||||
sed -i \
|
||||
-e "s:-O2 -g:${CFLAGS}:" \
|
||||
-e '/INEXE=/s:-s::' \
|
||||
makefile.in
|
||||
sed -i -e '/INSTALL_OPTS=/s:-s::' bin86/Makefile
|
||||
sed -i -e '/install -m 755 -s/s:-s::' dis88/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Don't mess with CPPFLAGS as they tend to break compilation
|
||||
# (bug #343655).
|
||||
CPPFLAGS=""
|
||||
|
||||
emake -j1 DIST="${D}" CC="$(tc-getCC)" || die
|
||||
|
||||
export PATH=${S}/bin:${PATH}
|
||||
cd bin
|
||||
ln -s ncc bcc
|
||||
cd ..
|
||||
cd bootblocks
|
||||
ln -s ../bcc/version.h .
|
||||
emake DIST="${D}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install-all LIBDIR="/usr/$(get_libdir)/bcc" INCLDIR="/usr/$(get_libdir)/bcc" DIST="${D}" || die
|
||||
dobin bootblocks/makeboot || die
|
||||
# remove all the stuff supplied by bin86
|
||||
cd "${D}"
|
||||
rm usr/bin/{as,ld,nm,objdump,size}86 || die
|
||||
rm usr/man/man1/{as,ld}86.1 || die
|
||||
dodir /usr/share/man
|
||||
mv usr/man usr/share/ || die
|
||||
}
|
78
sdk_container/src/third_party/portage-stable/sys-devel/dev86/dev86-0.16.19.ebuild
vendored
Normal file
78
sdk_container/src/third_party/portage-stable/sys-devel/dev86/dev86-0.16.19.ebuild
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/dev86/dev86-0.16.19.ebuild,v 1.1 2012/11/02 19:03:28 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Bruce's C compiler - Simple C compiler to generate 8086 code"
|
||||
HOMEPAGE="http://www.debath.co.uk/"
|
||||
SRC_URI="http://www.debath.co.uk/dev86/Dev86src-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="sys-devel/bin86"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gperf"
|
||||
|
||||
STRIP_MASK="/usr/*/bcc/lib*.a /usr/*/i386/libc.a"
|
||||
|
||||
src_prepare() {
|
||||
# elksemu doesn't compile under amd64
|
||||
if use amd64; then
|
||||
einfo "Not compiling elksemu on amd64"
|
||||
sed -i \
|
||||
-e 's,alt-libs elksemu,alt-libs,' \
|
||||
-e 's,install-lib install-emu,install-lib,' \
|
||||
makefile.in || die
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/dev86-pic.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.16.19-fortify.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.16.19-memmove.patch #354351
|
||||
sed -i \
|
||||
-e "s:-O2 -g:${CFLAGS}:" \
|
||||
-e '/INEXE=/s:-s::' \
|
||||
makefile.in || die
|
||||
sed -i \
|
||||
-e "s:/lib/:/$(get_libdir)/:" \
|
||||
bcc/bcc.c || die
|
||||
sed -i -e '/INSTALL_OPTS=/s:-s::' bin86/Makefile || die
|
||||
sed -i -e '/install -m 755 -s/s:-s::' dis88/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Don't mess with CPPFLAGS as they tend to break compilation
|
||||
# (bug #343655).
|
||||
CPPFLAGS=""
|
||||
|
||||
# First `make` is also a config, so set all the path vars here
|
||||
emake -j1 \
|
||||
DIST="${D}" \
|
||||
CC="$(tc-getCC)" \
|
||||
LIBDIR="/usr/$(get_libdir)/bcc" \
|
||||
INCLDIR="/usr/$(get_libdir)/bcc"
|
||||
|
||||
export PATH=${S}/bin:${PATH}
|
||||
cd bin
|
||||
ln -s ncc bcc
|
||||
cd ..
|
||||
cd bootblocks
|
||||
ln -s ../bcc/version.h .
|
||||
emake DIST="${D}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install-all DIST="${D}"
|
||||
dobin bootblocks/makeboot
|
||||
# remove all the stuff supplied by bin86
|
||||
cd "${D}"
|
||||
rm usr/bin/{as,ld,nm,objdump,size}86 || die
|
||||
rm usr/man/man1/{as,ld}86.1 || die
|
||||
dodir /usr/share/man
|
||||
mv usr/man usr/share/
|
||||
}
|
43
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.17-fortify.patch
vendored
Normal file
43
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.17-fortify.patch
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
--- dev86-0.16.17/bcc/bcc.c
|
||||
+++ dev86-0.16.17/bcc/bcc.c
|
||||
@@ -19,6 +19,7 @@
|
||||
#ifdef __STDC__
|
||||
#include <stdlib.h>
|
||||
#ifndef MSDOS
|
||||
+#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#else
|
||||
@@ -596,12 +597,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
-void
|
||||
-command_reset()
|
||||
-{
|
||||
#ifndef MAXPATHLEN
|
||||
+#ifdef PATH_MAX
|
||||
+#define MAXPATHLEN PATH_MAX
|
||||
+#else
|
||||
#define MAXPATHLEN 1024
|
||||
#endif
|
||||
+#endif
|
||||
+
|
||||
+void
|
||||
+command_reset()
|
||||
+{
|
||||
char buf[MAXPATHLEN];
|
||||
char ** prefix;
|
||||
char * saved_cmd;
|
||||
@@ -1308,11 +1314,7 @@
|
||||
|
||||
for(d=s=ptr; d && *s; s=d)
|
||||
{
|
||||
-#ifdef MAXPATHLEN
|
||||
char buf[MAXPATHLEN];
|
||||
-#else
|
||||
- char buf[1024];
|
||||
-#endif
|
||||
|
||||
free(temp);
|
||||
d=strchr(s, ':');
|
11
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.17-make382.patch
vendored
Normal file
11
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.17-make382.patch
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
--- libc/i386sys/Makefile
|
||||
+++ libc/i386sys/Makefile
|
||||
@@ -12,7 +12,7 @@
|
||||
DOBJ=opendir.o closedir.o readdir.o
|
||||
|
||||
ifeq ($(LIB_CPU)-$(LIB_OS),i386-ELKS)
|
||||
-OBJ=$(LOBJ3) $(LOBJ) $(EOBJ) $(DOBJ) setjmp3.o
|
||||
+OBJ=$(LOBJ) $(LOBJ) $(EOBJ) $(DOBJ) setjmp3.o
|
||||
SYSCALLS=syscalls
|
||||
|
||||
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
|
23
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.19-fortify.patch
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.19-fortify.patch
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
--- dev86-0.16.19/bcc/bcc.c
|
||||
+++ dev86-0.16.19/bcc/bcc.c
|
||||
@@ -596,12 +597,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
-void
|
||||
-command_reset()
|
||||
-{
|
||||
#ifndef MAXPATHLEN
|
||||
+#ifdef PATH_MAX
|
||||
+#define MAXPATHLEN PATH_MAX
|
||||
+#else
|
||||
#define MAXPATHLEN 1024
|
||||
#endif
|
||||
+#endif
|
||||
+
|
||||
+void
|
||||
+command_reset()
|
||||
+{
|
||||
char buf[MAXPATHLEN];
|
||||
char ** prefix;
|
||||
char * saved_cmd;
|
17
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.19-memmove.patch
vendored
Normal file
17
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-0.16.19-memmove.patch
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
https://bugs.gentoo.org/354351
|
||||
|
||||
fix sniped from Debian:
|
||||
* Fix "FTBFS: ncc: illegal label": apply patch by dai that replaces strcpy
|
||||
by memmove (closes: #591133).
|
||||
|
||||
--- copt/copt.c
|
||||
+++ copt/copt.c
|
||||
@@ -174,7 +174,7 @@
|
||||
/* Delete leading white spaces */
|
||||
for (cp = buf; *cp && isspace(*cp); cp++) ;
|
||||
if (cp != buf && *cp)
|
||||
- strcpy(buf, cp);
|
||||
+ memmove(buf, cp, strlen(cp) + 1);
|
||||
|
||||
return(buf);
|
||||
}
|
20
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-pic.patch
vendored
Normal file
20
sdk_container/src/third_party/portage-stable/sys-devel/dev86/files/dev86-pic.patch
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
--- elksemu/elks.c.orig 2005-11-04 01:35:37.000000000 +0100
|
||||
+++ elksemu/elks.c 2005-11-04 01:45:28.000000000 +0100
|
||||
@@ -129,8 +129,17 @@
|
||||
static inline int vm86_mine(struct vm86_struct* v86)
|
||||
{
|
||||
int __res;
|
||||
+#ifndef __PIC__
|
||||
__asm__ __volatile__("int $0x80\n"
|
||||
:"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86));
|
||||
+#else
|
||||
+ __asm__ __volatile__(
|
||||
+ "movl %%ebx,%%ecx\n\t"
|
||||
+ "movl %2,%%ebx\n\t"
|
||||
+ "int $0x80\n\t"
|
||||
+ "movl %%ecx,%%ebx\n\t"
|
||||
+ :"=a" (__res):"a" ((int)OLD_SYS_vm86), "r" ((int)v86) : "ecx");
|
||||
+#endif
|
||||
return __res;
|
||||
}
|
||||
#endif
|
10
sdk_container/src/third_party/portage-stable/sys-devel/dev86/metadata.xml
vendored
Normal file
10
sdk_container/src/third_party/portage-stable/sys-devel/dev86/metadata.xml
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Bruce's C compiler - Simple C compiler to generate 8086 code
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user