Search Results: "codehelp"

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!

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.

20 May 2007

Neil Williams: DD upstream

I've been wondering if it is worth packages.d.o indicating if the DD is also (one of) the
upstream developer(s) of their maintained (non-native?) packages. I'd expect that it may help bug reporters to know this, with regard to where to file certain bug reports or just be useful information generally. It could help by indicating whether a quick release is possible and whether patches will migrate upstream automatically.

debian/copyright isn't sufficient for this because there isn't necessarily a match between the upstream and Debian email addresses, but maybe it's yet another field for debian/control.

Just idle musings really.

7 May 2007

Neil Williams: Smaller libc6

libc6 is by far the largest package in the current Emdebian repository and as part of a rootfs it is simply overpowering. So various ideas cropped up on Emdebian IRC. Split the gconv libraries into three or more packages. Split the binaries into a new package and split out libnss into another. Have to see how if pans out and whether an over-arching pseudo package is needed later to make it easier to package reverse dependencies of libc6.

(Yes, uclibc is an option and Emdebian is actively working on that too but it would be nice to be able to have the flexibility of something inbetween uclibc and the behemoth that is Debian libc6.)

22 April 2007

Neil Williams: Mandatory -dbg packages for libraries

I'd like to see all library source packages having a minimum of 4 binary packages required by Policy: the SONAME, the -dev (without SONAME), the -dbg (with SONAME) and a -doc package (without SONAME). (Libraries for perl or other non-compiled languages would be exempt from -dbg packages but not -doc.)

Currently, only a -dev is mandated. I'm currently writing a GtkHTML extension for quicklist and writing code to use an undocumented library is PITA.

Libraries without a -dbg are worse because Debian doesn't need any upstream involvement to create -dbg packages. Things like that make Debian a nicer environment to be upstream, not just a nice environment to be a DD or user.

Are there libraries written in compiled languages that cannot provide a -dbg?

16 April 2007

Neil Williams: QA logjam

Nico's post on creating RSS feed for a website page cited the Debian QA page for Orphaned packages with wrong maintainer and so I thought I'd stop by.

Turns out that the method for fixing the issues on that page is problematic. If a package is orphaned it may be because it has RC bugs. Many RC bugs are FTBFS. The way to fix the issues on the QA page is to - you guessed - change debian/control and debian/changelog then build from source.

Hmm.

Note to self and anyone else interested: When working through the QA page, check the bug reports for each package. Note to anyone more involved in Debian QA: it may be an idea to highlight such packages on the page.

How much of a problem is it that the maintainer field is wrong? Is there another method for changing the maintainer field? (Directly in the Debian records maybe?)

10 April 2007

Neil Williams: pilot-qof finally leaves NEW

One version of pilot-qof went into Etch (0.1.1-3) with 0.1.2-1 uploaded to unstable after the freeze and just migrated into Lenny. A new release had sat in the NEW queue for a month due to the final stage of the Etch freeze. Finally, it is moving into unstable. 0.1.3-1 separates the pilot-qof binary from the perl, XSL and documentation making four packages in all, three under the new title: datafreedom. See data-freedom.org.

Hopefully, splitting existing Debian packages will not require a spell in the NEW queue in future - or at least a reduced queue, after all these packages have been checked once already. (Hence Sam was my first choice as DPL - congratulations again, Sam.)

If you previously used the XSL stylesheets from pilot-qof, you will now need the datafreedom-qsfxsl package. Note that the location of the XML catalog (and the XSL stylesheets) has changed too. See NEWS.Debian in the pilot-qof package. (zless /usr/share/doc/pilot-qof/NEWS.Debian.gz).

The intention is that the datafreedom packages will now mature to support a wider range of small utilities like pilot-qof - there is already support for calcurse, contacts, dates, gpe-expenses, gpe-calendar and a few others - justifying the package name change.

The XSL is (predictably) limited to converting from XML so if XSL is used to convert to a non-XML format, you'll also need the datafreedom-perl package to support conversion of non-XML data back into XML for inclusion into pilot-qof or conversion to other formats via XSL. The perl scripts also include support for aggregating data sources to create new data sets, e.g. combining addressbook, expenses and contacts data sources into a simple invoice. If, like me, you enter new data into your Palm whilst travelling around on business, you can HotSync the Palm and generate all your invoices in one script!

