Myk Taylor wrote:

The source is available in the ${DISTDIR} directory (/var/tmp/distfiles by default, I think). If you just want the source,
emerge -f <packagename>
will get the raw source (OpenBSD's 'make fetch'). However, I haven't found the equivalent of OpenBSD's 'make patch'. It's done as part of the ebuild process, but there's no individual command. To see the exact source that you'll compile, this might be a solution:


1) add keeptemp and keepwork to your FEATURES list in /etc/make.conf (emerge removes the source files after building and installing by default)

2) emerge the package (maybe suspending or breaking the build process after ebuild patches the source)

Say you want to "unpack" the source file to where gentoo officially work with sources without
actually compiling do:


# emerge -f  /usr/portage/app-shells/bash/bash-2.05b-r9.ebuild
(to fetch the source tarball), then:

# ebuild /usr/portage/app-shells/bash/bash-2.05b-r9.ebuild unpack
>>> md5 src_uri ;-) bash-2.05b.tar.gz
>>> md5 src_uri ;-) bash-2.05b-gentoo.diff.bz2
>>> md5 src_uri ;-) bash205b-002
>>> md5 src_uri ;-) bash205b-003
>>> md5 src_uri ;-) bash205b-004
>>> md5 src_uri ;-) bash205b-005
>>> md5 src_uri ;-) bash205b-006
>>> md5 src_uri ;-) bash205b-007
>>> Unpacking source...
>>> Unpacking bash-2.05b.tar.gz to /var/tmp/portage/bash-2.05b-r9/work
* Applying bash-2.05b-gentoo.diff.bz2 ... [ ok ]
* Applying bash205b-002 ... [ ok ]
* Applying bash205b-003 ... [ ok ]
* Applying bash205b-004 ... [ ok ]
* Applying bash205b-005 ... [ ok ]
* Applying bash205b-006 ... [ ok ]
* Applying bash205b-007 ... [ ok ]
* Applying bash-2.05b-multibyte-locale.patch ... [ ok ]
* Applying bash-2.05b-empty-herestring.patch ... [ ok ]
* Applying bash-2.05b-rbash.patch ... [ ok ]
* Applying bash-2.05b-parallel-build.patch ... [ ok ]
* Applying bash-2.05b-jobs.patch ... [ ok ]
* Using GNU config files from /usr/share/libtool
* Updating support/config.sub [ ok ]
* Updating support/config.guess [ ok ]
>>> Source unpacked



# ebuild /usr/portage/app-shells/bash/bash-2.05b-r9.ebuild clean (to clean the manually extracted sources)

#man ebuild
and
# nano -w /usr/portage/app-shells/bash/bash-2.05b-r9.ebuild
for more info

HTH


-- [email protected] mailing list



Reply via email to