From 75e6eed4b62a9681758c549e259825c478502498 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 20 Jun 2020 21:11:20 -0400 Subject: dev/multiarch: Mention opkg wrapper --- (limited to 'dev/multiarch.mdwn') diff --git a/dev/multiarch.mdwn b/dev/multiarch.mdwn index 37a54e1..df69ba2 100644 --- a/dev/multiarch.mdwn +++ b/dev/multiarch.mdwn @@ -101,9 +101,21 @@ ProteanOS systems should have only native architecture feeds for sections and `libdev`. (Sections `doc`, `locale`, and `share` are architecture-independent.) +opkg-lede's architecture priorities as described above can be useful in certain +specific ways, through a [wrapper script that adds an `-a`/`--host-architecture` +option][opkg-wrapper] (similar to that of apt-get). First, since multiple +`Section: dbg` feeds may be downloaded and architecture-qualifying such packages +would be undesirable, such packages could be installed instead via `opkg -a +amd64-linux-glibc foo-dbg`. Similarly, `Section: libdev` packages as build +dependencies could be automatically installed for the host architecture by +prokit supplying an appropriate `-a` option, allowing maintainers to continue +listing unqualified package names in `Build-Depends` instead of having to add +`-${Host-Arch}` to every `Section: libdev` package in `Build-Depends`. + [wuc-mas-arch-indep-files]: https://wiki.ubuntu.com/MultiarchSpec#Architecture-independent_files_in_multiarch_packages [wuc-mas-control-fields]: https://wiki.ubuntu.com/MultiarchSpec#Binary_package_control_fields [spf-fields-bin]: http://specs.proteanos.com/spf-2.0/fields.html#fields-bin +[opkg-wrapper]: http://git.proteanos.com/pkg/opkg-lede.git/tree/opkg Use Cases -- cgit v0.9.1