RPM doesn't create any RPM's

RPM doesn't create any RPM's

Post by A.J. Loonstr » Mon, 09 Jul 2001 23:35:09



I'm trying to create rpm packages from source tarballs. I've written a
.spec file according to the RPM HOWTO. But when I try to create RPM by
issuing 'rpm -ba SPECS/pptp-1.0.3-rk2.spec' it compiles everything,
installs it OK but wo'n create an RPM-archive nor a a source-rpm. I've
tried building an rpm on a Mandrake 7.0 machine and a Redhat 6.1
machine. Anyone knows what's going on?

Regards,

- Arnaud.

This my end output:

gcc -Wall -o pptp_callmgr -DPROGRAM_NAME=pptp_callmgr pptp_callmgr.o
pptp_ctrl.o dirutil.o util.o vector.o version.o -lutil
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.64826
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd pptp-1.0.3-rk2
+ mkdir -p /var/tmp/pptp-linux-buildroot/usr/sbin
+ mkdir -p /var/tmp/pptp-linux-buildroot/usr/doc/pptp-linux-1.0.3
+ install -s -m 755 pptp /var/tmp/pptp-linux-buildroot/usr/sbin/pptp
+ install -s -m 755 pptp_callmgr
/var/tmp/pptp-linux-buildroot/usr/sbin/pptp_callmgr
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: pptp-linux-1.0.3-1
File not found: /var/tmp/pptp-linux-buildroot/usr/bin/pptp
File not found: /var/tmp/pptp-linux-buildroot/usr/bin/pptp_callmgr
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.32041
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd pptp-1.0.3-rk2
+ DOCDIR=/var/tmp/pptp-linux-buildroot/usr/doc/pptp-linux-1.0.3
+ export DOCDIR
+ rm -rf /var/tmp/pptp-linux-buildroot/usr/doc/pptp-linux-1.0.3
+ /bin/mkdir -p /var/tmp/pptp-linux-buildroot/usr/doc/pptp-linux-1.0.3
+ cp -pr AUTHORS NEWS README LEESMIJ TODO COPYING
/var/tmp/pptp-linux-buildroot/usr/doc/pptp-linux-1.0.3
+ exit 0

--------------------

This is my spec file (sorry mostly in Dutch)

Summary: pptp starten door pppd!
Name: pptp-linux
Version: 1.0.3
Release: 1
Copyright: GPL
Group: Applications/Internet
Source: http://www.xs4all.nl/~rklazes/data/pptp-1.0.3-rk2.tgz
BuildRoot: /var/tmp/%{name}-buildroot

%description
De huidige gang van zaken is dat een pptp process wordt gestart dat
vervolgens
een pppd process start. Dat heeft twee nadelen. Ten eerste zijn een
aantal
opties van pppd onbruikbaar, waarvoor geen vervangende opties van pptp
beschikbaar zijn. In het bijzonder geldt dat voor "persist" voor het
automatisch reconnecten van een verbroken verbinding.  Daarnaast zijn er
veel
systeem tools voorhanden voor het gebruik van ppp verbindingen, maar
omdat
deze alleen pppd kennen zijn deze niet direct bruikbaar voor pptp
verbindingen
en moeten speciaal geschreven worden.  Hieronder wordt een speciaal
gepatchte
versie van pptp beschreven waarbij de zaken worden omgedraaid, pppd
wordt als
eerste opgestart die vervolgens een pptp child process creeert.

Installeer deze pptp-linux als je een pptp verbinding op dient te zetten
en je w
el de        
voordelen van een ppp verbiding wilt benutten.

%prep
%setup -n pptp-1.0.3-rk2

%build
make

%install
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/usr/doc/pptp-linux-1.0.3

install -s -m 755 pptp $RPM_BUILD_ROOT/usr/sbin/pptp
install -s -m 755 pptp_callmgr $RPM_BUILD_ROOT/usr/sbin/pptp_callmgr

