adapted for debian, remove duplicate patch