public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
@ 2013-08-19  5:58 东方巽雷
  2013-08-19  6:05 ` AR (aka AleiPhoenix)
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: 东方巽雷 @ 2013-08-19  5:58 UTC (permalink / raw
  To: gentoo-user

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

I need to change some arguments in Makefile.

[-- Attachment #2: Type: text/html, Size: 67 bytes --]

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

* Re: [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
  2013-08-19  5:58 [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation? 东方巽雷
@ 2013-08-19  6:05 ` AR (aka AleiPhoenix)
  2013-08-19  6:06 ` Canek Peláez Valdés
  2013-08-19  6:09 ` Alexey Mishustin
  2 siblings, 0 replies; 7+ messages in thread
From: AR (aka AleiPhoenix) @ 2013-08-19  6:05 UTC (permalink / raw
  To: gentoo-user

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

On Mon, Aug 19, 2013 at 1:58 PM, 东方巽雷 <dongfangxunlei@gmail.com> wrote:

> I need to change some arguments in Makefile.
>

AFAIK, there is no way to pause the emerging and resume it.

Emerging is like a transaction. You need to write your own ebuild file,
maybe add a additional patch.

-- 
Silence is golden.

twitter: @AccelReality
wikipedia: AleiPhoenix
blog: weblog.areverie.org
wiki: wiki.areverie.org

[-- Attachment #2: Type: text/html, Size: 995 bytes --]

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

* Re: [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
  2013-08-19  5:58 [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation? 东方巽雷
  2013-08-19  6:05 ` AR (aka AleiPhoenix)
@ 2013-08-19  6:06 ` Canek Peláez Valdés
  2013-08-19  6:09 ` Alexey Mishustin
  2 siblings, 0 replies; 7+ messages in thread
From: Canek Peláez Valdés @ 2013-08-19  6:06 UTC (permalink / raw
  To: gentoo-user

if the package uses autoconf/automake:

ebuild /usr/portage/<cat>/<pkg>/<pkg>-<ver>.ebuild configure
[edit Makefile]
touch /var/tmp/portage/<cat>/</pkg>-<ver>/.configured
ebuild /usr/portage/<cat>/<pkg>/<pkg>-<ver>.ebuild install

I think it would be easier to put the package in an overlay and edit the ebuild.

Regards.


On Mon, Aug 19, 2013 at 12:58 AM, 东方巽雷 <dongfangxunlei@gmail.com> wrote:
> I need to change some arguments in Makefile.



-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


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

* Re: [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
  2013-08-19  5:58 [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation? 东方巽雷
  2013-08-19  6:05 ` AR (aka AleiPhoenix)
  2013-08-19  6:06 ` Canek Peláez Valdés
@ 2013-08-19  6:09 ` Alexey Mishustin
  2013-08-19  6:38   ` 东方巽雷
  2 siblings, 1 reply; 7+ messages in thread
From: Alexey Mishustin @ 2013-08-19  6:09 UTC (permalink / raw
  To: gentoo-user

2013/8/19 东方巽雷 <dongfangxunlei@gmail.com>:
> I need to change some arguments in Makefile.

You might want to use a low-level interface to the Portage system 'ebuild':

ebuild path/to/package.ebuild fetch
ebuild path/to/package.ebuild unpack
===make you changes here (where unpacked, in /tmp)===
ebuild path/to/package.ebuild compile
ebuild path/to/package.ebuild install
ebuild path/to/package.ebuild qmerge

--
Regards,
Alex


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

* Re: [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
  2013-08-19  6:09 ` Alexey Mishustin
@ 2013-08-19  6:38   ` 东方巽雷
  2013-08-19  8:00     ` Wang Xuerui
  0 siblings, 1 reply; 7+ messages in thread
From: 东方巽雷 @ 2013-08-19  6:38 UTC (permalink / raw
  To: gentoo-user

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

good!  Thank you.


2013/8/19 Alexey Mishustin <shumkar@shumkar.ru>

> 2013/8/19 东方巽雷 <dongfangxunlei@gmail.com>:
> > I need to change some arguments in Makefile.
>
> You might want to use a low-level interface to the Portage system 'ebuild':
>
> ebuild path/to/package.ebuild fetch
> ebuild path/to/package.ebuild unpack
> ===make you changes here (where unpacked, in /tmp)===
> ebuild path/to/package.ebuild compile
> ebuild path/to/package.ebuild install
> ebuild path/to/package.ebuild qmerge
>
> --
> Regards,
> Alex
>
>

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

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

* Re: [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
  2013-08-19  6:38   ` 东方巽雷
@ 2013-08-19  8:00     ` Wang Xuerui
  2013-08-19  9:19       ` Neil Bothwick
  0 siblings, 1 reply; 7+ messages in thread
From: Wang Xuerui @ 2013-08-19  8:00 UTC (permalink / raw
  To: gentoo-user

2013/8/19 东方巽雷 <dongfangxunlei@gmail.com>:
> good!  Thank you.

Manually executing phases of ebuild is certainly not a long-term
solution; changes won't persist on the next build.

You'd better patch the ebuild's src_configure section (before you
forget your exact modifications), then put them into your overlay; If
you don't have an overlay already, it's a good opportunity to create
one.


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

* Re: [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation?
  2013-08-19  8:00     ` Wang Xuerui
@ 2013-08-19  9:19       ` Neil Bothwick
  0 siblings, 0 replies; 7+ messages in thread
From: Neil Bothwick @ 2013-08-19  9:19 UTC (permalink / raw
  To: gentoo-user

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

On Mon, 19 Aug 2013 16:00:28 +0800, Wang Xuerui wrote:

> You'd better patch the ebuild's src_configure section (before you
> forget your exact modifications), then put them into your overlay; If
> you don't have an overlay already, it's a good opportunity to create
> one.

If the ebuild supports epatch, you can just create a patch for the
makefile and drop it in /etc/portage/patches/cat/pkg

If the ebuild doesn't support epatch, you can for it by putting this
in /etc/portage/env/cat/pkg

post_src_unpack() {
        cd "${S}"
        epatch_user
}


-- 
Neil Bothwick

Angular Momentum Makes The World Go 'Round

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

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

end of thread, other threads:[~2013-08-19  9:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-19  5:58 [gentoo-user] how can I pause emerge after it finish running configure or cmake and before it do any compilation? 东方巽雷
2013-08-19  6:05 ` AR (aka AleiPhoenix)
2013-08-19  6:06 ` Canek Peláez Valdés
2013-08-19  6:09 ` Alexey Mishustin
2013-08-19  6:38   ` 东方巽雷
2013-08-19  8:00     ` Wang Xuerui
2013-08-19  9:19       ` Neil Bothwick

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