Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
"set -e" mode, since it would fill up the temporary directory. Reverted
that change.
|
|
- The "header" of the build log is always printed, not only when
PRECLEAN is set.
- The variable "installed" was redundant. Removing it saves 5 lines
of code.
- When the package is outdated and currently installed, it suffices to
just run pkg_delete. The "make deinstall" is too expensive and doesn't
do anything further.
- Completely rewrote the section that deinstalls unneeded packages. It
seems to me that the pkg_info -Q flag has been introduced after the
bulk build was initially written, so it wasn't used here.
- A package that doesn't get deinstalled with a simple pkg_delete
probably has a reason for that. Don't try to run pkg_delete -f after
it.
- To remove all packages, it isn't necessary to iterate over the
installed packages. Just pkg_delete -r "*".
- Replaced "required package" with "dependency" in the log messages,
since that is shorter. Maybe the term "required package" comes from
the time where packages also depended on shared library versions, so
that terminology made sense back in 2000. Anyway, that's long ago.
|
|
obscure by using awk instead of sed.
|
|
packages depending on them) are listed in a separate category in the
bulk build report.
|
|
be more portable (works on at least NetBSD, SunOS-5.9, and Linux).
Addressed PR pkg/35245
|
|
since sometimes there are questions about various variables and settings.
This should help in people trying to investigate build failures.
|
|
(else -prune will cause us to return immediately, always reporting 1 installed
package even if we have more)
|
|
This should fix the problem reported by wiz@.
|
|
two finds+two greps.
- Run a single find(1) command rather than ls | grep to determine pkg count.
|
|
big packages, so print an informational message before doing that.
|
|
since that's what I really wanted. It's just one day old, so I hope that
nobody has gotten used to it.
|
|
WRKDIR in the directory where the other log files are.
|
|
environment ${PKGSRC_MAKE_ENV} is also passed along. Create a
convenience variable RECURSIVE_MAKE that does exactly this and that
can be used in place of MAKE when invoking make recursively.
Use RECURSIVE_MAKE everywhere in pkgsrc/mk that we invoke make
recursively.
|
|
that does not exist, it stopped.
Now it instead adds an entry to the main broken file and marks
it as not package with maintainer "directory_does_not_exist"
in the HTML output. (Not packaged directories are not mentioned
in the text version.)
|
|
anymore.
|
|
package is really broken.
|
|
|
|
|
|
|
|
of successful builds are not removed, only renamed. This variable will
be useful for examining the warnings that appear during the bulk builds
but are thrown away because the package builds fine. This feature is
experimental and thus not enabled by default.
|
|
installed or not. So there is no need for two different messages. (They
had been necessary in revision 1.1, though.)
|
|
|
|
call to the mk/bulk/build script. This is to allow restarting the bulk
build without getting confused by the various timestamps that occur
during a bulk build. It also fixes some problems where the text/plain
report had ended up in a directory different from the other files.
- Changed the default filename for the text/plain report from
"pkgsrc-results-${BUILDDATE}.txt" to simply "report.txt", as the
${BUILDDATE} variable didn't give a hint to when the bulk build had been
started, which is often more important than when the bulk build stopped.
- Changed the way to specify the directory and the URL where the bulk build
reports are made available. See
http://mail-index.netbsd.org/tech-pkg/2005/12/05/0002.html
for details. Specifying the directories using the FTPHOST and FTPURL
variables will be possible for some months, after which it support for
it will be dropped.
|
|
BULKFILESDIR directory before running it. We can now bulk build with a
read-only pkgsrc.
|
|
|
|
absolute file names work as well.
|
|
and ${BULKFILESDIR} != ${PKGSRCDIR}, try to remove the directory.
|
|
2. Reindented two "if" statements that looked like this:
if long_long_command; then :; else
else_commands
fi
By just scanning the beginnings of the lines, which is a common way of
reading source code, one may easily miss the "hidden" "then" branch at
the end of the line. I have changed it to:
if long_long_command; then :;
else
else_commands
fi
|
|
mostly a cosmetic change. The motives for this change are that the HTML
files only consisted of "<pre>", the properly quoted text/plain contents
and "</pre>". There has been no documentation of reasons for encoding plain
text in HTML unnecessarily, so this change will produce text/plain files
instead.
Another change is that instead of appending to the BROKENWRKSRC, the file is
overwritten each time. In a single bulk build this will not change anything.
Only when the package is built multiple times in a single bulk build, the
behavior will differ.
Ok'ed by agc.
|
|
that the bulk builds would only work properly with the audit-packages
package installed at all times.
I am obviously hideously mistaken in this.
By popular request, revert the change to add audit-packages, since I
am told this is the incorrect way of doing this.
|
|
BULK_PREREQ package.
|
|
the filename of the toplevel BROKENFILE correctly.
|
|
global log files but also for the package-specific ones.
|
|
|
|
BULKFILESDIR.
|
|
- Added a bunch of internal variables that determine the correct places
for the build log files of the current package.
- Added section headings.
- Moved a sanity check out of the configuration section to not confuse
the reader.
- mk/bulk/print{depends,index} are called with two arguments, which allows
separation of BULKFILESDIR and PKGSRCDIR.
- Replaced uses of BUILDLOG, BROKENFILE and BROKENWRKLOG with their
internal counterparts, which use ${BULKFILESDIR} instead of ${PKGSRCDIR}.
|
|
created.
|
|
before/after building the package.
|
|
.index file.
- Condensed the code for printing to another package's .broken file in case
of failure. (Added a variable pkg_brokenfile.)
|
|
messages. Replaced all instances of ${ECHO_MSG} "BULK> " with ${BULK_MSG}.
|
|
the INDEXFILE.
|
|
printed if no package name could be found for a package directory.
|
|
Whoever had written such unusual code should have left a note in the
printindex script that the trailing white-space was required. It is such
an uncommon assumption that I treated it as a typo and removed it. Now
it's fixed. I also replaced the use of grep|awk with a simple awk, as
grep would have interpreted regular expressions in the package name.
In general, please think more about _appropriate_ ways to handle data.
grep(1) is not a tool for searching strings. It's a tool for searching
regular expressions.
|
|
if present. By design, it is not cleaned at the start of a bulk build; it
is intended to allow a bulk build admin to mark a time-consuming package as
not buildable, but which shouldn't be marked permanently as such in the
package's Makefile.
|
|
the :Q operator to all instances of ${PKGWILDCARD}.
|
|
a package.
This functionality consumed an enormous amount and time, and did not
do much useful work:
* It is not needed when doing a bulk build of the full pkgrsrc tree,
since the pre-requisite packages already have been built and cleaned.
* It does not work when doing a bulk build of a subset of the packages,
since it only cleans the direct dependencies, and not the full list.
|
|
it is available at tflat time.
|
|
(necause it was forking off "sort" subprocesses on every package).
|