Commit graph

71 commits

Author SHA1 Message Date
sketch
a61cd42ace Make sure we pick up pax via USE_TOOLS. 2008-06-13 21:52:16 +00:00
rillig
7fca192e2e Replaced all references to pkglint with lintpkgsrc, which has its own
package since a few days.
2008-01-04 15:49:07 +00:00
kano
abdb54b351 fix obsolete URLs for www.NetBSD.org
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
rillig
2e84b4080a Fixed misleading indentation. 2007-01-21 23:42:29 +00:00
rillig
5c9820e74b Packages that are not available on the current platform (and the
packages depending on them) are listed in a separate category in the
bulk build report.
2007-01-08 22:42:00 +00:00
martti
e2610fb8c8 Remove trailing tabs. 2006-12-15 13:15:06 +00:00
dmcmahill
7d2f31a32e include the PKGSRC_COMPILER setting in the report 2006-12-13 16:05:25 +00:00
wiz
7400a7cf16 When the bulk build code encounters a directory in *SPECIFIC_PKGS
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.)
2006-07-26 17:00:03 +00:00
rillig
1278e33918 - Added a new top level file that saves the REPORT_BASEDIR from the first
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.
2006-01-21 11:29:31 +00:00
rillig
22b5045e6f Renamed some variables to match the pkgsrc variables they are derived
from.
2005-12-03 13:39:04 +00:00
rillig
9682ee1f28 - Converted intermediate white-space to all tabs.
- Removed trailing white-space.
2005-11-30 18:33:14 +00:00
rillig
ffb2a1b746 - The text/plain report is generated using printf() instead of
formline(). This prevents long package names from being trimmed.
- Removed the "-p e" command line option from the pax(1) command line.
  This makes it possible to run mk/bulk/post-build as different user
  from the one who did the actual build.
2005-11-18 11:38:00 +00:00
rillig
139533c93f Code cleanup, bugfixes and separation of PKGSRCDIR and BULKFILESDIR.
- Added section headings to make reading the code more efficient.
- Added bp_die() for uniform error messages.
- Added sanity checks:
  - $BULK_BUILD_CONF must be a regular file.
  - Protect against spurious output from the bulk.conf file.
  - Check that configuration variables are defined, non-empty and
    do not contain newlines.
  - Properly extract MAKECONF from the bulk.conf file when getting the
    mk.conf variables.
  - Protect against spurious output from BMAKE show-vars.
- Fixed the use of undefined values ($startdate).
- Changed some calls to my_system() to a more secure form.
- Check if the calls to chdir() actually work.
- Look for the BROKENFILEs in BULKFILESDIR instead of USR_PKGSRC.
- Changed postfix conditions to prefix conditions. Example:
  do_foo() if $bar; ==> if ($bar) { do_foo(); }
2005-11-18 10:18:05 +00:00
jschauma
b7d81330d8 Finally remember to commit this:
Make use of find(1) instead of ls(1) to find the broken files.
This prevents the generation of an empty report due to 'too many arguments'
to ls on certain platforms.
2005-09-25 15:05:40 +00:00
reed
f351e3c89b Use PKG_TOOLS_BIN, so it doesn't run wrong pkg_* tools found in the PATH. 2005-08-26 07:24:53 +00:00
ben
af63d72ec7 Fix the following error:
Can't use an undefined value as an ARRAY reference at mk/bulk/post-build line 470.

In the case that no packages were broken, getBroken returns a hash
without the key "topten".  When Perl tries to use that undefined value
as an array reference, it croaks.
2005-07-17 13:38:01 +00:00
kristerw
9fbb603b11 Use MACHINE_ARCH instead of arch to be consistent with things like the
subject line in the bulk mail.  This also prevents the quoting problem
on Darwin, where arch contains a space.
2005-05-19 20:56:36 +00:00
kristerw
ec780b54f1 Convert the last remaining usage of GTAR to use PAX instead. 2005-05-19 19:50:25 +00:00
jlam
a743d24806 Use PAX instead of GTAR since pax is provided on all systems while gtar
isn't.
2005-05-19 19:24:59 +00:00
jschauma
a3fb779cec When generating the report, add a list of top ten offenders at the top.
This makes it easy for people to track down which packages should receive
immediate attention.
2005-05-16 19:11:19 +00:00
tv
d59d4df63a Work around an undef-in-string warning caused by unexpanded $NetBSD$
id tags.  Noticed by kristerw.
2005-01-15 01:53:00 +00:00
jmmv
e05f3f488a For those packages where the maintainer field can't be determined by
grepping, run make to get MAINTAINER's value.  I've tested this with
a script that tries to "simulate" this one without problems, but I
can't test it "in place".
2005-01-14 13:08:28 +00:00
tv
e4cc383421 * Clean up syntax ambiguities, e.g. (my $foo = $bar) =~ ....
* Add optional verbosity to show most commands as they are being executed.

* "use strict" and "use warnings".

* Slurp in the varables from build.conf and bmake in one shot (amazing
  startup speed boost with nfs pkgsrc); put them in a hash to make
  "use strict" much happier with the namespace.

