You are not logged in.

#1 2014-06-18 16:04:26

Trinket
Member
Registered: 2014-03-05
Posts: 7

Can't resume compilation after unclean exit.

Hi,
I have been having this problem for a couple of weeks now, but though it was a problem in the PKGBUILD until I obtained it with another different package.
When trying to compile linux-ck, linux-pf (3.14.x) from the AUR with makepkg, whenever it exits uncleanly (for example, if I forget to enter the password to allow the modprobed database to be recalled), I can't succesfully rebuild it again, it always fails in the same spot.
The following bits may be of importance:

When applying the patches it asks me the next question (which didn't ask the first time). I tried both pressing Enter (default) and typing "y" with both options failing at the end.

patching file drivers/acpi/battery.c
patching file drivers/acpi/blacklist.c
patching file drivers/acpi/button.c
The next patch would create the file drivers/acpi/cm_sbs.c,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
patching file drivers/acpi/ec.c
patching file drivers/acpi/video.c
patching file drivers/ata/ahci.c
patching file drivers/ata/ahci.h

It continues patching stuff until the final error which exits.

patching file tools/lib/traceevent/event-parse.c
patching file tools/virtio/virtio_test.c
patching file virt/kvm/arm/vgic.c
patching file virt/kvm/async_pf.c
patching file virt/kvm/ioapic.c
==> ERROR: A failure occurred in prepare().
    Aborting...

The only way I can fix this is by deleting all the folder and redownloading all the stuff again. makepkg --clean doesn't work.

I couldn't find this error, maybe because I just didn't know how to search for it, but nothing prompted.
I would be really glad if someone could tell me a faster way to fix this error or at least understand it.

Thank you very much!

Offline

#2 2014-06-19 12:11:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,854

Re: Can't resume compilation after unclean exit.

Can't help with your error, but redownloading shouldn't be necessary.

just delete the src folder that makepkg creates.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-06-20 11:30:42

Trinket
Member
Registered: 2014-03-05
Posts: 7

Re: Can't resume compilation after unclean exit.

That works, Thank you!
I should probably research how makepkg/compilation works, because all I saw there where symbolic links to the patches and stuff...

Offline

#4 2014-06-20 11:35:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Can't resume compilation after unclean exit.

Trinket wrote:

I should probably research how makepkg/compilation works

Yes, you should.

man makepkg wrote:

       -e, --noextract                                                     
           Do not extract source files or run the prepare() function ...

All the patching is done in the prepare function.  Don't bother deleting anything.  Just use `makepkg -e` or `makepkg -ef` if a package was already started.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB