1 |
commit: 81f0f5079c3200f32cb9f0a40589ab1ac48be82c |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 18 22:51:44 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 18 22:51:44 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f0f507 |
7 |
|
8 |
sys-devel/crossdev: bump up to 20180918 |
9 |
|
10 |
Single new patch: |
11 |
https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=a23e6057c94403e010a4ccd06091b59cc332e593 |
12 |
|
13 |
""" |
14 |
crossdev: don't enable USE=pie by default on any bare-metal targets |
15 |
|
16 |
Unfortunately embedded world has a long way to go |
17 |
to adopt --enable-default-pie as a first class citizen. |
18 |
|
19 |
Note: |
20 |
--enable-default-pie enabled two things: |
21 |
- PIC-friendly code generation (-fPIE) |
22 |
- PIE executables (-pie) |
23 |
|
24 |
Normally one would expect firmware to pass compiler modes explicitly |
25 |
to gcc: -fPIC (or -mauto-pic, -fno-PIC), -ffreestanding, -nostdlib. |
26 |
|
27 |
Unfortunately upstreams are frequently reluctant to explicitly specify |
28 |
new moving parts available in gcc (in this case -no-pie) and expect |
29 |
gcc to behave as it used to in the world before --enable-default-pie. |
30 |
Unfortunate but not entirely unreasonable. |
31 |
|
32 |
Disable --enable-default-pie until user explicitly requests USE=pie. |
33 |
""" |
34 |
|
35 |
Reported-by: Bertrand Jacquin |
36 |
Reported-by: sklv |
37 |
Bug: https://lists.gnupg.org/pipermail/gnuk-users/2018-August/000086.html |
38 |
Bug: https://github.com/gl-sergei/u2f-token/issues/14 |
39 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
40 |
|
41 |
sys-devel/crossdev/Manifest | 1 + |
42 |
sys-devel/crossdev/crossdev-20180918.ebuild | 39 +++++++++++++++++++++++++++++ |
43 |
2 files changed, 40 insertions(+) |
44 |
|
45 |
diff --git a/sys-devel/crossdev/Manifest b/sys-devel/crossdev/Manifest |
46 |
index 822a9b861bf..bf974835212 100644 |
47 |
--- a/sys-devel/crossdev/Manifest |
48 |
+++ b/sys-devel/crossdev/Manifest |
49 |
@@ -3,3 +3,4 @@ DIST crossdev-20180410.tar.xz 26716 BLAKE2B 67f47052af4299028470613900e7f1b91fd2 |
50 |
DIST crossdev-20180508.tar.xz 26728 BLAKE2B ab92cac544ee787ca91c794191c51faeab99e88bc2fc695c5e913e4137cc941457f5b27bf22f3b6a7991fa46ebdc2e5b4238a01425c5021fa9fc05ca23c51f49 SHA512 a96afeeb03747ce67a39b53b925361d07117b49316b5c657413125413d006de25249b0d3d1804c8a946c288c80beb42aa7c32362b57ac81399d26a67ceccfe04 |
51 |
DIST crossdev-20180731.tar.xz 26808 BLAKE2B eea12e6405546ca5a8409a853afdcbb25f3f2a7336c428b7c6a5d38b29d772989da7c0a59ce282ee925a9126e396bead17798a25bff1b5019a28ba0ef3bc55fc SHA512 245144b57242b7ae1bca65f457bfb60ec4fe1a4cb5f332dc5ac42d14740dda49e7e5266b10e60bebc84be7fabbac827335fcbc8e0dd74e24f423ddfef33edb7e |
52 |
DIST crossdev-20180818.tar.xz 26904 BLAKE2B 8fce23db9a00429ec8f8487a72cd5724200336bbd1d50ef62d1170cdd2ccb2b3255ba47c516b89f0394fd7e7c935842269eddeddbc308ffdd1194edd7cc916cd SHA512 11ecd46026c1ec673fc18e86d3cc8570341288b2cf4c4a54aa62d3afddb2ad3d3005a30f2b5b35264af89511975b532cb6014009d0f5ec0b18c0256f49196cb5 |
53 |
+DIST crossdev-20180918.tar.xz 26984 BLAKE2B 67cbddfc1ee2a4e6b3cb443b2cb8ac9468067356b007306db01081ee5bb3335548d4a80ecd604510cf806d68190be2b67e73d0a3f25968a7ebc9eb478fdaac73 SHA512 daeb864a88de6a64ab72b7dd3024106b8afa1e6de0b143042466435d4df2b7da1e1a6b314d3f2c2b01fc273b722871352321054d1fc5158d6b7bbabc01ba327c |
54 |
|
55 |
diff --git a/sys-devel/crossdev/crossdev-20180918.ebuild b/sys-devel/crossdev/crossdev-20180918.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000000..d1adb4564b5 |
58 |
--- /dev/null |
59 |
+++ b/sys-devel/crossdev/crossdev-20180918.ebuild |
60 |
@@ -0,0 +1,39 @@ |
61 |
+# Copyright 1999-2018 Gentoo Foundation |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=6 |
65 |
+ |
66 |
+if [[ ${PV} == "99999999" ]] ; then |
67 |
+ inherit git-r3 |
68 |
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/crossdev.git" |
69 |
+else |
70 |
+ SRC_URI="mirror://gentoo/${P}.tar.xz |
71 |
+ https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" |
72 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
73 |
+fi |
74 |
+ |
75 |
+DESCRIPTION="Gentoo Cross-toolchain generator" |
76 |
+HOMEPAGE="https://www.gentoo.org/" |
77 |
+ |
78 |
+LICENSE="GPL-2" |
79 |
+SLOT="0" |
80 |
+IUSE="" |
81 |
+ |
82 |
+RDEPEND=" |
83 |
+ || ( |
84 |
+ >=sys-apps/portage-2.1 |
85 |
+ sys-apps/portage-mgorny |
86 |
+ ) |
87 |
+ >=app-portage/portage-utils-0.55 |
88 |
+ app-shells/bash |
89 |
+ sys-apps/gentoo-functions |
90 |
+ !sys-devel/crossdev-wrappers" |
91 |
+DEPEND="app-arch/xz-utils" |
92 |
+ |
93 |
+src_install() { |
94 |
+ default |
95 |
+ |
96 |
+ if [[ "${PV}" == "99999999" ]] ; then |
97 |
+ sed -i "s:@CDEVPV@:${EGIT_VERSION}:" "${ED%/}"/usr/bin/crossdev || die |
98 |
+ fi |
99 |
+} |