Axel Beckert <[EMAIL PROTECTED]> writes:
> On Sun, Apr 20, 2008 at 04:25:18AM +0200, Axel Beckert wrote:
>> On Sun, Apr 20, 2008 at 11:54:51AM +1000, Brian May wrote:
>> > > as I may have already mentioned, I want to package Conkeror for
>> > > Debian. Since XULRunner 1.9 is now in Debian Experimental on more than
>> > > a few architectures, I now started with packaging
>> > Are there still compatibility issues with the latest version of
>> > XULRunner 1.9?
>>
>> Debian Experimental currently has 1.9b5 and it seems to work fine with
>> conkeror.
> Must correct myself here:
> While calling "xulrunner-1.9 application.ini" still works fine and
> starts a conkeror, "xulrunner-1.9 --register-global" and
> "xulrunner-1.9 --register-user" throw the following error:
> Error: unrecognized application.ini path.
> strace shows that xulrunner-1.9 tries to read "--register-global" as
> application.ini file, e.g. tries to read
> /usr/lib/conkeror/--register-global
> Any idea how to register conkeror with XULRunner 1.9b5?
Note that it isn't an issue of registering Conkeror with xulrunner, but
rather of registering xulrunner with the system. (The --register-user
command writes to ~/.gre.d/<version-name>, and then any version of the xulrunner
executable can find all other versions, so that a version matching the
constraints specified in the application's application.ini file can be
found. Similarly, --register-global writes to
/etc/gre.d/<version-name>.) Presumably, the Debian package for
xulrunner already takes care of registering xulrunner as needed, so you
don't have to worry about that. Perhaps because the package takes care
of registering it, they disabled the --register options.
This may not be very applicable to Debian packaging, but also note that
another alternative to registering xulrunner is to simply set things up
so that in the directory containing application.ini, there is a
directory xulrunner containing xulrunner (e.g. the contents of a nightly
snapshot, or the contents of /usr/lib/xulrunner perhaps), or
alternatively a symlink xulrunner that points to a directory containing
xulrunner.
> P.S. to Jeremy: Will make one single binary package since
> --install-app generates an ELF binary instead of a shell script with
> "/usr/bin/xulrunner-1.9 /usr/lib/conkeror/application.ini" as I
> expected.
I think a single package would be the most convenient for users, but
note that --install-app doesn't actually do anything very fancy. The
ELF executable you are seeing is actually just an exact copy of
xulrunner-stub. There is no need to actually run --install-app. I'd
recommend the following procedure for installing:
Install everything to e.g. /usr/lib/conkeror. Copy everything in the
Conkeror repository to there except:
Skip:
build.sh
install.sh
Info.plist (only for Mac OS X)
Makefile
spawn-process-helper.c (copy over the built spawn-process-helper
executable instead)
Additionally, copy xulrunner-stub over as
e.g. /usr/lib/conkeror/conkeror.
If the appropriate environment variables are not set globally on Debian,
perhaps instead copy xulrunner-bin as conkeror-bin, and create a shell
script /usr/lib/conkeror/conkeror that sets
LD_LIBRARY_PATH and MOZ_PLUGIN_PATH as appropriate.
--
Jeremy Maitin-Shepard
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror