Search Results: "codehelp"

1 March 2008

Eddy Petrișor: TDebs - arch is not important, is it?

Updates:
  1. the arch issue raised by Frans was not the object of my post. Also, not all points are invalid/reiterated, just the ones iterated here. Thanks Frans.
  2. add a note that there is an image that proves that .mo endianness is irelevant - usefull for readers that might miss that



While looking at Neil Williams' talk(hi-res/lo-res) from FOSDEM about cross building and tdebs I was STUNNED about the many (not all, thanks Frans) points that were reiterated during that talk when there were already answered.

Well, I guess you have to repeat yourself a lot to get your ideas through to the other side. So, let's do that.

All (except the first) of the following have been already answered one way or another on the TDebs wiki page.

Q: .mo files are arch independent or not? Neil asks again on his blog.
A: It doesn't matter, does it?


0 eddy@bounty ~ $ file /usr/share/locale/ro/LC_MESSAGES/wormux.mo
/usr/share/locale/ro/LC_MESSAGES/wormux.mo: GNU message catalog (big endian), revision 0, 228 messages
0 eddy@bounty ~ $ uname -a
Linux bounty 2.6.24.2-bounty #1 SMP Wed Feb 13 02:34:09 EET 2008 x86_64 GNU/Linux
(there is a picture here which proves my point, if you can't see it, click here).



Q: The packages file will explode
A: No, that's addressed.

Q: How do you select languages?
A: Simply use what we have and expand on that.

Q: Do tdebs support anything else than gettext?
A: Yes.

27 February 2008

Neil Williams: Debconf8 flights

Noting comments by bubulle and Debian-uk preparations, I've started looking at flights for Debconf8 with an eye to actually making a booking.
There appears that there will be a variety of Debian-ites hanging around Madrid airport and catching an apparently very limited number of flights to Buenos Aires as I seem to only be able to find 2 flights a day between Madrid and Buenos Aires.
Bubulle notes a connection from Paris to Madrid, I (and most of the UK team) would need a connection from London to Madrid. For some bizarre reason, leaving from Gatwick is more expensive than leaving from Heathrow. That's a PITA for me because my return flight home leaves from Gatwick.
More annoying is that the evening flight is much more expensive than the (very) early morning flight. So much so that it comes out at almost double the cost of even a relatively expensive hotel for the night.
My current ruminations revolve around:
flight  780.62   	- Expedia Special Fare
07:25 Depart London (LHR)
Arrive Buenos Aires (EZE) 19:25 Fri 1-Aug

13:25 Depart Buenos Aires (EZE)
Arrive London (LHR) 10:05 tip+1 day Sun 17-Aug

The arrival back in London is good for me because it provides plenty of time to get between Heathrow and Gatwick, even on a Sunday. :-)
I guess London is a little further from Madrid than Paris - my trip comes out at over 1,000 compared to 900 from Paris. Can't really justify a return Eurostar for that difference.
(Yes, I'm travelling out for DebCamp too.)

Neil Williams: Problems with minicom over USB

Embedded systems (especially bootloaders) need serial connections but many laptops and modern desktops simply do away with the serial port altogether. Up until now, I've kept my previous desktop machine around (which happens to also have a parallel port so acts as the home network print server because I don't have a USB printer either) and then connect to minicom over SSH.
Now, yes, I can configure networking over USB once the device is installed but to actually fix installation problems, I need serial on my other machines. I've got a USB to serial converter, turns out to be a Prolific 2303 chipset (it's the basic one with a cable from Maplins) which is quite well supported.
Now the weird stuff.
My powerpc laptop sees the Prolific chipset and configures a USB device that, initially, minicom complains about - but if I set the port from 'dmesg' (/dev/ttyUSB0) in minicom -s, it works. Well, almost. I can see the output of the device but no keyboard strokes are passed on to the board which means it's almost workable whilst still being completely useless.
My problematic HP laptop accepts the Prolific chipset but does not configure a USB device node. Without a device node, minicom just fails.
Bah.
This HP laptop is still causing me grief. USB seems to fail after hibernation and only works at all if irqfixup is added to the kernel boot parameters. With irqfixup, the laptop randomly hangs. I almost need to setup parallel configs in grub of "run USB but don't hibernate" and "run for more than 1 hour" as mutually exclusive. Oh, and the external monitor connection used for presentations is only seen if the projector is connected during a reboot of the HP laptop.
Bah x 3.

26 February 2008

