Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Other than --rebuild, how do I use an SRPM file?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pete Peterson  
View profile  
 More options Dec 5 2001, 12:13 pm
Newsgroups: linux.redhat.rpm
Followup-To: poster
From: peters...@genrad.com (Pete Peterson)
Date: 5 Dec 2001 17:28:16 +0100
Local: Wed, Dec 5 2001 11:28 am
Subject: Other than --rebuild, how do I use an SRPM file?

I want to build the latest openssh for Red Hat 6.2.  I grabbed the
SRPM and did an 'rpm --rebuild' on it and created a bunch of new
RPM files.  The only problme is that the default configuration
wasn't exactly what I wanted.  Unfortunately --rebuild removes
all the intermediate data, so I couldn't modify patch files,
config files or spec files --- whatever it is that I would have
to change to, for instance, enable MD5 passwords.

I've read the man page multiple times and read the (unmaintained)
RPM HOWTO and I can't seem to find a way to to unwrap the pieces
from an SRPM file so they can be modified.  The build instructions
seem to be telling me that you need a spec file (-b) or a spec
file embedded in a maybe-compressed tar file (-t).

I'm sure I'm missing something obvious, but could somebody please
either explain the procedure or point out where in TFM I should read to get
an explanation that I can understand, for unwinding an SRPM and recreating
a new RPM?

        pete peterson
        Teradyne, Inc.
        7 Technology Park Drive
        Westford, MA 01886-0033

        pete.peter...@teradyne.com or peters...@genrad.com
        +1-978-589-7478 (Teradyne); +1-978-589-2088 (Closest FAX);
        +1-978-589-7007 (Main Teradyne Westford FAX)

_______________________________________________
Rpm-list mailing list
Rpm-l...@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew R. MacIntyre  
View profile  
 More options Dec 5 2001, 12:13 pm
Newsgroups: linux.redhat.rpm
Followup-To: poster
From: m...@matty.dyndns.org (Matthew R. MacIntyre)
Date: 5 Dec 2001 17:35:21 +0100
Local: Wed, Dec 5 2001 11:35 am
Subject: Re: Other than --rebuild, how do I use an SRPM file?

Hi,

Pete> I'm sure I'm missing something obvious, but could somebody
Pete> please either explain the procedure or point out where in TFM I
Pete> should read to get an explanation that I can understand, for
Pete> unwinding an SRPM and recreating a new RPM?

You need to install the source rpm and go from there.  The files will
be installed into /usr/src/redhat, unless you have configured another
top directory.

Good luck,

-matt

_______________________________________________
Rpm-list mailing list
Rpm-l...@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Malcolm Tredinnick  
View profile  
 More options Dec 5 2001, 12:14 pm
Newsgroups: linux.redhat.rpm
Followup-To: poster
From: malc...@commsecure.com.au (Malcolm Tredinnick)
Date: 5 Dec 2001 17:39:12 +0100
Local: Wed, Dec 5 2001 11:39 am
Subject: Re: Other than --rebuild, how do I use an SRPM file?

Do 'rpm -i <package name>', which will install the sources in
_topdir/SOURCES and the specfile in _topdir/SPECS (where "_topdir" is
either whatever you've set it to in ~/.rpmmacros or /usr/src/redhat by
default).

The go into the specfile and look at the configure options in the %build
section. Change them as appropriate.

To rebuild the package, then run 'rpm -ba <specfile>' from inside the
SPECS directory and you end up with binary rpms and a source rpm with
your new settings (ready for a future rpm --rebuild ...). If you just
want the binary rpms, just do 'rpm -bp <specfile>'.

Cheers,
Malcolm

--
Experience is something you don't get until just after you need it.

_______________________________________________
Rpm-list mailing list
Rpm-l...@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew E. Mileski  
View profile  
 More options Dec 5 2001, 2:09 pm
Newsgroups: linux.redhat.rpm
Followup-To: poster
From: andr...@isoar.ca (Andrew E. Mileski)
Date: 5 Dec 2001 19:57:11 +0100
Local: Wed, Dec 5 2001 1:57 pm
Subject: Re: Other than --rebuild, how do I use an SRPM file?

Pete Peterson wrote:

> I want to build the latest openssh for Red Hat 6.2.  I grabbed the
> SRPM and did an 'rpm --rebuild' on it and created a bunch of new
> RPM files.  The only problme is that the default configuration
> wasn't exactly what I wanted.  Unfortunately --rebuild removes
> all the intermediate data, so I couldn't modify patch files,
> config files or spec files --- whatever it is that I would have
> to change to, for instance, enable MD5 passwords.

  rpm -i sourcerpm.src.rpm
  cd /usr/src/redhat/SPECS
  rpm -bp sourcerpm.spec

Or if you just want to unroll the RPM to peek inside:
  rpm2cpio anyrpm.rpm | cpio -id

--
Andrew E. Mileski
Ottawa, Canada

_______________________________________________
Rpm-list mailing list
Rpm-l...@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenneth Porter  
View profile  
 More options Dec 5 2001, 3:12 pm
Newsgroups: linux.redhat.rpm
Followup-To: poster
From: sh...@well.com (Kenneth Porter)
Date: 5 Dec 2001 20:38:15 +0100
Local: Wed, Dec 5 2001 2:38 pm
Subject: Re: Other than --rebuild, how do I use an SRPM file?

On Thu, 6 Dec 2001 00:43:14 +0800, Malcolm Tredinnick wrote:
>To rebuild the package, then run 'rpm -ba <specfile>' from inside the
>SPECS directory and you end up with binary rpms and a source rpm with
>your new settings (ready for a future rpm --rebuild ...). If you just
>want the binary rpms, just do 'rpm -bp <specfile>'.

I recommend appending your initials to the release number in the spec
file so that it's clear that your rebuild has been tweaked and is no
longer stock from the distributor.

Ken
mailto:sh...@well.com
http://www.sewingwitch.com/ken/
[If answering a mailing list posting, please don't cc me your reply. I'll take my answer on the list.]

_______________________________________________
Rpm-list mailing list
Rpm-l...@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »