[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/ilp32d/, profiles/arch/riscv/rv32imac/ilp32/

2023-10-10 Thread Andreas K. Hüttel
commit: f6caba28e1a825acc76709c406c3b987253bbcc7
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Tue Oct 10 20:16:41 2023 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Tue Oct 10 20:17:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6caba28

riscv32: force 64bit time on (there is no other variant here)

Bug: https://bugs.gentoo.org/828001
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/ilp32/make.defaults  | 9 +
 profiles/arch/riscv/rv32imac/ilp32d/make.defaults | 9 +
 2 files changed, 18 insertions(+)

diff --git a/profiles/arch/riscv/rv32imac/ilp32/make.defaults 
b/profiles/arch/riscv/rv32imac/ilp32/make.defaults
index 702bf0db5663..4e7eed0bff7b 100644
--- a/profiles/arch/riscv/rv32imac/ilp32/make.defaults
+++ b/profiles/arch/riscv/rv32imac/ilp32/make.defaults
@@ -15,3 +15,12 @@ CFLAGS="-O2 -pipe -march=rv32imac -mabi=ilp32"
 CXXFLAGS="${CFLAGS}"
 FFLAGS="${CFLAGS}"
 FCFLAGS="${CFLAGS}"
+
+## Mike Gilbert  (2021-12-17)
+## Prevent automagic use of 64-bit time_t.
+## https://bugs.gentoo.org/828001
+#
+# Andreas K. Hüttel  (2023-10-10)
+# We need to undo this for riscv32 since it only has the 64bit interface
+#
+enable_year2038="yes"

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults 
b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
index d21fdce62781..2464269fd8e4 100644
--- a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
+++ b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
@@ -15,3 +15,12 @@ CFLAGS="-O2 -pipe -march=rv32imafdc -mabi=ilp32d"
 CXXFLAGS="${CFLAGS}"
 FFLAGS="${CFLAGS}"
 FCFLAGS="${CFLAGS}"
+
+## Mike Gilbert  (2021-12-17)
+## Prevent automagic use of 64-bit time_t.
+## https://bugs.gentoo.org/828001
+#
+# Andreas K. Hüttel  (2023-10-10)
+# We need to undo this for riscv32 since it only has the 64bit interface
+#
+enable_year2038="yes"



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/

2022-08-27 Thread Andreas K. Hüttel
commit: d3f66db81b9e127988932f6e0300a5272bbed644
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sat Aug 27 16:39:00 2022 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sat Aug 27 19:36:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3f66db8

profiles: dropt stale arch/riscv/rv32imac file

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/make.defaults | 14 --
 1 file changed, 14 deletions(-)

diff --git a/profiles/arch/riscv/rv32imac/make.defaults 
b/profiles/arch/riscv/rv32imac/make.defaults
deleted file mode 100644
index da381b453f83..
--- a/profiles/arch/riscv/rv32imac/make.defaults
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# RISC-V profile for rv32imac multilib
-#
-# This immediate profile is ONLY useful for internal purposes. It can NOT
-# generate stages or a working system due to limitations in gcc.
-
-CHOST="riscv32-unknown-linux-gnu"
-
-# Multilib ABIs
-MULTILIB_ABIS="ilp32d ilp32"
-DEFAULT_ABI="ilp32d"
-ABI="ilp32d"



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/ilp32/, profiles/arch/riscv/rv32imac/ilp32d/

2022-02-26 Thread Andreas K. Hüttel
commit: 88428d0c746ba29ac3d9865533c29a00507374a2
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sat Feb 26 17:35:28 2022 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sat Feb 26 17:35:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88428d0c

profiles: mask musl on riscv32 (not supported)

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/ilp32/package.mask  | 3 +++
 profiles/arch/riscv/rv32imac/ilp32d/package.mask | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/profiles/arch/riscv/rv32imac/ilp32/package.mask 
b/profiles/arch/riscv/rv32imac/ilp32/package.mask
index fae8be793357..65816f09ade7 100644
--- a/profiles/arch/riscv/rv32imac/ilp32/package.mask
+++ b/profiles/arch/riscv/rv32imac/ilp32/package.mask
@@ -3,3 +3,6 @@
 
 # sys-libs/libseccomp has not been ported to rv32 yet
 sys-libs/libseccomp
+
+# does not support rv32
+sys-libs/musl

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/package.mask 
b/profiles/arch/riscv/rv32imac/ilp32d/package.mask
index fae8be793357..65816f09ade7 100644
--- a/profiles/arch/riscv/rv32imac/ilp32d/package.mask
+++ b/profiles/arch/riscv/rv32imac/ilp32d/package.mask
@@ -3,3 +3,6 @@
 
 # sys-libs/libseccomp has not been ported to rv32 yet
 sys-libs/libseccomp
+
+# does not support rv32
+sys-libs/musl



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/ilp32d/

2021-12-19 Thread Andreas K. Hüttel
commit: d19e53a68eda8784bd0a0493bf4278657566ec21
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sun Dec 19 22:03:03 2021 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sun Dec 19 22:03:56 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d19e53a6

profiles: fix riscv rv32/ilp32d cflags

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/ilp32d/make.defaults | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults 
b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
index a53334741ede..d19b0ba49931 100644
--- a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
+++ b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
@@ -3,7 +3,7 @@
 
 # RISC-V rv32imac/ilp32d no-multilib profile
 
-CFLAGS="-O2 -pipe -march=rv32imacdf -mabi=ilp32d"
+CFLAGS="-O2 -pipe -march=rv32imafdc -mabi=ilp32d"
 CXXFLAGS="${CFLAGS}"
 FFLAGS="${CFLAGS}"
 FCFLAGS="${CFLAGS}"



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/

2020-12-16 Thread Andreas K. Hüttel
commit: 224c74afee63bf62b6ef57d6191941e22f314a66
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Wed Dec 16 22:30:19 2020 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Wed Dec 16 22:34:57 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=224c74af

profiles: libseccomp does not work on 32bit riscv yet

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/package.mask | 5 +
 profiles/arch/riscv/rv32imac/use.mask | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/profiles/arch/riscv/rv32imac/package.mask 
b/profiles/arch/riscv/rv32imac/package.mask
new file mode 100644
index 000..fae8be79335
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/package.mask
@@ -0,0 +1,5 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# sys-libs/libseccomp has not been ported to rv32 yet
+sys-libs/libseccomp

diff --git a/profiles/arch/riscv/rv32imac/use.mask 
b/profiles/arch/riscv/rv32imac/use.mask
index 9de5ab73449..9779cbad81b 100644
--- a/profiles/arch/riscv/rv32imac/use.mask
+++ b/profiles/arch/riscv/rv32imac/use.mask
@@ -1,2 +1,5 @@
 # Copyright 2019-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
+
+# sys-libs/libseccomp has not been ported to rv32 yet
+seccomp



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/ilp32d/, profiles/arch/riscv/rv32imac/

2020-09-11 Thread Andreas K. Hüttel
commit: 29e0f764eb187f3350f3d8039a1ed88debac3485
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Fri Sep 11 20:51:35 2020 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Fri Sep 11 20:51:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29e0f764

profiles: Fix typos in rv32 profile comments

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/ilp32d/make.defaults | 2 +-
 profiles/arch/riscv/rv32imac/make.defaults| 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults 
b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
index 3354876fcc8..bd66a518eab 100644
--- a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
+++ b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
@@ -1,7 +1,7 @@
 # Copyright 2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-# RISC-V rv64gc/lp64d no-multilib profile
+# RISC-V rv32imac/ilp32d no-multilib profile
 
 CFLAGS="-O2 -pipe -march=rv32imacdf -mabi=ilp32d"
 CXXFLAGS="${CFLAGS}"

diff --git a/profiles/arch/riscv/rv32imac/make.defaults 
b/profiles/arch/riscv/rv32imac/make.defaults
index 57c09ed8241..e23fe63fb25 100644
--- a/profiles/arch/riscv/rv32imac/make.defaults
+++ b/profiles/arch/riscv/rv32imac/make.defaults
@@ -13,11 +13,11 @@ MULTILIB_ABIS="ilp32d ilp32"
 DEFAULT_ABI="ilp32d"
 ABI="ilp32d"
 
-# Enable lp64d by default
+# Enable ilp32d by default
 ABI_RISCV="ilp32d"
 
-# Unhide the riscv/rv64gc-specific USE_EXPANDs
+# Unhide the riscv/riscv-specific USE_EXPANDs
 USE_EXPAND_HIDDEN="-ABI_RISCV"
 
-# Implicitly enable lp64d in ebuilds without multilib support
+# Implicitly enable ilp32d in ebuilds without multilib support
 IUSE_IMPLICIT="abi_riscv_ilp32d"



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/

2020-09-11 Thread Andreas K. Hüttel
commit: f4ebd8621b4b6b47375c4d7a181df08f397b7c5c
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Fri Sep 11 16:58:43 2020 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Fri Sep 11 16:59:26 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4ebd862

profiles: fix inheritance in arch/riscv/rv32imac/parent

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/parent | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/arch/riscv/rv32imac/parent 
b/profiles/arch/riscv/rv32imac/parent
index 17e5a3c6e7f..6ee1b9eff10 100644
--- a/profiles/arch/riscv/rv32imac/parent
+++ b/profiles/arch/riscv/rv32imac/parent
@@ -1,2 +1,2 @@
 ..
-../../../multilib
+../../../features/multilib



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/

2020-09-11 Thread Andreas K. Hüttel
commit: ce01a62efcf91c2383d6420541a5a9f3a852ed5f
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Fri Sep 11 15:20:33 2020 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Fri Sep 11 15:45:07 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce01a62e

profiles: Add intermediate rv32(imac) multilib profile

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/eapi  |  1 +
 profiles/arch/riscv/rv32imac/make.defaults | 23 +++
 profiles/arch/riscv/rv32imac/parent|  2 ++
 profiles/arch/riscv/rv32imac/use.force |  5 +
 profiles/arch/riscv/rv32imac/use.mask  |  6 ++
 5 files changed, 37 insertions(+)

diff --git a/profiles/arch/riscv/rv32imac/eapi 
b/profiles/arch/riscv/rv32imac/eapi
new file mode 100644
index 000..7ed6ff82de6
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/rv32imac/make.defaults 
b/profiles/arch/riscv/rv32imac/make.defaults
new file mode 100644
index 000..57c09ed8241
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/make.defaults
@@ -0,0 +1,23 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V profile for rv32imac multilib
+#
+# This immediate profile is ONLY useful for internal purposes. It can NOT
+# generate stages or a working system due to limitations in gcc.
+
+CHOST="riscv32-unknown-linux-gnu"
+
+# Multilib ABIs
+MULTILIB_ABIS="ilp32d ilp32"
+DEFAULT_ABI="ilp32d"
+ABI="ilp32d"
+
+# Enable lp64d by default
+ABI_RISCV="ilp32d"
+
+# Unhide the riscv/rv64gc-specific USE_EXPANDs
+USE_EXPAND_HIDDEN="-ABI_RISCV"
+
+# Implicitly enable lp64d in ebuilds without multilib support
+IUSE_IMPLICIT="abi_riscv_ilp32d"

diff --git a/profiles/arch/riscv/rv32imac/parent 
b/profiles/arch/riscv/rv32imac/parent
new file mode 100644
index 000..17e5a3c6e7f
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/parent
@@ -0,0 +1,2 @@
+..
+../../../multilib

diff --git a/profiles/arch/riscv/rv32imac/use.force 
b/profiles/arch/riscv/rv32imac/use.force
new file mode 100644
index 000..069813e1771
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/use.force
@@ -0,0 +1,5 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Force the flag corresponding to the default ABI.
+abi_riscv_ilp32d

diff --git a/profiles/arch/riscv/rv32imac/use.mask 
b/profiles/arch/riscv/rv32imac/use.mask
new file mode 100644
index 000..d57df4d6abe
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/use.mask
@@ -0,0 +1,6 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the multilib flags for this arch.
+-abi_riscv_ilp32d
+-abi_riscv_ilp32



[gentoo-commits] repo/gentoo:master commit in: profiles/arch/riscv/rv32imac/ilp32d/, profiles/arch/riscv/rv32imac/ilp32/

2020-09-11 Thread Andreas K. Hüttel
commit: d4a163f63d2675b19b683e256d7e2881f477eb0a
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Fri Sep 11 15:25:42 2020 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Fri Sep 11 15:45:11 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4a163f6

profiles: Add riscv rv32imac[df] ilp32[d] non-multilib profile subdirs

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 profiles/arch/riscv/rv32imac/ilp32/eapi   |  1 +
 profiles/arch/riscv/rv32imac/ilp32/make.defaults  | 12 
 profiles/arch/riscv/rv32imac/ilp32/package.use.force  |  5 +
 profiles/arch/riscv/rv32imac/ilp32/use.force  |  5 +
 profiles/arch/riscv/rv32imac/ilp32/use.mask   | 10 ++
 profiles/arch/riscv/rv32imac/ilp32d/eapi  |  1 +
 profiles/arch/riscv/rv32imac/ilp32d/make.defaults | 15 +++
 profiles/arch/riscv/rv32imac/ilp32d/package.use.force |  5 +
 profiles/arch/riscv/rv32imac/ilp32d/use.mask  | 10 ++
 9 files changed, 64 insertions(+)

diff --git a/profiles/arch/riscv/rv32imac/ilp32/eapi 
b/profiles/arch/riscv/rv32imac/ilp32/eapi
new file mode 100644
index 000..7ed6ff82de6
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/rv32imac/ilp32/make.defaults 
b/profiles/arch/riscv/rv32imac/ilp32/make.defaults
new file mode 100644
index 000..959de434af0
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V rv32imac/ilp32 no-multilib profile
+
+# We have only one ABI
+MULTILIB_ABIS="ilp32"
+DEFAULT_ABI="ilp32"
+ABI="ilp32"
+
+# We hide the useflags for the ABIs
+USE_EXPAND_HIDDEN="ABI_RISCV"

diff --git a/profiles/arch/riscv/rv32imac/ilp32/package.use.force 
b/profiles/arch/riscv/rv32imac/ilp32/package.use.force
new file mode 100644
index 000..dc5b60c2dd2
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32/package.use.force
@@ -0,0 +1,5 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Undo multilib forcing.
+sys-apps/sandbox -abi_riscv_lp64d -abi_riscv_lp64 -abi_riscv_ilp32d

diff --git a/profiles/arch/riscv/rv32imac/ilp32/use.force 
b/profiles/arch/riscv/rv32imac/ilp32/use.force
new file mode 100644
index 000..e54ac40ffd2
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32/use.force
@@ -0,0 +1,5 @@
+# Un-force the original multilib default-abi flag
+-abi_riscv_ilp32d
+
+# Force the abi of this profile here
+abi_riscv_ilp32

diff --git a/profiles/arch/riscv/rv32imac/ilp32/use.mask 
b/profiles/arch/riscv/rv32imac/ilp32/use.mask
new file mode 100644
index 000..c717be8a4aa
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32/use.mask
@@ -0,0 +1,10 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Mask multilib, since we do not want to use it.
+multilib
+
+# Mask the other multilib flags back for non-multilib profile.
+abi_riscv_lp64d
+abi_riscv_lp64
+abi_riscv_ilp32d

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/eapi 
b/profiles/arch/riscv/rv32imac/ilp32d/eapi
new file mode 100644
index 000..7ed6ff82de6
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32d/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/make.defaults 
b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
new file mode 100644
index 000..3354876fcc8
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32d/make.defaults
@@ -0,0 +1,15 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V rv64gc/lp64d no-multilib profile
+
+CFLAGS="-O2 -pipe -march=rv32imacdf -mabi=ilp32d"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# We have only one ABI
+MULTILIB_ABIS="ilp32d"
+
+# We hide the useflags for the ABIs
+USE_EXPAND_HIDDEN="ABI_RISCV"

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/package.use.force 
b/profiles/arch/riscv/rv32imac/ilp32d/package.use.force
new file mode 100644
index 000..cf764cd5413
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32d/package.use.force
@@ -0,0 +1,5 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Undo multilib forcing.
+sys-apps/sandbox -abi_riscv_lp64d -abi_riscv_lp64 -abi_riscv_ilp32

diff --git a/profiles/arch/riscv/rv32imac/ilp32d/use.mask 
b/profiles/arch/riscv/rv32imac/ilp32d/use.mask
new file mode 100644
index 000..b2c900da504
--- /dev/null
+++ b/profiles/arch/riscv/rv32imac/ilp32d/use.mask
@@ -0,0 +1,10 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Mask multilib, since we do not want to use it.
+multilib
+
+# Mask the other multilib flags back for non-multilib profile.