Package won't compile: cp: not replacing

A package compiles just fine for Leap, but fails to compile for Tumbleweed. The end of build log says:

[ 15s] + for _file in $_files
[ 15s] + cp -an /usr/share/vala-0.52/vapi/gnome-desktop-3.0.deps vapi/pantheon-desktop-3.0.deps
[ 15s] cp: not replacing ‘vapi/pantheon-desktop-3.0.deps’
[ 15s] error: Bad exit status from /var/tmp/rpm-tmp.15oM8s (%prep)

Build log: Build Log for Package gala (Project home:asdhio:branches:X11:Pantheon:Branch) - openSUSE Build Service

@asdhio cp with a -n means no-clobber (overwrite), so it exits… fix the meson install section to install the file rather than copy. I suspect the meson build is different in Tumbleweed and creates/installs the file earlier on…

1 Like