2024-04-25 12:38:30 +08:00
|
|
|
diff --git a/data/default-x86_64.conf b/data/default-x86_64.conf
|
2024-04-28 00:30:52 +08:00
|
|
|
index 1df61a6..ef38b40 100644
|
2024-04-25 12:38:30 +08:00
|
|
|
--- a/data/default-x86_64.conf
|
|
|
|
+++ b/data/default-x86_64.conf
|
|
|
|
@@ -2,16 +2,16 @@
|
|
|
|
collections:
|
|
|
|
|
|
|
|
- volatile:
|
|
|
|
- uri: "https://dev.serpentos.com/volatile/x86_64/stone.index"
|
|
|
|
- description: "Volatile moss repo"
|
|
|
|
+ uri: "http://192.168.0.117/futurelinux/moss/stone.index"
|
2024-04-28 00:30:52 +08:00
|
|
|
+ description: "Future Linux Moss repo"
|
2024-04-25 12:38:30 +08:00
|
|
|
priority: 0
|
|
|
|
|
|
|
|
- local-x86_64:
|
|
|
|
collections:
|
|
|
|
|
|
|
|
- volatile:
|
|
|
|
- uri: "https://dev.serpentos.com/volatile/x86_64/stone.index"
|
|
|
|
- description: "Volatile moss repo"
|
|
|
|
+ uri: "http://192.168.0.117/futurelinux/moss/stone.index"
|
2024-04-28 00:30:52 +08:00
|
|
|
+ description: "Future Linux Moss repo"
|
2024-04-25 12:38:30 +08:00
|
|
|
priority: 0
|
|
|
|
|
|
|
|
- local:
|
|
|
|
diff --git a/data/macros/actions/cargo.yml b/data/macros/actions/cargo.yml
|
|
|
|
index 89c4cf9..6eee935 100644
|
|
|
|
--- a/data/macros/actions/cargo.yml
|
|
|
|
+++ b/data/macros/actions/cargo.yml
|
|
|
|
@@ -4,7 +4,7 @@ actions:
|
|
|
|
command: |
|
|
|
|
cargo fetch -v --locked
|
|
|
|
dependencies:
|
|
|
|
- - rust
|
|
|
|
+ - rustc
|
|
|
|
|
|
|
|
# Build the rust project
|
|
|
|
- cargo_build:
|
|
|
|
@@ -14,7 +14,7 @@ actions:
|
|
|
|
--config profile.release.split-debuginfo=\"off\" \
|
|
|
|
--config profile.release.strip=\"none\"
|
|
|
|
dependencies:
|
|
|
|
- - rust
|
|
|
|
+ - rustc
|
|
|
|
|
|
|
|
# Install the built binary
|
|
|
|
- cargo_install:
|
|
|
|
@@ -28,11 +28,11 @@ actions:
|
|
|
|
}
|
|
|
|
cargo_install
|
|
|
|
dependencies:
|
|
|
|
- - rust
|
|
|
|
+ - rustc
|
|
|
|
|
|
|
|
# Run tests
|
|
|
|
- cargo_test:
|
|
|
|
command: |
|
|
|
|
cargo test -v -j "%(jobs)" --frozen --release --target %(target_triple) --workspace
|
|
|
|
dependencies:
|
|
|
|
- - rust
|
|
|
|
+ - rustc
|
|
|
|
diff --git a/data/macros/actions/cmake.yml b/data/macros/actions/cmake.yml
|
|
|
|
index 93b3068..a6d47f1 100644
|
|
|
|
--- a/data/macros/actions/cmake.yml
|
|
|
|
+++ b/data/macros/actions/cmake.yml
|
|
|
|
@@ -47,6 +47,6 @@ definitions:
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="" \
|
|
|
|
-DCMAKE_LD_FLAGS="${LDFLAGS}" \
|
|
|
|
-DCMAKE_BUILD_TYPE="Release" \
|
|
|
|
- -DCMAKE_INSTALL_LIBDIR="lib" \
|
|
|
|
+ -DCMAKE_INSTALL_LIBDIR="lib%(libsuffix)" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="%(prefix)" \
|
|
|
|
-DCMAKE_LIB_SUFFIX="%(libsuffix)"
|
|
|
|
diff --git a/data/macros/actions/meson.yml b/data/macros/actions/meson.yml
|
2024-04-28 00:30:52 +08:00
|
|
|
index f0390bd..29d4cbb 100644
|
2024-04-25 12:38:30 +08:00
|
|
|
--- a/data/macros/actions/meson.yml
|
|
|
|
+++ b/data/macros/actions/meson.yml
|
2024-04-28 00:30:52 +08:00
|
|
|
@@ -42,8 +42,8 @@ definitions:
|
|
|
|
- options_meson: |
|
2024-04-25 12:38:30 +08:00
|
|
|
--prefix="%(prefix)" \
|
|
|
|
--buildtype="plain" \
|
2024-04-28 00:30:52 +08:00
|
|
|
- --libdir="lib%(libsuffix)" \
|
2024-04-25 12:38:30 +08:00
|
|
|
- --libexecdir="lib%(libsuffix)/%(name)" \
|
2024-04-28 00:30:52 +08:00
|
|
|
+ --libdir="%(libdir)" \
|
2024-04-25 12:38:30 +08:00
|
|
|
+ --libexecdir="%(libexecdir)" \
|
|
|
|
--sysconfdir="%(sysconfdir)" \
|
|
|
|
--localstatedir="%(localstatedir)" \
|
|
|
|
"%(builddir)"
|
|
|
|
diff --git a/data/macros/arch/aarch64.yml b/data/macros/arch/aarch64.yml
|
|
|
|
index 7490352..16afbd4 100644
|
|
|
|
--- a/data/macros/arch/aarch64.yml
|
|
|
|
+++ b/data/macros/arch/aarch64.yml
|
|
|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
definitions:
|
|
|
|
|
|
|
|
- - libsuffix : ""
|
|
|
|
+ - libsuffix : "64"
|
|
|
|
- build_platform : aarch64-%(vendorID)
|
|
|
|
- host_platform : aarch64-%(vendorID)
|
|
|
|
- cc : "%(compiler_c) -m64"
|
|
|
|
diff --git a/data/macros/arch/base.yml b/data/macros/arch/base.yml
|
2024-04-28 00:30:52 +08:00
|
|
|
index 6a62e13..33dfdf2 100644
|
2024-04-25 12:38:30 +08:00
|
|
|
--- a/data/macros/arch/base.yml
|
|
|
|
+++ b/data/macros/arch/base.yml
|
|
|
|
@@ -3,7 +3,7 @@
|
|
|
|
definitions:
|
|
|
|
|
|
|
|
# Basic variables required for packages to build correctly
|
|
|
|
- - libsuffix : ""
|
|
|
|
+ - libsuffix : "64"
|
|
|
|
- prefix : "/usr"
|
|
|
|
- bindir : "%(prefix)/bin"
|
|
|
|
- sbindir : "%(prefix)/sbin"
|
|
|
|
@@ -23,12 +23,12 @@ definitions:
|
|
|
|
- runstatedir : "/run"
|
|
|
|
- sysconfdir : "/etc"
|
|
|
|
- libdir : "%(prefix)/lib%(libsuffix)"
|
|
|
|
- - libexecdir : "%(libdir)/%(name)"
|
|
|
|
- - builddir : "serpent_builddir"
|
|
|
|
+ - libexecdir : "%(prefix)/libexec"
|
|
|
|
+ - builddir : "future_builddir"
|
|
|
|
|
|
|
|
# The vendorID is encoded into the triplet, toolchain, builds, etc.
|
|
|
|
# It must match the triplet from bootstrap-scripts.
|
|
|
|
- - vendorID : "serpent-linux"
|
|
|
|
+ - vendorID : "future-linux"
|
|
|
|
|
|
|
|
# Must be set for CC/CXX/CPP to work
|
|
|
|
- cc : "%(compiler_c)"
|
|
|
|
@@ -549,10 +549,10 @@ packages :
|
|
|
|
the %(name) package.
|
|
|
|
paths:
|
|
|
|
- /usr/include
|
|
|
|
- - /usr/lib/*.a
|
|
|
|
- - /usr/lib/cmake
|
|
|
|
- - /usr/lib/lib*.so
|
|
|
|
- - /usr/lib/pkgconfig
|
2024-04-28 00:30:52 +08:00
|
|
|
+ - /usr/lib64/*.a
|
|
|
|
+ - /usr/lib64/cmake
|
|
|
|
+ - /usr/lib64/lib*.so
|
|
|
|
+ - /usr/lib64/pkgconfig
|
2024-04-25 12:38:30 +08:00
|
|
|
- /usr/share/aclocal
|
|
|
|
- /usr/share/man/man2
|
|
|
|
- /usr/share/man/man3
|
2024-04-28 00:30:52 +08:00
|
|
|
@@ -568,7 +568,7 @@ packages :
|
2024-04-25 12:38:30 +08:00
|
|
|
Install this package if you need debugging information + symbols
|
|
|
|
for the %(name) package.
|
|
|
|
paths:
|
|
|
|
- - /usr/lib/debug
|
2024-04-28 00:30:52 +08:00
|
|
|
+ - /usr/lib64/debug
|
2024-04-25 12:38:30 +08:00
|
|
|
|
2024-04-28 00:30:52 +08:00
|
|
|
# Template for a -libs sub-package which can be used by adding paths via the stone.yml file
|
2024-04-25 12:38:30 +08:00
|
|
|
- "%(name)-libs":
|
|
|
|
diff --git a/data/macros/arch/emul32/x86_64.yml b/data/macros/arch/emul32/x86_64.yml
|
|
|
|
index e065dc4..6c0c7ac 100644
|
|
|
|
--- a/data/macros/arch/emul32/x86_64.yml
|
|
|
|
+++ b/data/macros/arch/emul32/x86_64.yml
|
|
|
|
@@ -11,7 +11,7 @@ definitions:
|
|
|
|
- march : i686
|
|
|
|
- mtune : i686
|
|
|
|
- target_triple : "i686-unknown-linux-gnu"
|
|
|
|
- - pkgconfigpath : "%(libdir)/pkgconfig:/usr/share/pkgconfig:%(prefix)/lib/pkgconfig"
|
|
|
|
+ - pkgconfigpath : "%(libdir)/pkgconfig:/usr/share/pkgconfig:%(prefix)/lib32/pkgconfig"
|
|
|
|
|
|
|
|
flags:
|
|
|
|
|
|
|
|
diff --git a/data/macros/arch/x86_64-stage1.yml b/data/macros/arch/x86_64-stage1.yml
|
|
|
|
index dfb87a2..497f626 100644
|
|
|
|
--- a/data/macros/arch/x86_64-stage1.yml
|
|
|
|
+++ b/data/macros/arch/x86_64-stage1.yml
|
|
|
|
@@ -7,14 +7,14 @@
|
|
|
|
definitions:
|
|
|
|
|
|
|
|
- prefix : "/usr/bootstrap-stage1"
|
|
|
|
- - libsuffix : ""
|
|
|
|
+ - libsuffix : "64"
|
|
|
|
- build_platform : x86_64-linux-gnu
|
|
|
|
- host_platform : x86_64-%(vendorID)
|
|
|
|
- cc : "%(compiler_c)"
|
|
|
|
- cxx : "%(compiler_cxx)"
|
|
|
|
- cpp : "%(compiler_cpp)"
|
|
|
|
- march : x86-64-v2
|
|
|
|
- - mtune : ivybridge
|
|
|
|
+ - mtune : generic
|
|
|
|
- target_triple : "x86_64-unknown-linux-gnu"
|
|
|
|
- bootstrap_root : /bill
|
|
|
|
|
|
|
|
@@ -22,8 +22,8 @@ flags:
|
|
|
|
|
|
|
|
# Set architecture flags
|
|
|
|
- architecture:
|
|
|
|
- c : "-march=x86-64-v2 -mtune=ivybridge"
|
|
|
|
- cxx : "-march=x86-64-v2 -mtune=ivybridge"
|
|
|
|
+ c : "-march=x86-64-v2 -mtune=generic"
|
|
|
|
+ cxx : "-march=x86-64-v2 -mtune=generic"
|
|
|
|
|
|
|
|
defaultTuningGroups :
|
|
|
|
- base
|
|
|
|
diff --git a/data/macros/arch/x86_64-v3x.yml b/data/macros/arch/x86_64-v3x.yml
|
|
|
|
index 34c9c43..d50d305 100644
|
|
|
|
--- a/data/macros/arch/x86_64-v3x.yml
|
|
|
|
+++ b/data/macros/arch/x86_64-v3x.yml
|
|
|
|
@@ -2,19 +2,19 @@
|
|
|
|
|
|
|
|
definitions:
|
|
|
|
|
|
|
|
- - libsuffix : ""
|
|
|
|
+ - libsuffix : "64"
|
|
|
|
- build_platform : x86_64-%(vendorID)
|
|
|
|
- host_platform : x86_64-%(vendorID)
|
|
|
|
- cc : "%(compiler_c)"
|
|
|
|
- cxx : "%(compiler_cxx)"
|
|
|
|
- cpp : "%(compiler_cpp)"
|
|
|
|
- march : x86-64-v3
|
|
|
|
- - mtune : znver1
|
|
|
|
+ - mtune : haswell
|
|
|
|
|
|
|
|
flags:
|
|
|
|
|
|
|
|
# Set architecture flags (GCC)
|
|
|
|
- architecture:
|
|
|
|
- c : "-march=x86-64-v3 -mtune=znver1 -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"
|
|
|
|
- cxx : "-march=x86-64-v3 -mtune=znver1 -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"
|
|
|
|
+ c : "-march=x86-64-v3 -mtune=haswell -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"
|
|
|
|
+ cxx : "-march=x86-64-v3 -mtune=haswell -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"
|
|
|
|
|
|
|
|
diff --git a/data/macros/arch/x86_64.yml b/data/macros/arch/x86_64.yml
|
|
|
|
index 62338b0..c661642 100644
|
|
|
|
--- a/data/macros/arch/x86_64.yml
|
|
|
|
+++ b/data/macros/arch/x86_64.yml
|
|
|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
definitions:
|
|
|
|
|
|
|
|
- - libsuffix : ""
|
|
|
|
+ - libsuffix : "64"
|
|
|
|
- build_platform : x86_64-%(vendorID)
|
|
|
|
- host_platform : x86_64-%(vendorID)
|
|
|
|
- cc : "%(compiler_c)"
|
|
|
|
@@ -10,13 +10,13 @@ definitions:
|
|
|
|
- cpp : "%(compiler_cpp)"
|
|
|
|
- d : "%(compiler_d)"
|
|
|
|
- march : x86-64-v2
|
|
|
|
- - mtune : ivybridge
|
|
|
|
+ - mtune : generic
|
|
|
|
- target_triple : "x86_64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
flags:
|
|
|
|
|
|
|
|
# Set architecture flags
|
|
|
|
- architecture:
|
|
|
|
- c : "-march=x86-64-v2 -mtune=ivybridge"
|
|
|
|
- cxx : "-march=x86-64-v2 -mtune=ivybridge"
|
|
|
|
+ c : "-march=x86-64-v2 -mtune=generic"
|
|
|
|
+ cxx : "-march=x86-64-v2 -mtune=generic"
|
|
|
|
d : "-mcpu=x86-64-v2"
|
2024-04-28 00:30:52 +08:00
|
|
|
diff --git a/data/recipeTemplate.yml b/data/recipeTemplate.yml
|
|
|
|
index 238a45a..0644275 100644
|
|
|
|
--- a/data/recipeTemplate.yml
|
|
|
|
+++ b/data/recipeTemplate.yml
|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
#
|
|
|
|
-# SPDX-FileCopyrightText: © 2020-2024 Serpent OS Developers
|
|
|
|
+# SPDX-FileCopyrightText: © 2020-2024 Future Linux Developers
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
#
|
|
|
|
diff --git a/dub.json b/dub.json
|
|
|
|
index 4991718..d0337fe 100644
|
|
|
|
--- a/dub.json
|
|
|
|
+++ b/dub.json
|
|
|
|
@@ -1,6 +1,6 @@
|
2024-04-25 12:38:30 +08:00
|
|
|
{
|
2024-04-28 00:30:52 +08:00
|
|
|
"authors": [
|
|
|
|
- "Serpent OS Developers"
|
|
|
|
+ "Future Linux Developers"
|
|
|
|
],
|
|
|
|
"copyright": "Copyright © 2020-2023 Serpent OS Developers",
|
|
|
|
"description": "Build Stone Packages for Moss",
|
2024-04-25 12:38:30 +08:00
|
|
|
diff --git a/source/mason/build/analysers/elves.d b/source/mason/build/analysers/elves.d
|
|
|
|
index 9e7ec9e..7a2adc1 100644
|
|
|
|
--- a/source/mason/build/analysers/elves.d
|
|
|
|
+++ b/source/mason/build/analysers/elves.d
|
|
|
|
@@ -60,7 +60,7 @@ public void copyElfDebug(scope Analyser analyser, ref FileInfo fileInfo)
|
|
|
|
bool useLLVM = buildContext.spec.options.toolchain == "llvm";
|
|
|
|
auto command = useLLVM ? "/usr/bin/llvm-objcopy" : "/usr/bin/objcopy";
|
|
|
|
|
|
|
|
- auto debugdir = fileInfo.bitSize == 64 ? "usr/lib/debug/.build-id" : "usr/lib32/debug/.build-id";
|
|
|
|
+ auto debugdir = fileInfo.bitSize == 64 ? "usr/lib64/debug/.build-id" : "usr/lib32/debug/.build-id";
|
|
|
|
auto debugInfoPathRelative = join([
|
|
|
|
debugdir, fileInfo.buildID[0 .. 2], fileInfo.buildID[2 .. $] ~ ".debug"
|
|
|
|
], "/");
|
|
|
|
diff --git a/source/mason/build/analysers/pkgconfig.d b/source/mason/build/analysers/pkgconfig.d
|
|
|
|
index 49eed08..9572ef3 100644
|
|
|
|
--- a/source/mason/build/analysers/pkgconfig.d
|
|
|
|
+++ b/source/mason/build/analysers/pkgconfig.d
|
|
|
|
@@ -47,7 +47,7 @@ public AnalysisReturn handlePkgconfigFiles(scope Analyser analyser, ref FileInfo
|
|
|
|
auto providerName = fileInfo.path.baseName()[0 .. $ - 3];
|
|
|
|
|
|
|
|
/* emul32 becomes pkgconfig32() */
|
|
|
|
- immutable emul32 = fileInfo.path.canFind("/lib32/");
|
|
|
|
+ immutable emul32 = fileInfo.path.canFind("/usr/lib32/");
|
|
|
|
|
|
|
|
auto prov = Provider(providerName, emul32 ? ProviderType.Pkgconfig32Name
|
|
|
|
: ProviderType.PkgconfigName);
|
|
|
|
@@ -63,8 +63,8 @@ public AnalysisReturn handlePkgconfigFiles(scope Analyser analyser, ref FileInfo
|
|
|
|
|
|
|
|
string[string] env;
|
|
|
|
env["LC_ALL"] = "C";
|
|
|
|
- env["PKG_CONFIG_PATH"] = emul32 ? "/usr/lib32/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
|
|
|
|
- : "/usr/lib/pkgconfig:/usr/share/pkgconfig";
|
|
|
|
+ env["PKG_CONFIG_PATH"] = emul32 ? "/usr/lib32/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig"
|
|
|
|
+ : "/usr/lib64/pkgconfig:/usr/share/pkgconfig";
|
|
|
|
auto ret = execute(cmd, env);
|
|
|
|
|
|
|
|
if (ret.status != 0)
|
|
|
|
diff --git a/source/mason/build/analysers/rejects.d b/source/mason/build/analysers/rejects.d
|
|
|
|
index 69151a4..7f47120 100644
|
|
|
|
--- a/source/mason/build/analysers/rejects.d
|
|
|
|
+++ b/source/mason/build/analysers/rejects.d
|
|
|
|
@@ -37,7 +37,7 @@ public AnalysisReturn dropBadPaths(scope Analyser analyser, ref FileInfo info)
|
|
|
|
}
|
|
|
|
|
|
|
|
/* libtool files break the world */
|
|
|
|
- if (info.path.endsWith(".la") && info.path.dirName.canFind("usr/lib"))
|
|
|
|
+ if (info.path.endsWith(".la") && info.path.dirName.canFind("usr/lib64"))
|
|
|
|
{
|
|
|
|
trace(format!"[Analyse] Rejecting libtool file: %s"(info.path));
|
|
|
|
return AnalysisReturn.IgnoreFile;
|
|
|
|
diff --git a/source/mason/build/profile.d b/source/mason/build/profile.d
|
|
|
|
index 71cc8e0..b28b54c 100644
|
|
|
|
--- a/source/mason/build/profile.d
|
|
|
|
+++ b/source/mason/build/profile.d
|
|
|
|
@@ -287,7 +287,7 @@ public:
|
|
|
|
|
|
|
|
/* Always include /bill (future work), and maybe ccache */
|
|
|
|
immutable string path = buildContext.compilerCache
|
|
|
|
- ? "/usr/lib/ccache/bin:/usr/bin:/bin" : "/usr/bin:/bin";
|
|
|
|
+ ? "/usr/lib64/ccache/bin:/usr/bin:/bin" : "/usr/bin:/bin";
|
|
|
|
|
|
|
|
/* Set the relevant compilers */
|
|
|
|
if (buildContext.spec.options.toolchain == "llvm")
|
|
|
|
diff --git a/zlib-path-test.yml b/zlib-path-test.yml
|
|
|
|
index d3620e6..145b221 100644
|
|
|
|
--- a/zlib-path-test.yml
|
|
|
|
+++ b/zlib-path-test.yml
|
|
|
|
@@ -35,6 +35,6 @@ packages :
|
|
|
|
summary: Static libraries for zlib
|
|
|
|
description: Not really useful but for testing
|
|
|
|
paths:
|
|
|
|
- - "/usr/lib/*.a"
|
|
|
|
+ - "/usr/lib64/*.a"
|
|
|
|
toolchain : gnu
|
|
|
|
|