HomeCategoriesChoose a templateRecent EntriesAdapting autofs for GPG keys to an SD card
Tuesday, August 19 2008 po4a - translation support from any format Thursday, August 14 2008 Progress at DebConf Saturday, August 9 2008 Emdebian status update Monday, July 28 2008 State of play in Emdebian {ARM} Monday, July 14 2008 Spammers Hall of Shame Tuesday, July 8 2008 At LAST! Monday, July 7 2008 Right of reply?? Tuesday, July 1 2008 Migrating Emdebian changes into Debian, not Ubuntu Thursday, June 26 2008 Emdebian cross-buildd running for ARM Sunday, June 15 2008 |
Tuesday, August 19. 2008Adapting autofs for GPG keys to an SD card
Steve's docs on keys on a USB stick needed a few tweaks for my own systems - first thing I noticed was that I had /dev/loop0 instead of /dev/loop/0. As my configuration needs to use an SDcard instead of a USB stick or pen, I've changed the references from 'pen' to 'card'.
SDcards on my systems come out on /dev/mmcblk0 with partitions having a 'p[0-9]' suffix (p1, p2 etc.) so the DEVBASE setting needed a tweak. (This line needs to be modified for each user case anyway because the size of the partition will vary so the '62390272' value needs to be modified.) DEVBASE=`fdisk -l /dev/mmcblk0 2>/dev/null | grep ^Disk.*62390272\ bytes | sed 's?^.*/d?/d?g;s?:.*$??g'`A few other notes for those using Sid instead of Etch:
Barring a few typos I made in transcribing, the rest of the documentation works fine. Alternative keysI have two keys, one is intended to remain on the laptop and has comments to that effect (0xA897FD02). The other key, (0x28BCB3E3), is my Debian upload key so needs to be protected a little more than the ordinary laptop key (which I'll use when signing email on the laptop). 'debsign' does not have a way to specify a different --homedir or secret keyring or any other option that would allow me to have an alternative gpg configuration (maybe it should?). So I've copied debsign into my home scripts directory to create a slightly modified version and then I followed Steve's advice for ~/.gnupg/ to create a duplicate directory with the same permissions and a much reduced public keyring file (just exported my own keys). The secring.gpg file for this alternative homedir is the on the SD card with the autofs symlink (so the only file on the encrypted SDCard is the secret keyring). Then it is a simple case of manually calling debsign (e.g. after using debuild -uc -us): ~/scripts/debsign -k0x28bcb3e3 /path/to/.changes
Thursday, August 14. 2008po4a - translation support from any formatpo4a- or PO for anything. PO is the de facto standard for translations and po4a tries to help maintainers prepare packages for translation.
The natural burden, therefore, falls within l10n but without i18n, l10n is all but impossible (it means having to do the i18n "outside" the package). I'm using po4a and I've been doing various translation-support stuff now for a few years, so I'm going to add po4a into my blog entries as a series to help maintainers make their own packages i18n aware. This is particularly important for:
To make things easier, I'll be creating a new category in my blog ("i18n") for such entries. This is helpful for me too because the first time I used po4a (current versions of emdebian-tools) I basically got things wrong and made more work for myself than was necessary. This entry primarily concerns providing i18n support from manpage sources and perl scripts. i18n support in compiled packages is a separate issue. The fixes described here will be included in the next version of emdebian-tools (which will be uploaded to Emdebian but not into Debian until after Lenny). Terminology
Using po4apo4a needs a config file where the maintainer keeps all metadata relating to the master documents and the relevant formats. po4a then converts the master documents into a collection of strings for translation and puts those strings into a POT file (a PO template file). The maintainer packages the POT file (and optionally sends the POT file to relevant mailing lists seeking translations to be returned as PO files) and keeps the POT file up to date during the build process. With a config file (e.g. called po4a.config), all the maintainer needs to do is call: po4a po4a.config po4a then parses the list of files defined in the config file, generates the lists of strings, collates the lists and identifies where the same string is used in multiple files and writes out a POT file containing references to where the strings are used and the unique strings. po4a config fileComments start with '#' in the usual way. Instructions are enclosed in square brackets. po4a_paths defines where the POT file will be put (it can be extended later but I'm keeping this simple). The name of the POT file is important for compiled packages but can just be the name of the source package for scripted packages and/or manpages. [po4a_paths] po/emdebian-tools.pot type identifies *each* master document to be processed by po4a. The syntax is well suited to being generated from some other list within the package but I'll give just a snippet of the final output here: [type: xml] doc/xml/em_autobuild.1.xml That's it. The complexity of my current script was entirely unnecessary. Also, po4a is more than capable of handling multiple document types within the same source package and the same POT file which is something that I had missed so far. One more hack that can be removed. All I do now is use xmllint to "clean-up" the DocBook XML and pod2html and some XSLT to generate HTML documentation for the website. The loops to do those tasks already contain the list of files to be processed by po4a, so a few echo commands is all that is needed to create po4a.config at build time and run po4a to generate a combined POT file for all strings in the package. #!/bin/sh Saturday, August 9. 2008Progress at DebConf
First complete day after a full day travelling and I'm just about over the jet lag. Progress so far:
Overall, very good. (Posting delayed due to network problems.) It appears that drivel cannot cope with posting to the blog from DebConf. Monday, July 28. 2008Emdebian status updateover 96% successful243 packages built successfully. 8 packages failed to cross build. Failing packages
The assembly errors look spooky and the cairo and slang2 errors could be made much simpler if the upstream builds were sane. (Honestly, why can't we just have /usr/lib/libcairo-directfb.so ?) Some other packages fail to build, e.g. gcc-4.2, but we don't need those anymore so I'm ignoring those. Monday, July 14. 2008State of play in Emdebian {ARM}Autobuilder Summary:138 packages built successfully. 19 packages failed to cross build. 2 packages are tagged for a manual upload. (Dependency issues - rather than break the archive, these packages will not be uploaded until relevant dependencies have been fixed and uploaded.) Stats87% built OK 12% failed Notes:
Problems
Of the problems above, only problems 2, 3 and 4 (gtk, pango and xfonts-base) are "critical" as these are the only ones where the current packages are sufficiently broken that the new version is essential before Emdebian can make a "release" of a series of three root filesystems for ARM. Sizes are still larger than desired - a fix for that requires changes in glibc which I hope to investigate during DebConf. Any help on the above issues is appreciated. Problem-solving: $ emsource -c $package $ cd /path/to/$package $ emdebuild If you have SVN access, use 'emdebuild --svn-only' to commit your changes (even if your changes don't solve all the problems). Without SVN access, post the result of 'svn diff ../emdebian*' to this list (or 'svn diff ../debian*' if you have added a patch for the upstream code to debian/patches/). Platforms: All the above is based solely on Emdebian ARM for balloon3: Linux balloon 2.6.25.2-pxa270 #1 Sun May 18 22:38:11 BST 2008 armv5tel unknown balloon3 in CUED casehttp://balloonboard.org/gallery/300/balloon3-0v1-fpga.jpg AFAICT no other ARM platforms have been tested. I have a few fixes for the balloon3-config package that also needs an update in Emdebian - I've had some feedback from the touchscreen driver upstream that we might be trying to use the wrong device (/dev/input/mice is the wrong target for the symlink, we can set whatever device we want in /etc/X11/xorg.conf and the driver will use that in preference to /dev/event0). As this is device-specific, /etc/X11/xorg.conf will be put into balloon3-config which is available via Emdebian SVN. Tuesday, July 8. 2008Spammers Hall of Shame
Some time ago, I added a
Spammers Hall of Shame to my first website, codehelp.co.uk. "... sites that send me unsolicited commercial email can expect a poison response. If such companies are arrogant enough to not even read the contents of this page, then I shall post details of their incompetence here." It's not often that I add a new one - generally when the spammer in question tries to claim that it is not spam and pretends to have taken an interest in the site when it is plainly obvious that the About page has been completely ignored. It takes a special kind of idiocy to get onto the list - something that motivates me to a noticeable level of annoyance. The vast majority of spam doesn't come anywhere close. It has to be something that has some indication of being supposedly "customised" for me and my website(s) yet equally takes absolutely no notice of the content of that website, specifically the content explicitly added to About that should have been noticed by anyone with half a brain. Anyway, my latest poison pen is now available for everyone to see. True, it gives their spam email a wider airing but it's not as if codehelp.co.uk is anything but a very quiet backwater of the internet so it's not going to affect traffic in any real way. I just get annoyed when idiots who claim to be professionals do not have the simple courtesy of reading. In a similar tone: http://qof-gen.sourceforge.net/#free Monday, July 7. 2008At LAST!
My first go at getting Emdebian to run a GUI:
![]() Yes, yes, there are no icons and the touchscreen library doesn't work so the apps can't start (at least via the screen) but it's a start! Silver USB cable on the left if ethernet-over-usb (which works fine), on the right is a USB key from which the root filesystem, kernel and modules were installed (not needed for subsequent operation but used for debugging by copying log files to the key etc.). Stats: Still too large at over 80Mb installed for a full GUI but that is still 100Mb smaller than a minimal Debian system without any GUI stuff. Available only for ARM Tested only on Balloon3 : http://balloonboard.org/index.html Not installing cleanly at this stage - some fettling is required. 192 packages used. Linux balloon 2.6.25.2-pxa270 #1 Sun May 18 22:38:11 BST 2008 armv5tel unknown ii dpkg 1.14.20em1 ii libgpewidget1 0.115-5em1 ii libgtk2.0-0 2.12.3-2em1 Access: Ethernet over USB (static IP only at the moment) USB storage / keyboard Serial connection SSH pending Lots to do to make it simple but at least it works. Tuesday, July 1. 2008Right of reply??
Problems with hmrc.gov.uk - the new non-PDF format of the tax return is a complete mess and very misleading. I wanted a PDF so that I could compare the generated return with an actual return from previous years, so I sent this feedback:
"The Help and FAQ claim that a colour PDF is available and I'm assuming that the PDF will be a closer match to the paper based form which I need to be able to compare this return against last year. The option to obtain a PDF has disappeared. (I am able to process PDF without needing any software from Adobe as that is the main point of a Portable Document Format so if this is because the site is checking for Adobe software on my computer, it should stop doing so and simply provide a link to the PDF file.) " The response shows that nobody actually reads the comment: "Thank you for your online enquiry. To print your return in PDF format you are required to have Adobe Acrobat Reader 4.0 or above. If you do not have this on your computer please logon http://www.adobe.com/products/acrobat/readstep.html to download a copy. Please be aware that this download can take a long time." i.e. Her Majesty's Government requires that you allow them to interrogate your computer to find a specific executable file or registry ID and if this is not found, certain services will be refused to you without further comment. Instead of just generating the PDF on the server and providing a link to it. The worst part is, the "secure gateway" used by HMRC doesn't even allow replies! The only option is delete!! More bias from government departments against free software. I refuse to use anything under an Adobe licence when there are perfectly capable PDF clients available under a free licence. (Let alone the discriminatory download licence). (I'm a British national but I still object to a licence that would prevent someone with dual British-Iraqi nationality, for example, obtaining a service from HMRC.) Besides which, I somehow doubt that the site would be able to correctly identify the Unix version of Adobe Acrobat Reader. I receive notification of all my taxable income via PDF so why is the taxman different??
(Page 1 of 17, totaling 130 entries)
» next page
|
Calendar
ArchivesQuicksearchSyndicate This Blog |
|||||||||||||||||||||||||||||||||||||||||||||||||
