Re: [expert] Problem with .rpmmacros / rpm build setup

2003-02-06 Thread James Sparenberg
Maximum RPM is the best book on this out there.. Here is the link to the
online version.

http://www.rpm.org/max-rpm/

If you have an RH disk set or if you feel like downloading from RH it's
also in the documentation section of every release they do.

James

On Wed, 2003-02-05 at 18:40, civileme wrote:
> On Wednesday 05 February 2003 03:40 pm, Jim C wrote:
> > Thanks but I got this one already.  Now I am trying to fight my way
> > through the spec file.  Know of any place where there are docs on these?
> >
> > Jim C.
> >
> > Todd Lyons wrote:
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA1
> > >
> > > Jim C wrote on Tue, Feb 04, 2003 at 10:11:23PM -0800 :
> > >>>I am stuck at the rpm install. I think I probably have a macro wrong
> > >>>somewhere.  Note that jim is a local user with home directory named
> > >>>/lclusr/jim.
> > >>>[jim@enigma jim]$ rpm -ivh samba-2.2.7a-3mdk.src.rpm
> > >>>error: cannot create %sourcedir /%{/lclusr/jim}/rpm/SOURCES
> > >
> > > mkdir /lcluser/jim/rpm
> > > mkdir /lcluser/jim/rpm/RPMS
> > > mkdir /lcluser/jim/rpm/RPMS/i586
> > > mkdir /lcluser/jim/rpm/RPMS/noarch
> > > mkdir /lcluser/jim/rpm/SRPMS
> > > mkdir /lcluser/jim/rpm/SOURCES
> > > mkdir /lcluser/jim/rpm/SPECS
> > > mkdir /lcluser/jim/rpm/BUILD
> > > mkdir /lcluser/jim/rpm/tmp
> > >
> > > Blue skies... Todd
> > > - --
> > >
> > > | MandrakeSoft USA | Security is like an onion.  It's made |
> > > | http://www.mandrakesoft.com  | made up of several layers and makes   |
> > > | http://www.mandrakelinux.com | you cry.  --Howard Chu|
> > >
> > >   Mandrake Cooker Devel Version, Kernel 2.4.21pre4-1mdk
> > > -BEGIN PGP SIGNATURE-
> > > Version: GnuPG v1.2.1 (GNU/Linux)
> > >
> > > iD8DBQE+QY/3lp7v05cW2woRAt9oAJ9gG6Xl+hurBxUuoyYHnOg/gzkOtwCghW2y
> > > pD4tkqUxAy8V9CvXB/MZ+tw=
> > > =c4h5
> > > -END PGP SIGNATURE-
> > >
> > >
> > >
> > > 
> > >
> > > Want to buy your Pack or Services from MandrakeSoft?
> > > Go to http://www.mandrakestore.com
> Ummm, I searched unsuccesfully for docs on those--best thing I can think of is 
> to rpm -i something.src.rpm from srpms for mandrake and then look at the spec 
> files others have made.  Some of them have really artful dodges and many will 
> give you clues how to do it.
> 
> There is the rpm howto at
> 
> http://www.mandrakelinux.com/howtos/mdk-rpm/
> 
> which explains a lot of the procedure including the spec file.
> 
> Civileme
> 
> 
> 
> __
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
James Sparenberg <[EMAIL PROTECTED]>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Problem with .rpmmacros / rpm build setup

