Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#8138 closed defect (invalid)

make-ca.sh seems to be broken ?

Reported by: ken@… Owned by: blfs-book@…
Priority: normal Milestone: 7.10
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

I'm well out of my depth here, but when I run make-ca.sh I'm getting a failure with

 has no 'Revision' in CVS_ID

I haven't updated my local copy of that file recently, but the book's version is dated 20120211 so I'm guessing that something changed at mozilla ?

Change History (4)

comment:1 by bdubbs@…, 8 years ago

Where did you get your data? The file at http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt is checked daily and inserts the line

#CVS_ID @# $ RCSfile: certdata.txt $ $Revision: 20160730 $ $Date: $

to make it compatible with the scripts.

Should be marked as invalid, but I'll leave it open for now.

comment:2 by ken@…, 8 years ago

Resolution: invalid
Status: newclosed

Seems to be something local, probably to do with adapting it from the old way of doing things. I've just copied what is in the book to this machine and got BLFS-ca-bundle-20160730.crt.

And yes, I'm getting certdata.txt from anduin. Closing as invalid, sorry for the noise - I'll need to look a bit more deeply, what I'm doing worked up until March.

comment:3 by ken@…, 8 years ago

Found it - I don't install the scripts, I keep them in git with various additional tests to ensure files exist. Had to make a small change, my own version had been looking at certdata.txt downloaded from mozilla for the Revision. Probably consequential breakage from a change in my upstreams :)

comment:4 by bdubbs@…, 8 years ago

This script is run nightly:

#! /bin/bash

cd /tmp
CERTHOST='https://hg.mozilla.org'
CERTDIR='releases/mozilla-release/file/default/security/nss/lib/ckfw/builtins'
TEXTFILE=/srv/www/BLFS/certdata.txt
HTMLFILE=certdata.html

rm -fv certdata.*
wget $CERTHOST/$CERTDIR/certdata.txt --output-document=$HTMLFILE

MYDATE=$(grep date $HTMLFILE | head -n1 | cut -d" " -f5-7)
VERSION=$(date --date="$MYDATE" +%Y%m%d)

if [ -e $TEXTFILE ]; then
  OLDVERSION=$(grep CVS_ID $TEXTFILE | cut -f4 -d'$' | cut -f2 -d" ")
else
  OLDVERSION=none
fi

echo "Latest version=$VERSION"
echo "Current version=$OLDVERSION"

if [ "x$VERSION" != "x$OLDVERSION" ]; then
  CERTTEXT=$(grep raw-file $HTMLFILE | sed -r 's/.*="(.*)".*/\1/' )
  echo $CERTTEXT
  wget $CERTHOST/$CERTTEXT
  #ls -l
  echo "#CVS_ID @# \$ RCSfile: certdata.txt \$ \$Revision: $VERSION \$ \$Date: \$" > $TEXTFILE
  cat certdata.txt >> $TEXTFILE
fi
Note: See TracTickets for help on using tickets.