Neil Williams: Splitting emdebian-tools and cross building translations

Separating out keyring and rootfs support

emdebian-archive-keyring - GnuPG archive keys for the emdebian repository
emdebian-rootfs - emdebian root filesystem support
emdebian-tools - emdebian crossbuilding tool set
libemdebian-tools-perl - emdebian support library

Finally got to test a request from some months ago to create a separate archive keyring for those people who just want to use the toolchains.
I also took the chance to split out the scripts to build root filesystems from the scripts that build the packages for the repository. The Emdebian::Tools module was best split out too, it's needed for emdebian-rootfs and emdebian-tools.
Not sure when this is going to happen for real, it's only a test branch right now.
(browse SVN). It tests OK, so far and if other things check out, this could be 0.8.4 (in Emdebian), then whilst the same code badged as 0.9.0 spends time in the NEW queue so that I can upload 0.8.5 etc. to Emdebian, followed by 0.9.1 with the changes from 0.8.5 onwards.
TDeb changes from Fosdem
In the main trunk (0.8.3), I've updated a few parts of em_installtdeb but I haven't made much progress on whether TDebs should be Architecture: all or Architecture: any.

  1. A big endian .mo file from powerpc works fine on little endian amd64.

  2. msgfmt --alignment does not seem to do what I expected (but then I'm not entirely sure what I did expect).

  3. I can't find anyone cross-building .mo files - maybe it's my Google skills but if it was essential, I find it hard to think that all those cross-built systems are doing something different to just msgfmt -o $@ $.


20 February 2008

Neil Williams: emdebian-tools 0.8.2 in Emdebian

Although an interim release, there are a number of new features in 0.8.2 that are worth noting.

  1. emrecent - possible candidate for a rename to emdput, this script started off just as a review tool for recent builds (hence the current name). Finds recent .changes files in the Emdebian working directory, collates them, provides a viewer for the debc -a $ARCHcontents using whiptail or zenity along with error logging. If the default zenity frontend is installed, you can still select to use whiptail (e.g. when over an SSH connection) using the -w option to emrecent. Further checks are run using the second script:

  2. emdebcheck - a local Emdebian version of the debcheck that runs on the Debian archive using edos-debcheck to highlight non-installable packages before an upload breaks the archive. This isn't such a problem in Debian but Emdebian needs to build installer images and similar tools from packages in unstable so an installability check is very useful. Certain packages are expected to be non-installable due to dependencies that are removed in Emdebian so emrecent supports a --skip option to omit the emdebcheck run for such builds.

  3. emsource --status now reports errors logged by emrecent or emdebcheck.

  4. Unpacking support in emsandbox - EXPERIMENTAL!. debootstrap --foreign puts a higher-than-necessary burden on the host device when running the default --second-stage - not just in CPU workload but in the amount of free space required to copy and unpack all the .deb files. The original debootstrap tarball contains the downloaded .deb archives and only a few packages are actually unpacked manually. Unpacking support in emsandbox adds a handler using dpkg to unpack ALL .deb files in .$BUILDPLACE/var/cache/apt/archives/ using dpkg -e and dpkg -x, creates a suitable status file for dpkg and removes the .deb packages for a smaller tarball. The result is (almost) a foreign filesystem image that can be copied directly onto the host device. The remaining tasks are only:
    • /sbin/ldconfig
    • /usr/bin/dpkg --configure -a
    . Depending on how well this works in real situations, unwrap could become the default handler for debootstrap --second-stage --foreign in emdebian-tools. Unpack support is enabled via the debootstrap suite scripts which define the package set, the first_stage_install and the (much reduced) second_stage, replacing the sequence of install commands with a single function provided by emdebian-tools. See /usr/lib/emdebian-tools/emdebian.gpe for an example.


In common with all previous interim Emdebian releases, 0.8.2 has been uploaded to the Emdebian tools repository already added to your apt sources when installing emdebian-tools so apt will be able to upgrade seamlessly.
(0.8.0 introduced a check in emsetup to ensure that the latest version has actually been installed.)
Once features have stabilised (probably after testing at Fosdem), I'll upload 0.9.0 to Debian unstable, as usual, or maybe one or two more interim releases to Emdebian.

17 February 2008

Neil Williams: Monitoring long running processes via ssh

I'm trying to work out how to monitor a remote script - in this case a mass build script. The script itself is trivial - a simple for loop in perl. It calls a script from emdebian-tools that calls a variety of other scripts and programs.
What's the best way for me to monitor that script from another machine on the network?
Yes, 'ps wax' is usable but not particularly friendly - the script has to work its way through a list of packages that need building. I want to know which package is being built at the time and the 'ps' output does show this information but only if you recognise parts of the build process for particular packages.
I thought about getting the script to output the current package name to some file in /var/ but that seems a bit of a hack (it's a userspace command and should not need to use sudo or require particular permission setups). Sending email is overkill. A file in /tmp/ is possible, true, but that means adapting the script itself. I'd like a solution that could work with (almost) any package, including binaries, without altering the source code. I've also thought of running the script within screen but then when the machine is in the middle of a compilation, it isn't easy to work out which package is actually being built just from the gcc output, plus there is the continual problem that screen doesn't support scrollback.
I have a feeling this is a potential reinventing the wheel problem so I'm looking for ideas.

Update:
The closest process output I can use is ps wfh which at least collates all the processes started by the top level script into one tree. I've worked out why the info I wanted was not being shown - the call from perl was exec() not system(). Doh! Ne'er mind. ps wfh will be enough for what I need - but I will need to adapt the wrapper after all. Thanks to all those who posted comments.

Neil Williams: Monitoring long running scripts via ssh

I'm trying to work out how to monitor a remote script - in this case a mass build script. The script itself is trivial - a simple for loop in perl. It calls a script from emdebian-tools that calls a variety of other scripts and programs.
What's the best way for me to monitor that script from another machine on the network?
Yes, 'ps wax' is usable but not particularly friendly - the script has to work its way through a list of packages that need building. I want to know which package is being built at the time and the 'ps' output does show this information but only if you recognise parts of the build process for particular packages.
I thought about getting the script to output the current package name to some file in /var/ but that seems a bit of a hack (it's a userspace command and should not need to use sudo or require particular permission setups). Sending email is overkill. A file in /tmp/ is possible, true, but that means adapting the script itself. I'd like a solution that could work with (almost) any package, including binaries, without altering the source code. I've also thought of running the script within screen but then when the machine is in the middle of a compilation, it isn't easy to work out which package is actually being built just from the gcc output, plus there is the continual problem that screen doesn't support scrollback.
I have a feeling this is a potential reinventing the wheel problem so I'm looking for ideas.

13 February 2008

Neil Williams: b43 on iBook G4 and kernel 2.6.24

OK, I may not have wireless yet on my HP laptop but I have managed to get wireless networking running with the new b43 native kernel driver for this iBook G4 laptop.
0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03) (that's the Apple internal card).
Linux fergus 2.6.24-1-powerpc #1 Mon Feb 11 12:53:42 CET 2008 ppc GNU/Linux
linux-image-2.6-powerpc 2.6.24+13
I needed:
b43-fwcutter-011.tar.bz2
broadcom-wl-4.80.53.0.tar.bz2
(Note the versions - older versions don't work, newer versions give errors from the kernel and don't work either.)
www locations and full instructions available at http://linuxwireless.org/en/users/Drivers/b43.
The best bit is that because this is a native driver, network-manager is able to find it and use it so that I don't have to waste time with detailed settings in /etc/network/interfaces etc. The worst bit is that it still needs a second internet connection to download the firmware from Broadcom and compile the firmware cutter from source.
As I've only just got it working, I've yet to test it with suspend etc. but at least I no longer have to use bcm43xx (which is deprecated by b43 anyway).
It also appears that this will work with the HP laptop, once the device in that laptop is recognised by the kernel. Just such a pain that Broadcom don't open up the licence for the firmware so that we can have a sensible package that can be installed ready and working without all the work.

Update - it continues working after suspend. :-)

12 February 2008

Neil Williams: Embedded Debian still Debian?

The basic Debian debootstrap system is 180Mb or so. Embedded systems need a full GUI installation in 64Mb or less and a basic debootstrap-equivalent system of 10Mb or less.
Such radical reductions in size mean radical changes to the structure of the the system itself. The question is, at what point does a modified Debian system become no longer Debian?
Main changes:

Main similarities:

So the question is, lazyweb, how far do we go before you would regard Emdebian as no longer Debian?
I now have image tarballs for such a system - 18mb compressed with a full GPE GUI included, 48Mb installed. The scripts could, potentially, work with any debootstrap tarball.
Although based on debootstrap, the Emdebian set can be unpacked separately from debootstrap so that as much of the workload can be done on the build machine as possible. This allows the "installer" to simply copy the decompressed filesystem onto the device, run /sbin/ldconfig and dpkg --configure -a and it's ready to go.
I have a few issues to resolve within the packages themselves and within the available kernel for my test machine but the result is a full GUI installation that will fit on a 64Mb SD card (32Mb is a tad too small) with enough room to spare to add a Linux kernel zImage, modules.tgz, Windows executable/autorun runes and a bootloader. i.e. a possible method of installing Emdebian onto a handheld running Windows CE or Windows Mobile. The only issue is getting the right kernel and modules for the device.
These are important benefits, the cost is whether such an installation still qualifies as "Debian".
At what point does Debian cease to be Debian?

11 February 2008

Neil Williams: Cross-building Debian

With the necessary bugs now filed, there is a real chance that Lenny can be a usable cross-building platform.
The next task is to upload emdebian-tools 0.8.1 (which includes the scripts I used to prepare the patches for those bugs) and start on improvements to emsandbox.
I plan to follow the method used by balloonboard.org to improve debootstrap so that the tarball created by emsandbox contains a real filesystem, without .deb files, with all packages unpacked and then simply copy the files across and run dpkg --configure -a. (in theory).
So far, only done this in a "manual and hard-to-do-again" way and I haven't been able to get X running yet (kernel issues). I'm looking to write the scripts to create the new installation tarball first - I'll fix the packages themselves later. Emdebian won't be making these tarballs available for download (each is too specialized) so the scripts will create each tarball when needed.
That's the plan anyway . . .

(Oh, BTW, most of the patches for those bugs were created on this HP laptop which I so recently criticized. The wireless still isn't working and the power adaptor gets damned hot but apart from that, I'm happy-ish with it.)

10 February 2008

Neil Williams: Catching up with the crossbuild mass bug filing

Another half dozen or so bugs have been prepared in the long term mass bug filing for cross build support. (See http://lists.debian.org/debian-devel/2007/11/msg00116.html.)

Some of the other ones filed today have already been closed - thanks to Clint and Daniel for their quick work.
I've got another dozen to finalise before Fosdem and if #448615, #450483, #453267 and #439979 can be fixed before the soft freeze, Lenny could well release as a usable crossbuilding platform, at least for the core set of packages that people tend to want to cross build.
Most of these bugs are wishlist but I do take significant amounts of time to prepare and test patches before filing so there is no need to setup a crossbuilding toolchain on your own systems to fix the bugs. (I'm also adding some of my scripting to emdebian-tools to help others in the future. One tip: 'meld' is all but essential for this kind of work.)
Some of the older bugs from the mass filing will likely become delayed NMU's if I see no response before Fosdem. (Some are v.old, even one or two pre-dating Etch.)
Full list (with ages and links to the Emdebian patches) are available via the Emdebian website via SOAP.

9 February 2008

Neil Williams: Fosdem schedule is out

I'm going to FOSDEM, the Free and Open Source Software Developers' European Meeting
Debian and Emdebian schedule.
I've decided to migrate from OOo Impress to latex-beamer for those two talks. Content is in Emdebian SVN although I expect to make a few changes before the event.

Neil Williams: Chatting at conferences

I don't know why this is appears to be a problem but AFAICT there is no particular impediment in talking to delegates at conferences, no matter what the gender.
Maybe it is just the way that such discussions are begun or the tone being used or maybe it is just that my RealLife(tm) world involves a radically different environment.
Various stats claim that IT is massively dominated by male workers.
Many stats show that pharmacy is massively dominated by female staff.
Maybe it is just an indication that a degree in a course other than IT is more of a benefit than would otherwise appear.
As a single guy, the pharmacy world is little different to IT as far as conversations with colleagues is concerned. To me, that is how it should be.
Maybe I'm just too old to be deemed "a problem".

3 February 2008

Neil Williams: Delaying libqof2

As the Debian release timetable for Lenny is now clear and the soft freeze is only a few weeks hence, I've decided that I won't look for the libqof1 to libqof2 transition before Lenny. There just isn't time to complete the GDA backend in time.
Once 0.7.5 reaches testing in Debian (0.7.5-1), I'll make the upstream changes for libqof2 in CVS. This should also allow time for Ubuntu to release with the last version of libqof1.
pilot-qof and gpe-expenses CVS already has support for libqof2 but there's no need for a release just yet. I'll release after Lenny.

29 January 2008

Neil Williams: QuickList 0.9.1 and beyond

Main changes here are including the translations provided by Debian - thanks to all those who submitted po files.
No new functionality in this release - more an incremental improvement in the underlying codebase.
Future plans for QuickList
The 0.9.x series will continue the theme of incremental improvements, but once libqof2 is released, quicklist will begin to use QOF objects that are created dynamically from QuickList data as well as using QOF features like 64bit time and a choice of backends. I expect this to bring with it a SQL-query interface that would allow QuickList to provide a more usable report interface, finally replacing the missing functionality from the old QuickList. The QOF support will be implemented as a "read-only" mode, certainly initially, so that QuickList could read any QOF data source then produce SQL-based reports in HTML on the data. Eventually, this "read-only" mode should be able to handle "integral" data sources like the apt cache or other well-established sources where a suitable C API exists. This would allow any QuickList user to load the apt-cache, select data in any control field of any package using SQL syntax (via a GUI or via direct text entry), format a report in HTML and export that report to a file.
The QOF support would allow the code to support these data sources to be packaged as Glib modules (similar to libqofexpensesobjects0) to keep dependencies under control.
With this kind of support in place, I could finally be ready to release quicklist 1.0.0 sometime after Lenny. :-)
If anyone is interested in any of these ideas, feel free to help with QuickList development.
http://quicklist.sourceforge.net/
Query Object Framework (QOF).

Neil Williams: QOF 0.7.4 release

Finally making the last release of libqof1 before the imminent transition to libqof2. v0.7.4 includes a new pkg-config file that will become the default for libqof2 and later releases - qof.pc. In 0.7.4, this is installed alongside qof-1.pc to make it easier for packages to transition to the new file and to libqof2. (The transition itself simply consists of removing all the deprecated code in 0.7.4 in a single operation - use --disable-deprecated-qof to ./configure to see the effect.)
Once uploaded, I'll make releases of pilot-qof and gpe-expenses using the new pkg-config --libs qof call in ./configure (and a minimum requirement for QOF v0.7.4). GnoTime also needs to make this change (other changes for libqof2 have already been made - thanks Linas.)
There's plenty of time before libqof2 - I want to get the GDA backend operational before making the first libqof2 release. It's coming along but still experimental - this is why I have not asked for translation updates for 0.7.4, the strings that have changed are related to GDA which is not enabled by default in 0.7.4 and the strings will change again before libqof2 (QOF v0.8.0). I'll make a call for updates in good time before the 0.8.0 release. Depending on other tasks, this should be possible before Debian Lenny is released but if time is short, I'll wait until after Lenny.

25 January 2008

Neil Williams: New uploads and embedded issues in Debian

I've got an upload of gpe-tetris pending - see 462306 - to provide a smaller version of the popular falling blocks game for embedded devices. One or two things crop up from this package:

  1. popcon - a lot of maintainers put a lot of store by popcon results but the popularity-contest package is perl and perl is not available in Emdebian (it is thrown out along with "Essential: yes" for space reasons). Writing a replacement for popcon may not be particularly sensible either because embedded devices, although often left running for long periods in a "low power" mode, often have rare and intermittent access to any form of internet connection. This could easily result in maintainers thinking that because a package has few (or even zero) popcon figures, it is not used. On the contrary, the package could simply be used on devices that either do not support perl (Emdebian) or which do not have the ability to file popcon reports despite being able to support perl. (With the probability that GPEPhone will be added to the GPE support already in Debian, users may not wish to have popcon "phoning home" because it would likely cost real money to do so - even if a C version of popcon was written.) So I'm posting this here so that I can refer back to this post if queries arise later on.

  2. GPE apps on Debian - gpe-tetris is inherently designed for small devices with small screens and relatively slow processors, just like the majority of GPE. gpe-tetris is also designed to be usable on a handheld device where the lack of a normal keyboard can make game play awkward. As a result, playing gpe-tetris on an average Debian box is likely to appear trivially easy and the "progression" between levels would appear very slow in comparison with the tetris available in GNOME or KDE. This is deliberate and is expressly intended to allow the game to be playable on embedded hardware that has fiddly little keys. (I'll be adding this to the manpage and a brief summary of this to debian/control.) This does give the opportunity for a little sleight-of-hand such that a device could be provided with a highscore file created on a much more powerful device and so preventing any new highscores being set, but please don't do that - play nicely!

  3. small apps != bad code - Yes, lots of GPE packages are very small, some were clearly written originally as "demos" or during the process of learning how to write larger packages. This does not necessarily mean the packages contain bad code. I will feed back sensible patches to upstream to resolve flaws in the code but please do not think ill of the packages merely because the source code looks "trivial" compared to a GNOME package.

  4. dpkg-shlibdeps - one issue that I must begin to track after Fosdem will be to aggregate the "foo should not be linked against" messages from dpkg-shlibdeps in GPE packages and try to build a complete picture, in case there is a real possibility of completely dropping some packages that always seem to appear in that list due to the pkg-config --libs gtk+-2.0 listing. If so, I'll begin discussions with upstream about manually specifying the GTK_LIBS variable whilst retaining the PKG_CHECK_MODULES macro that ensures that the -dev package is available in the cross-building environment. This is likely to be some form of database-query mechanism - feeding data in from grepping the build logs, building a query from the list of packages to be used for a specific Emdebian root filesystem (machine/variant specific) and then spitting out whether particular package sets can have particular targets removed. If anyone fancies working on that already, the Debian version of the information is already available via the buildd network and the Emdebian cross-build results will not differ greatly from those at this stage.

Other uploads include updates of libgpeschedule, gpe-calendar and gpe-clock if gpe-announce makes it through NEW as expected. Updates for emdebian-tools and apt-cross and likely new releases for QOF, gpe-expenses and pilot-qof.
debcheckout compliance
In other developments, I've worked out how to specify Vcs-Cvs correctly such that debcheckout can find the repository data correctly. Sadly, vim syntax highlighting does not help with the CVS version but the CVS syntax is:

Vcs-Browser: http://alioth.debian.org/plugins/scmcvs/cvsweb.php/dpkg-view/?cvsroot=dpkg-view
Vcs-Cvs: :pserver:anonymous@cvs.alioth.debian.org:/cvsroot/dpkg-view dpkg-view

Note the colon prefix to pserver and the space between the repository login location and the module name. Remember to omit the "-d" - debcheckout will add that for you (and won't check to see if you have already specified it).

Neil Williams: collaborative maintenance, source packages, patches and other disagreements

Firstly, I haven't been following debian-devel as closely as in recent months and some things have passed me by. Secondly, I am rather pre-occupied with my own small world of Embedded Debian. One result of this is that I wasn't really paying attention to arguments over the source package format and took longer than I expected to respond to a request to take a look at tslib - a touchscreen library for embedded devices. When I did start work on it I managed to upset Joey Hess by implementing dpatch support which he had recently decried as unhelpful. I also added some extra fuel by getting myself in a two-and-eight over svn-buildpackage and it's broken bias towards native packages.
I happen to disagree with the idea that maintainers should alter upstream files directly, merely relying on the .diff.gz or some weird $RCS runes. Instead, I seek to ensure that the .diff.gz contains no changes outside the debian/ directory. I'm not happy keeping the entire upstream source in yet another RCS (for any reason) and would much rather make updates to my Debian packages by simply copying the debian/ contents into an unpacked pristine upstream source (preferably via uscan). I find it really useful to simply check out the latest CVS/SVN/$RCS, dump debian/ into place and call 'debuild' when testing various upstream development issues. Maybe this is because I have relatively few Debian packages that need debian/patches/* and certainly few that need more than a couple of patch files. It certainly has a lot to do with my embedded work where I need to make changes to the contents of debian/ to make an Emdebian package whilst retaining the same upstream code as is used in existing embedded projects like Open Embedded and Familiar. I don't want to be chasing changes through the upstream source - I want all the changes in a single place so that I can create Emdebian patches against the Debian source. (I'd rather not have patches in the Debian source at all but this is only realistic for either my own packages or those released as part of GPE for various embedded-native compatibility reasons.) I certainly do not want any Debian $RCS to be lumbered with yet another set of upstream sources that will always be out of date compared to the real upstream sources.
I am also a great fan of CDBS - much to the horror of some in Debian - primarily for one very simple reason, it cross builds so easily. Considering my workload, it should not be a surprise that the ability to support cross building without requiring any changes to the Debian package is incredibly persuasive when selecting a build system for a package of my own. debhelper really is woeful at cross building - each package needs customised cross building support painstakingly devised and tested, making script-based mass bug filing impossible. CDBS shows that with a little wrapping, debhelper can support cross building in a clean and completely non-intrusive manner.
This means I can concentrate on those changes that are actually important - the changes that provide the benefits of cross-building and justify the effort of actually cross building the entire dependency chain: the ability to fully control Debian-specifics like "Essential: yes" and to disable, modify or adapt components of any package such that the installed system has a fraction of the dependencies of the Debian version of precisely the same package. TDeb support is good too but that can be implemented against any build, it doesn't need to be a cross build.
Sadly, the end result of all this for tslib is that it will be removed from collab-maint very soon, Joey does not wish to be associated with the new version because although it includes some features which he is happy to see implemented, my use of dpatch and the hacks I had to devise to workaround svn-buildpackage do not fit with his workload patterns. Once tslib is removed from collab-maint, these hacks become redundant and I can use my normal packaging methods. Equally, his methods (in particular the lack of debian/patches/*) do not fit with my workload patterns and although I do not have as many packages as Joey, I have enough (when the 200 Emdebian source packages are also considered) to make the issue into a blocker. The new version of tslib uses the upstream SONAME and adds a -dbg package so it will spend some time in NEW. I am also likely to migrate it to CDBS once removed from collab-maint.
I suspect these issues will be revisited during discussions at Fosdem 2008 where I'll be presenting two talks - one in the Debian developer room and one in the Embedded developer room. Feel free to harangue me if you feel strongly that there is a sane way of cross building that does a better job than CDBS. :-)

24 January 2008

Neil Williams: Separating debug symbols with dh_strip

See #462456 and particularly #462007.
I have come across (what is to me) a non-obvious problem in the use of -dbg packages using dh_strip --dbg-package=libfoo-dbg. If a .install file exists for the -dbg package, dh_install copies the unstripped object into the -dbg build directory. When dh_strip --dbg-package=libfoo-dbg is then called, it silently omits the file from the call to objcopy --only-keep-debug (to prevent an objcopy error), resulting in an unstripped object file being retained in the -dbg package that has a complete (and fully functional) copy of the library embedded inside - as shown by the presence of a full Dynamic Section under objdump -p. Without the .install file, dh_strip takes care of copying the debug symbols into place directly - no .install file is actually needed.
The solution is to simply remove the debian/libfoo-dbg.install file. (Doh!)
However, the error goes undetected because dh_strip outputs no warnings, lintian does not check for it (yet) and there is no particular sign of a problem except the larger size of the files in the -dbg package. With a new library package (or the addition of a new -dbg package to an existing library source), this could easily be missed because all debugging operations using the -dbg package are unaffected (sponsors take note).

With the .install file present:

$ ls -l /usr/lib/debug/usr/lib/libqof*.so.*.*
-rw-r--r-- 1 root root 155585 2007-12-19 21:49 /usr/lib/debug/usr/lib/libqof-backend-qsf.so.0.0.7
-rw-r--r-- 1 root root 78554 2007-12-19 21:49 /usr/lib/debug/usr/lib/libqof-backend-sqlite.so.0.0.2
-rw-r--r-- 1 root root 1029686 2007-12-19 21:49 /usr/lib/debug/usr/lib/libqof.so.1.0.9

With the .install file removed:

$ debc tail
-rw-r--r-- root/root 103217 2008-01-24 22:53 ./usr/lib/debug/usr/lib/libqof-backend-qsf.so.0.0.7
-rw-r--r-- root/root 47930 2008-01-24 22:53 ./usr/lib/debug/usr/lib/libqof-backend-sqlite.so.0.0.2
-rw-r--r-- root/root 728646 2008-01-24 22:53 ./usr/lib/debug/usr/lib/libqof.so.1.0.9

(results have been sorted to keep the same sequence)

The error is possible in any debhelper package, despite being found in a CDBS package. Not sure what made me think that a libfoo-dbg.install file was necessary but there you go.

20 January 2008

Neil Williams: Fosdem 2008

Sadly, I can't seem to get things right re: Fosdem. I got the dates wrong for Fosdem and had to pay extra to change the bookings. Last year I got the flight wrong and had to pay extra to fly from Gatwick instead of Heathrow (and when I got to Brussels there was some bomb alert that had closed the airport, just to make things worse).
I will now be in Fosdem, on time but poorer than necessary. :-(
I can't get to London in time to take the same Eurostar as many others and there isn't time get back home with the Sunday evening train so I'm staying until Monday morning.
Things are so much easier when public transport isn't involved.
Bah - there's always next year to get things right.

Next.

Previous.