You are not logged in.
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.hIt 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
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
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
I should probably research how makepkg/compilation works
Yes, you should.
-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