-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] build-style/meson: fix building rust apps #7341
Conversation
Will test gnome-podcasts tomorrow. |
common/build-style/meson.sh
Outdated
@@ -64,6 +65,17 @@ endian = '${_MESON_TARGET_ENDIAN}' | |||
EOF | |||
configure_args+=" --cross-file=${meson_crossfile}" | |||
|
|||
# Fix building Rust apps | |||
mkdir .cargo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use mkdir -p .cargo
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How could ${wrksrc} not exist here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.cargo
could exist already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right, -p also deals with that
export GETTEXT_BIN_DIR=/usr/bin | ||
export GETTEXT_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib/gettext" | ||
export GETTEXT_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include" | ||
export LIBSSH2_SYS_USE_PKG_CONFIG=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing newline here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a solution which doesn't involve maintaining two copies of this list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, can we share envs between build styles? Adding it to the global env seems meh to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Thu, Jan 17, 2019 at 04:44:37PM -0800, Rasmus Thomsen wrote:
Cogitri commented on this pull request.
> @@ -1 +1,9 @@
hostmakedepends+=" meson"
+
+export PKG_CONFIG_ALLOW_CROSS=1
+
+export LIBGIT2_SYS_USE_PKG_CONFIG=1
+export GETTEXT_BIN_DIR=/usr/bin
+export GETTEXT_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib/gettext"
+export GETTEXT_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
+export LIBSSH2_SYS_USE_PKG_CONFIG=1
Hm, can we share envs between build styles? Adding it to the global env seems meh to me
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#7341 (comment)
NOt between build_styles, maybe we can change that.
|
This will be fixed by build_helper #7505 |
No description provided.