🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Raqueeb Hassan Thu, 10 Oct 2002 04:01
RPM: is it too specific to dependecies?
#61264
Author: Raqueeb Hassan
Date: Thu, 10 Oct 2002 04:01
17 lines
1383 bytes
Hello there!

I hate rpms sometime because they were built upon some specific
machines and dependent utilities.

For example, I was trying to install newsx ... got the rpm but the rpm
-qRp output says it needs INN-DEVEL too, where as I've INN newer
version is running fine.

Now, I installed it with --nodeps switch .... the binary is working,
as it can read the conf file .... rest is in process.

what do you think? does it hurt the rpm?

raqueeb hassan
bangladesh
Re: RPM: is it too specific to dependecies?
#61265
Author: Christopher Browne
Date: Thu, 10 Oct 2002 04:14
26 lines
2275 bytes
raqueebh@yahoo.com (Raqueeb Hassan) wrote:
> I hate rpms sometime because they were built upon some specific
> machines and dependent utilities.
>
> For example, I was trying to install newsx ... got the rpm but the rpm
> -qRp output says it needs INN-DEVEL too, where as I've INN newer
> version is running fine.
>
> Now, I installed it with --nodeps switch .... the binary is working,
> as it can read the conf file .... rest is in process.
>
> what do you think? does it hurt the rpm?

It has generally proven preferable, on Debian, for packages to fully
declare everything that they are dependent on, as this provides better
assurance that packages will actually work once installed.

If you don't feel any need to expect that installs will be replicable,
then feel free to do whatever you like.
-- 
(concatenate 'string "cbbrowne" "@cbbrowne.com")
http://cbbrowne.com/info/multiplexor.html
Chad has brought us a brilliant new twist: "Nobody has ever been a bad
parent by buying Microsoft." 
-- David Steinberg <steinber@interchange.ubc.ca>
Re: RPM: is it too specific to dependecies?
#61266
Author: Hal Burgiss
Date: Thu, 10 Oct 2002 04:17
12 lines
1466 bytes
On 9 Oct 2002 21:01:28 -0700, Raqueeb Hassan <raqueebh@yahoo.com> wrote:
> Now, I installed it with --nodeps switch .... the binary is working,
> as it can read the conf file .... rest is in process.
> 
> what do you think? does it hurt the rpm?

If you install the src.rpm, that will often solve this kind of thing.

-- 
Hal Burgiss
 
Re: RPM: is it too specific to dependecies?
#61337
Author: Raqueeb Hassan
Date: Sat, 12 Oct 2002 01:46
9 lines
1150 bytes
Thanks for replying both of you.

Now, I wonder, how do i rebuild a rpm from its src.rpm, please?

thanks in advance.

raqueeb hassan
bangladesh
Re: RPM: is it too specific to dependecies?
#61333
Author: Brett E. Dufault
Date: Sat, 12 Oct 2002 03:24
29 lines
2588 bytes
On Friday 11 October 2002 09:46 pm, Raqueeb Hassan wrote:

> Now, I wonder, how do i rebuild a rpm from its src.rpm, please?

As root, run 'rpmbuild -bb --clean foo.src.rpm'.  If it builds 
successfully, you'll find the rebuilt RPM under the /usr/src/redhat/RPMS 
directory tree (typically in the i386 and/or noarch subdirs).  The "-bb" 
says to "build the binary package", the "--clean" means to clean up the 
build tree (under /usr/src/redhat/BUILD) afterwards.

Note:  You'll sometimes have to install additional development RPMs in 
order to rebuild a src.rpm file.  These'll normally show up just like any 
other missing dependency.  Track down the blahblah-devel-1.2.3-4.i386.rpm 
file, install it, and run the rpmbuild command again.

Note:  For inn, the following won't matter, but if you get into building 
kernels or other power-hungry apps, you might want to check into the 
'--target' option on the rpmbuild manpage -- this can be used to enable 
optimizations for specific classes of processor.  (This is where those 
.i586.rpm, .i686.rpm, .athlon.rpm RPMs come from.)  For most apps, there's 
little to be gained from this.  (It's not like you can download news faster 
by having those MMX/3DNow instructions enabled. :-)  But for a kernel or 
3-D animation package, this could be useful.

Cheers!
--Brett


Re: RPM: is it too specific to dependecies?
#61343
Author: Raqueeb Hassan
Date: Sat, 12 Oct 2002 11:20
18 lines
1596 bytes
Brett,

Thanks a lot for the instructions on re-building the src.rpm. Now,
what I was thinking about the paths of different files. Like while
building INN, the author has to locate the paths (like, for INN,
/var/lib/news, /var/spool/news, /etc/news, ...... ) of each files
cause the rpm installer has to where to the files.

So, while re-building it, should I have to specify all the paths,
please?

okay, at the same time, let me check that out!

thanks again.

raqueeb hassan
bangladesh
Re: RPM: is it too specific to dependecies?
#61350
Author: Rex Dieter
Date: Sat, 12 Oct 2002 14:49
12 lines
1477 bytes
"Raqueeb Hassan" <raqueebh@yahoo.com> wrote in message
news:2545b34c.0210111746.a489b70@posting.google.com...

> Now, I wonder, how do i rebuild a rpm from its src.rpm, please?

rpmbuild --rebuild package.src.rpm

-- Rex


Re: RPM: is it too specific to dependecies?
#61361
Author: Brett E. Dufault
Date: Sat, 12 Oct 2002 18:52
38 lines
2937 bytes
On Saturday 12 October 2002 07:20 am, Raqueeb Hassan wrote:

> Thanks a lot for the instructions on re-building the src.rpm.

Now if only I'd posted the *correct* instructions.  :-(  As Rex pointed 
out, I fubar'ed those pretty badly -- apologies for that.  Rex's syntax is 
(of course :-) correct, and my first step should've read:

        rpmbuild --rebuild foo.src.rpm

> what I was thinking about the paths of different files. Like while
> building INN, the author has to locate the paths (like, for INN,
> /var/lib/news, /var/spool/news, /etc/news, ...... ) of each files
> cause the rpm installer has to where to the files.
> 
> So, while re-building it, should I have to specify all the paths,
> please?

For inn, there's nothing extra you have to do -- the RPM specification file 
contained inside the .src.rpm will properly configure the directories used 
by the inn programs, and the binary RPM (i.e., the inn-w.x.y-z.i368.rpm) 
that gets created from rebuilding the src.rpm will create these directories 
when it's installed.

By and large, Red Hat's src.rpm files are very good about configuring 
directory paths, and ensuring that these directories are created properly 
when the binary RPM is installed.  (So far I've only encountered one Red 
Hat RPM that didn't create a support directory.)

If you ever *did* need to specify or change the paths for a package, you'd 
usually do this by editing the RPM specification (.spec) file inside the 
.src.rpm -- that's the file that controls how a program is configured, 
built, installed, removed, etc.

Cheers + apologies!
--Brett

Re: RPM: is it too specific to dependecies?
#61395
Author: Raqueeb Hassan
Date: Sun, 13 Oct 2002 03:43
7 lines
1208 bytes
Thanks both of guys and no apologies ... it happens sometimes. 

see you next time!

raqueeb hassan
bangladesh
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads