[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Recompile source after error



Thomas Adam <thomas_adam16@yahoo.com> writes:

First here's the real answer to the question. There is a document
on the debian webpage called the "Debian New Maintainers' Guide".
It describes the basics of making a deb package. The part you want
is the "quick rebuild" of the "build" chapter at:

http://www.debian.org/doc/maint-guide/ch-build.en.html#s-quickrebuild

        "6.2 Quick rebuild

        With a large package, you may not want to rebuild from scratch
        every time while you tune a detail in debian/rules. For
        testing purposes, you can make a .deb file without rebuilding
        the upstream sources like this:

               fakeroot debian/rules binary

        Once you are finished with your tuning, remember to rebuild
        following the above, proper procedure. You may not be able to
        upload correctly if you try to upload .deb files built this
        way."

And now for the reply to the reply,

> --- * Tong* <sun_tong_001@yahoo.com> wrote: 
>> Hi, 
>> 
>> I was trying to compile the emacs from source deb package. The
>> compilation
>> stopped in the middle because of some error. 
>
> Well, let' see:
>
> a) Why on earth are you doing this? What could "the kitchen sink" of all
> editors possible *not* have pre-compiled into it that would cause you to
> want to re-compile emacs? The packaged binary works wonders (if you like
> Emacs), and there are a bazillion addons if the core-set wasn't enough for
> you.

He just wants to. Maybe he wants to add support for mongolian, or compile
in gtk support, etc.

> b) Since you don't bother saying what the errors were, how the hell can
> anyone help?

He doesn't want help with the simple error, he can fix the error, he
wants to know how he can resume compilation without it restarting from
the beginning.

>> If I use dpkg-buildpackage, everything will be started all over again.
>> Which command I can use to start from where I was left? 
>
> If you are unfamiliar with compiling applications you couldn't have picked
> a harder application.

He isn't unfamiliar with compiling applications, he's unfamiliar
with compiling debs froms source debs.

>> I want to duplicate the error, fix it and continue on. 
>
> That statement is contradictory. I suggest you install the binary, and
> stop this idiocy.

He wants to rerun the compilation from the point it failed, note the
error, fix the error, then rerun the compilation from that point. He
doesn't want compilation restarting each time.

Bijan
-- 
Bijan Soleymani <bijan@psq.com>
http://www.crasseux.com



Reply to: