Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions srcpkgs/tup/patches/mips.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
--- a/src/tup/platform.c 2018-09-27 22:18:09.000000000 +0200
+++ b/src/tup/platform.c 2020-04-17 18:15:04.968819165 +0200
@@ -56,6 +56,8 @@
const char *tup_arch = "arm";
#elif __aarch64__
const char *tup_arch = "arm64";
diff --git a/src/tup/platform.c b/src/tup/platform.c
index 3ccc47cd..98454cef 100644
--- a/src/tup/platform.c
+++ b/src/tup/platform.c
@@ -66,6 +66,8 @@ const char *tup_arch = "riscv32";
const char *tup_arch = "loongarch64";
#elif __s390x__
const char *tup_arch = "s390x";
+#elif __mips__
+const char *tup_arch = "mips";
#else
#error Unsupported cpu architecture. Please add support in tup/platform.c
#endif
--- a/tup.1 2018-09-27 22:18:09.000000000 +0200
+++ b/tup.1 2020-04-17 18:16:08.702822453 +0200
@@ -755,7 +755,7 @@
TUP_PLATFORM is a special @-variable. If CONFIG_TUP_PLATFORM is not set in the tup.config file, it has a default value according to the platform that tup itself was compiled in. Currently the default value is one of "linux", "solaris", "macosx", "win32", or "freebsd".
diff --git a/tup.1 b/tup.1
index eaed9b9d..0840d595 100644
--- a/tup.1
+++ b/tup.1
@@ -857,7 +857,7 @@ In this case, the @-variable "FOO" is explicitly set to "n".
TUP_PLATFORM is a special @-variable. If CONFIG_TUP_PLATFORM is not set in the tup.config file, it has a default value according to the platform that tup itself was compiled in. Currently the default value is one of "linux", "solaris", "macosx", "win32", "freebsd" or "netbsd".
.TP
.B @(TUP_ARCH)
-TUP_ARCH is another special @-variable. If CONFIG_TUP_ARCH is not set in the tup.config file, it has a default value according to the processor architecture that tup itself was compiled in. Currently the default value is one of "i386", "x86_64", "powerpc", "powerpc64", "ia64", "alpha", "sparc", "arm64", or "arm".
+TUP_ARCH is another special @-variable. If CONFIG_TUP_ARCH is not set in the tup.config file, it has a default value according to the processor architecture that tup itself was compiled in. Currently the default value is one of "i386", "x86_64", "powerpc", "powerpc64", "ia64", "alpha", "sparc", "arm64", "arm", or "mips".
-TUP_ARCH is another special @-variable. If CONFIG_TUP_ARCH is not set in the tup.config file, it has a default value according to the processor architecture that tup itself was compiled in. Currently the default value is one of "i386", "x86_64", "powerpc", "powerpc64", "ia64", "alpha", "sparc", "riscv32", "riscv64", "arm64", "arm" or "s390x".
+TUP_ARCH is another special @-variable. If CONFIG_TUP_ARCH is not set in the tup.config file, it has a default value according to the processor architecture that tup itself was compiled in. Currently the default value is one of "i386", "x86_64", "powerpc", "powerpc64", "ia64", "alpha", "sparc", "riscv32", "riscv64", "arm64", "arm", "s390x", or "mips".

.SH "VARIANTS"
Tup supports variants, which allow you to build your project multiple times with different configurations. Perhaps the most common case is to build a release and a debug configuration with different compiler flags, though any number of variants can be used to support whatever configurations you like. Each variant is built in its own directory distinct from each other and from the source tree. When building with variants, the in-tree build is disabled. To create a variant, make a new directory at the top of the tup hierarchy and create a "tup.config" file there. For example:
Tup supports variants, which allow you to build your project multiple times with different configurations. Perhaps the most common case is to build a release and a debug configuration with different compiler flags, though any number of variants can be used to support whatever configurations you like. Each variant is built in its own directory distinct from each other and from the source tree. When building with variants, the in-tree build is disabled. To create a variant, make a new directory and create a "tup.config" file there. For example:
8 changes: 4 additions & 4 deletions srcpkgs/tup/template
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Template file for 'tup'
pkgname=tup
version=0.7.11
version=0.8
revision=1
hostmakedepends="fuse3-devel pkg-config"
makedepends="fuse3-devel pcre-devel sqlite-devel"
hostmakedepends="fuse3-devel pkg-config pcre2-devel"
makedepends="fuse3-devel pcre2-devel sqlite-devel"
short_desc="File-based build system"
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
license="GPL-2.0-only"
homepage="http://gittup.org/tup/index.html"
distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz"
checksum=be24dff5f1f32cc85c73398487a756b4a393adab5e4d8500fd5164909d3e85b9
checksum=45ca35c4c1d140f3faaab7fabf9d68fd9c21074af2af9a720cff4b27cab47d07

do_configure() {
sed -i "s/git describe/echo ${version}/" src/tup/link.sh
Expand Down