Github messages for voidlinux
 help / color / mirror / Atom feed
From: fosslinux <>
Subject: Re: [WIP] New package: bazel-4.1.0
Date: Thu, 10 Jun 2021 09:42:21 +0200
Message-ID: <20210610074221.cXRP63e9klktG6fnKHHvugSqGtdchvb-o_ZVOS7dBgo@z> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]

New comment by fosslinux on void-packages repository

I have attempted this in the past. Your bazel template looks sane.

Bazel is not sane. Neither is anki, has a stupid mix of nodejs, bazel, python and rust.

Here's my template thus far, not for the latest version yet:
# Template file for 'anki'
hostmakedepends="bazel python3-pip git protobuf rust cargo rsync"
makedepends="protobuf-devel glib-devel python3-PyQt5-webengine"
depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy
 python3-PyAudio python3-mpv python3-Markdown python3-send2trash
 python3-BeautifulSoup4 python3-decorator python3-jsonschema
 python3-protobuf python3-Flask-Cors python3-waitress"
short_desc="Spaced repetition flashcard program"
maintainer="fosslinux <>"

do_build() {
        # Bazel dies on ccache
        if [ "$CROSS_BUILD" ]; then
                export CC="$(command -v ${XBPS_CROSS_TRIPLET}-gcc)"
                export CC="$(command -v gcc)"
        export PYTHON_SITE_PACKAGES="${XBPS_CROSS_BASE}/${py3_sitelib}"

        bazel build -c opt dist --jobs=1
        bsdtar -xf bazel-bin/dist.tar

do_install() {
        # I dislike bazel
        PIP_CONFIG_FILE=/dev/null TMPDIR=/tmp python3 -m pip install --isolated --root=${DESTDIR} --prefix=/usr --ignore-installed --no-deps bazel-dist/*.whl

        vbin qt/ anki
        vinstall qt/linux/anki.desktop 644 usr/share/applications
        vinstall qt/linux/anki.png 644 usr/share/pixmaps
        vinstall qt/linux/anki.xpm 644 usr/share/pixmaps
        vman qt/linux/anki.1

        vlicense LICENSE

Haven't worked on it for a while.

Cross is still broken IIRC.  Mutlicore building is broken last I checked. Musl is broken (you may need a patch for bazel for musl which I have also).

  parent reply	other threads:[~2021-06-10  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 22:13 [PR PATCH] " Filius-Patris
2021-06-10  0:40 ` [PR REVIEW] " ericonr
2021-06-10  0:40 ` ericonr
2021-06-10  7:02 ` [PR PATCH] [Updated] [WIP] " Filius-Patris
2021-06-10  7:41 ` fosslinux
2021-06-10  7:42 ` fosslinux [this message]
2021-06-10 21:29 ` [PR PATCH] [Updated] " Filius-Patris
2021-06-11  9:22 ` Filius-Patris
2021-06-11 15:39 ` [PR PATCH] [Updated] " Filius-Patris
2021-06-11 15:39 ` Filius-Patris
2021-06-11 15:56 ` Filius-Patris

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210610074221.cXRP63e9klktG6fnKHHvugSqGtdchvb-o_ZVOS7dBgo@z \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ \
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone