Commit graph

36 commits

Author SHA1 Message Date
Aleksey Cheusov
2347d222b4 updated to version 0.17.0
ADDED: -p option. If you want to build a few packages, you
  can specify them in command line:

      distbb -p 'wip/dict-server wip/pkg_online wip/distbb'

      Actually this option was added in version 0.16.0.
      I just forgot to mention it in appropriate NEWS section.

  FIXED: packages for which pkg_src_summary (pkgsrc tree scanning) failed
      (bad PKGPATH, errors in Makefile etc.)
      appear in META/packages_built_prev.txt.

      Now such packages are collected in META/package_failed_scan.txt
      If such failures happen, report.html includes an additional line

         Packages failed (pkg_src_summary/scanning)   <COUNT> <LOGS>

  Slave hosts/chroots save building logs locally and send them to the
  master host only after building is completed. This can speed-up
  building.

  "Top offenders" -> "Failures per maintainer"
     Some developers treat the word "offender" offensive.

  Packages failed at dbb_canbebuilt (that is packages failed because
  of ONLY_FOR_PLATFORM, ONLY_FOR_PLATFORM etc.) and dbb_excluded
  (packages are excluded from bulk build by person who runs a bulk
  build) stages do not increase "failures per maintainer" counter.

     It is recommended to always include dbb_canbebuilt to TARGETS,
     otherwise counters in "Failures per maintainer" will be not fully
     correct.

  Speeds-ups for stage_gen_report
2008-07-27 21:42:03 +00:00
Aleksey Cheusov
0838d82f39 updated to 0.16.0
Version 0.16.0, by Aleksey Cheusov, Sat, 19 Jul 2008 14:13:26 +0300

  fixed: after bulk build finished, not all empty CATEGORY/PACKAGE
  directories were removed.

  packages_built_prev.txt, packages_built.txt, packages_failed.txt,
  packages_failed_deps.txt and packages_total.txt files now contain
  both PKGPATH and PKGNAME

  META/summary_cmp.txt is generated (pkg_summary vs. pkg_src_summary
  comparison) and is included to report.html

  META/pkg_src_summary.txt is generated and is included to report.html

  Progress messages are generated in META/progress.txt.
  This file is included to report.html

  Cleaning the working directories is now optional.
    distbb.conf:
       CLEAN_TARGET=clean    # clean them! (default in example distbb.conf)
       CLEAN_TARGET=dbb_none # keep them!
    Update your distbb.conf!

  html link to itself is removed from report.html

  CATEGORY/PKG/stage_*.html log files also conform to "HTML 4.01 Strict".
  Tested via http://validator.w3.org

  An internal "init" target and initial (before building start)
  "clean" targets are not hardcoded in libexec/distbb/slave script
  anymore.  The special target "dbb_init" is implemented in
  share/distbb/distbb.mk for initialization (removing PREFIX/PKGDBDIR
  and unpacking bootstrap).  Both "dbb_init" and "clean"
  targets should be a part of TARGETS variables.  Update your local
  distbb.conf and set I_AM_READY to 2

  META/packages_built.txt is sorted alphabetically and is included to
  report.html as "list", That is, no "sorted" and unsorted" lists
  anymore.

  Minor fixes and additions in example distbb.conf

  ============================================================
  Example of bulk build result:
    http://www.mova.org/~cheusov/pub/pkgsrc-distbb/Linux/current-unprivileged/log/20080719.1147/META/report.html
2008-07-19 18:44:39 +00:00
Aleksey Cheusov
9ecd9213c2 updated to version 0.15.1
FIXED: another bug in handling EXTRA_DEPS
2008-07-07 15:12:54 +00:00
Aleksey Cheusov
bcc1e82a4b Updated to version 0.15.0
META/packages_total.txt file is build that contains a list built
  packages plus those that are not rebuilt (no need for this). This
  file is uploaded by stage_upload_logs.

  report.html now includes links to META/packages_total.txt,
  META/packages_built_prev.txt, META/packages_built.txt,
  META/packages_failed.txt and META/packages_failed_deps.txt.

  added: option -B to 'distbb' executable. This is usefuil for
  debugging. It sets an unchangable BUILD_ID.

  LIST_ALL_PKGS_CMD command is run on the first slave host from
  $SLAVES list in case both SLAVES and TRANSPORT are set.  The problem
  with master host is that master's and slave's /usr/pkgsrc may be not
  the same.
