mozilla-firefox.spec -r DEVEL contains in %install:
%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins

Definition of this macro from /usr/lib/rpm/rpm.build:
%browser_plugins_add_browser(p:b:a:) \
        browser=%1.%{!-a:%{_target_base_arch}}%{-a*} \
        install -d 
$RPM_BUILD_ROOT%{_browserpluginsconfdir}/{blacklist,browsers}.d \
        ln -s %{-p*} 
$RPM_BUILD_ROOT%{_browserpluginsconfdir}/browsers.d/$browser \
        
blacklist_file=$RPM_BUILD_ROOT%{_browserpluginsconfdir}/blacklist.d/$browser.blacklist
\
        echo '# This file format is shell globs at base dir of plugindir' >
$blacklist_file \
        %{-b:cat >> $blacklist_file %{-b*}} \
%{nil}

'rpmbuild -bi --short-circuit mozilla-firefox.spec' tries to execute:
+ ln -s 
/tmp/mozilla-firefox-3.0-root-qrczak/etc/browser-plugins/browsers.d/mozilla-firefox.i386
ln: creating symbolic link `./mozilla-firefox.i386': File exists

One argument of ln is missing, the one corresponding to %{-p*}. Why?

rpm-5.1.0-0.1.athlon
rpm-build-macros-1.461-1.noarch

$ rpm --eval '%browser_plugins_add_browser mozilla-firefox -p
/usr/lib/mozilla-firefox/plugins'

        browser=mozilla-firefox.i386
        install -d $RPM_BUILD_ROOT/etc/browser-plugins/{blacklist,browsers}.d
        ln -s  $RPM_BUILD_ROOT/etc/browser-plugins/browsers.d/$browser
        
blacklist_file=$RPM_BUILD_ROOT/etc/browser-plugins/blacklist.d/$browser.blacklist
        echo '# This file format is shell globs at base dir of plugindir' >
$blacklist_file

-- 
Marcin Kowalczyk
[EMAIL PROTECTED]
http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to