Closed ilpssun closed 11 years ago
Building on Ubuntu is quite hard, as you probably noticed.
I advise you to use my Ubuntu package. You can add my PPA: https://launchpad.net/~fat-lobyte9/+archive/ppa-public and install xul-ext-gnome-keyring
.
Alternatively, you can check out my GitHub branch: https://github.com/fat-lobyte/mozilla-gnome-keyring/tree/ubuntu You can build it from source by following these steps:
Install the packages cdbs, debhelper (>= 7), mozilla-devscripts (>= 0.28), firefox-dev (>= 10.0), libgnome-keyring-dev
sudo apt-get install build-essential cdbs debhelper mozilla-devscripts firefox-dev libgnome-keyring-dev
Change to the source directory and add my repo as a remote:
cd /path/to/mozilla-gnome-keyring
git remote add github-fat-lobyte https://github.com/fat-lobyte/mozilla-gnome-keyring.git
Get refs from my remote
git fetch github-fat-lobyte
Check out my ubuntu branch
git checkout ubuntu
Issue the following command:
debuild -us -uc
You should now have a file called xul-ext-gnome-keyring_0.6.4~git20120725-0ubuntu2_amd64.deb
in your parent directory.
sudo dpkg -i ../xul-ext-gnome-keyring_0.6.4~git20120725-0ubuntu2_amd64.deb
@infinity0: Maybe you could put a link in your Repo description or the README to the ubuntu branch so people won't have to go through the Ubuntu build process themselves?
I've added it to the README, and will close this bug if everyone is happy about that. It is right at the bottom but I don't really see any other appropriate place. Perhaps a separate README.dev file?
I think the link in the README should be enough. If people run into build errors, they are likely to check the README for solutions.
I agree. The solution with the ReadMe file is fine.
OK! Closing then. :)
The extension does not build out-of-the-box on Ubuntu 12.04. I managed to piece together a solution but I thought it would be nice to have all related issues collected in one place to make it easier for others to build the extension.
My system is currently running Ubuntu 12.04 with thunderbird 15.0+build1-0ubuntu0.12.04.1 and firefox 15.0.1+build1-0ubuntu0.12.04.
xulrunner-dev
package mentioned in the readme):firefox-dev
thunderbird-dev
libgnome-keyring-devel
export XUL_CFLAGS="-I/usr/include/thunderbird -I/usr/include/thunderbird/nspr"
export XUL_LDFLAGS="-L/usr/lib/thunderbird-devel/lib -lxpcomglue_s -lxul -lxpcom -lmozalloc -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
export XPCOM_ABI_FLAGS="-Wl,-rpath=/usr/lib/thunderbird-devel/lib"
xpcom_abi
segfaults:export PLATFORM="Linux_x86_64-gcc3"
(obviously, you have to adjust this if you have a 32-bit OS)make
mozilla-gnome-keyring-*.xpi
file into thunderbird/firefoxstring
key in the advanced configuration. To do so, right-click in the dialog and choose “New → String”. Create the keyextensions.gnome-keyring.keyringName
and set the value to the name of the keyring to use. For the login keyring, uselogin
. The default ismozilla
.BTW: I tested this only with tunderbird.