2008-06-22 19:57:17 +00:00
Aleksey Cheusov
2dac56584f updated to version 0.14.0
FIXED: sometimes packages are built in a wrong order.

  FIXED: there were two examples for PKG_UPDATE_SRC_SUMMARY_CMD
  in the sample distbb.conf:
  'pkg_update_src_summary' and 'pkg_src_summary'. But the latter
  just didn't work because these two commands have imcomppatible usage.
  Now this is fixed but changes are incompatible with old distbb.conf.
  Update it according to the new sample for distbb.conf.
  Also set I_AM_READY variable to 1.
  Side effect: 'pkg_src_summary -A' can now be used for generating summary.
  This will build pkg_src_summary only for requested packages (distbb -f)
  and their dependancies, not for entire pkgsrc
  tree (pkg_update_src_summary).
  Both Hubert's bulk build and pbulk work this way. Now distbb too.

  FIX: EXTRA_DEPS now can contain more than one package and is handled
  correctly. Copy EXTRA_DEPS_CMD from the sample to your distbb.conf

  The following files are sorted alphabetically:
     CATEGORY/PACKAGE/failed_packages.txt
     CATEGORY/PACKAGE/failed_because.txt
     META/packages_built_prev.txt
     META/packages_failed_deps.txt
  In case of LOTS of failures this make searching in these files much easier.

  Latest paexec, runawk and pkg_summary-utils are needed.

  report.html conforms to HTML 4.01 Strict specification.
  Thanks to validator.w3.org.
  UTF-8 charset is also used (See NOTES and RESPONSIBLE variables)

  "build_end" date/time are moved from stage_gen_report to stage_build.

  Lots of comments and suggestions in the sample for distbb.conf

  Other minor fixes, improvements and code clean-ups.
2008-06-18 20:18:38 +00:00
Aleksey Cheusov
315500a9c4 updated to version 0.13.0
ADDED: mega-feature/new variable SPECIAL_PACKAGES

     Example and notes from distbb.conf:
     ...
     # some packages fail to build because they are a part of pkgsrc
     # bootstrap.  if you want to build them try to uncomment lines in
     # SPECIAL_PACKAGES variables
     #
     # you may also want to use different building options
     # to build some packages, e.g. to use gcc-3.4 for building
     # audio/festival,
     # under Linux Debian/etch or DragonFlyBSD where it is a part
     # of "base" system, see lines in SPECIAL_PACKAGES.
     # NOTE: There are no quotes around string containing spaces
     #       (this is not shell ;-) )
     # NOTE: An empty string after EACH package section is mandatory
     # NOTE: Do not forget that you can define your own Makefile targets
     #       in distbb.local.mk. this new target can run, for example,
     #       pkg_add -u

     SPECIAL_PACKAGES="\
     #PKGPATH=pkgtools/digest
     #TARGETS=depends fetch checksum configure build package
     #EXTRA_OPTS=BATCH=yes PKG_VERBOSE=1 USE_DESTDIR=full CHECK_SHLIBS=no
     #
     #PKGPATH=pkgtools/bootstrap-mk-files
     #TARGETS=depends fetch checksum configure build package
     #EXTRA_OPTS=BATCH=yes PKG_VERBOSE=1 USE_DESTDIR=full CHECK_SHLIBS=no
     #
     #PKGPATH=net/tnftp
     #TARGETS=depends fetch checksum configure build package
     #EXTRA_OPTS=BATCH=yes PKG_VERBOSE=1 USE_DESTDIR=full CHECK_SHLIBS=no
     #
     #PKGPATH=sysutils/checkperms
     #TARGETS=depends fetch checksum configure build package
     #EXTRA_OPTS=BATCH=yes PKG_VERBOSE=1 USE_DESTDIR=full CHECK_SHLIBS=no
     #
     #PKGPATH=devel/bmake
     #TARGETS=depends fetch checksum configure build package
     #EXTRA_OPTS=BATCH=yes PKG_VERBOSE=1 USE_DESTDIR=full CHECK_SHLIBS=no
     #
     #PKGPATH=pkgtools/pkg_install
     #TARGETS=depends fetch checksum configure build package
     #EXTRA_OPTS=BATCH=yes PKG_VERBOSE=1 USE_DESTDIR=full CHECK_SHLIBS=no
     #
     #PKGPATH=audio/festival # TARGETS is not changed!
     #EXTRA_OPTS=CC=/usr/bin/gcc-3.4 CXX=/usr/bin/g++-3.4
     #
     "

  distbb.conf: 'extract' and 'patch' targets are in TARGETS now.

  distbb.conf: fix in comment: package-deinstall -> deinstall
