1. 14 Nov, 2014 1 commit
    • Michael Shigorin's avatar
      lib/functions.mk: tiny but important note · c293dd14
      Michael Shigorin authored
      There's a particular problem with lazy evaluation
      in case of BOOT_LANG: mkimage uses internal variable,
      BOOT_LANG = $(GLOBAL_BOOT_LANG) (note the lack of
      immediate assignment there), and if we set up
      
        export GLOBAL_BOOT_LANG = $(BOOT_LANG)
      
      in the same namespace we end up with recursively
      defined pair of variables; a ":=" in either place
      would save the day _but_ it's not there in m-p due to
      accumulator variables, e.g. USERS, which are defined
      and exported by a corresponding feature and then get
      populated *after* having been declared for export,
      _and_ it's not in mkimage as of 0.2.16 for some reason
      that might even be good (I don't know yet).
      c293dd14
  2. 19 Sep, 2014 1 commit
    • Michael Shigorin's avatar
      functions.mk: allow setting to an empty value · a3ddce7a
      Michael Shigorin authored
      set() is a function of two variables but the and()
      check for *both* is incorrect as one might need to
      override a previously set variable with empty string;
      this has manifested itself with a case like this:
      
        @$(call set,ROOTPW_EMPTY,1)
        # ...
        @$(call set,ROOTPW_EMPTY,)
      a3ddce7a
  3. 02 Jul, 2012 1 commit
  4. 07 Apr, 2012 1 commit
  5. 26 Dec, 2011 1 commit
    • Michael Shigorin's avatar
      s/subst/sed -i/g · 96e89d00
      Michael Shigorin authored
      Initial openSUSE package base taming effort has shown that
      relatively few things should be fixed; subst has been generalized
      as -i option to sed(1) since its introduction, so let's just fix it.
      96e89d00
  6. 19 Nov, 2011 1 commit
    • Michael Shigorin's avatar
      introduced add_feature function · 9cedefdb
      Michael Shigorin authored
      The features might get copy-pasted (or even copied-and-pruned)
      when initialized; there's an unneccessary duplication of the
      function name in the line adding it to FEATURES list, thus
      prone to being forgotten and causing some havoc later on.
      
      It was wrong in the first place but tackling this with some
      double-colon rules ran into terminality issues, and further
      tortures were considered unneccessary.
      
      The current solution isn't perfect (no completely transparent
      function name registration upon corresponding target being called)
      but at least it is an improvement...
      9cedefdb
  7. 04 Nov, 2011 7 commits
    • Michael Shigorin's avatar
      official {distro,ve}/* support · d5a5941f
      Michael Shigorin authored
      This is quite a large-scale change since mkimage-profiles got used to
      baking distributions over the last year, and virtual environments are
      quite different, so e.g. image.in/Makefile had to be split in two with
      the main part of it moved into features.in/iso/lib/.
      
      Short overview:
      
      - features.in/Makefile: lib/ support
        (supporting VE images requires dynamic modifications
        to image.in/Makefile before starting the build;
        the most natural way to achieve that seems to use
        features mechanism along with makefile include dir)
      
      - packaging format related part moved into features.in/pack
        (should be better prepared for diversity either)
      - features.in/iso renamed to features.in/build-distro
      - features.in/ve  renamed to features.in/build-ve
        + NB: these could not be merged as e.g. features.in/build
          due to completely different script hooks
      
      - lib/image.mk renamed to lib/build.mk
      - image, config, log postprocessing moved downstream
      - added a sort of a topping in the form of lib/sugar.mk
      - assorted style fixups (like ifeq usage)
      
      - clean.mk: reliability fix (the problem was observed by Oleg Ivanov
        and me too but finally it did get the attention quantum)
      
      - reviewed, updated and extended docs
        + QUICKSTART: should be[come] a step-by-step guide
          (thanks Leo-sp50 for prodiving feedback)
      d5a5941f
    • Michael Shigorin's avatar
      avoid setting GLOBAL_* altogether · 5d37a0c5
      Michael Shigorin authored
      Applying set() and only set() to a GLOBAL_* is safe
      but still a potentially confusing example; so let's
      just do it right (and warn unsuspecting folks too).
      5d37a0c5
    • Michael Shigorin's avatar
      initial logging subsystem · d93989a3
      Michael Shigorin authored
      Now we don't dump all the gory details onto thee
      but rather log them handsomely and present only
      the most important details by default; use DEBUG=1
      and/or BUILDLOG=/path/to/file to tweak.
      
      Also introduced IMAGEDIR and IMAGENAME.
      
      The rest:
      - ovz-smp is no more
      - base-l10n pkglist (suggested by Alexander Kuprin)
      - clean.mk:
        + fixed an oversight: the test result erroneously applied
          only to the first command of several ones that should be
          run iff build/ is a symlink
        + drop implicit rules (it's no C code)
      - Makefile: more reasonable iso names
      - image.in/Makefile: .disk/date too
      d93989a3
    • Michael Shigorin's avatar
      assorted fixups · ace5cb0f
      Michael Shigorin authored
      - more thorough build stages inline doc
      - quieter BUILDDIR instantiation
      - branding-altlinux-sisyphus by default
      - prettify installer selection somewhat
      - mkimage #24669 fixed upstream
      - sub.in/stage1/modules: +drm (as in m-p-d, for KMS)
      - tags2lists: generalize a bit
      ace5cb0f
    • Michael Shigorin's avatar
      kernel day · 16e763e9
      Michael Shigorin authored
      - drop hardwired kernel flavour from pkglists
      - today's std-ng lacks aufs, let's switch to un-def
      - second assault at KERNEL_PACKAGES_REGEXP
      - re-introduced kpackages (builds ok)
      
      PS: base lists: switch to grub, add udev, cleanup
      16e763e9
    • Michael Shigorin's avatar
      tagged lists updates · 62f7ad5b
      Michael Shigorin authored
      tags2lists was tweaked to work on the more natural word boundaries
      than explicit "_", and the lists were renamed accordingly.
      
      Dropped the borrowed pkglists by the way.
      62f7ad5b
    • Michael Shigorin's avatar
      drop autoconf, a few vars in .mk suffice · d77e1d8d
      Michael Shigorin authored
      A major change in approach largely thanks to discussions
      with Alexey Cheusov but also well aligned with my own findings:
      autoconf doesn't let the variables to form an inheritance.
      
      And data flow described at http://www.altlinux.org/WhiteLabel
      (which in its turn was born thanks to Gavin Henrick of Diva Telecom
      and to Alexander Bokovoy of SaM-Solutions) is really dependent on
      the existence of such an inheritance.
      
      Also:
      - distro.mk += try()
      - "hide" special targets
      - fixed wrt distro/.{base,init,metaconf}, thx gns@
      - README updates
        + added metaconf.mk
        + clarifications
      - updated pci.ids location for hdt
      d77e1d8d
  8. 03 Nov, 2011 2 commits