Subject: pkg/28396: firefox needs to run as root to complete installation
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <mark@mcs.vuw.ac.nz>
List: pkgsrc-bugs
Date: 11/23/2004 10:38:00
>Number:         28396
>Category:       pkg
>Synopsis:       firefox needs to run as root to complete installation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 23 10:38:00 +0000 2004
>Originator:     Mark Davies
>Release:        NetBSD 2.99.10
>Organization:
Victoria University
>Environment:
	
	
System: NetBSD lap2.home.vuw.ac.nz 2.99.10 NetBSD 2.99.10 (MCS_GEN_LAPTOP) #8: Mon Nov 1 18:27:22 NZDT 2004 mark@turakirae.mcs.vuw.ac.nz:/mnt/SAVE/build.obj/src/work/src/sys/arch/i386/compile/MCS_GEN_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
	Having installed the firefox or firefox-gtk2 packages, when you run
	it you get the following message printed:

Extension System Warning: Failed to set up default extensions files probably
because you do not have write privileges to this location. While you can run
Firefox like this, it is recommended that you run it at least once with
privileges that allow it to generate these initial files to improve start
performance. Running from a disk image on MacOS X is not recommended.

	and the Tools->Extensions menu failed to allow you to add or view
	any extensions.

	Running firefox once as root stops the messages happening and lets
	the Extensions facility work.
	
>How-To-Repeat:
	run firefox, observe message and failure of extensions facility to
	work.
	
>Fix:
	
	Don't know the best fix but the below shar file contains the files that
	are created in /usr/pkg/lib/firefox when firefox is first run as root
	and installing these files is enough to stop the problem.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	defaults.ini
#	components.ini
#	extensions/Extensions.rdf
#	extensions/installed-extensions-processed.txt
#	extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
#
echo x - defaults.ini
sed 's/^X//' >defaults.ini << 'END-of-defaults.ini'
X[Extra Files]
XCount=0
END-of-defaults.ini
echo x - components.ini
sed 's/^X//' >components.ini << 'END-of-components.ini'
X[Extra Files]
XCount=0
END-of-components.ini
echo x - extensions/Extensions.rdf
sed 's/^X//' >extensions/Extensions.rdf << 'END-of-extensions/Extensions.rdf'
X<?xml version="1.0"?>
X<RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#"
X         xmlns:NC="http://home.netscape.com/NC-rdf#"
X         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
X  <RDF:Description RDF:about="rdf:#$tLow+1"
X                   em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
X                   em:minVersion="1.0"
X                   em:maxVersion="1.0" />
X  <RDF:Description RDF:about="urn:mozilla:theme:{972ce4c6-7e08-4474-a285-3208198ce6fd}"
X                   em:version="2.0"
X                   em:name="Firefox (default)"
X                   em:description="The default theme"
X                   em:creator="Gerich and Horlander"
X                   em:internalName="classic/1.0"
X                   em:locked="true"
X                   em:contributor="Mozilla Contributors">
X    <em:targetApplication RDF:resource="rdf:#$tLow+1"/>
X  </RDF:Description>
X  <RDF:Seq RDF:about="urn:mozilla:theme:root">
X    <RDF:li RDF:resource="urn:mozilla:theme:{972ce4c6-7e08-4474-a285-3208198ce6fd}"/>
X  </RDF:Seq>
X  <RDF:Seq RDF:about="urn:mozilla:extension:root">
X  </RDF:Seq>
X</RDF:RDF>
END-of-extensions/Extensions.rdf
echo x - extensions/installed-extensions-processed.txt
sed 's/^X//' >extensions/installed-extensions-processed.txt << 'END-of-extensions/installed-extensions-processed.txt'
Xtheme,{972ce4c6-7e08-4474-a285-3208198ce6fd}
END-of-extensions/installed-extensions-processed.txt
echo x - extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
sed 's/^X//' >extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf << 'END-of-extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf'
X<?xml version="1.0"?>
X
X<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
X     xmlns:em="http://www.mozilla.org/2004/em-rdf#">
X
X  <Description about="urn:mozilla:install-manifest">
X    <em:id>{972ce4c6-7e08-4474-a285-3208198ce6fd}</em:id>
X    <em:version>2.0</em:version>
X    
X    <!-- Target Application this theme can install into, 
X        with minimum and maximum supported versions. --> 
X    <em:targetApplication>
X      <Description>
X        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
X        <em:minVersion>1.0</em:minVersion>
X        <em:maxVersion>1.0</em:maxVersion>
X      </Description>
X    </em:targetApplication>
X    
X    <!-- Front End MetaData -->
X    <em:name>Firefox (default)</em:name>
X    <em:description>The default theme</em:description>
X
X    <em:locked>true</em:locked>
X
X    <!-- Front End Integration Hooks (used by Theme Manager)-->
X    <!-- XXXben - preprocess this file to use different info for mac version -->
X    <em:creator>Gerich and Horlander</em:creator>
X    <em:contributor>Mozilla Contributors</em:contributor>
X
X    <em:internalName>classic/1.0</em:internalName>
X  </Description>      
X
X</RDF>
END-of-extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
exit


>Unformatted: