public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge source code but don't build?
@ 2010-08-10 16:29 Mark Knecht
  2010-08-10 16:53 ` Alex Schuster
  2010-08-10 17:07 ` Neil Bothwick
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Knecht @ 2010-08-10 16:29 UTC (permalink / raw
  To: gentoo-user

Hi,
   Is there an option in emerge to download and create the source code
tree for an application, but then stop at that point, don't build the
app and leave the source code tree in place so that I can look at it?

Thanks,
Mark



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] emerge source code but don't build?
  2010-08-10 16:29 [gentoo-user] emerge source code but don't build? Mark Knecht
@ 2010-08-10 16:53 ` Alex Schuster
  2010-08-10 17:22   ` Neil Bothwick
                     ` (2 more replies)
  2010-08-10 17:07 ` Neil Bothwick
  1 sibling, 3 replies; 7+ messages in thread
From: Alex Schuster @ 2010-08-10 16:53 UTC (permalink / raw
  To: gentoo-user

Mark Knecht writes:

>    Is there an option in emerge to download and create the source code
> tree for an application, but then stop at that point, don't build the
> app and leave the source code tree in place so that I can look at it?

Probably not. But you can use the ebuild command:

ebuild /path/to/category/package.ebuild unpack

Read the man page, I'm not sure if things like fetching will be done when 
necessary.

	Wonko



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] emerge source code but don't build?
  2010-08-10 16:29 [gentoo-user] emerge source code but don't build? Mark Knecht
  2010-08-10 16:53 ` Alex Schuster
@ 2010-08-10 17:07 ` Neil Bothwick
  1 sibling, 0 replies; 7+ messages in thread
From: Neil Bothwick @ 2010-08-10 17:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

On Tue, 10 Aug 2010 09:29:04 -0700, Mark Knecht wrote:

>    Is there an option in emerge to download and create the source code
> tree for an application, but then stop at that point, don't build the
> app and leave the source code tree in place so that I can look at it?

ebuild ${PORTDIR}/cat/pkg/pkg-ver.ebuild unpack


-- 
Neil Bothwick

"There are no stupid questions, just too many inquisitive idiots."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] emerge source code but don't build?
  2010-08-10 16:53 ` Alex Schuster
@ 2010-08-10 17:22   ` Neil Bothwick
  2010-08-10 20:17     ` Mark Knecht
  2010-08-10 17:24   ` Mark Knecht
  2010-08-10 17:56   ` Paul Hartman
  2 siblings, 1 reply; 7+ messages in thread
From: Neil Bothwick @ 2010-08-10 17:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 730 bytes --]

On Tue, 10 Aug 2010 18:53:12 +0200, Alex Schuster wrote:

> ebuild /path/to/category/package.ebuild unpack
> 
> Read the man page, I'm not sure if things like fetching will be done
> when necessary.

It will, ebuild carries out any prior steps if they are needed. You may
want to use ebuild ... prepare instead of ebuild ... unpack. It carries
out any pre-compilation steps, like applying patches.

If you are doing this because you want to apply a patch yourself, you can
use one of the above, apply your patches, then run ebuild ... merge to
complete the process and install it. man 1 ebuild explains it all.


-- 
Neil Bothwick

What do you do when you see an endangered animal eating an endangered
plant?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] emerge source code but don't build?
  2010-08-10 16:53 ` Alex Schuster
  2010-08-10 17:22   ` Neil Bothwick
@ 2010-08-10 17:24   ` Mark Knecht
  2010-08-10 17:56   ` Paul Hartman
  2 siblings, 0 replies; 7+ messages in thread
From: Mark Knecht @ 2010-08-10 17:24 UTC (permalink / raw
  To: gentoo-user

On Tue, Aug 10, 2010 at 9:53 AM, Alex Schuster <wonko@wonkology.org> wrote:
> Mark Knecht writes:
>
>>    Is there an option in emerge to download and create the source code
>> tree for an application, but then stop at that point, don't build the
>> app and leave the source code tree in place so that I can look at it?
>
> Probably not. But you can use the ebuild command:
>
> ebuild /path/to/category/package.ebuild unpack
>
> Read the man page, I'm not sure if things like fetching will be done when
> necessary.
>
>        Wonko
>
>

Thanks Wonko and you too Neil.

Cheers,
Mark



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] emerge source code but don't build?
  2010-08-10 16:53 ` Alex Schuster
  2010-08-10 17:22   ` Neil Bothwick
  2010-08-10 17:24   ` Mark Knecht
@ 2010-08-10 17:56   ` Paul Hartman
  2 siblings, 0 replies; 7+ messages in thread
From: Paul Hartman @ 2010-08-10 17:56 UTC (permalink / raw
  To: gentoo-user

On Tue, Aug 10, 2010 at 11:53 AM, Alex Schuster <wonko@wonkology.org> wrote:
> Mark Knecht writes:
>
>>    Is there an option in emerge to download and create the source code
>> tree for an application, but then stop at that point, don't build the
>> app and leave the source code tree in place so that I can look at it?
>
> Probably not. But you can use the ebuild command:
>
> ebuild /path/to/category/package.ebuild unpack
>
> Read the man page, I'm not sure if things like fetching will be done when
> necessary.

I think so, if you try to run a step whose prerequisite steps haven't
been run then it'll run them, too.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] emerge source code but don't build?
  2010-08-10 17:22   ` Neil Bothwick
@ 2010-08-10 20:17     ` Mark Knecht
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Knecht @ 2010-08-10 20:17 UTC (permalink / raw
  To: gentoo-user

On Tue, Aug 10, 2010 at 10:22 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Tue, 10 Aug 2010 18:53:12 +0200, Alex Schuster wrote:
>
>> ebuild /path/to/category/package.ebuild unpack
>>
>> Read the man page, I'm not sure if things like fetching will be done
>> when necessary.
>
> It will, ebuild carries out any prior steps if they are needed. You may
> want to use ebuild ... prepare instead of ebuild ... unpack. It carries
> out any pre-compilation steps, like applying patches.
>
> If you are doing this because you want to apply a patch yourself, you can
> use one of the above, apply your patches, then run ebuild ... merge to
> complete the process and install it. man 1 ebuild explains it all.
>
>
> --
> Neil Bothwick
>
> What do you do when you see an endangered animal eating an endangered
> plant?
>

In my case, due to conversations on another list about a piece of
software that's important to me, it was simply to look at how
copyrights are set up in that program's source code. (I.e. - who's
names are named, what dates, etc.)

Cheers,
Mark



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-10 21:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-10 16:29 [gentoo-user] emerge source code but don't build? Mark Knecht
2010-08-10 16:53 ` Alex Schuster
2010-08-10 17:22   ` Neil Bothwick
2010-08-10 20:17     ` Mark Knecht
2010-08-10 17:24   ` Mark Knecht
2010-08-10 17:56   ` Paul Hartman
2010-08-10 17:07 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox