uyuni-project / tetra

A tool to ease Java software packaging
MIT License
19 stars 10 forks source link

quilt setup does not work with tetra generated spec files #11

Open mcalmer opened 9 years ago

mcalmer commented 9 years ago

Using quilt for adding patches is very popular in SUSE. But tetra generated spec files do not setup correctly:

spark$> quilt setup -v spark.spec
[...]
+ cp -Rf /usr/share/tetra ../kit
cp: cannot stat '/usr/share/tetra': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.zhjw9f (%prep)

I wonder if a "copy" is really needed. Maybe a symlink would be enough?

 - cp -Rf /usr/share/tetra ../kit
 + ln -sf /usr/share/tetra ../kit

This would work with quilt.

moio commented 9 years ago

Copy is really needed for some Maven projects that require writing to the kit/m2 directory. I could not find out how to set permissions or other tricks in order to have them editable otherwise (from the kit package), but I admit this is a hack.

Unless someone comes up with a different idea I guess cp is a safe default behavior, and of course quilt users with non-problematic pomfiles can always use ln instead.