* [ISSUE] Setting default command line options in etc/conf isn't working
@ 2022-01-20 16:57 lfdebrux
2022-01-20 20:11 ` Chocimier
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: lfdebrux @ 2022-01-20 16:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
New issue by lfdebrux on void-packages repository
https://github.com/void-linux/void-packages/issues/35139
Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System
* xuname: `Void 5.11.22_1 x86_64-musl GenuineIntel uptodate rFFF`
* package: `xbps-src`
### Expected behavior
Setting an option in `etc/conf` should have the same effect as calling `xbps-src` with a command line parameter, as documented in `xbps-src`:
https://github.com/void-linux/void-packages/blob/5f589a9962d7871deedbaa3d3e92751ace5ef1d6/xbps-src#L365-L367
### Actual behavior
Some options don't have any effect. I think this is because they get lost when the chroot is entered, because they aren't added to `XBPS_OPTIONS` or `$XBPS_MASTERDIR/etc/xbps/xbps-src.conf`.
### Steps to reproduce the behavior
For example, if I want to avoid adding `-a armv5tel-musl` to the command line every time:
1. Checkout latest version of void-linux/void-packages
2. Add file `etc/conf` with contents `XBPS_CROSS_BUILD=armv5tel-musl`
3. Run `xbps-src pkg base-files`
I expect it to build a package for `armv5tel-musl`, instead it builds a package for `x86_64-musl` (the native arch).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Setting default command line options in etc/conf isn't working
2022-01-20 16:57 [ISSUE] Setting default command line options in etc/conf isn't working lfdebrux
@ 2022-01-20 20:11 ` Chocimier
2022-01-28 8:17 ` lfdebrux
2022-01-28 8:18 ` [ISSUE] [CLOSED] " lfdebrux
2 siblings, 0 replies; 4+ messages in thread
From: Chocimier @ 2022-01-20 20:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
New comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/issues/35139#issuecomment-1017880382
Comment:
No variables other than documented in etc/defaults.conf are expected to have effect on xbps-src.
In particular, setting `XBPS_CROSS_BUILD` from config file would break building host dependencies needed for cross built packages.
Your best option is to create a separate script containing `./xbps-src -a armv5tel-musl "$@"`.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Setting default command line options in etc/conf isn't working
2022-01-20 16:57 [ISSUE] Setting default command line options in etc/conf isn't working lfdebrux
2022-01-20 20:11 ` Chocimier
@ 2022-01-28 8:17 ` lfdebrux
2022-01-28 8:18 ` [ISSUE] [CLOSED] " lfdebrux
2 siblings, 0 replies; 4+ messages in thread
From: lfdebrux @ 2022-01-28 8:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
New comment by lfdebrux on void-packages repository
https://github.com/void-linux/void-packages/issues/35139#issuecomment-1023983926
Comment:
I see. Thanks for explaining that!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ISSUE] [CLOSED] Setting default command line options in etc/conf isn't working
2022-01-20 16:57 [ISSUE] Setting default command line options in etc/conf isn't working lfdebrux
2022-01-20 20:11 ` Chocimier
2022-01-28 8:17 ` lfdebrux
@ 2022-01-28 8:18 ` lfdebrux
2 siblings, 0 replies; 4+ messages in thread
From: lfdebrux @ 2022-01-28 8:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]
Closed issue by lfdebrux on void-packages repository
https://github.com/void-linux/void-packages/issues/35139
Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System
* xuname: `Void 5.11.22_1 x86_64-musl GenuineIntel uptodate rFFF`
* package: `xbps-src`
### Expected behavior
Setting an option in `etc/conf` should have the same effect as calling `xbps-src` with a command line parameter, as documented in `xbps-src`:
https://github.com/void-linux/void-packages/blob/5f589a9962d7871deedbaa3d3e92751ace5ef1d6/xbps-src#L365-L367
### Actual behavior
Some options don't have any effect. I think this is because they get lost when the chroot is entered, because they aren't added to `XBPS_OPTIONS` or `$XBPS_MASTERDIR/etc/xbps/xbps-src.conf`.
### Steps to reproduce the behavior
For example, if I want to avoid adding `-a armv5tel-musl` to the command line every time:
1. Checkout latest version of void-linux/void-packages
2. Add file `etc/conf` with contents `XBPS_CROSS_BUILD=armv5tel-musl`
3. Run `xbps-src pkg base-files`
I expect it to build a package for `armv5tel-musl`, instead it builds a package for `x86_64-musl` (the native arch).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-28 8:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 16:57 [ISSUE] Setting default command line options in etc/conf isn't working lfdebrux
2022-01-20 20:11 ` Chocimier
2022-01-28 8:17 ` lfdebrux
2022-01-28 8:18 ` [ISSUE] [CLOSED] " lfdebrux
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).