mkimage-profiles/doc
Michael Shigorin 1b5b309bf8 bin/archdep-filter: implement multi-!matching too
This has been clearly lacking while making the previous commit
but the implementation isn't that clear so let it be a separate
step.

The problem requiring the change in subsequent processors
is that these relied upon "@arch" as a flag to be inspected,
and "pkg@!arch1,arch2" on arch2 needs to take out *all* of that
fragment *including* arch1 mention as well.

Part of the cause is difference in handling: "positive" multi-match
would explode its "client" line into multiple lines to filter down
the pipeline, while "negative" multi-match *has* to keep that line
on a similarly single line (otherwise we'd end up with N-1 of those
slipping past the filter for particular architecture thus defeating
the whole purpose of "negative" matching semantics):

$ echo 'pkg@!E2K,mipsel,riscv64' |
  sed -r  ':loop; s/^((([^@]+@!)[^,]+)+),([a-zA-Z0-9_]+)/\1@!\4/; t loop'
pkg@!E2K@!mipsel@!riscv64

I've tried my best to test this specific change but it still might
introduce a regression in some corner case; feel free to report;
looks like there's a space for improvement in m-p's automated
tests department as well.

So now we can do:

  pkg@!ARCHES1,ARCHES2,arch3,arch4

and have pkg excluded on arches mentioned; the previous approach
could only offer explicit whitelists (not that it was entirely
wrong but then again, we have both ExclusiveArch and ExcludeArch
rpmtags in our spec files).
2021-12-04 22:11:50 +07:00
..
.fop.xconf asciidoc: moved support files into doc/ 2012-11-05 17:20:12 +04:00
.gitignore doc/.gitignore: ignore mkimage-profiles.7 2021-07-23 16:11:03 +07:00
apt.conf.sample added doc/apt.conf.sample 2011-11-04 16:54:41 +02:00
archdep.txt bin/archdep-filter: implement multi-!matching too 2021-12-04 22:11:50 +07:00
assumptions.txt doc, grub, stage1, stage2: Add support multiple kernels for grub only 2021-04-12 23:13:47 +07:00
branch.txt doc/branch.txt: update example 2021-09-21 21:07:10 +07:00
debug.txt README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
features.txt README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
gen-asciidoc.txt asciidoc: moved support files into doc/ 2012-11-05 17:20:12 +04:00
Makefile doc/Makefile: not clean .fop.xconf 2021-06-06 19:15:17 +07:00
metadep.txt pkg.in/lists/Makefile, metadep-expander, doc: Add @META suffix for pkglist items 2021-07-23 16:01:47 +07:00
mkimage-profiles.7.in README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
mkimage-profiles.asciidoc README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
params.txt build.mk, params.txt: add parameter USE_QEMU 2021-11-22 22:30:57 +07:00
pkglists.txt Add COMMON_LISTS variable support by analogy COMMON_PACKAGES 2021-08-31 00:42:31 +07:00
profiles.mk.sample doc/profiles.mk.sample: add IMAGEDIR to sample 2021-10-14 15:22:48 +07:00
qemu.txt README, doc: update urls, authors 2021-10-25 15:13:00 +07:00
style.txt doc: assorted updates/fixups 2018-07-25 16:49:05 +03:00
vm.txt build-vm: try system tar2fs first 2016-11-07 19:47:53 +03:00