Closed yurivict closed 5 years ago
Again a compromise between doing things right and making things actually work. These 'rm' commands are there to clean up old installs which did the wrong thing. It's easier for me to be slightly sloppy than to reply to loads of confused newbies.
I have wrapped this in a if(NOT PACKAGING_MODE) now to at least be nice when building binary packages.
But you 'rm' in wrong directories. It doesn't install into /usr/local
. It installs into /usr/ports/math/cadabra2/work/stage/usr/local
.
So there are 2 problems:
-f
flag.At some point in the past (don't ask me when) it installed in /usr/local
because of an incorrect cmake script. These lines are trying their best to repair that. There's something similar happening in core/CMakeLists.txt where I rm the cadabra2.so module from the python site path (we used to install there, but it leads to endless trouble, so we now just set the PYTHONPATH, but we still need to remove any leftovers from a previous install). I'll add '-f' though.
Actually, '-f' is already there.
Direct writes into /usr/local are considered to be a violation and builds fail because of this in the FreeBSD package builder. This one probably won't trigger it, because it removes nonexistent files.
Build can't touch anything under
${PREFIX}
, only under${DESTDIR}${PREFIX}
.