2003-02-05 Thread civileme
On Wednesday 05 February 2003 03:40 pm, Jim C wrote:
> Thanks but I got this one already.  Now I am trying to fight my way
> through the spec file.  Know of any place where there are docs on these?
>
> Jim C.
>
> Todd Lyons wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Jim C wrote on Tue, Feb 04, 2003 at 10:11:23PM -0800 :
> >>>I am stuck at the rpm install. I think I probably have a macro wrong
> >>>somewhere.  Note that jim is a local user with home directory named
> >>>/lclusr/jim.
> >>>[jim@enigma jim]$ rpm -ivh samba-2.2.7a-3mdk.src.rpm
> >>>error: cannot create %sourcedir /%{/lclusr/jim}/rpm/SOURCES
> >
> > mkdir /lcluser/jim/rpm
> > mkdir /lcluser/jim/rpm/RPMS
> > mkdir /lcluser/jim/rpm/RPMS/i586
> > mkdir /lcluser/jim/rpm/RPMS/noarch
> > mkdir /lcluser/jim/rpm/SRPMS
> > mkdir /lcluser/jim/rpm/SOURCES
> > mkdir /lcluser/jim/rpm/SPECS
> > mkdir /lcluser/jim/rpm/BUILD
> > mkdir /lcluser/jim/rpm/tmp
> >
> > Blue skies...   Todd
> > - --
> >
> > | MandrakeSoft USA | Security is like an onion.  It's made |
> > | http://www.mandrakesoft.com  | made up of several layers and makes   |
> > | http://www.mandrakelinux.com | you cry.  --Howard Chu|
> >
> >   Mandrake Cooker Devel Version, Kernel 2.4.21pre4-1mdk
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.2.1 (GNU/Linux)
> >
> > iD8DBQE+QY/3lp7v05cW2woRAt9oAJ9gG6Xl+hurBxUuoyYHnOg/gzkOtwCghW2y
> > pD4tkqUxAy8V9CvXB/MZ+tw=
> > =c4h5
> > -END PGP SIGNATURE-
> >
> >
> >
> > 
> >
> > Want to buy your Pack or Services from MandrakeSoft?
> > Go to http://www.mandrakestore.com
Ummm, I searched unsuccesfully for docs on those--best thing I can think of is 
to rpm -i something.src.rpm from srpms for mandrake and then look at the spec 
files others have made.  Some of them have really artful dodges and many will 
give you clues how to do it.

There is the rpm howto at

http://www.mandrakelinux.com/howtos/mdk-rpm/

which explains a lot of the procedure including the spec file.

Civileme



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Problem with .rpmmacros / rpm build setup

2003-02-05 Thread Jim C
Thanks but I got this one already.  Now I am trying to fight my way 
through the spec file.  Know of any place where there are docs on these?

Jim C.

Todd Lyons wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim C wrote on Tue, Feb 04, 2003 at 10:11:23PM -0800 :


I am stuck at the rpm install. I think I probably have a macro wrong 
somewhere.  Note that jim is a local user with home directory named 
/lclusr/jim.
[jim@enigma jim]$ rpm -ivh samba-2.2.7a-3mdk.src.rpm
error: cannot create %sourcedir /%{/lclusr/jim}/rpm/SOURCES



mkdir /lcluser/jim/rpm
mkdir /lcluser/jim/rpm/RPMS
mkdir /lcluser/jim/rpm/RPMS/i586
mkdir /lcluser/jim/rpm/RPMS/noarch
mkdir /lcluser/jim/rpm/SRPMS
mkdir /lcluser/jim/rpm/SOURCES
mkdir /lcluser/jim/rpm/SPECS
mkdir /lcluser/jim/rpm/BUILD
mkdir /lcluser/jim/rpm/tmp

Blue skies...			Todd
- -- 
| MandrakeSoft USA | Security is like an onion.  It's made |
| http://www.mandrakesoft.com  | made up of several layers and makes   |
| http://www.mandrakelinux.com | you cry.  --Howard Chu|
  Mandrake Cooker Devel Version, Kernel 2.4.21pre4-1mdk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+QY/3lp7v05cW2woRAt9oAJ9gG6Xl+hurBxUuoyYHnOg/gzkOtwCghW2y
pD4tkqUxAy8V9CvXB/MZ+tw=
=c4h5
-END PGP SIGNATURE-





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Problem with .rpmmacros / rpm build setup