* Fix a bunch of undef-dereference errors evidenced by "use warnings".

* Exclude PKG_DBDIR from leftovers list if it is inside LOCALBASE.

* Convert some <a name="..."/> constructs to <a name="..."></a> to make
  non-XHTML-compliant browsers happier.
2005-01-13 19:29:28 +00:00
jlam
19c97f1019 Fix the find command used to print out all of the .broken* files. It now
prints out both the .broken.html and .broken.work.html files instead of
just the latter.
2004-11-23 19:31:46 +00:00
wiz
1d2852cb72 Change perlfiles var to look for files from perl*,
not only perl, so that perl-thread files are not marked as leftovers.
2004-11-22 12:53:56 +00:00
jlam
b2320b8957 Preserve the .work.log file from a broken build as .broken.work.html
in the package directory, and add a link to it from .broken.html at
the point where the build fails.  Also adjust the auxilliary scripts
to handle/cleanup .broken.work.html files.

This should enhance the ability of developers to debug broken builds
by providing important information about what is happening as a build
progresses and fails.
2004-11-16 18:34:12 +00:00
grant
fc250c5bd6 add anchors for jumping to the top and each section of the HTML report. 2004-07-15 11:57:26 +00:00
grant
562864ccd0 only include broken packages in the email output. 2004-07-15 11:39:11 +00:00
jschauma
2cca9690d9 Commentary cleanup:
- If it's a full sentence, start capitalize first letter and end with a
  period.
- Break comments at ~80 chars so it fits into a terminal.[*]

(* This should be done for the code as well, but then it'll need testing.
   I'll do this at another point in time.)
2004-04-09 18:43:14 +00:00
dmcmahill
eb0a5dcca7 Add support in the bulk build code to properly deal with SPECIFIC_PKGS=1.
In particular, when SPECIFIC_PKGS is set in /etc/mk.conf, you can now do

  sh mk/bulk/build

and have the right thing happen.  Only those packages explicitly listed
and those which are depended upon are considered for the build.  Other
than the restricted list of packages, the bulk build works the same way
as a full bulk build.
2004-04-07 22:56:34 +00:00
agc
6e27f19f69 Rearrange the wording slightly in an informational message, to avoid
some email filters and false positives.
2004-03-28 20:35:29 +00:00
jschauma
e114a3e62b If BULK_BUILD_CONF points to an absolute path, don't try to use it
with a leading "./".
2004-03-22 21:54:48 +00:00
grant
511c9e8b95 don't assume there will always be broken packages. noted by wiz. 2004-03-18 14:27:20 +00:00
wiz
8f8df9c339 Remove some more of the "last touched by" code. 2004-03-13 11:55:40 +00:00
hubertf
399ce0a3ff Remove 'blame' column, OK'd by grant@. 2004-03-11 01:42:11 +00:00
grant
3f7c436cf4 GNU tar on netbsd-1-6 doesn't grok "-T -" at the end, but pax-as-tar
does, so rearrange the arguments so that "-f -" is always at the end.
noted by krister@.

while I'm here, make sure we use the same tar(1) program pkgsrc does.
2004-02-25 09:05:40 +00:00
grant
b56215fa53 avoid another long command line calling tar(1). 2004-02-15 06:17:10 +00:00
grant
f426c40c92 when copying the broken files, use find(1) instead of a shell glob
to avoid a command line too long for sh(1) on some platforms.
2004-02-14 04:00:18 +00:00
grant
727d3d4ea3 print date and time in UTC. 2004-02-08 12:54:05 +00:00
grant
bb4eec4fb6 include the total number of binary pkgs created in the report. fix
some HTML nits.
2004-02-08 09:13:43 +00:00
grant
e3a6dc7dd8 show build start time in localtime, not seconds-since-epoch :) 2004-02-05 23:53:16 +00:00
sketch
8ebd17f97c Remove a local change which crept in with the last update. 2004-02-05 10:59:40 +00:00
grant
68315859d7 improve report layout:
- move the build summary to the top and include build start/end
  times.
- break the report up into three sections for easier navigation:
  Broken, Broken dependencies, and Not packaged.
- HTML report now uses a subset of the www.NetBSD.org stylesheet.
- improve some of the text.
2004-01-31 03:30:49 +00:00
heinz
4d478bb0cf Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248 2004-01-26 21:10:31 +00:00
grant
002e1324e0 make this work on Solaris by using perl's internal grep(). it is
faster, and (f)grep can't handle very long word lists.
2004-01-20 12:37:08 +00:00
jlam
841b57441b Merge pkgviews-mk branch into the HEAD by running:
cd pkgsrc/mk
	cvs update -Pd -A
	cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-09-02 06:59:37 +00:00
gavan
2cf3251b24 Avoid keyword substitution in keyword matching pattern 2003-08-19 15:24:01 +00:00
gavan
44c0f50903 Remove dependence on ident and awk. This aids portability to Solaris. 2003-08-19 09:35:26 +00:00
cjep
f958dadcb5 Get the OS name from "uname -s" instead of assuming NetBSD.
Observed from Gavan's Solaris bulk build.
2003-08-18 19:19:33 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00