Hi On 16/08/17 16:10, David C. Rankin wrote:
On 08/16/2017 01:30 AM, David C. Rankin wrote:
New build service error on package that built fine 5 days ago:
[ 42s] gtkwrite-0.1.6-5.1.x86_64.rpm: directories not owned by a package: [ 42s] - /usr/share/gtkwrite [ 42s] - /usr/share/gtkwrite/img [ 42s] [ 42s] lamb67 failed "build gtkwrite.spec" at Wed Aug 16 05:09:18 UTC 2017. [ 42s] [ 42s] ### VM INTERACTION START ### [ 45s] [ 36.694037] reboot: Power down [ 45s] ### VM INTERACTION END ### [ 45s] [ 45s] lamb67 failed "build gtkwrite.spec" at Wed Aug 16 05:09:21 UTC 2017. [ 45s]
What is lamb67? (it should be fed to the wolves...)
lamb67 is the name of the machine used to build your package the actual error is slightly above [ 42s] gtkwrite-0.1.6-5.1.x86_64.rpm: directories not owned by a package: [ 42s] - /usr/share/gtkwrite [ 42s] - /usr/share/gtkwrite/img
Sorry for the Title Typo, it's lamb67, what is that? Package builds just fine locally, and built fine before the /usr/share/gtkwrite/img directory was added. What is 'directories not owned by a package:'
(the directory is owned by whoever git-hub (at git-hub) sets the directory ownership to, I have no control over that...)
Is there something else I need to do in the spec other than:
%install # %makeinstall install -m 755 -d $RPM_BUILD_ROOT/%{_bindir} install -m 755 bin/%{name} $RPM_BUILD_ROOT/%{_bindir} install -m 755 -d $RPM_BUILD_ROOT/usr/share/gtksourceview-2.0/styles install -m 644 styles/gtkwrite.xml $RPM_BUILD_ROOT/usr/share/gtksourceview-2.0/styles install -m 644 styles/gtkwrite_light.xml $RPM_BUILD_ROOT/usr/share/gtksourceview-2.0/styles install -m 755 -d $RPM_BUILD_ROOT/usr/share/gtkwrite/img install -m 644 img/gtkwrite.png $RPM_BUILD_ROOT/usr/share/gtkwrite/img install -m 644 img/gtkwrite.ico $RPM_BUILD_ROOT/usr/share/gtkwrite/img
<< last dir and two files above are new >>
%clean rm -rf %{buildroot}
%files %defattr(-,root,root) /usr/bin/gtkwrite /usr/share/gtksourceview-2.0/styles/gtkwrite.xml /usr/share/gtksourceview-2.0/styles/gtkwrite_light.xml /usr/share/gtkwrite/img/gtkwrite.png /usr/share/gtkwrite/img/gtkwrite.ico %doc README.md gpl-2.0.txt
Unless /usr/share/gtkwrite/ is written to by other packages as well you should just list that directory rather then all the files in it but best practice would be to use the "%{_datadir}" macro instead so you would end up with something like: %files %defattr(-,root,root) %doc README.md gpl-2.0.txt %{_bindir}/gtkwrite %{_datadir}/gtksourceview-2.0/ %{_datadir}/gtkwrite/ Unless %{_datadir}/gtksourceview-2.0/ can be written too by multiple packages. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B