2003-02-05 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim C wrote on Tue, Feb 04, 2003 at 10:11:23PM -0800 :
> >I am stuck at the rpm install. I think I probably have a macro wrong 
> >somewhere.  Note that jim is a local user with home directory named 
> >/lclusr/jim.
> >[jim@enigma jim]$ rpm -ivh samba-2.2.7a-3mdk.src.rpm
> >error: cannot create %sourcedir /%{/lclusr/jim}/rpm/SOURCES

mkdir /lcluser/jim/rpm
mkdir /lcluser/jim/rpm/RPMS
mkdir /lcluser/jim/rpm/RPMS/i586
mkdir /lcluser/jim/rpm/RPMS/noarch
mkdir /lcluser/jim/rpm/SRPMS
mkdir /lcluser/jim/rpm/SOURCES
mkdir /lcluser/jim/rpm/SPECS
mkdir /lcluser/jim/rpm/BUILD
mkdir /lcluser/jim/rpm/tmp

Blue skies...   Todd
- -- 
| MandrakeSoft USA | Security is like an onion.  It's made |
| http://www.mandrakesoft.com  | made up of several layers and makes   |
| http://www.mandrakelinux.com | you cry.  --Howard Chu|
  Mandrake Cooker Devel Version, Kernel 2.4.21pre4-1mdk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+QY/3lp7v05cW2woRAt9oAJ9gG6Xl+hurBxUuoyYHnOg/gzkOtwCghW2y
pD4tkqUxAy8V9CvXB/MZ+tw=
=c4h5
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] Problem with .rpmmacros / rpm build setup

2003-02-04 Thread Jim C
Well I got that last bug but now I have another.
This last line in my rpmmacros file is causing trouble:


# Where scripts are found (like find-requires-nonvidia)
%_my_bindir /lclusr/jim/bin
%_my_rpmdir /lclusr/jim/rpm
...
%__find_requires%{_my_bindir}/find-requires-nonvidia %{?buildroot:%{buildroot}}



As far as I can tell there is no "find-requires-nonvidia" anywhere.  I 
tried scanning the rpm database for such a file and none exists, 
installed or otherwise.  I also did searches on /usr/lib/rpm which 
contains only:

[jim@enigma rpm]$ pwd
/usr/lib/rpm
[jim@enigma rpm]$ ls 
athlon-linux@config.sub*  get_magic.pl* i686-mandrake-linux/perl.prov*rpmpopt-4.0.4
athlon-mandrake-linux/   convertrpmrc.sh* getpo.sh* javadeps*   perl.req* rpmq*
brp-compress*cpanflute*   http.req* k6-linux@   rpmb* rpmrc
brp-mandrake*find-lang.sh*i386-linux@   k6-mandrake-linux/  rpmd* rpmt@
brp-sparc64-linux*   find-provides*   i386-mandrake-linux/  macros  rpm.daily*rpmu@
brp-strip*   find-provides.perl*  i486-linux@   magic.prov* rpmdiff.cgi*  rpmv@
brp-strip-comment-note*  find-prov.pl*i486-mandrake-linux/  magic.req*  rpme@ rpm.xinetd*
brp-strip-shared*find-req.pl* i586-linux@   mkinstalldirs*  rpmi* u_pkg.sh*
check-prereqs*   find-requires*   i586-mandrake-linux/  noarch-linux@   rpmk* vpkg-provides2.sh*
config.guess*find-requires.perl*  i686-linux@   noarch-mandrake-linux@  rpm.log*  vpkg-provides.sh*

I also checked the path and I checked several other likely locations in 
the file system.  No dice.  What are the odds that this is out of date? 
 It might have been deprecated or the file might be going by another 
name these days?  Like I notice the list of files above includes a 
find-requires.perl as well as a find-requires*

Jim C wrote:
I am stuck at the rpm install. I think I probably have a macro wrong 
somewhere.  Note that jim is a local user with home directory named 
/lclusr/jim.

[jim@enigma jim]$ rpm -ivh samba-2.2.7a-3mdk.src.rpm
error: cannot create %sourcedir /%{/lclusr/jim}/rpm/SOURCES




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com