From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D05DC1382C5 for ; Tue, 3 Apr 2018 20:21:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF7F3E0B21; Tue, 3 Apr 2018 20:21:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98280E0B21 for ; Tue, 3 Apr 2018 20:21:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1EB5335D58 for ; Tue, 3 Apr 2018 20:21:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A59126D for ; Tue, 3 Apr 2018 20:21:24 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1522786879.3aa32984919c421909d2796a89f6cefe402c3fd8.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/glibc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/glibc/glibc-9999.ebuild X-VCS-Directories: sys-libs/glibc/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 3aa32984919c421909d2796a89f6cefe402c3fd8 X-VCS-Branch: master Date: Tue, 3 Apr 2018 20:21:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f64f9bed-40df-42af-ab60-d949e6bae538 X-Archives-Hash: 317fa496bd4864466766054e51a1af9d commit: 3aa32984919c421909d2796a89f6cefe402c3fd8 Author: Sergei Trofimovich gentoo org> AuthorDate: Tue Apr 3 20:20:45 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Apr 3 20:21:19 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aa32984 sys-libs/glibc: apply riscv kludge to live ebuild This pulls in commit from 2.27-r1 "sys-libs/glibc: Add support for building RISC-V headers" Package-Manager: Portage-2.3.28, Repoman-2.3.9 sys-libs/glibc/glibc-9999.ebuild | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild index 17f8cdafed5..e6d10969e8b 100644 --- a/sys-libs/glibc/glibc-9999.ebuild +++ b/sys-libs/glibc/glibc-9999.ebuild @@ -762,6 +762,23 @@ src_prepare() { sed -i '/CPPFLAGS=.*-mabi/s|.*|:|' ports/sysdeps/mips/preconfigure || die find ports/sysdeps/mips/ -name Makefile -exec sed -i '/^CC.*-mabi=/s:-mabi=.*:-D_MIPS_SZPTR=32:' {} + fi + if [[ -e sysdeps/riscv/preconfigure ]] ; then + # RISC-V interrogates the compiler to determine which target to + # build. If building the headers then we don't strictly need a + # RISC-V compiler, so the built-in definitions that are provided + # along with all RISC-V compiler might not exist. This causes + # glibc's RISC-V preconfigure script to blow up. Since we're just + # building the headers any value will actually work here, so just + # pick the standard one (rv64g/lp64d) to make the build scripts + # happy for now -- the headers are all the same anyway so it + # doesn't matter. + sed -i 's/^ xlen=.*/ xlen=64/g' sysdeps/riscv/preconfigure || die + sed -i 's/^ flen=.*/ flen=64/g' sysdeps/riscv/preconfigure || die + sed -i 's/^ float_abi=.*/ float_abi=double/g' sysdeps/riscv/preconfigure || die + sed -i 's/^ atomic=.*/ atomic=__riscv_atomic/g' sysdeps/riscv/preconfigure || die + sed -i 's/^libc_cv_riscv_float_abi=no/libc_cv_riscv_float_abi=d/g' sysdeps/unix/sysv/linux/riscv/configure.ac || die + sed -i 's/^libc_cv_riscv_float_abi=no/libc_cv_riscv_float_abi=d/g' sysdeps/unix/sysv/linux/riscv/configure || die + fi fi default