source rpms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2006-05-16 at 14:06 -0400, Nick Smith wrote:
> how can i get the source rpms for the packages installed on my centos
> 3.6 server? is there a certain repositories i have to add to my
> yum.conf?  Im trying to setup a filtering program "smartfilter" and
> they want me to point to the source for squid, which i cant seem to
> find.  

There is no squid-devel file that contains the header (.h) files, etc.
Not sure if their should be or not ... the spec file does not contain
the rules to make one.

> can anyone shed some light on this for me?  someone i was
> talking to said that centos strips out the source to keep the bulk
> down, but i was hoping that wasnt the case.

CentOS (and the upstream provider ... and everyone else) strips their
binaries of debuginfo ... that has nothing to do with building things or
devel files.

> 
> thanks for any help.
> 
> Nick

If you want the patched source that the RPM is built from, do this (for
centos-3 version of squid).

download the latest SRPM from here:
http://mirror.centos.org/centos/3/os/SRPMS/squid-2.5.STABLE3-6.3E.16.src.rpm

install it (on a machine with rpm-build installed):

rpm -Uvh squid-2.5.STABLE3-6.3E.16.src.rpm

go to the SPEC directory ... the default is:

/usr/src/redhat/SPECS

issue the command:

rpmbuild -bp squid.spec

now go to the BUILD directory ... default is:

/usr/src/redhat/BUILD

your patched squid source will be in the directory named:

squid-2.5.STABLE3

If you need to know how it was configured ... edit the file squid.spec
and look at the configure section.

Thanks,
Johnny Hughes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20060516/0b3e3208/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux