Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2009 03:24:58 -0500
From:      "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To:        doc@freebsd.org
Cc:        Tom Rhodes <trhodes@FreeBSD.org>
Subject:   Re: doc and www build issues
Message-ID:  <4B3719DA.50704@p6m7g8.com>
In-Reply-To: <20091226180808.79043a71.trhodes@FreeBSD.org>
References:  <4B350580.3000000@p6m7g8.com>	<20091225145033.170cb2ca.trhodes@FreeBSD.org>	<4B35AD07.2070106@p6m7g8.com>	<20091226091731.30004d5b.trhodes@FreeBSD.org>	<4B36913B.7030100@p6m7g8.com> <20091226180808.79043a71.trhodes@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/26/2009 6:08 PM, Tom Rhodes wrote:
>> I'll blow away 100% of my ports later and install only those neccessary
>> for the docs build first and try to reproduce it.
I did this, didn't change anyway; though I know more now.

> Please let me know what happens - I'm guessing you were trying
> to mirror the documentation from the website.  Have you tried
> a local "make" in the en_US.ISO8859-1 tree?  As in, without
> the additional make arguments and targets?
No, not trying to mirror it, trying to start contributing and submitting
patches esp in porters-handbook and/or relating to Apache.

> I don't believe that is the case here.  Sorry for the late reply,
Late?  It was like 'minutes'!

1) if I do:
 while [ 1 ]; do
   make
 done

eventually it gets through.  No, I'm not using parallel make.

2) make -k seems to make it take less iterations though I don't see why.

3) Its always related to an execution of pnmtopng BUT its not always
the same png on any given sets of make.

/usr/bin/perl /usr/build/doc/share/misc/epsgeom -offset 100 100
/usr/build/doc/en_US.ISO8859-1/articles/building-products/../../../share/images/articles/building-products/freebsd-branches.eps
 | /usr/local/bin/gs -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4
 -dEPSCrop -r100x100  -dNOPAUSE -dSAFER -sDEVICE=pnm -sOutputFile=-
-g`/usr/bin/perl /usr/build/doc/share/misc/epsgeom -geom 100 100
/usr/build/doc/en_US.ISO8859-1/articles/building-products/../../../share/images/articles/building-products/freebsd-branches.eps`
-  | /usr/local/bin/pnmtopng >
/usr/build/doc/en_US.ISO8859-1/articles/building-products/../../../share/images/articles/building-products/freebsd-branches.png
Error: no BoundingBox found.
Error: no BoundingBox found.
pnmtopng: bad magic number - not a ppm, pgm, or pbm file


from ktrace -i / kdump I can see the following --
[note the -g output]

 42533 pnmtopng GIO   fd 0 read 0 bytes
       ""
 42533 pnmtopng RET   read 0
 42533 pnmtopng CALL  fstat(0x3,0x7fffffffd150)
 42533 pnmtopng STRU  struct stat {dev=569801527, ino=1411,
mode=-rw------- , nlink=0, uid=1001, gid=0, rdev=0,
atime=1261901952.875701674, stime=1261901952.875701674,
ctime=1261901952.875701674, birthtime=1261901952.875701674, size=0,
blksize=4096, blocks=1, flags=0x0 }
 42533 pnmtopng RET   fstat 0
 42533 pnmtopng CALL  write(0x3,0x800e05000,0x28)
 42533 pnmtopng GIO   fd 3 wrote 40 bytes
       "-g must be followed by <width>x<height>
       "
 42533 pnmtopng RET   write 40/0x28
 42533 pnmtopng CALL  lseek(0x3,0,SEEK_SET)
 42533 pnmtopng RET   lseek 0
 42533 pnmtopng CALL  sigprocmask(SIG_BLOCK,0,0x800e06248)
 42533 pnmtopng RET   sigprocmask 0
 42533 pnmtopng CALL  sigprocmask(SIG_BLOCK,0,0x800e06248)
 42533 pnmtopng RET   sigprocmask 0
 42530 sh       RET   wait4 42532/0xa624
 42533 pnmtopng CALL  sigprocmask(SIG_BLOCK,0,0x507788)
 42530 sh       CALL  wait4(0xffffffff,0x7fffffffe14c,WUNTRACED,0)
 42533 pnmtopng RET   sigprocmask 0
 42533 pnmtopng CALL  read(0x3,0x800e05000,0x1000)
 42533 pnmtopng GIO   fd 3 read 40 bytes
       "-g must be followed by <width>x<height>
       "
 42533 pnmtopng RET   read 40/0x28
 42533 pnmtopng CALL  write(0x2,0x7fffffffab10,0xa)
 42533 pnmtopng GIO   fd 2 wrote 10 bytes
       "pnmtopng: "
 42533 pnmtopng RET   write 10/0xa
 42533 pnmtopng CALL  write(0x2,0x7fffffffabf0,0x2e)
 42533 pnmtopng GIO   fd 2 wrote 46 bytes
       "bad magic number - not a ppm, pgm, or pbm file"

On the plus side, once its built, if I don't do a make clean and just
stick to doing edits pnmtopng is never invoked again things work(tm).

I'm vastly confused.

<aside_rant>
  Damn is this complex, imho more so then ports/ or src/
  And people though the apache.org sites were hard to build with
  velocity/ant
</aside_rant>



-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Sr. System Admin,                 Ridecharge Inc.
Consultant,                       P6M7G8 Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.



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