Github messages for voidlinux
 help / color / mirror / Atom feed
From: newbluemoon <newbluemoon@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: mariadb: add a patch to fix an issue on musl.
Date: Sun, 17 May 2020 12:22:52 +0200	[thread overview]
Message-ID: <20200517102252.I8jsyPLczCh8IIJ41OWGBoGu_pCSO7pQmbCj8fR80Ds@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21561@inbox.vuxu.org>

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

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/pull/21561#issuecomment-629774844

Comment:
It seems that the host-built tools to generate some header files are not found.
By moving them into the `build` directory they’re magically found again.
With following changes a cross-build was successful:
```
diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template
index c0c44217b7..b87e35e49e 100644
--- a/srcpkgs/mariadb/template
+++ b/srcpkgs/mariadb/template
@@ -53,11 +53,11 @@ pre_configure() {

 pre_build() {
        if [ "$CROSS_BUILD" ]; then
-               cp bin.host/comp_err ${wrksrc}/extra
-               cp bin.host/comp_sql ${wrksrc}/scripts
-               cp bin.host/gen_lex_hash ${wrksrc}/sql
-               cp bin.host/gen_lex_token ${wrksrc}/sql
-               export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql
+               cp bin.host/comp_err ${wrksrc}/build/extra
+               cp bin.host/comp_sql ${wrksrc}/build/scripts
+               cp bin.host/gen_lex_hash ${wrksrc}/build/sql
+               cp bin.host/gen_lex_token ${wrksrc}/build/sql
+               export PATH=${PATH}:${wrksrc}/build/extra:${wrksrc}/build/scripts:${wrksrc}/build/sql
        fi
        export LD_LIBRARY_PATH=${wrksrc}/build/storage/tokudb/ft-index/portability
        case "$XBPS_TARGET_MACHINE" in
```

  parent reply	other threads:[~2020-05-17 10:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-02 17:47 [PR PATCH] " CMB
2020-05-15 20:35 ` jnbr
2020-05-17  1:56 ` CMB
2020-05-17  9:00 ` jnbr
2020-05-17 10:22 ` newbluemoon [this message]
2020-05-24  5:06 ` [PR PATCH] [Closed]: " sgn

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=20200517102252.I8jsyPLczCh8IIJ41OWGBoGu_pCSO7pQmbCj8fR80Ds@z \
    --to=newbluemoon@users.noreply.github.com \
    --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).