Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29547
Collapse All | Expand All

(-)official/faq.xml (-12 / +27 lines)
Lines 518-535 Link Here
518
518
519
        <section>
519
        <section>
520
                <title>I want to perform the <c>./configure</c> step myself.  Can I?</title>
520
                <title>I want to perform the <c>./configure</c> step myself.  Can I?</title>
521
                <body><p>
521
                <body>
522
                Yes, but it is not trivial.  First do <c>man ebuild</c> followed by
522
<p>
523
                <c>ebuild foo-x.y.z.ebuild unpack</c>.  Then <c>cd</c> to 
523
Yes, but it is not trivial, and the next method only works when it is a simple
524
                <path>/var/tmp/portage/foo-x.y.z/work</path>.  You can manually perform
524
ebuild (i.e. just <c>./configure</c> and <c>make &amp;&amp; make install</c>).
525
                the <c>./configure</c> and <c>make</c> steps yourself (you'll have to do
525
Be sure to read the ebuild itself to see how Gentoo handles it.
526
                both, since Portage does not separate the configure and build steps).  To
526
</p>
527
                have Portage finish the installation (so that you can easily remove it later,
527
528
                should you desire to do so, and it will be registered in Portage as a possible
528
<p>
529
                dependency) you first need to <c>touch /var/tmp/portage/foo-x.y.z/.compiled</c>
529
Start with unpacking the ebuild: <c>ebuild
530
                (tricking Portage into thinking that <c>ebuild foo-x.y.z.ebuild compile</c> has
530
/usr/portage/&lt;category&gt;/&lt;package&gt;/&lt;ebuild&gt; unpack</c>.
531
                completed), followed by <c>ebuild foo-x.y.z.ebuild merge</c>.
531
</p>
532
                </p></body>
532
533
<p>
534
Next, go to <path>/var/tmp/portage/&lt;package&gt;-&lt;version&gt;/work</path>.
535
Inside it you'll find the unpacked sources. Execute the steps you need to
536
perform to configure and compile the package.
537
</p>
538
539
<p>
540
When finished, execute <c>touch
541
/var/tmp/portage/&lt;package&gt;-&lt;version&gt;/.compiled</c> to trick Portage
542
into thinking it configured and compiled the package. Then finish up with
543
<c>ebuild /usr/portage/&lt;category&gt;/&lt;package&gt;/&lt;ebuild&gt;
544
merge</c>.
545
</p>
546
547
    </body>
533
        </section>
548
        </section>
534
549
535
        <section>
550
        <section>

Return to bug 29547