Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2002 02:17:00 -0600 (CST)
From:      Mark Linimon <linimon@lonesome.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   www/44919: suggested updates for bento Package Build Errors scripts
Message-ID:  <200211050817.gA58H0Go071410@lonesome.lonesome.com>

next in thread | raw e-mail | index | archive | help

>Number:         44919
>Category:       www
>Synopsis:       suggested updates for bento Package Build Errors scripts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 04 23:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mark Linimon
>Release:        FreeBSD-4.6
>Organization:
FreeBSD
>Environment:
	N/A
>Description:
	Many of the port build error types are shown as "???" in the
	various build reports from bento.

	The following changes to the shell script in
	/usr/ports/Tools/portbuild/scripts/processlogs attempt to
	replace many of these "???" entries.  About a dozen new entries
	are created, but in many cases existing entries are merely expanded.
>How-To-Repeat:
	N/A
>Fix:
	Apply the following diff.  Note: I have only tested this
	modified script on a subset of all the existing error logs,
	so it would need further testing before being moved into
	production.

--- portbuild/scripts/processlogs.dist	Sun Nov  3 19:06:44 2002
+++ portbuild/scripts/processlogs	Tue Nov  5 01:56:09 2002
       reason="checksum"; tag="checksum"
     elif grep -qE '/usr/local/bin/(perl|perl5.6.1):.*(not found|No such file or directory)' $1; then
       reason="perl"; tag="perl"
-    elif grep -q 'perl: Perl is not installed, try .pkg_add -r perl.' $1; then
+    elif grep -qE 'perl(.*): Perl is not installed, try .pkg_add -r perl.' $1; then
       reason="perl"; tag="perl"
     elif grep -qE '(No checksum recorded for|(Maybe|Either) .* is out of date, or)' $1; then
       reason="distinfo_update"; tag="distinfo"
+    elif grep -q "checking whether apxs works.*apxs: not found" $1; then
+      reason="apxs"; tag="apxs"
     elif grep -qE '(configure: error:|script.*failed: here are the contents of)' $1; then
-      reason="configure_error"; tag="configure"
+      if grep -qE "configure: error: (This program requires STL to compile|One or more.*STL headers are missing)" $1; then
+        reason="stl"; tag="stl"
+      elif grep -qE "configure: error: [Pp]erl (5.* required|version too old)" $1; then
+        reason="perl"; tag="perl"
+      else
+        reason="configure_error"; tag="configure"
+      fi
     elif grep -qE '(bison:.*(No such file|not found)|multiple definition of `yy)' $1; then
       reason="bison"; tag="bison"
     elif grep -q "Couldn't fetch it - please try" $1; then
@@ -105,7 +115,11 @@
     elif grep -qE 'chown:.*invalid argument' $1; then
       reason="chown"; tag="chown"
     elif grep -q 'install: .*: No such file' $1; then
-      reason="install_error"; tag="install"
+      if grep -q 'install: /usr/local/www/cgi-bin.*No such file or directory' $1; then
+        reason="cgi-bin"; tag="cgi-bin"
+      else
+        reason="install_error"; tag="install"
+      fi
     elif grep -q "/usr/.*/man/.*: No such file or directory" $1; then
       reason="manpage"; tag="manpage"
     elif grep -q "pkg_create: make_dist: tar command failed with code" $1; then
@@ -128,9 +142,72 @@
       reason="stdio"; tag="stdio"
     elif grep -q "structure has no member named" $1; then
       reason="struct_changes"; tag="struct"
+
+    elif grep -q "Error: alignment not a power of 2" $1; then
+      reason="alignment"; tag="alignment"
+    elif grep -qE "bin.apxs:(.)(not found|No such file or directory)" $1; then
+      reason="apxs"; tag="apxs"
+    elif grep -q "failed to exec .*bin/apxs" $1; then
+      reason="apxs"; tag="apxs"
+    elif grep -qE "autoconf(.*): not found" $1; then
+      reason="autoconf"; tag="autoconf"
+    elif grep -qE "autoconf(.*): No such file or directory" $1; then
+      reason="autoconf"; tag="autoconf"
+    elif grep -q "autoheader: not found" $1; then
+      reason="autoheader"; tag="autoheader"
+    elif grep -q "awk: empty regular expression" $1; then
+      reason="awk"; tag="awk"
+    elif grep -qE "(mv:|mv: rename|cannot open) y.tab.c(.*): No such file or directory" $1; then
+      reason="bison"; tag="bison"
+    elif grep -q "sorry, cannot determine the header file bison generates" $1; then
+      reason="bison"; tag="bison"
+    elif grep -qE "make.*: (don.t know how to make|.*No rule to make target).*built-in" $1; then
+      reason="built-in"; tag="built-in"
+    elif grep -q "/usr/local/www/cgi-bin does not exist" $1; then
+      reason="cgi-bin"; tag="cgi-bin"
+    elif grep -qE "chown: .*\..*: Invalid argument" $1; then
+      reason="chown"; tag="chown"
+    elif grep -q "Cannot open /dev/tty for read" $1; then
+      reason="DISPLAY"; tag="DISPLAY"
+    elif grep -q "RuntimeError: cannot open display" $1; then
+      reason="DISPLAY"; tag="DISPLAY"
+    elif grep -q "You must run this program under the X-Window System" $1; then
+      reason="DISPLAY"; tag="DISPLAY"
+    elif grep -q "ld: unrecognised emulation mode: elf_i386" $1; then
+      reason="ELF"; tag="elf"
+    elif grep -q "fetch: transfer timed out" $1; then
+      reason="fetch_timeout"; tag="fetch-timeout"
+    elif grep -q "strings.h:.* previous declaration of .int ffs" $1; then
+      reason="ffs_conflict"; tag="ffs_conflict"
+    elif grep -qE "cc: ndbm\.so: No such file or directory" $1; then
+      reason="linker_error"; tag="ld"
+    elif grep -q "error: The X11 shared library could not be loaded" $1; then
+      reason="linker_error"; tag="ld"
+    elif grep -q "cc: .*libintl.*: No such file or directory" $1; then
+      reason="linker_error"; tag="ld"
+    elif grep -q "Error: mtree file ./etc/mtree/BSD.local.dist. is missing" $1; then
+      reason="mtree"; tag="mtree"
+    elif grep -qE "cp:.*site_perl: No such file or directory" $1; then
+      reason="perl"; tag="perl"
+    elif grep -q "Perl .* required--this is only version" $1; then
+      reason="perl"; tag="perl"
+    elif grep -q "pod2man: not found" $1; then
+      reason="pod2man"; tag="pod2man"
+    elif grep -q "python: not found" $1; then
+      reason="python"; tag="python"
+    elif grep -qE "sed: illegal option" $1; then
+      reason="sed"; tag="sed"
+    elif grep -qE "sed: [0-9]*:.*(RE error:|not defined in the RE|bad flag in substitute command|unescaped newline inside substitute pattern|invalid command code)" $1; then
+      reason="sed"; tag="sed"
+    elif grep -q "Your STL string implementation is unusable" $1; then
+      reason="stl"; tag="stl"
+    elif grep -q "/usr/bin/ld: cannot find -lXThrStub" $1; then
+      reason="threads"; tag="threads"
+
     else
       reason="???"; tag="unknown"
     fi
+
     broken="no"
     if grep -q "Trying build of .* even though it is marked BROKEN" $1; then
        broken="broken"
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-www" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211050817.gA58H0Go071410>