From: "Andrey Utkin" <andrey_utkin@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/tup/
Date: Sun, 2 Dec 2018 03:19:21 +0000 (UTC) [thread overview]
Message-ID: <1543720744.6e62ad648edfb9671bbcd7421031bd32e9da7c43.andrey_utkin@gentoo> (raw)
commit: 6e62ad648edfb9671bbcd7421031bd32e9da7c43
Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 2 03:18:28 2018 +0000
Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
CommitDate: Sun Dec 2 03:19:04 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e62ad64
dev-util/tup: add new version 0.7.8
Package-Manager: Portage-2.3.49, Repoman-2.3.12
Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
dev-util/tup/Manifest | 1 +
dev-util/tup/tup-0.7.8.ebuild | 100 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 101 insertions(+)
diff --git a/dev-util/tup/Manifest b/dev-util/tup/Manifest
index d9c8a9d735d..c6e20f057ed 100644
--- a/dev-util/tup/Manifest
+++ b/dev-util/tup/Manifest
@@ -1 +1,2 @@
DIST tup-0.7.7.tar.gz 4033539 BLAKE2B dc4d3fc538c76dac53629991e32de7414f35877af8bb9f2ce4a1f80252317de7b3d2ea1542ab3e58702813b297a42c95610d14122496ac7f23acc1f8f3d62461 SHA512 05407cc923b898d5dcf6652df6395e7618d43fa4e3ace905dda09bcda26f975187761a704d360fceeb38332f29d65cd3d1f9e04c87d93dcffa4e9e2be9b35aad
+DIST tup-0.7.8.tar.gz 4540974 BLAKE2B b6724113fac9920b029604af3bf4fd875c1651b89b6c772bfecef9e8d9612574265fafd0a8eac217a51e3b3fe1d4776e97174d4c89cbf97ee3203dddc0e53f6c SHA512 17d4b76c508749ca011b3c0209bc779d617a091ed2d067bf1095fc840f62ac23145071395892170390ac6217f18bcaabb0cff582aa782838eab190244313d7f5
diff --git a/dev-util/tup/tup-0.7.8.ebuild b/dev-util/tup/tup-0.7.8.ebuild
new file mode 100644
index 00000000000..2662d05de6f
--- /dev/null
+++ b/dev-util/tup/tup-0.7.8.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="A file-based build system"
+HOMEPAGE="http://gittup.org/tup"
+# Tup itself is GPLv2, but it bundles differently licensed software:
+# - lua: MIT
+# - sqlite (unused in this ebuild): public domain
+# - inih: 3-clause BSD
+# - red-black tree implementation: 2-clause BSD
+# - queue implementation: 3-clause BSD
+LICENSE="GPL-2 MIT public-domain BSD BSD-2"
+SLOT="0"
+
+if [[ "${PV}" == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/gittup/tup.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/gittup/tup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+DEPEND="
+ dev-db/sqlite:=
+ dev-libs/libpcre:=
+ sys-fs/fuse:=
+"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
+WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
+WARNING_NAMESPACES="CONFIG_NAMESPACES is required for tup to work as intended (workaround: set TUP_NO_NAMESPACING env var when running tup)"
+
+src_prepare() {
+ # Use our toolchain
+ sed -i Tuprules.tup \
+ -e "s:CC = gcc:CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}:" \
+ -e "s:ar crs:$(tc-getAR) crs:"
+
+ if [[ ${PV} != 9999 ]]; then
+ # Avoid invoking `git` to find version, use ours
+ sed -i src/tup/link.sh \
+ -e 's;`git describe`;v'"${PV};"
+ fi
+
+ default
+}
+
+src_configure () {
+ echo "CONFIG_TUP_USE_SYSTEM_SQLITE=y" >> tup.config
+}
+
+src_compile() {
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+ ./bootstrap-nofuse.sh || die
+ unset TUP_NO_NAMESPACING
+}
+
+src_install() {
+ dobin tup
+ dolib.a libtup_client.a
+ doheader tup_client.h
+ doman tup.1
+}
+
+src_test() {
+ [[ -e /dev/fuse ]] || die "/dev/fuse is required for tests to work"
+ # tup uses fuse when tracking dependencies.
+ addwrite /dev/fuse
+
+ # Disabling namespacing because it leads to accessing /proc/<pid>/setgroups
+ # which violates sandboxing.
+ export TUP_NO_NAMESPACING=1
+
+ # Skip tests which require namespacing or root privileges.
+ pushd test || die
+ rm -v ./*full-deps*.sh
+ SKIPPED_TESTS=(
+ t4069-gcc-coverage.sh
+ t4072-proc-self.sh
+ t4074-getpwd.sh
+ t4131-proc-self-exe.sh
+ t4132-proc-meminfo.sh
+ t4171-dev-null.sh
+ t4200-ccache.sh
+ t5083-symlink-fullpath.sh
+ t5084-symlink-fullpath2.sh
+ )
+ rm ${SKIPPED_TESTS[@]} || die
+ ./test.sh || die
+ popd || die
+
+ unset TUP_NO_NAMESPACING
+}
next reply other threads:[~2018-12-02 3:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-02 3:19 Andrey Utkin [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-08 7:43 [gentoo-commits] repo/gentoo:master commit in: dev-util/tup/ Joonas Niilola
2022-07-02 17:35 Joonas Niilola
2022-04-17 19:00 Sam James
2022-02-11 14:56 Joonas Niilola
2022-02-11 14:56 Joonas Niilola
2021-12-05 7:49 Jakov Smolić
2021-07-20 10:25 Joonas Niilola
2020-07-27 23:48 Andrey Utkin
2019-07-10 17:38 Andrey Utkin
2019-04-08 18:22 Andrey Utkin
2019-02-08 13:59 Mikle Kolyada
2018-12-02 3:19 Andrey Utkin
2018-12-02 3:19 Andrey Utkin
2018-12-02 2:47 Andrey Utkin
2018-12-02 2:47 Andrey Utkin
2018-07-29 1:43 Andrey Utkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1543720744.6e62ad648edfb9671bbcd7421031bd32e9da7c43.andrey_utkin@gentoo \
--to=andrey_utkin@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox