Re: [gentoo-user] Source Code?
On Sun, 15 Jan 2006 18:27:32 +0930 Iain Buchanan wrote: As far as I recall for Fedora (haven't used it in a while) what you download as a src.rpm is already patched the way Fedora has compiled it to make the rpm. I don't know about the others, but I assume all binary distro's would be the same or similar... For the record I think you are (slightly) wrong. The idea of source rpm's is that they contain the pristine sources from the upstream authors, along with a set of patches that get applied when you compile the src.rpm package. So you will likely get inside the src.rpm package: * the original unpatched source as a tar.gz or tar.bz2 file (as packaged upstream) * a set of patch files - some of which may be distro specific, some of which may have been produced elsewhere in the community * a .spec file which is the equivalent of the .ebuild file - ie the build and install instructions * scripts for pre/post install/uninstall actions. So in short it is pretty easy to find what patches have been applied to produce the binary package, provided you can find the src.rpm (even the .spec file will tell you a lot). -- Nick Rout [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
On Wed, 2006-01-18 at 12:27 +1300, Nick Rout wrote: On Sun, 15 Jan 2006 18:27:32 +0930 Iain Buchanan wrote: As far as I recall for Fedora (haven't used it in a while) what you download as a src.rpm is already patched the way Fedora has compiled it to make the rpm. I don't know about the others, but I assume all binary distro's would be the same or similar... For the record I think you are (slightly) wrong. The idea of source rpm's is that they contain the pristine sources from the upstream authors, along with a set of patches that get applied when you compile the src.rpm package. So you will likely get inside the src.rpm package: Of course, I stand corrected. I think you're right - it's been a long time since I've been to binary or rpm world! -- Iain Buchanan iaindb at netspace dot net dot au He draweth out the thread of his verbosity finer than the staple of his argument. -- William Shakespeare, Love's Labour's Lost -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
On Wed, 18 Jan 2006 09:50:51 +0930 Iain Buchanan wrote: The idea of source rpm's is that they contain the pristine sources from the upstream authors, along with a set of patches that get applied when you compile the src.rpm package. So you will likely get inside the src.rpm package: Of course, I stand corrected. I think you're right - it's been a long time since I've been to binary or rpm world! And long may it stay that way. The only reason i get reminded about rpm's is when other people ask me for help - I often say is your distro's version of foo compiled with support for bar? - to which they go all glazed over, and i end up looking at the src.rpm file for them :-) -- Nick Rout [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
On Fri, 2006-01-13 at 11:19 -0600, Raj Swaminathan wrote: thanks Iain, Winston and Willie for all your help. I was looking specifically for the coreutils package and did not know where to find it. aha, a little more information in the original email goes a long way :) Iain, i run gentoo so i do have the patched versions of what i need, thanks. no worries. If you're wondering what a particular part of /bin belongs to what package, emerge app-portage/gentoolkit and then use equery belongs /bin/something so find out. But from you've said Im just curious to know if patched versions of the coreutils package will be available for download directly form the mirrors of distros like debian, slackware, ubuntu, suse Fedora's mirror had coreutils-5.2.1-48.1.x86_64.rpm but im not sure if thats patched. As far as I recall for Fedora (haven't used it in a while) what you download as a src.rpm is already patched the way Fedora has compiled it to make the rpm. I don't know about the others, but I assume all binary distro's would be the same or similar... HTH, -- Iain Buchanan iaindb at netspace dot net dot au Quite frankly, I don't like you humans. After what you all have done, I find being 'inhuman' a compliment. -- Spider Robinson, Callahan's Secret -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
On Friday 13 January 2006 05:40, Raj Swaminathan wrote: Can anybody tell me where i can obtain open source code for gentoo. Im particularly looking for code for programs in /bin and /sbin. I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD. You're kidding, right? Do you not even have the faintest idea what the GPL is? -- Mike Williams -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
Hi, thanks Iain, Winston and Willie for all your help. I was looking specifically for the coreutils package and did not know where to find it. Iain, i rungentooso i do have the patched versions of what i need, thanks. But from you've said Im just curious to know if patched versions of the coreutils package will be available for download directly form the mirrors of distros like debian, slackware, ubuntu,suse Fedora's mirror had coreutils-5.2.1-48.1.x86_64.rpm but im not sure if thats patched. regards, raj On 1/13/06, Iain Buchanan [EMAIL PROTECTED] wrote: On Thu, 2006-01-12 at 23:40 -0600, Raj Swaminathan wrote: Can anybody tell me where i can obtain open source code for gentoo. If you're _running_ Gentoo it's easy, as you have to download most ofthe source code to install it.However, given that you're doing this tolots of distro's, I assume you're not installing each distro... Im particularly looking for code for programs in /bin and /sbin.Ah, quite a lot of programs install things into /bin.Do you mean justthe base set of programs?then there's not much in there at all. They're probably all in 'coreutils' or 'baselayout' (no doubt otherswill give you more package names) I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD.You should have luck with gentoo, as every gentoo mirror should carrythe source code.Go to http://www.gentoo.org/main/en/mirrors.xml to find mirrors, and then navigate to your.mirror/gentoo/distfiles whereyou will find the source code (pretty much anything in there thatdoesn't have a -bin in the name is source code for something :)for example, coreutils-5.3.0.tar.bz2 or baselayout-1.12.0_pre10.tar.bz2However: gentoo does it slightly differently:Instead of downloadingthe patched source code, as you would in, say, fedora, gentoo downloadsthe original untouched source from the program's site, and applies gentoo patches.To find out the patches, without running gentoo becomes a littletrickier.I'd personally download a portage snapshot:your.mirror/gentoo/snapshots/portage-20060112.tar.bz2 (~20Mb), then lookat the directories in there:/usr/portage/sys-apps/baselayout/usr/portage/sys-apps/coreutilsIn each directory you will see a list of *.ebuild files, which are therules for building this package. If you get this far and want me to keep going about ebuilds, just postback to the list.HTH,--Iain Buchanan iaindb at netspace dot net dot auThe best way to make a fire with two sticks is to make sure one of them is a match. -- Will Rogers--gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
On Thu, 12 Jan 2006 23:40:30 -0600 Raj Swaminathan [EMAIL PROTECTED] wrote: Can anybody tell me where i can obtain open source code for gentoo. Im particularly looking for code for programs in /bin and /sbin. I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD. Every Linux distribution I can think of uses the same GNU coreutils, fileutils, etc. Hit www.gnu.org. That said, some distributions may apply a few patches, but this is still minor. They're all GNU. -- Tom Martin, http://dev.gentoo.org/~slarti AMD64, net-mail, shell-tools, vim, recruiters Gentoo Linux signature.asc Description: PGP signature
Re: [gentoo-user] Source Code?
On Friday 13 January 2006 21:14, Holly Bostick wrote: Raj Swaminathan schreef: Hi, thanks Iain, Winston and Willie for all your help. I was looking specifically for the coreutils package and did not know where to find it. Iain, i run gentoo so i do have the patched versions of what i need, thanks. But from you've said Im just curious to know if patched versions of the coreutils package will be available for download directly form the mirrors of distros like debian, slackware, ubuntu, suse Fedora's mirror had coreutils-5.2.1-48.1.x86_64.rpmhttp://fedora.mirrors.tds.net/pub/fedora- core/updates/4/x86_64/coreutils-5.2.1-48.1.x86_64.rpmbut im not sure if thats patched. What you might prefer to do is rather than looking in the directory that you are looking in, go one step up and try the SRPMS directory instead there, you will find http://fedora.mirrors.tds.net/pub/fedora-core/updates/4/SRPMS/coreutils-5.2 .1-48.1.src.rpm which contains the source code (and most likely the patches as well). HTH, Holly you may find useful rpmfind.net service or similar, however, latest packages you'll find on mirrors. for coreutils source rpms you may hit this: http://rpmfind.net/linux/rpm2html/search.php?query=coreutilssubmit=Search+...system=arch=src m -- Linux 2.6.15-ck1 AMD Athlon(tm) 64 Processor 3200+ 22:16:44 up 7:59, 4 users, load average: 1.04, 1.05, 1.06 pgpquWUJIoZDv.pgp Description: PGP signature
[gentoo-user] Source Code?
Hi, Can anybody tell me where i can obtain open source code for gentoo. Im particularly looking for code for programs in /bin and /sbin. I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD. Thanks, raj
Re: [gentoo-user] Source Code?
On Thu, Jan 12, 2006 at 11:40:30PM -0600, Penguin Lover Raj Swaminathan squawked: Hi, Can anybody tell me where i can obtain open source code for gentoo. Im particularly looking for code for programs in /bin and /sbin. I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD. Thanks, raj Generally the source are stored in /usr/portage/distfiles, packaged in compressed tar archives. W -- Do you all understand? At this point I'll settle for quiet acquiescence. ~DeathMech, S. Sondhi. P-town PHY 205 Sortir en Pantoufles: up 61 days, 22:23 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
Raj Swaminathan wrote: Hi, Can anybody tell me where i can obtain open source code for gentoo. Im particularly looking for code for programs in /bin and /sbin. I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD. Thanks, raj I recommend you check anything I say against other sources; I'm not a Gentoo expert. Gentoo is a source distribution. Nearly all packages installed are compiled from source. Gentoo fetches the source code from URLs supplied in the ebuilds located in /usr/portage and downloads it to /usr/portage/distfiles when you emerge a package. You'll probably want to start in /usr/portage/distfiles. Any source that you've downloaded and compiled through portage resides there until it's removed. However, it's possible (or maybe likely, I'm no expert) that not all of the source code for your system is in there. If you've used GRP packages, there would certainly be source missing from there, and if you installed with a stage 3 and then did not recompile everything, there would likely be at least some packages installed for which you don't have source. If you've installed any binary only programs, the binaries's package would be there but not the source for those packages. If you're looking for the remote source that is downloaded to be compiled on Gentoo, the URLs are given in the ebuilds for each package. I hope my explanation helps. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Source Code?
On Thu, 2006-01-12 at 23:40 -0600, Raj Swaminathan wrote: Can anybody tell me where i can obtain open source code for gentoo. If you're _running_ Gentoo it's easy, as you have to download most of the source code to install it. However, given that you're doing this to lots of distro's, I assume you're not installing each distro... Im particularly looking for code for programs in /bin and /sbin. Ah, quite a lot of programs install things into /bin. Do you mean just the base set of programs? then there's not much in there at all. They're probably all in 'coreutils' or 'baselayout' (no doubt others will give you more package names) I am on a project to find out how different distros implement a few of these programs. So far i have only been lucky with OpenSolaris and FreeBSD. You should have luck with gentoo, as every gentoo mirror should carry the source code. Go to http://www.gentoo.org/main/en/mirrors.xml to find mirrors, and then navigate to your.mirror/gentoo/distfiles where you will find the source code (pretty much anything in there that doesn't have a -bin in the name is source code for something :) for example, coreutils-5.3.0.tar.bz2 or baselayout-1.12.0_pre10.tar.bz2 However: gentoo does it slightly differently: Instead of downloading the patched source code, as you would in, say, fedora, gentoo downloads the original untouched source from the program's site, and applies gentoo patches. To find out the patches, without running gentoo becomes a little trickier. I'd personally download a portage snapshot: your.mirror/gentoo/snapshots/portage-20060112.tar.bz2 (~20Mb), then look at the directories in there: /usr/portage/sys-apps/baselayout /usr/portage/sys-apps/coreutils In each directory you will see a list of *.ebuild files, which are the rules for building this package. If you get this far and want me to keep going about ebuilds, just post back to the list. HTH, -- Iain Buchanan iaindb at netspace dot net dot au The best way to make a fire with two sticks is to make sure one of them is a match. -- Will Rogers -- gentoo-user@gentoo.org mailing list