%clean
#rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README LEESMIJ TODO COPYING

/usr/bin/pptp
/usr/bin/pptp_callmgr

%changelog

- Eerste rpm-build

---------------------------------------

 
 
 

RPM doesn't create any RPM's

Post by Swif » Tue, 10 Jul 2001 01:00:07


[snip]

Quote:> Processing files: pptp-linux-1.0.3-1
> File not found: /var/tmp/pptp-linux-buildroot/usr/bin/pptp
> File not found: /var/tmp/pptp-linux-buildroot/usr/bin/pptp_callmgr

This says some interesting things, don't you think?

[snip]

Quote:> BuildRoot: /var/tmp/%{name}-buildroot

[snip]

Are the binaries indeed located in /var/tmp, or are they on your
system (thus really in /usr/bin)?

If they are in /usr/bin, remove this tag (i.e. BuildRoot).

If they should be in /var/tmp/usr/bin, look why the binaries
aren't installed there...

[snip]

Quote:> Installeer deze pptp-linux als je een pptp verbinding op dient te zetten
> en je w
> el de

[snip]

Remove the '\n' after w and before el...

Quote:> voordelen van een ppp verbiding wilt benutten.

                        ^^^^^^^^^
verbinding

--
 SwifT                     -    Key-ID CDBA2FDB
 LUG: http://www.lugwv.be  -    http://www.keyserver.net

 
 
 

RPM doesn't create any RPM's

Post by A.J. Loonstr » Tue, 10 Jul 2001 02:37:56




> [snip]
> > Processing files: pptp-linux-1.0.3-1
> > File not found: /var/tmp/pptp-linux-buildroot/usr/bin/pptp
> > File not found: /var/tmp/pptp-linux-buildroot/usr/bin/pptp_callmgr

> This says some interesting things, don't you think?

> [snip]
> > BuildRoot: /var/tmp/%{name}-buildroot
> [snip]

> Are the binaries indeed located in /var/tmp, or are they on your
> system (thus really in /usr/bin)?

> If they are in /usr/bin, remove this tag (i.e. BuildRoot).

> If they should be in /var/tmp/usr/bin, look why the binaries
> aren't installed there...

Do'h... I knew it would be something stupid. If you look close in the
spec file you'll see that I've used /usr/sbin first but later on
/usr/bin.
Anyway thanks for opening my eyes 8)

Quote:

> [snip]
> > Installeer deze pptp-linux als je een pptp verbinding op dient te zetten
> > en je w
> > el de
> [snip]

> Remove the '\n' after w and before el...

> > voordelen van een ppp verbiding wilt benutten.
>                         ^^^^^^^^^
> verbinding

Thanks, as you see even that was in beta stage... sort of..

- Arnaud.

 
 
 

1. rpm: not found 'packages.rpm'

I run Slackware, and I need to be able to run rpm to install rpm
packages (duh). un-tarzipped the distribution package i got from the
sunsite site, and now when i do

rpm -i apcahe-blah-blah

it says:

# rpm -i ghostview-1.5-6.i386.rpm
failed to open //var/lib/rpm/packages.rpm

error: cannot open /var/lib/rpm//packages.rpm

--

what is wrong?

the howto's dont have much help for idiots.

PLEEZE?>

thank you.

2. ***ANY HELP APPRECIATED******

3. suse rpm's vs. RH rpm's

4. Reading is much more interesting than TV (1300/1708)

5. Oh, fooey -- drivers don't work, rpm doesn't work

6. Pb with apache server

7. rpm upgraded - kpackage won't read packages.rpm

8. redhat 3.0.3 install, EIDE drive hangs

9. RPM won't upgrade RPM!

10. Installed enlightenment with rpm -Uvh --force --nodeps *.rpm, but it won't run.

11. RPM: can't open packages.rpm

12. redhat rpm error: can't install or update rpms

13. RPM won't install glibc rpm errata for 5.2