<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: rpm from tarball
From: "Dick St.Peters" <stpeters,AT,NetHeaven,DOT,com>
Date: Mon, 24 Feb 2003 00:07:27 +0100
In-reply-to: <1045981218.5099.248.camel@bretsony>

Bret Hughes writes:
> On Sun, 2003-02-23 at 09:52, Dick St.Peters wrote:
> > Running
> >        PATH=.:$PATH; rpm -ta cipe-1.5.4.tar.gz
> > will get you past this error.
> > 
> > -
> > Dick St.Peters, stpeters,AT,NetHeaven,DOT,com 
> > 
> > > From: Bret Hughes <bhughes,AT,elevating,DOT,com>
> > > Sender: owner-cipe-l,AT,inka,DOT,de
> > > To: cipe list <cipe-l,AT,inka,DOT,de>
> > > Subject: rpm from tarball
> > > Date: Sun, 23 Feb 2003 00:20:17 -0600
> > > 
> > > Any tips on getting the spec in the 1.5.4 tarball to actually generate
> > > an rpm on this platform  I get an error at the rsa-keygen step.  I could
> > > not even figure out why it is trying to run it or how to stop it. 
> > > Shouldn't that be done as part of the actual installation of the rpm? 
> > > 
> > > rpm -ta cipe-1.5.4.tar.gz
> > > 
> > > <snip>
> > > 
> > > chmod 700 /etc/cipe /etc/cipe/pk /var/run/cipe
> > > *** Generating new identity (host) key ***
> > > /bin/sh: line 1: rsa-keygen: command not found
> > > gmake[1]: *** [install] Error 127
> > > gmake[1]: Leaving directory `/usr/src/redhat/BUILD/cipe-1.5.4/pkcipe'
> > > make: *** [install] Error 2
> > > error: Bad exit status from /var/tmp/rpm-tmp.91431 (%install)
> > > 
> > > 
> > > RPM build errors:
> > >     Bad exit status from /var/tmp/rpm-tmp.91431 (%install)
> > > 
> > > 
> > > it is there 
> > > 
> > > [root@solin SPECS]# ls /var/tmp/cipe-root/usr/bin/
> > > rsa-keygen
> > > 
> 
> Thanks Dick.  What about this one?
> 
> read RSA key
> writing RSA key
> Private key in /etc/cipe/identity.priv, Public key in /etc/cipe/identity
> gmake[1]: Leaving directory `/usr/src/redhat/BUILD/cipe-1.5.4/pkcipe'
> make: *** No rule to make target `cipe.texinfo', needed by `cipe.info'. 
> Stop.
> error: Bad exit status from /var/tmp/rpm-tmp.71943 (%install)

I sort of expected you'd be back.  To get past this one, you need to
modify the spec file ... the distribution is broken, but it's easily
fixed.

Olaf decided that instead of distributing the cipe.texinfo source, he
would distribute the cipe.info file itself.  However, he didn't remove
cipe.info from the makefile dependency chain.  While checking the
dependencies, make sees a rule that cipe.info depends on cipe.texinfo
and can't determine whether cipe.info is up to date.

Your previous build atempts will have left the file
                   /usr/src/redhat/SPECS/cipe.spec

About 6-8 lines from the top:
    Source: http://sites.inka.de/bigred/sw/%{name}-%{version}.tar.gz
    Patch0: cipe-1.5.4.makefile.patch  <-- INSERT THIS LINE
    BuildRoot: /var/tmp/%{name}-root
    
About another 8 lines down:
    %setup -q
    %patch0 -p1          <-- INSERT THIS LINE
    ./configure --prefix=/usr

While you're at it, you might as well insert the line
    PATH=.:$PATH; export PATH
before the "make install" line a bit further down.

Next you need /usr/src/redhat/SOURCES/cipe-1.5.4.makefile.patch, which
I've appended below.  I can't remember whether I made it or found it
somewhere, so if I found it I can't give proper credit.

(If you'll be running BIND on the same system on which you run CIPE,
you'll need another patch, one I made.  BIND wants to write its
pidfile to /var/run while running as user named, while CIPE balks at
having /var/run writeable by anyone other than root.)

______________________________________________________________________
--- cipe-1.5.4/conf/Makefile-top.in-dist        Thu May 30 07:49:18 2002
+++ cipe-1.5.4/conf/Makefile-top.in     Sat Aug 17 17:17:23 2002
@@ -30,7 +30,7 @@
        idea-i386.S bf-i386.S thruput.c
 CONF:= Makefile-top.in Makefile-obj.in aclocal.m4 config.h.in
 SMPL:= README options ip-up ip-down
-MISC:= configure configure.in cipe.info tcpdump.patch cipe.spec
+MISC:= configure configure.in tcpdump.patch cipe.spec
 DIST:= README README.key-bug CHANGES COPYING cipe.lsm $(MISC) \
        $(CONF:%=conf/%) lib $(SRCS:%=$(SRC)/%) pkcipe $(SMPL:%=samples/%)
 
@@ -56,9 +56,6 @@
 $(TEXAUX): cipe.texinfo options.t
        $(TEXINFO) $<
 
-cipe.info: cipe.texinfo options.t
-       $(MAKEINFO) --no-split $<
-
 cipe.dvi: cipe.cp
        texindex $(TEXAUX)
        $(TEXINFO) cipe.texinfo
@@ -69,7 +66,7 @@
 thruput: $(SRC)/thruput.c
        $(CC) -Wall -O3 -s -o $@ $<
 
-README.key-bug: cipe.info
+README.key-bug: 
        info -f ./cipe.info "Keys in older CIPE" | sed 1,2d > $@
 
 cipe.spec: cipe.spec.in
@@ -96,7 +93,7 @@
 bf.tgz: $(SRC)/bf.checksums
        (cd $(SRC); tar czf ../bf.tgz $(BF) bf.checksums)
 
-install:: cipe.info
+install:: 
        -mkdir -p $(INFODIR)
        install -m 644 cipe.info $(INFODIR)
 





<< | Thread Index | >> ]    [ << | Date Index | >> ]