The perl package includes a number of new scripts and brings in a few new perl module packages and this is where the majority of updates are likely to occur in future.

Enjoy!

8 April 2007

Neil Williams: Etch release!

First time I've had the chance to see a Debian release - I waited before blogging and all my boxes have upgraded smoothly. Some had already moved to testing from unstable a while ago and it's great that I can now move some to stable. One or two can even go directly from unstable to stable.

Well done to everyone involved!

Interesting point for me: 1,881 packages are going into testing tonight! Ouch!

(I've got a few updates for unstable but those will keep for a day or so until things settle down a bit.)

Hopefully, the NEW queue will start moving too - one reason to vote for Sam Hocevar was to speed up admission of packages that result from splitting an existing source package. pilot-qof introduces some new binary packages and it is frustrating that simply reorganising existing code causes the same delay as a completely new source package. Sam also expressed an interest in embedded work which is always a good sign.

3 April 2007

Neil Williams: Cross-building and chroots

My brain hurts. Cross-building can get very confusing at times. I've been experimenting with debootstrap, trying to make a complete Emdebian cross-building environment that can be compressed to a base.tgz as with pbuilder. Changes to the chroot can be discarded, just as with pbuilder, allowing dependencies to be tested. The main benefit is that packages can be built without having to install long chains of cross dependencies via apt-cross or dpkg-cross on
the main system. To me, it's the only way to cross-build GUI suites like GPE against a background of changing dependencies.

The same code should also be able to create a native chroot so that the cross-built packages can be installed alongside each other for more testing. These chroots have already been tested and instructions exist in the Wiki.

Between that and the ongoing problems with empath: navigating a path from package_set A to package B via a changing set of build-dependencies . . .

28 March 2007

Neil Williams: Cross-building a rootfs

With updated cross-building toolchains and a much improved emdebian-tools package, work has finally started on actually building cross-built packages for Emdebian. Wookey has identified the first set - a usable rootfs. http://wiki.debian.org/EmdebianRootfs

Nineteen packages have been cross-built so far, from base-files and popt to util-linux and ncurses so I thought I'd make a note of how it has gone at this early stage. Packages, patches and build logs can be viewed at: http://www.emdebian.org/packages/search.php

Results:
======

1. CDBS cross-builds like a dream. No failures, no missing files, no misplaced files, no files Emdebian doesn't want (like changelogs and manpages). em_make replaces one makefile with a customised one and everything else falls into place. Fantastic.

2. debhelper packages generally cross-build quite well - as long as debian/rules sticks to actually using debhelper rather than creating bespoke rules that just do what dh_foo would have done anyway! (I then have to go behind them and remove the custom rules to get rid of manpages etc. when if the task had been left to dh_foo, em_make would have removed dh_foo automatically. Grrr.)

3. Packages built without CDBS or debhelper are an absolute PITA. I know it is a good exercise to build without "high-level" tools, but PLEASE, only put non-debhelper packages in the main archive if you really cannot have debhelper involved. It'd make my life SO much easier right now. :-)

4. Splitting out the translation files into individual, dedicated, packages one per language is having two related effects: there are a plethora of packages in the repository with only 19 source packages built; the size of the main binary packages has dropped substantially. Some translation packages are 30-60kb in size but in Debian, 12 maybe 30 of these are packaged inside the main binary or a similar combined _common package. Users get no choice, it's no translations or all translations. I cribbed the idea from OpenEmbedded and it's nice to see it paying off, even if it means that 'apt-cache search' listings will be at least an order of magnitude longer in Emdebian. (Sounds like a wrapper is needed.) Need to start testing 'langupdate' soon to make sure it can cope with keeping users up to date with translations of installed programs.

So far, haven't needed too many cache files to be used with ./configure --cache-file but I'm bound to meet those soon.

Overall, things are going well (famous last words).

Next.

Previous.