* [PR PATCH] README.md: update instructions of building for other libc
@ 2020-09-25 19:30 Chocimier
2020-09-26 15:09 ` [PR PATCH] [Updated] " Chocimier
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chocimier @ 2020-09-25 19:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
There is a new pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org readme-native-musl
https://github.com/void-linux/void-packages/pull/25100
README.md: update instructions of building for other libc
base-chroot-musl is irrelevant since some time.
@pullmoll: Do new instruction miss anything?
A patch file from https://github.com/void-linux/void-packages/pull/25100.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-readme-native-musl-25100.patch --]
[-- Type: text/x-diff, Size: 1327 bytes --]
From 772e3657e5bf3b29bdecd66044602510f6a96636 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Fri, 25 Sep 2020 21:27:48 +0200
Subject: [PATCH] README.md: update instructions of building for other libc
---
README.md | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index fe85e3f20eb..dfa741c6daf 100644
--- a/README.md
+++ b/README.md
@@ -484,15 +484,8 @@ The second mode (native) needs a new x86 `masterdir`:
<a name="building-for-musl"></a>
### Building packages natively for the musl C library
-A native build environment is required to be able to cross compile the bootstrap packages for the musl C library; this is accomplished by installing them via `binary-bootstrap`:
-
- $ ./xbps-src binary-bootstrap
-
-Now cross compile `base-chroot-musl` for your native architecture:
-
- $ ./xbps-src -a x86_64-musl pkg base-chroot-musl
-
-Wait until all packages are built and when ready, prepare a new masterdir with the musl packages:
+Canonical way of building packages for same architecture but different C library is through dedicated masterdir.
+To build for x86_64-musl on glibc x86_64 system, prepare a new masterdir with the musl packages:
$ ./xbps-src -m masterdir-x86_64-musl binary-bootstrap x86_64-musl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] README.md: update instructions of building for other libc
2020-09-25 19:30 [PR PATCH] README.md: update instructions of building for other libc Chocimier
@ 2020-09-26 15:09 ` Chocimier
2020-09-26 15:10 ` Chocimier
2020-09-26 19:58 ` [PR PATCH] [Merged]: " Chocimier
2 siblings, 0 replies; 4+ messages in thread
From: Chocimier @ 2020-09-26 15:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 461 bytes --]
There is an updated pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org readme-native-musl
https://github.com/void-linux/void-packages/pull/25100
README.md: update instructions of building for other libc
base-chroot-musl is irrelevant since some time.
@pullmoll: Do new instruction miss anything?
A patch file from https://github.com/void-linux/void-packages/pull/25100.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-readme-native-musl-25100.patch --]
[-- Type: text/x-diff, Size: 1769 bytes --]
From d8bfe538958df7b48998ed817947abfaa9e0012c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Fri, 25 Sep 2020 21:27:48 +0200
Subject: [PATCH] README.md: update instructions of building for other libc
---
README.md | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index fe85e3f20eb..9238b1918ef 100644
--- a/README.md
+++ b/README.md
@@ -484,24 +484,14 @@ The second mode (native) needs a new x86 `masterdir`:
<a name="building-for-musl"></a>
### Building packages natively for the musl C library
-A native build environment is required to be able to cross compile the bootstrap packages for the musl C library; this is accomplished by installing them via `binary-bootstrap`:
-
- $ ./xbps-src binary-bootstrap
-
-Now cross compile `base-chroot-musl` for your native architecture:
-
- $ ./xbps-src -a x86_64-musl pkg base-chroot-musl
-
-Wait until all packages are built and when ready, prepare a new masterdir with the musl packages:
+Canonical way of building packages for same architecture but different C library is through dedicated masterdir.
+To build for x86_64-musl on glibc x86_64 system, prepare a new masterdir with the musl packages:
$ ./xbps-src -m masterdir-x86_64-musl binary-bootstrap x86_64-musl
-Your new masterdir is now ready to build packages natively for the musl C library. Try:
-
- $ ./xbps-src -m masterdir-x86_64-musl chroot
- $ ldd
+Your new masterdir is now ready to build packages natively for the musl C library:
-To see if the musl C dynamic linker is working as expected.
+ $ ./xbps-src -m masterdir-x86_64-musl pkg ...
<a name="building-base-system"></a>
### Building void base-system from scratch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: README.md: update instructions of building for other libc
2020-09-25 19:30 [PR PATCH] README.md: update instructions of building for other libc Chocimier
2020-09-26 15:09 ` [PR PATCH] [Updated] " Chocimier
@ 2020-09-26 15:10 ` Chocimier
2020-09-26 19:58 ` [PR PATCH] [Merged]: " Chocimier
2 siblings, 0 replies; 4+ messages in thread
From: Chocimier @ 2020-09-26 15:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
New comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/25100#issuecomment-699507915
Comment:
Put exact command to build package.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Merged]: README.md: update instructions of building for other libc
2020-09-25 19:30 [PR PATCH] README.md: update instructions of building for other libc Chocimier
2020-09-26 15:09 ` [PR PATCH] [Updated] " Chocimier
2020-09-26 15:10 ` Chocimier
@ 2020-09-26 19:58 ` Chocimier
2 siblings, 0 replies; 4+ messages in thread
From: Chocimier @ 2020-09-26 19:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
There's a merged pull request on the void-packages repository
README.md: update instructions of building for other libc
https://github.com/void-linux/void-packages/pull/25100
Description:
base-chroot-musl is irrelevant since some time.
@pullmoll: Do new instruction miss anything?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-26 19:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 19:30 [PR PATCH] README.md: update instructions of building for other libc Chocimier
2020-09-26 15:09 ` [PR PATCH] [Updated] " Chocimier
2020-09-26 15:10 ` Chocimier
2020-09-26 19:58 ` [PR PATCH] [Merged]: " Chocimier
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).