Cmake build problem workaround

Ryan Schmidt ryandesign at macports.org
Tue Jun 19 08:13:46 UTC 2018


On Jun 18, 2018, at 14:20, Randolph M. Fritz wrote:

> This is what I ended up with. I don't like it at all.
> 
> pre-destroot {
>     # This fixes what may be a cmake error
>     catch {
> 	# look for DESTDIR in the fixup_bundle arguments
> 	exec grep -q {fixup_bundle.*DESTDIR} ${workpath}/build/InstallRules/dependencies.cmake
>     } res opt
>     # if it's not present, add it
>     if [string equal "$res" "child process exited abnormally"] {
>         reinplace "/fixup_bundle(\"/s//&\$ENV{DESTDIR}/" ${workpath}/build/InstallRules/dependencies.cmake
>     }
> }

Could you share your complete portfile with us? Maybe we can figure out why the error is occurring and provide a better workaround.



More information about the macports-dev mailing list