2008-06-11 22:14:21 +00:00
Aleksey Cheusov
e15addfb9c upgraded to version 0.12.0
Two new variables (for distbb.conf) are introduced:
    - STDIN_FROM_DEV_NULL:
      Some broken packages need an interaction with user even if BATCH
      variable is set to YES. This may "hang" a bulk build. If you
      don't want this, set the following variable to "1", otherwise
      leave it unset.
    - LOG_SIZE_LIMIT:
      If STDIN_FROM_DEV_NULL=1, some packages may produce infinite
      garbage to stdout and in turn may waste ALL your free disk
      space. To prevent this, set the following limit. Leave it unset
      for no limit.

  fix:
     If there is nothing to be built stage_build may fail under Linux,
     Solaris, HP-UX, Interix and probably many others. This is because
     Free/NetBSD xargs works differently - in case of no input it just
     do NOT call program (xargs's argument) at all. Others do.

   stage_*.txt files are not uploaded anymore.
   Only html versions are uploaded.

   README: distbb is NOT fork of pbulk in any way! ;-)
   It was written from scratch.
2008-06-08 07:37:29 +00:00
Aleksey Cheusov
1632ed00b7 fixed: pkglint warning 2008-05-19 18:27:17 +00:00
Aleksey Cheusov
aa46e32257 needs latest summary utils, ++pkgrevision 2008-05-16 16:42:02 +00:00
Aleksey Cheusov
f3335bf486 fixed: INSTALLATION_DIRS 2008-05-15 16:46:45 +00:00
Aleksey Cheusov
a77e91c1f2 Requires pkg_summary-utils>=0.8.0nb2 (fix for awk dewey)
Upgrade to version 0.11.0
  Major changes:

  Both .html and .txt report include a number failed dependancies for
  each indirectly failed package. This number was limited by hardcoded
  constant, now it is regulated by variable MAX_FAILED_DEPS_CNT Add it
  to your distbb.conf.

  stage_gen_report: fix for Debian dash - its ` and $( work
  differently :-(

  distbb uses TARGETS variables that contains a list of targets to run
  in order to build, install and create a binary package. TARGETS
  variable can easily be changed by user and this makes distbb very
  flexible - user may change build order or even define his own
  build/packaging procedure. As of this version user can define
  his/her own make rules without changing mk.conf and without
  recreating bootstrap tarball - by changing
  /usr/pkg_distbb/etc/distbb.local.mk file, second configuration file
  of distbb. distbb also defines two its own special targets which you
  can use: dbb_canbebuilt and dbb_excluded.  Read comments in
  /usr/pkg_distbb/share/distbb/distbb.mk about them.  Note that
  etc/distbb/local.mk MUST exist, copy it from
  share/examples/distbb/distbb.local.mk to etc/distbb.local.mk
  and edit for preferences.
2008-05-15 16:32:38 +00:00
Aleksey Cheusov
bf66954784 requires latest version of pkg_summary-utils
++pkgrevision
2008-05-12 23:17:55 +00:00
Aleksey Cheusov
c6cd1342d7 upgrade to version 0.10.0
Major changes:

  At startup, PREFIX and PKGDBDIR directories are deleted and
  bootstrap is unpacked (on all $SLAVES when MASTER_MODE=yes).
  NOTE: if you are upgrading from previous versions of distbb,
  recheck your EXTRACT_BOOTSTRAP_CMD (tar -C / is needed).

  distbb.conf: more examples for alternative/distributed
  PKG_UPDATE_SRC_SUMMARY_CMD. If you'll use distributed one,
  make sure PATH variable contains /usr/pkg_distbb/bin directory.
2008-05-10 13:48:27 +00:00
Aleksey Cheusov
1d883f13f9 fix a typo 2008-05-09 10:19:04 +00:00
Aleksey Cheusov
69c41d49c0 upgrade to version 0.9.0
Major changes:

  Instead of red counts the "Breaks" column now contains the link to
  the actual list of indirectly failed packages.

  stage_gen_report: hardcoded string "Responsible person" is not printed

  distbb.conf: another example for PKG_UPDATE_SUMMARY_CMD

  Additions and more details in README

  BUILD_START renamed to BUILD_ID
2008-05-09 10:09:42 +00:00
Aleksey Cheusov
b7a14dfa45 Version 0.8.0, by Aleksey Cheusov, Sun, 4 May 2008 20:50:43 +0300
Sometimes building packages stops because some of them require an
  interaction with user. BATCH=yes doesn't help.  In order to prevent
  this, bmake is run with < /dev/null. As a result, such a bad
  packages can not break/stop bulk builds anymore.

  distbb version is included to the report.

  An information about the person that runs a bulk build, is
  optionally included to the report.

  LIST_ALL_PKGS_CMD variable is introduced.  It defaults to
  'pkg_list_all_pkgs'.  If set, the specified command is run to get
  list of packages to be built.
  You need to upgrade your distbb.conf
     Examples:
        LIST_ALL_PKGS_CMD='@@bindir@@/pkg_list_all_pkgs'
        #LIST_ALL_PKGS_CMD='( @@bindir@@/pkg_list_all_pkgs
                              cat my_extra_wip_packages.txt )'

  added: distbb --version|-V

  "on <SLAVEHOST>" is appended to 'succeeded' and 'FAILED' log
  messages. That is now it is seen on which host a particular package
  succeeded or failed.

  distbb.conf.in:
  # The following is for pkg_summary-tools > 0.5.0
  #PKG_UPDATE_SRC_SUMMARY_CMD='@@bindir@@/pkg_update_src_summary -f \
  # "PKGNAME PKGPATH DEPENDS BUILD_DEPENDS"'
2008-05-04 17:57:20 +00:00
Aleksey Cheusov
171f5461af update to version 0.7.0
NEWS:

  stage_init.in: completely reimplemented. An algorithm become easier
  and cleaner. FIXED: incorrect calculating "build_previously" count,
  and therefore "total_packages" too. The code also become cleaner.

  FIX: build_init.in now doesn't depend on fields order in
  pkg_src_summary (doesn't reply on that PKGPATH is before
  [BUILD_]DEPENDS). This may cause an inifinite loop because of
  oncorrect (cyclic) dependancies in META/tmp/trans_closure.tmp

  distbb.conf.in:
    minor fix: pkg_src_update_summary -> pkg_update_src_summary

  Exporting LC_ALL=C and other important initializations have been
  moved from distbb.in to common.in. Now every significant
  initialization is made in PREFIX/libexec/distbb/stage_*, i.e. these
  scripts become more all-sufficient.

  Minor changes and fixes in README
2008-04-19 08:20:23 +00:00
Aleksey Cheusov
5bd1367d84 FIX for DOCDIR: share/distbb -> share/doc/distbb 2008-04-16 09:45:59 +00:00
Aleksey Cheusov
9191fee78f NEWS files is also installed to PREFIX/share/distbb 2008-04-16 09:43:04 +00:00
Aleksey Cheusov
a4807415a7 upgraded to 0.6.2
Failures of PKG_SRC_SUMMARY_CMD for individual packages are logged
  and reported
2008-04-13 12:07:43 +00:00
Aleksey Cheusov
bd65f31a89 upgrade to 0.6.1
distbb.conf:
    BATCH=yes by default in distbb.conf

  FIXED: another BUG in handling EXTRA_DEPS
2008-04-06 18:10:17 +00:00
Aleksey Cheusov
698662a97c README file is also installed
additions and addons in DESCR
DESTDIR support
PKGREVISION=1
2008-04-05 21:07:27 +00:00
Aleksey Cheusov
084aa2aaf3 more features 2008-04-05 17:17:09 +00:00
Aleksey Cheusov
40ac41ee7a updated to 0.6.0
pkg_summary-utils is used
mail/nail is required
2008-04-05 11:07:43 +00:00
Aleksey Cheusov
4d19b91f4a update to 0.5.0
example.conf file is installed to EG directory
2008-04-02 21:42:02 +00:00
Aleksey Cheusov
8f30123b0c update to 0.4.0 2008-04-02 16:26:06 +00:00
Aleksey Cheusov
c3d9b5b8c9 update to 0.2.0 2008-03-30 00:43:16 +00:00
Aleksey Cheusov
d52a7b28a0 updated to 0.1.11 2008-03-29 11:29:35 +00:00
Aleksey Cheusov
05ec9575b6 updated to version 0.1.6 2008-03-29 00:05:42 +00:00
Aleksey Cheusov
34f957a0ae updated to version 0.1.5 2008-03-28 23:07:45 +00:00
Aleksey Cheusov
fe6f8fb730 requires latest pkg_src_update_summary 2008-03-28 21:12:20 +00:00
Aleksey Cheusov
43526c1aa6 update to version 0.1.4 2008-03-28 21:11:26 +00:00
Aleksey Cheusov
e086835813 shlock is also required 2008-03-28 20:48:09 +00:00
Aleksey Cheusov
cb74388256 updated to distbb-0.1.3 2008-03-28 15:18:04 +00:00
Aleksey Cheusov
7bcf819472 new dependancies: nail and rsync 2008-03-23 22:41:33 +00:00
Aleksey Cheusov
cf2ae38752 distributed bulk build.
tarball is currently not available
2008-03-18 21:47:11 +00:00