directories not owned by a package

…and I got immediately another problem:

The plugin I’m trying to build should be installed in:

%files
%defattr(-,root,root,-)
%{_libdir}/mozilla/plugins/*.so

The build log says:

GarminPlugin-0.3.3-16.1.i586.rpm: directories not owned by a package:
 - /usr/lib/mozilla
 - /usr/lib/mozilla/plugins
   64.379144] SysRq : Power Off

…which ends in a build failure. How can I capture this?

Thx
Ax

Hi
On openSUSE it’s normally /usr/%_lib/browser-plugins/ not what your
seeing. If you can run configure then need to use this… else manually
install it eg;


install -D -m 0755 plugin_blah.so %{buildroot}/usr/%_lib/browser-plugins/plugin_blah.so


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 1 day 22:10, 5 users, load average: 0.19, 0.15, 0.15
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Malcolm,
thanks for your hints.
Indeed there is a configure call during the build process:

%configure --with-ticpp-libdir=%{_libdir} --with-ticpp-incdir=%{_includedir} --with-garmintools-incdir=%{_includedir} --with-garmintools-libdir=%{_libdir}

How can I find out what the variable for the target /usr/%_lib/browser-plugins/ is?
Sorry to ask, I’m not the owner of the Plugin, nor a programmer, just trying to adapt…

hi

try put the two directories in %files


%files
%defattr(-,root,root,-)
%{_libdir}/mozilla/plugins/*.so
/usr/lib/mozilla
/usr/lib/mozilla/plugins

if this can help

bye

Hi
You need to use the %dir directive if they aren’t owned by the package,
else use the upstream package that does own the directories in your
BuildRequires.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 1 day 11:51, 4 users, load average: 0.57, 0.44, 0.45
GPU GeForce 8600 GTS Silent - Driver Version: 280.13