Github messages for voidlinux
 help / color / mirror / Atom feed
From: digitalagedragon <digitalagedragon@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: nodejs packages should be fixed to use more system libraries
Date: Mon, 26 Apr 2021 00:46:53 +0200	[thread overview]
Message-ID: <20210425224653.cNW-Og4FgUyrb3QiQrJl1LxUo2cEaxlDXGLrOzvWdP0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29034@inbox.vuxu.org>

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

New comment by digitalagedragon on void-packages repository

https://github.com/void-linux/void-packages/issues/29034#issuecomment-826402170

Comment:
```diff
diff --git a/srcpkgs/nodejs-lts-10/patches/ppc32.patch b/srcpkgs/nodejs-lts-10/patches/ppc32.patch
index 343eff5851..da8b6b7c7c 100644
--- a/srcpkgs/nodejs-lts-10/patches/ppc32.patch
+++ b/srcpkgs/nodejs-lts-10/patches/ppc32.patch
@@ -15,7 +15,7 @@
        'msvs_disabled_warnings!': [4244],

        'conditions': [
-+        [ 'host_arch=="mips" or host_arch=="mipsel" or host_arch=="ppc"', {
++        [ 'target_arch=="mips" or target_arch=="mipsel" or target_arch=="ppc" or target_arch=="arm"', {
 +        'link_settings': {
 +          'libraries': [ '-latomic' ],
 +        },
diff --git a/srcpkgs/nodejs-lts-10/template b/srcpkgs/nodejs-lts-10/template
index 3944d359c6..a680db30cc 100644
--- a/srcpkgs/nodejs-lts-10/template
+++ b/srcpkgs/nodejs-lts-10/template
@@ -37,9 +37,7 @@ if [ "$XBPS_WORDSIZE" -ne "$XBPS_TARGET_WORDSIZE" ]; then
        nocross="host and target must have the same pointer size"
 fi

-if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
-       makedepends+=" libatomic-devel"
-fi
+makedepends+=" libatomic-devel"
 if [ "$XBPS_NO_ATOMIC8" ]; then
        hostmakedepends+=" libatomic-devel"
 fi
```

Well this seems to work, at least - compiles on armv6l and armv7l, `node` pulls in `libatomic` on armv6l and doesn't on armv7l. I'd rather be able to pass `$XBPS_TARGET_NO_ATOMIC8` off to the build system directly but (granted, with 5 minutes of looking) there doesn't appear to be a good way to do that.

  parent reply	other threads:[~2021-04-25 22:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 18:51 [ISSUE] nodejs packages should be udpated " ericonr
2021-02-24 18:56 ` nodejs packages should be fixed " ericonr
2021-04-25 17:07 ` digitalagedragon
2021-04-25 18:14 ` digitalagedragon
2021-04-25 18:23 ` ericonr
2021-04-25 18:26 ` digitalagedragon
2021-04-25 18:26 ` digitalagedragon
2021-04-25 19:17 ` digitalagedragon
2021-04-25 19:36 ` digitalagedragon
2021-04-25 19:50 ` digitalagedragon
2021-04-25 19:59 ` ericonr
2021-04-25 20:05 ` digitalagedragon
2021-04-25 20:44 ` digitalagedragon
2021-04-25 22:46 ` digitalagedragon [this message]
2021-04-26 15:13 ` ericonr
2021-04-26 15:15 ` digitalagedragon
2021-04-26 15:19 ` ericonr
2021-04-26 15:22 ` digitalagedragon
2021-04-28 12:32 ` ericonr
2021-04-28 12:32 ` [ISSUE] [CLOSED] " ericonr

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=20210425224653.cNW-Og4FgUyrb3QiQrJl1LxUo2cEaxlDXGLrOzvWdP0@z \
    --to=digitalagedragon@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).