You are not logged in.

#1 2022-11-11 16:36:09

fish_monster
Member
Registered: 2022-02-21
Posts: 15

Reversed (or previously applied) patch detected! Skipping patch.

When installing macaulay2 I come across the following problem:

Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
patching file M2/Macaulay2/e/monoid.cpp
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file M2/Macaulay2/e/monoid.cpp.rej
==> ERROR: A failure occurred in build().
    Aborting...

What does it mean that there is a reversed (or previously applied) patch detected and how do I fix this problem?

Edit: I cannot find this file M2/Macaulay2/e/monoid.cpp. In fact, the directory Macaulay2 does not exist.

Last edited by fish_monster (2022-11-11 16:40:29)

Offline

#2 2022-11-11 16:53:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Reversed (or previously applied) patch detected! Skipping patch.

As the error says, the patch is already applied. https://github.com/Macaulay2/M2/commit/ … 203be2b861

This is a -git package, even though it's not labeled as such. The source is changing under it all of the time, patches are risky and need watched.

Offline

#3 2022-11-12 10:27:37

fish_monster
Member
Registered: 2022-02-21
Posts: 15

Re: Reversed (or previously applied) patch detected! Skipping patch.

Thanks. But it says that it does not build, so how can I fix this?
(Sorry, I'm still new to linux and github.)

Edit: the solution is to comment the line in PKGBUILD instructing the patch.

Last edited by fish_monster (2022-11-14 11:01:37)

Offline

Board footer

Powered by FluxBB