Search Results: "Neil Williams"

8 August 2007

Neil Williams: Requesting adoption of glipper

RFA: glipper -- A clipboard manager for GNOME #436550.

Glipper is currently my package in Debian at 0.95.1-3 and that version
is written in C and uses a binary data file which has raised one bug
(#436078 - wishlist severity). It currently has no other bugs.

There is now a
new release
that closes this bug, my problem is that
v1.0 is a ground-up rewrite in Python! Essentially, glipper v1.0 is a
completely different package internally. (Previous translations have
also been lost.)

I have no python experience, no python packages and no ability to do
anything if (when) python code goes wrong. I don't want to have to
learn python just for glipper (don't have time).

So - I don't see what I can do except request adoption of glipper, it
just seems so weird to leave a package which is active while I am also
active.

Anyone fancy taking on glipper?

I don't think there's any point retaining the old C package - that code
is already dead upstream.

Currently, there is no RCS for the debian packaging for glipper - I was
using CDBS and the current watch file needs editing to look for a
tar.bz2 instead of the previous tar.gz.

There are two issues with migrating from 0.95.1 to 1.0:
  1. the ~/.glipper directory needs to be removed.

  2. Glipper v1.0 is also now GNOME only, support for other window managers
    has not been implemented in the python version.


7 August 2007

Neil Williams: translation support script

Just a little script that I've found useful when working out which packages contain translations needing an update - WITHOUT regenerating the POT file unnecessarily and thereby messing up CVS/SVN/RCS status of the PO files themselves. (You still need to regenerate the POT file when the strings actually change but this script is useful when receiving updated PO files.) The script checks each PO file and omits those that are up to date.

Add your own set of working directories.


#!/usr/bin/perl -w
use strict;

print "emdebian-tools\n";
chdir "/opt/working/emdebian/svn/current/host/trunk/emdebian-tools/trunk/debian/";
&check
print "deb-gview\n";
chdir "/opt/working/deb-gview/";
&check
print "pilot-qof\n";
chdir "/opt/working/pilot-qof/";
&check

sub check

opendir (PO, "po") or die ("Cannot open po directory. $!\n");
my @files = grep(/\.po$/, readdir PO);
closedir (PO);
foreach my $po (@files)

my $msg= msgfmt -c --statistics po/$po 2>&1 grep "[fuzy]" ;
print "$po: $msg" if ($msg ne "");
undef($msg);

unlink ("messages.mo");


1 August 2007

Neil Williams: epiphany-browser extensions

Baby mentions using epiphany-browser as the default Gnome browser.
I did this a few weeks ago (when I had problems with Galeon). The most important thing to do with epiphany is:
$ sudo apt-get install epiphany-extensions

That gives epiphany a whole new lease of life. Galeon bookmarks can be imported and there are wonderful things called Smart Bookmarks. Like Galeon, these can be put on the toolbar with input boxes so that an entry in the input is substituted into the URL of the bookmark. Firefox/iceweasel has these for searching but epiphany allows a much more useful customisation. I use them to create several very useful smart bookmarks:

That makes it easy to look up particular packages and buildd status - just enter the package name or bug number in an input box on the toolbar! Lovely. You can add as many as you can fit into your window.
Well worth installing - and customising. Thanks epiphany.

31 July 2007

Neil Williams: pilot-qof and gpe-expenses new releases

Minor bug fix and translation update release for pilot-qof and what was originally going to be a similar upload for gpe-expenses - until I decided that the PO files should really be split because apps using the expenses object library didn't need translated strings from the gpe-expenses application.
So what I learnt on gpe-cash has been put into place for gpe-expenses. A few consequences:

Neil Williams: More on multiple po directories

Further to problems with
gettext and split po files, glib_gettextize turns out not to be usable with more than one po/ directory. I've just converted gpe-expenses to multiple POT files (for the same reasons as gpe-cash) and I'm due to make the upstream release and upload later. glib_gettextize needs to be replaced by gettextize but this is not problem free. gettextize is noisy and keeps tampering with my build, putting in things like config.rpath and forcing -I m4 additions when that is already included elsewhere. So ./autogen.sh now supports gettextize but stops it running twice. I'm storing the gettextize support files in CVS just to allow the post-gettextize environment to be retained without needing to deal with the aftermath of gettextize --force.
Also, one tweak is needed to the Makevars file in the new directory - change the subdir po location to po-lib or whatever you use.
The changes will show up in gpe-expenses CVS later.

29 July 2007

Neil Williams: Multiple po directories in a single upstream package

I've been struggling with gettext most of the day but I've finally got the solution! gpe-cash builds an application and a shared library (with API, -dev, -dbg and -doc). Source files for the application contain translatable strings, as do source files for the shared library. Unable to find documentation for how this should work with gettext, I got no end of path related errors.
Here's the clue: Keep ./po/ for the $PACKAGE.pot file, add ./po-foo/ for the second POT file. My mistake was to try to use po/ and src/po or src/po and src/foo/po.
Then, remove the symlinked Makefile.in.in from po-foo/ and copy the file from po/ so that the po-foo/Makefile.in.in can be edited to change the value of GETTEXT_PACKAGE to the alternate file.
Then, add the LINGUAS file to each po directory.
Add po-foo/ to the configure.ac output.
I also switched from glib_gettextize to gettextize (switching the configure.ac macros at the same time). I'm not sure if this is strictly necessary (and it added quite a lot of stuff to both po/ directories) but I'm not keen on breaking what I've just spent all day fixing!

Committed to cashutil SVN: r619.

24 July 2007

Neil Williams: Use quilt in emdebian-tools?

I've only taken a quick look at the quilt documentation but the
following thoughts occur to me:
  1. emsource / emdebuild are similar to quilt and in some ways, I have
    reimplemented a subset of quilt in these scripts.

  2. emsource handles 'quilt add' provided that changes are confined to
    files in debian/ (including new patches added to debian/patches).
    However, I was unable to find out how quilt handles unchanged files.
    e.g. emdebuild skips creating the patch if the diff is empty - does
    quilt do the same for files that have been added?

  3. quilt is targetted at "upstream builds" and it will require various
    config settings to get quilt to both keep patches outside the package
    source directory AND handle situations where the package itself uses
    quilt with a different series of patches. emsource and emdebuild are
    completely separate from any existing patch method.

  4. quilt does NOT make autobuilding emdebian packages easier. Conflicts
    are meant to be resolved by hand (e.g. emdebian-changelog.patch). A
    bespoke method can embed specific logic on handling such issues that a
    general method like quilt cannot.

  5. quilt could be *almost* as transparent as the current method (which
    hides nearly all patch management within emsource and emdebuild) but
    would still require a wrapper to add support for keeping the patches in
    SVN.



Hmm. Think I'll stick for now. You can have too many nested tools.

18 July 2007

Neil Williams: gpe-calendar fixed.

Many thanks to Moray for uploading the required library updates for this - gpe-calendar RC bug is finally fixed in a new upstream version and dependencies: 0.90-1 which I have just uploaded to incoming.

v0.90 is a substantial rewrite from 0.72 and has much better memory handling.

17 July 2007

Neil Williams: gnucash without glib1

More than a year after gnucash upstream made the transition from glib1 to glib2, Debian has finally been able to do the same with the binaries. Problems in g-wrap and gnucash had led to libglib1.2 remaining as part of the dependency chain of gnucash as well as libglib2.0-0 (build-deps and runtime).

NMU's of g-wrap and gnucash have finally removed the last vestiges of libglib1.2 from my systems. Yippee!

My Overview showing the incoming packages which will migrate into the NMU section in due course.

g-wrap

gnucash

11 July 2007

Neil Williams: gpe-cash and GPL3

Made some progress with gpe-cash today - fixing compiler warnings, stripping out yet more source code and fixing the debian packaging. It does build from SVN but it needs libqof1 >= 0.7.3 which is an unreleased version from QOF CVS.

gpe-cash.

It's now down to < 1Mb installed binaries with less than 500kb of additional libraries (liqof1, libsqlite) compared to a basic Gtk installation. It may creep up to 2Mb all-in by the time the rest of the Gtk code is complete but an Emdebian build should be able to cut that back towards 1.5Mb or so, installed, by dropping the docs. The SQLite backend is fully functional and the default backend. An optional libxml2 backend adds libxml2 and bumps the size requirements substantially but is worth using on the desktop as it adds support for a command-line mode that combines SQL-type queries with XML results. (Eventual plan is to rsync the sqlite from the handheld and use XSL to generate reports etc.) Still a lot smaller than any other double-entry financial package I can find and with none of the dependency problems of the original GnuCash, despite using the same objects. Managed to remove the need for GConf too which is quite handy for an embedded application.

gpe-cash will be my first GPL3 upstream - all the code I'm forking from GnuCash is GPLv2 or later, as is QOF, and GPL3 code can be linked against the LGPL2 or later libgpewidget so I'm making the new Gtk frontend GPL3 or later and I will eventualy release the whole thing under the GPL3 "or later". Thanks to Joe Smith and Anthony W. Youngman for their help with all that. I had it nearly right, just tweaked debian/copyright a bit.

Actually spent a fair bit of time migrating my upstream projects to Anjuta2 and getting used to the new interface. It is a bit twiddly at times and one or two bits are annoying (bit too much eye candy for my liking - repetition of labels and buttons) but overall it's a lot better than when v2 was first uploaded. The integral DevHelp window is handy. I'm still waiting for the svn plugin though and I've no idea what is going wrong with the anjuta manual. It is being installed and yelp can load it when passed the URL directly but I can't get it to show in the normal Gnome Help browser lists - only the man pages show.

3 July 2007

Neil Williams: DebConf7 keysigning

I've generated a springgraph of the DebConf7 keysigning keyring after refreshing the keys today. Thumbnails are available now. Click the thumbnail to see the full image. I've tried to correlate the thumbnails so that the overall area is similar.

For some reason, the images don't show via my blog.

For comparison, the springgraph before DebConf:

http://gnupg.neil.williamsleesmill.me.uk/ksp-spring.png

(The main image is much larger - may be best to wget it and view it locally.)


http://gnupg.neil.williamsleesmill.me.uk/ksp-spring-thumb.png


The change after DebConf:

http://gnupg.neil.williamsleesmill.me.uk/afterksp.png


http://gnupg.neil.williamsleesmill.me.uk/afterksp-thumb.png

(a much smaller final image).

2 July 2007

Neil Williams: deb-gview remote .deb viewer

This isn't new, I just thought it was worth noting because it is useful to show an example of a packaging principle when sponsoring new maintainers etc.

deb-gview has been extended via GnomeVFS to view the contents of any .deb in the archive without having to install the package and without having to separately download the .deb itself. Either copy the link address and load the .deb on the command line or configure your browser to use deb-gview as a helper for .deb files (right click a .deb and select open with... or similar). Then just double click on any text file within the .deb to view it. Also works with manpages and images inside the .deb, other filetypes can be supported via a config file. Supports viewing a .deb for any architecture, not just your own (useful to see if the autobuilders have really done what you expected with generated files).

e.g. when advising on using README.Debian, it was useful to give a simple URL to allow the user to easily see the format:

$ sudo apt-get install deb-gview
$ deb-gview http://ftp.uk.debian.org/debian/pool/main/g/gpe-shield/gpe-shield_0.9-1_amd64.deb

The URL itself comes from viewing the package on packages.debian.org, clicking any architecture and right clicking the name of whichever mirror you want to use (or configure the browser as above).

Also supports .changes files so you can view all .deb files within a build or view the packages in the incoming queue direct from a d.d.p.o page.

The advantages over debc / dpkg -c dpkg -I are:


Using GnomeVFS means using a few Gnome libraries but even for non-Gnome users, this shouldn't be too much of a burden.

27 June 2007

Neil Williams: UK politics

I usually don't foray into this topic but I'm unsure whether this is something that others simply haven't noticed or whether everyone else is just being nice to the new UK PM and the new deputy leader of the governing political party.

Gordon Brown: GB
Harriet Harmann: HH

Is it just me or doesn't that just lend itself to being shortened to: GBH ?
(Grevious Bodily Harm in UK court speak) - the repetition of harm in Harmann almost qualifies as a recursive acronym!

Neil Williams: back home

Not just back home but with a working internet connection too - at least within the constricted definition of "working" that apply to my ridiculous BT line. 1.1 miles from the exchange by car (I have to drive passed it twice a day), 5.2 miles line length. Ugh?

Initially, a (presumably) stale connection was giving me about 5kb every hour. (No kidding - it took 2 hours to load the ISP webpage in Lynx.) Really annoying because it would cause things like apt and ssh to just timeout every single time.

Still, after waiting on the line for 25minutes, the ISP tech support was able to identify the problem and cause the login to be reset.

Just completed the keysigning caff process (so lots of people are about to get lots of caff mail) and now I can actually get back to my packages. Yippee!

26 June 2007

Jonathan McDowell: Nice guy EDI

I've spent the last week and a bit in Edinburgh, at DebConf7. I found it took me a couple of days to adjust for some reason, but after I'd managed to lose all sense of time everything went much better. I'll probably spend the next week recovering and catching up with real life. I have to say I don't feel I achieved a whole lot while I was there. When I went to my first DebConf (DebConf4, in Brazil) I spent a lot of time hacking and making progress on things. I didn't manage to do so well in Finland, nor this year. I'm not sure that's entirely what DebConf is about though. I saw a lot of people; the UK crowd who turn up to most things, people I hadn't seen since Finland, and those who I hadn't see since Brazil (and must try harder to see more often). And of course several names I was able to put to faces. This is a really useful part of such events - I find it's much easier to deal with people online once I've met them in real life and have an idea where they're coming from. Having said I didn't achieve much I did many to leave with a lot of things in my personal todo list. I had the calendar conversation a couple of times again, at greater length, resulting in being told that I should just do it. So I need to think about a proper design. I started looking at Just Writing Code, but the problem is such that I believe a more rigorous approach is required. Another item was ARM hacking; I sat in on the ARM BOF and caught the end of the Emdebian stuff, as well as talking to Wookey and Neil Williams quite a bit about it. Wookey's convinced me that working on mainline Balloon2 support is still useful, even if everyone is more interested in Balloon3. And I thought a bit about starting to do some AM work again, assuming I can find enough time to do a decent job of it. Mao was sadly lacking; I got a couple of games in, but not the number I'd come to expect from previous DebConfs. I think the trick is to find Marga sooner... In addition to the travel to Edinburgh we ended up with a daytrip to the Isle of Bute - thanks to Patty Langasek for organising this. We managed not to lose anyone, and had a visit to a public loo from 1898. Post DebConf a bunch of us ended up in Solva for a party to celebrate Daniel and Rob's civil partnership. It was well worth the travelling, and good to see people who hadn't been at DebConf. Finally, on the way back home, we detoured via Stonehenge. Anyway. Now I'm back home, Katherine's turned up for a bit and hopefully I'll manage to do some of my todo list. See y'all next year in Argentina, assuming I can find the funds.

20 June 2007

Neil Williams: dpkg filtering

This started as an Emdebian idea but it is growing into a more all-purpose option. The requirement is to be able to filter packages during installation or cross-building so that manpages, infopages, documentation (including changelogs, copyright and readme etc.) and translation files for unsupported locales are omitted. When installing, the files would simply not appear on the filesystem or in the dpkg status information. When building, the files would disappear from the package completely (hence the role of filtering in Emdebian). The intention is that embedded systems can have empty /usr/share/man/ /usr/share/info/ and /usr/share/doc directories and a much reduced number of translation files in /usr/share/locale - the default would be only the translation files for languages that are supported on that machine, via 'dpkg-reconfigure locales'. Initially, only the narrow filters needed by Emdebian were considered - discussions at DebConf7 have shown how this can be easily extended to support arbitrary filters - necessarily the risks of using such optional filters would be made clear to the users in the manpage etc. - so that any file in any package could be omitted from the install process and the package file lists as well as during the preparation of packages for embedded devices.

Filters would be glob patterns held in a file in /etc/ (possibly /etc/dpkg/filters.d/) and would include the option to exclude files en-masse and specifically include some files that may otherwise be excluded in specific circumstances. The same filters could be used when building packages for embedded usage as well as installing Debian packages on systems where space is a problem. The main benefit of this filtering for Emdebian is that it makes it much easier to isolate the package changes needed to make the package cross-compilable from the changes needed to remove stuff that embedded devices don't need but which Debian Policy requires. This in turn makes Emdebian patches more useful to Debian maintainers when bugs are filed on their packages about a failed cross-build.

So far, it's taken up most of my hacking time in DebConf. Ian Jackson, Enrico Zini and Wookey have all helped improve the original ideas during that time. Prototype code is mostly complete but the extended filtering support will now have to wait until after DebConf. I'm hopeful that the patch will be accepted, once it is ready.

If this seems strange or unnecessary, just compare the disc usage of /usr/share/doc (which you can control) with /usr/share/locale/ (which you cannot currently control) or view the baobab images from my current laptop installation.

16 June 2007

Neil Williams: Arrived in EDI

OK, after fighting with the Edinburgh traffic / roadworks, I'm finally in-situ and online. Just going to go and find the venue, get badge, etc., ready for the full start tomorrow. (My first DebConf!)

30 May 2007

Neil Williams: gpe-expenses and forking gnucash

gpe-expenses is now stable enough for a 0.1.0 release - the NEW queue is really short so it should be in unstable soon.

In order to support the developing gpe-cash (and later gpe-invoice) application(s), the package has been split into a (small) binary and a new shared library - both licenced only under the GPL v2 or later.

The binary depends on libqof1, as before (GPL v2 or later). The new shared library contains the QofExpenses and GpeCurrency objects. QofExpenses is registered with QOF to provide data storage and queries. GpeCurrency is based on the Palm Default Currency Table. http://pilot-qof.sourceforge.net/manual/ch06.html#defaultcurrencytable. This provides a much simpler interface to standard currencies whilst retaining GnuCash data compatibility.

Splitting the objects out allows gpe-cash to share live data with gpe-expenses, reading expense data into double-entry accounts and allows gpe-cash to use sane currencies that can still be converted to GnuCash commodities. gpe-cash will itself contain one or more shared
libraries that include the double-entry financial objects, ready for gpe-invoice to collate data from gpe-contacts, gpe-calendar and gpe-expenses, create invoices (in SQLite) and post transactions to gpe-cash. Early days, I know, but that's the plan. (Invoices would be rendered in HTML/PDF/foo using scripts in the datafreedom packages.) pilot-qof already includes the basic support for generating an invoice from contact, calendar and expense data.

gpe-cash is a fork of gnucash, splitting the behemoth into small(est) functional units and dropping large sections of code - like reports which can be better managed using packages like datafreedom-perl on the desktop. datafreedom already includes example reports from
gpe-expenses. Even so, gpe-cash may well be a large application compared to other GPE packages. So far, gpe-cash comes in at just over 1Mb installed (including libqof1) but there's more Gtk+ stuff to write yet. (Compare with gnucash where the architecture-dependent part alone is >5Mb without any translations, images or other common files or the extra dependencies.) gpe-cash will have none of the dependency problems of gnucash: it just has the object definitions, libqof1, glib2.0, gtk+, gpe and sqlite. (There is an issue with GConf2 right now but I'm sure I can remove the need for that.)

http://gpe-expenses.sourceforge.net/ (CVS available via SF)

http://cashutil.sourceforge.net/gpecash.php. (SVN available via SF)

24 May 2007

Neil Williams: Functional cross-building chroot, based on pbuilder

The pbuilder-based chroot script (empdebuild) in Emdebian SVN is now functional - that is it can run from a directory created by emsource, patch the Debian source using emdebian-patch files ( = emdebianising the package), get the build dependencies and install them, run emdebuild to cross-build the package and copy the updated patches, build log, .changes, .dsc and .deb files out to a nominal location before cleaning up the chroot. Only the basic pbuilder options and setup is supported and some values that can be configured for pbuilder are calculated automatically by empdebuild.

The embootstrap script that creates the chroot used by empdebuild needs some more work before this can be released as part of emdebian-tools 0.2.2 and there is no support (yet) for installing the cross-dependencies required for some packages. I'll be experimenting with Gyrosgeier's debian/xcontrol idea to specify these Build-Cross-Depends: using information already gathered on an ad-hoc basis. xcontrol files can then be committed to Emdebian SVN as patches. The pbuilder code is sufficiently flexible that the same code that parses debian/control for Build-Depends can be adapted to parse debian/xcontrol for Build-Cross-Depends.

In theory, empdebuild can become the basis of a cross-buildd, significantly improving the rate at which packages can be emdebianised.

The script does, currently, have to use apt pinning to retain the Emdebian toolchains because of problems with gcc-4.2 on arm.

(And yes, I do realise that emdebuild and empdebuild are very similar names but then so are debuild and pdebuild upon which the respective Emdebian scripts are based.)


http://buildd.emdebian.org/svn/browser/current/host/trunk/emdebian-tools/trunk/pbuilder

21 May 2007

Neil Williams: gpe-cash - double entry accounts on handhelds

subtitle: Break up GnuCash into lots of forks

With an ISP problem throttling my broadband to 4000B/s, I've switched to developing in C instead of building Emdebian packages - downloading Debian sources was taking an hour or more even for small packages.

This has made time for a long overdue project: gpe-cash - double entry accounting for handhelds. It's a spin-off from the stalled cashutil project and it just might provide the impetus to get cashutil into a releasable state.

gpe-cash uses QOF (Query Object Framework) which itself was spun out from GnuCash some years ago when it was described as "the gnucash engine without all the financial stuff". So gpe-cash is a happy reunion of the engine and the financial stuff along with Gtk+, only a lot smaller than GnuCash. Yes, it is a fork but a fork done for, IMHO, very good reasons. (Why write free software and then frown on forked projects?) There's little hope of getting GnuCash to run on any embedded hardware (it would probably end up as a laptop instead of a handheld in the process) so it has to be broken up: forked into a few smaller bits and simply dropping larger bits.

I've long wanted to break up the GnuCash behemoth and this is how this fork will work:

  1. Package the basic GnuCash objects as a shared library with -dev, -dbg and -doc

  2. Package the GnuCash business objects as another shared library, with ditto.

  3. Leave the commodity (stocks and shares) objects for a later date due to QOF compatibility issues with the GnuCash code.

  4. Use the pilot-qof Default Currency Table to create a tiny set of gnucash compatible currencies. (Also used by gpe-expenses already.)

  5. Share live expense data with gpe-expenses and gpe-cash (prevent duplication)

  6. Share contacts and live calendar data with gpe-invoice (calculate invoices)

  7. Drop direct file compatibility with GnuCash until GnuCash itself supports a sane backend, a suitable data import or cashutil is fixed, whichever comes soonest.

  8. Retain object compatibility with GnuCash at the QOF level - permits removing certain parts of GnuCash specific code from the objects whilst retaining functionality.

  9. Drop all reports, graphs, CSV import, QIF import, Scheme and other complexity of GnuCash.

  10. Use a simple SQLite backend via QOF.


Best laid plans . . . etc. It always ends up a bit different to the plan but you have to have a plan of some kind. (No?, well I do.) ;-)

The code is a combination of gpe-expenses and cashutil. It will (eventually) live within the cashutil SVN at SourceForge but I haven't committed the first changeset yet. The basic structures already work, it is tying the C objects to the Gtk that is the bulk of the remaining work.

If anyone is interested in upstream development, subscribe to the (very low volume) QOF-devel mailing list and let me know.

Next.

Previous.