1. 04 Dec, 2021 1 commit
    • Michael Shigorin's avatar
      bin/archdep-filter: implement multi-!matching too · 1b5b309b
      Michael Shigorin authored
      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).
      1b5b309b
  2. 23 Nov, 2021 1 commit
    • Michael Shigorin's avatar
      bin/archdep-filter: implement multi-matching · 2bc28a9c
      Michael Shigorin authored
      This has been inspired by a few commits that cared
      for package availability reasons on a particular
      architecture; the problem at hand is that pkglists
      might need to include groups of packages that are
      (un)available on groups of arches, and tackling that
      with plain pkg@arch just results in combinatorial
      explosion of that matrix.
      
      Arches are handled one-by-one with a few hardcoded
      macro substitutions.
      
      Exploding a "pkg@arch1,arch2" string into a set of:
      
      pkg@arch1
      pkg@arch2
      
      with subsequent archdep pruning would do the trick;
      so here's another sed oneliner that does just that:
      
      $ echo 'pkg@X86,ARM,ppc64le' |
        sed -r ':loop; s/^((([^@]+@)[^,]+)+),([^,]+)/\1\n\3\4/; t loop'
      pkg@X86
      pkg@ARM
      pkg@ppc64le
      
      See-also: 9601a9e7
      See-also: 5581dc91
      See-also: http://stackoverflow.com/a/55781741/561921
      2bc28a9c
  3. 22 Nov, 2021 1 commit
    • Anton Midyukov's avatar
      build.mk, params.txt: add parameter USE_QEMU · 1c50ff1f
      Anton Midyukov authored
      The parameter determines use of QEMU or not, if the target architecture
      does not correspond to the host architecture.
      By default, the parameter is on (Value 1).
      For architectures that do not support QEMU (e2k), the option is turned off.
      1c50ff1f
  4. 25 Oct, 2021 1 commit
  5. 14 Oct, 2021 1 commit
  6. 21 Sep, 2021 1 commit
  7. 01 Sep, 2021 1 commit
  8. 30 Aug, 2021 1 commit
  9. 23 Aug, 2021 2 commits
  10. 23 Jul, 2021 2 commits
  11. 20 Jul, 2021 1 commit
  12. 18 Jun, 2021 2 commits
  13. 06 Jun, 2021 5 commits
  14. 17 May, 2021 1 commit
  15. 30 Apr, 2021 1 commit
  16. 12 Apr, 2021 1 commit
  17. 23 Oct, 2019 1 commit
  18. 19 Aug, 2019 1 commit
    • Michael Shigorin's avatar
      doc: drop the outdated arch list · 88018915
      Michael Shigorin authored
      It was misleading already, and riscv64 is going to join the gang
      (but not there yet) following aarch64, mipsel, ppc64le and more
      e2k* subarches...
      88018915
  19. 25 Jul, 2018 1 commit
    • Michael Shigorin's avatar
      doc: assorted updates/fixups · f8a264bb
      Michael Shigorin authored
      doc/archdep.txt was the reason to look closer,
      and some other files needed a bit of facelift
      by now too (would be better to do that in sync).
      f8a264bb
  20. 16 Jul, 2018 1 commit
  21. 25 Jun, 2018 1 commit
  22. 21 Mar, 2018 1 commit
    • Michael Shigorin's avatar
      doc: mention #34638 · 03312d7f
      Michael Shigorin authored
      pauli@ has proposed slightly different setup to what is provided
      by livecd-qemu-arch; but the use case might be different either.
      At least provide the link to those interested.
      03312d7f
  23. 14 Mar, 2018 1 commit
    • Michael Shigorin's avatar
      lists, doc: introduce @IA32, @X86 archdep macros · 2d257a42
      Michael Shigorin authored
      The former ("proper 32-bit x86 package form") has been suggested
      by zerg@ quite some time ago but the desired interface wasn't clear
      at the moment IIRC; a quiet morning helped me realize that
      
        ICAClient-preinstall@IA32
      
      is rather more readable than
      
        ICAClient-preinstall@i586 i586-ICAClient-preinstall@x86_64
      
      so here's the (trivial) implementation; and I actually needed
      the latter, @X86 ("any-x86") to mark x86-only packages so
      
        xorg-drv-intel@X86
      
      is now equivalent to
      
        xorg-drv-intel@i586 xorg-drv-intel@x86_64
      2d257a42
  24. 09 Jun, 2017 1 commit
    • Michael Shigorin's avatar
      docs update · 31ecda72
      Michael Shigorin authored
      Another minor facelift:
      - s/ALT Linux/ALT/gc (where applicable);
      - s/7.0/8.0/g;
      - 2017;
      - e2k;
      - links.
      31ecda72
  25. 07 Nov, 2016 1 commit
    • Michael Shigorin's avatar
      build-vm: try system tar2fs first · f293239d
      Michael Shigorin authored
      It's at least removing the very obvious user->root
      attack through (maliciously) modifying bin/tar2fs
      and waiting for it to be run; if mkimage-profiles
      is installed system-wide as a package, the script
      from /usr/share/mkimage-profiles will be tried so
      those willing to allow vm/* build to themselves
      can provide for a passwordless sudo (as described
      in doc/vm.txt) to run a root-only writable script,
      not user-writable.
      
      Still not perfect but a step away from the abyss.
      f293239d
  26. 12 Sep, 2016 1 commit
  27. 16 Jun, 2016 1 commit
  28. 15 Feb, 2016 1 commit
  29. 10 Feb, 2016 1 commit
  30. 08 Feb, 2016 1 commit
  31. 10 Jan, 2016 2 commits
    • Michael Shigorin's avatar
      style.txt: avoid merge commits! · 97eee80f
      Michael Shigorin authored
      Merge commits aren't going to be merged upstream
      for these break all sorts of git tools including
      log -p, blame, bisect, etc (or make their use less
      convenient).
      97eee80f
    • Michael Shigorin's avatar
      style.txt: slightly better call for documenting · 41d2644e
      Michael Shigorin authored
      Sometimes we tend to "just" translate the code to human
      which doesn't really help; what usually helps is noting
      down what the code author intended to implement or fix,
      and what was the case for that.
      41d2644e
  32. 05 May, 2015 1 commit
    • Michael Shigorin's avatar
      mkimage-profiles.asciidoc: index optimization · f1704f27
      Michael Shigorin authored
      The new archdep part has been initially included into
      "The Basics" chapter which it doesn't really belong to,
      let's move it into Addendum.
      
      NB: I'd better try building a package and skimming over
          at least the index upon having modified docs next time.
      f1704f27