xbps-uhelper: support 'XBPS_{,TARGET_}ARCH' env vars in the 'arch' target.
This commit is contained in:
parent
c2a2b91ed2
commit
6272280fcf
4
NEWS
4
NEWS
@ -1,5 +1,9 @@
|
|||||||
xbps-0.52 (???):
|
xbps-0.52 (???):
|
||||||
|
|
||||||
|
* xbps-uhelper: the 'arch' target now supports the XBPS_ARCH
|
||||||
|
and XBPS_TARGET_ARCH environmental variables to override the
|
||||||
|
resulting architecture.
|
||||||
|
|
||||||
* portableproplib: merged two fixes from NetBSD CVS HEAD.
|
* portableproplib: merged two fixes from NetBSD CVS HEAD.
|
||||||
|
|
||||||
* xbps-create(1): this now creates reproducible pkgs when the file
|
* xbps-create(1): this now creates reproducible pkgs when the file
|
||||||
|
@ -280,7 +280,11 @@ main(int argc, char **argv)
|
|||||||
if (argc != 1)
|
if (argc != 1)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
|
if (xh.native_arch && xh.target_arch && strcmp(xh.native_arch, xh.target_arch)) {
|
||||||
|
printf("%s\n", xh.target_arch);
|
||||||
|
} else {
|
||||||
printf("%s\n", xh.native_arch);
|
printf("%s\n", xh.native_arch);
|
||||||
|
}
|
||||||
} else if (strcmp(argv[0], "getsystemdir") == 0) {
|
} else if (strcmp(argv[0], "getsystemdir") == 0) {
|
||||||
/* returns the xbps system directory (<sharedir>/xbps.d) */
|
/* returns the xbps system directory (<sharedir>/xbps.d) */
|
||||||
if (argc != 1)
|
if (argc != 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user