For those who need a sed:
find -type f \( -name 'CMakeLists.txt' -or -name '*.cmake' \) -exec sed -e 's/COMMAND python/COMMAND python2/g' -i {} \; find compizconfig/ccsm -type f -exec sed -e 's|^#!.*python|#!/usr/bin/env python2|g' -i {} \;
For a patch see the attachment.
Tested in Arch Linux. Should also work for Ubuntu(not tested).
For those who need a sed:
find -type f \( -name 'CMakeLists.txt' -or -name '*.cmake' \) -exec sed -e 's/COMMAND python/COMMAND python2/g' -i {} \; *python| #!/usr/ bin/env python2|g' -i {} \;
find compizconfig/ccsm -type f -exec sed -e 's|^#!.
For a patch see the attachment.
Tested in Arch Linux. Should also work for Ubuntu(not tested).