Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] pijul: fix build
Date: Sat, 15 Jun 2019 12:57:31 +0200	[thread overview]
Message-ID: <20190615105731.6AuUkGKpabSt_5n6P77XSo9L1wOCv4L4Qm9hpfW_EVI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12467@inbox.vuxu.org>

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

There is an updated pull request by jnbr against master on the void-packages repository

https://github.com/jnbr/void-packages pijul
https://github.com/void-linux/void-packages/pull/12467

pijul: fix build


A patch file from https://github.com/void-linux/void-packages/pull/12467.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pijul-12467.patch --]
[-- Type: application/text/x-diff, Size: 2179 bytes --]

From 46751ec503b1acdd4781b56460f3a55ae8f39d23 Mon Sep 17 00:00:00 2001
From: Johannes <johannes.brechtmann@gmail.com>
Date: Sat, 15 Jun 2019 12:49:00 +0200
Subject: [PATCH] pijul: fix build

---
 srcpkgs/pijul/patches/bindgen.patch |  9 +++++++++
 srcpkgs/pijul/template              | 13 ++++++++++---
 2 files changed, 19 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/pijul/patches/bindgen.patch

diff --git a/srcpkgs/pijul/patches/bindgen.patch b/srcpkgs/pijul/patches/bindgen.patch
new file mode 100644
index 00000000000..2b303f42dec
--- /dev/null
+++ b/srcpkgs/pijul/patches/bindgen.patch
@@ -0,0 +1,9 @@
+patch bindgen to use BINDGEN_EXTRA_CLANG_ARGS variable to set sysroot for cross builds
+
+--- Cargo.toml.orig	2019-06-15 02:33:02.105715462 +0200
++++ Cargo.toml	2019-06-15 02:36:33.905701785 +0200
+@@ -6,3 +6,4 @@
+ "libpijul:0.12.0" = { path = "libpijul" }
+ "line:0.1.15" = { path = "line" }
+ "diffs:0.3.0" = { path = "diffs" }
++"bindgen:0.43.2" = {git = 'https://github.com/jnbr/rust-bindgen', rev = "1467ac97c669c1ddda8117ccf1d398609b0e6fa9"}
diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template
index 29a70927713..87e51ed1885 100644
--- a/srcpkgs/pijul/template
+++ b/srcpkgs/pijul/template
@@ -1,9 +1,9 @@
 # Template file for 'pijul'
 pkgname=pijul
 version=0.12.0
-revision=1
+revision=2
 build_style=cargo
-hostmakedepends="pkg-config"
+hostmakedepends="pkg-config clang"
 makedepends="libsodium-devel libressl-devel nettle-devel"
 short_desc="Distributed version control system based on patches"
 maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
@@ -12,7 +12,14 @@ homepage="https://pijul.org/"
 distfiles="https://pijul.org/releases/pijul-${version}.tar.gz"
 checksum=987820fa2a6fe92a9f516f5e9b41ad59a597973e72cb0c7a44ca0f38e741a7e6
 
-broken="Links clang to build. Can't build on arm* with clang."
+export HOST_CC="$BUILD_CC"
+export HOST_CFLAGS="$BUILD_CFLAGS"
+export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$XBPS_CROSS_BASE"
+
+pre_build() {
+	cargo update --package openssl-sys --precise 0.9.46
+	cargo update --package openssl --precise 0.10.22
+}
 
 # We only want to install the binary, so don't run cargo install
 do_install() {

  parent reply	other threads:[~2019-06-15 10:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-15 10:54 [PR PATCH] " voidlinux-github
2019-06-15 10:57 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-15 10:57 ` voidlinux-github [this message]
2019-06-15 11:38 ` voidlinux-github
2019-06-15 11:38 ` voidlinux-github
2019-06-15 13:09 ` [WIP] " voidlinux-github
2019-06-15 14:39 ` voidlinux-github
2019-06-16 11:55 ` [PR PATCH] [Merged]: " voidlinux-github

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=20190615105731.6AuUkGKpabSt_5n6P77XSo9L1wOCv4L4Qm9hpfW_EVI@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).