Search Results: "Julian Andres Klode"

25 April 2008

Julian Andres Klode: Work on ubuimg / debimg for Ubuntu started


The work on the Ubuntu version of debimg has begun. The majority of changes will be the following ones (in the order they will be done):
  1. Change debimg to use germinate to calculate dependencies (package lists)
  2. Add the additional stuff (live, etc.)
Once we can recreate the Ubuntu hardy i386 and amd64 alternate disks, work starts on the live filesystem and on merging these features back into debimg master, which will also get support for more archs. debimg uses germinate directly on the Python level. debimg 0.0.3ubuntu1 is sheduled for this Sunday. This will be more or less really hacks.
  • [master] Move the fetching of packages from packages to media, so we can use it for all files
  • Add libdebimg.germinate as a wrapper around germinate, providing functions to build the disks
  • Modify libdebimg to build all disks in one run, multiple architectures and multiple seeds.
The basic code structure will look like the following:
  1. For each architecture:
    1. seeds = Run germinate
    2. For seed in seeds:
      1. Get the packages
      2. Get extra files
      3. Build the disk
The Debian version may switch to seed files too, in version 0.2.

24 April 2008

Julian Andres Klode: April Updates


This is a summary of most of my activities since end of march. BTW, I’m still at the T&S step in NM since January (I completed P&P in about 3 days). Also, thank you Tolimar for being the second DD signing my key! GNOME 2.22 (Python) / Updated Packages At the end of march, I updated some GNOME packages. These packages were gnome-python and gnome-python-desktop. The upload of gnome-python-desktop was really important, because the old version depended on libtotem-plparser7, which was not available anymore, and FTBFS because the metacity API changed. This upload made other packages building and running again! That time, I also uploaded new releases of dir2ogg and ndisgtk, which fixed some bugs. On the first of April, I updated aufs to a new upstream snapshot, which fixed linux-modules-extra-2.6’s FTBFS on armel, removed bashism in shell scripts, added a hack for limited splice support, and enabled building on -rt kernel (if the required functions are exported). Packages To-Do In the next week, I will upload a new aufs snapshot with support for kernel 2.6.25 and re-added support for kernels < 2.6.23. I will also update app-install-data to the current state of the archive. Other stuff includes my ITA upload of gimmie and the upload of jockey, a tool to install drivers. Jockey will also be modified to provide the functionality from ndisgtk, which development has been discontinued as it is feature-complete (bug fixes will still be provided). Another package will be, of course, debimg 0.1 once it’s released and of course the python-libisofs bindings. Ubuntu packages I requested syncs for dir2ogg and ndisgtk (after I uploaded sync’able versions to Debian) and for aria2, which was not installable before. I have also reported some bugs and used 8.04 for some time. debimg stuff I released debimg 0.0.3 on 4th April. This is the first release to require Python 2.5 and also the first release which uses the new media module, which provides a generic interface to disk creation. I actually have not worked on debimg since that day, mainly because I did not have enough time. In May, I hope to add support for more architectures (at least theoretically, by providing a generic way of handling bootloaders and other non-packages and non-dists files) and release 0.1. debimg 0.1 will not contain any features related to python-libisofs, because the focus is getting the basic functionality. I have also not uploaded any new netinst build on jak-linux.org, since March. debimg and the Debian Project News Debimg will appear in the second issue of the Debian Project News, I’m currently working on the text for it. (BTW, I have also fixed one link in the first issue of the DPN) debimg and Ubuntu I have suggested to switch Ubuntu’s image building to debimg, and offered to do everything needed to do this. Given the speed of debimg and that the current features almost match the requirements of Ubuntu, this seems to be a great idea. python-libisofs As you may know, I released a first preview of the python-libisofs bindings some days ago, with almost complete support for creating image files. The next steps will be reading and growing images and of course, the bindings for libburn and libisoburn. Switching from Ubuntu 8.04 to Debian unstable I am currently working on migrating my laptop from Ubuntu 8.04 to Debian unstable, in order to be able to work better on my packages. Since most of my packages are sync’able now, this enables more efficient development. Another reason is to help the lenny release. This does not mean that I will be less active on the Ubuntu side, at least not much. Let’s make Debian Lenny and Ubuntu Intrepid the best releases ever.

20 April 2008

Julian Andres Klode: Fedora 9 & Kernel Mode Setting


Today, I decided to try out the new kernel mode setting feature in Fedora 9, which moves some stuff about video from userspace into the kernel. I tested this on my notebook, a HP Compaq 6720s with Intel X3100 (GM965) graphics controller. I downloaded the preview live image for x86_64 and booted with the i915.modeset=1 option. The boot was almost normal, except that it was flicker-free. After the system booted I switched the virtual terminal from Xorg to tty1 and back, and it was extremely fast. The terminals all had the same resolution. This does not mean that everything is perfect. There are a lot of things which do not work. For example, running glxgears and moving the window does not “look good”. Also, speed was a bit low. Normally, in Ubuntu Hardy, I get about 1000 FPS, in Fedora I only got 230 FPS. But the difference was not visible. Another thing which did not work was suspend & resume, because the graphics card seemed to be not correctly re-initialized. This is worse than Ubuntu & Debian. In Ubuntu, suspend & resume works almost every time. In Debian, it works except that the backlight is disabled in X. If these problems can be fixed, it would be very interesting to get this feature into Ubuntu Intrepid, maybe not as the default, but as an option for people who want to test it. Fedora 9 seems to be a fast and stable distribution, with experimental features for experienced users and developers. It also provides a nice application for configuring PulseAudio, like per-application volume settings, a functionality I miss in Ubuntu.

17 April 2008

Julian Andres Klode: python-libisofs 0.0.1 available


A first preview of the python-libisofs bindings is available now. It’s currently located in a git branch at git.debian.org, but this may change at a later point. The bindings support the creation of ISO Images and (almost) all options libisofs supports, like Rockridge, Joliet, and much more. Reading and Modifying existing images is not supported yet. The code is written in Cython and you need cython installed for building from the git branch. It can be installed just like any other Python module/extension/package, using a setup.py. Browse: http://git.debian.org/?p=users/jak-guest/python-libisofs.git
Get: git clone git://git.debian.org/git/users/jak-guest/python-libisofs.git I’ll package it for Debian within the next weeks after some further tests.

11 April 2008

Julian Andres Klode: Asia: Phoenix available in Europe


After the reunion of the original Asia lineup in 2006, a tour and the live cd/dvd “Fantasia - Live in Tokyo” in 2007, the super group returns with the first new studio album in 25 years. For those of you who don’t know about them, Asia is a band formed in 1981, including former members of Yes, King Crimson, and Emerson, Lake & Palmer, Uriah Heep, U.K., and The Buggles. The most popular song of Asia is “Heat of the Moment”, from their debut album which spent 9 weeks at number 1 U.S. album chart. This new album is excellent, featuring songs like the rocker “Never Again” and “Extraordinary Life”. A must-have for all Asia fans out there. The new album will be released in the United States on April, 15 and in Japan on April, 23. It can be bought from Amazon.com for $9.99 and in Germany from Amazon.de for 15.97 . (See your own Amazon for your local price.) BTW, the Album is already #20 in Amazon.com Music Bestsellers. Visit the band’s Website, and buy your own one from your favorite shop.

4 April 2008

Julian Andres Klode: debimg 0.0.3 - the checksum - released


Dear readers, The third release of debimg is available now: 0.0.3 Get the tarball: http://alioth.debian.org/~jak-guest/debimg_0.0.3.tar.gz
Verify it: http://alioth.debian.org/~jak-guest/debimg_0.0.3.tar.gz.asc
The ChangeLog: http://alioth.debian.org/~jak-guest/ChangeLog-0.0.3 Clone git repo: git://git.debian.org/git/users/jak-guest/debimg.git
Browse the repo: http://git.debian.org/?p=users/jak-guest/debimg.git More Information: http://wiki.debian.org/DebImg
Daily images: http://jak-linux.org/cdimage/daily-builds/testing/
    About debimg debimg is a software designed to replace debian-cd, written in Python, and
    supporting the creation of single disks for the i386 and amd64 architectures. debimg is of course free software and licensed under the terms of the GNU
    General Public License 3 or (at your option) any later version. About “the checksum” This release is called “the checksum”, because the software knows
    the MD5SUM, SHA1SUM and SHA256SUM of every file on the disk. News
    • Introduction of the media module
      • Add md5sum.txt and sha1sum.txt to the image
      • NEW OPTION: JigdoMap, see the config file
      • Lot of code cleanup
    • Support for custom installer images
      • Modify InstallerImages to an url supported by apt
    • Renamed most options in the configuration file for better
      readability
    • debimg requires Python 2.5, as it uses the with statement.
    Description of the Release This release of debimg introduces the media module with its classes
    MediaFile, BaseMedia and DebianMedia. The MediaFile class contains information about a file.
    It contains the absolute path to the file on the filesystem,
    the path on the media, its size, md5sum, sha1sum and sha256sum. The BaseMedia class provides methods to add files to the
    image, open files on it, and creating the final image. It also
    provides methods to create the files md5sum.txt and sha1sum.txt,
    and methods to support Jigdo file creation. The DebianMedia class provides methods to add packages to
    the image, creating Release and Packages files for dists. Quick start To get started with debimg, get the tarball and extract it to
    some directory. Now, open the file debimg.cfg and change the option Mirror to the URL
    of your preferred mirror. This mirror may be any kind of mirror supported by
    apt, but if you use file:/ they have to be on the same mountpoint, as the files
    are hardlinked. (use copy:/ to get them copied). Now, run ./debimg debimg.cfg. This will create an ISO image named
    debian-lenny-i386-netinst.iso. This image is a normal netinst (except for
    missing documentation and some other small things), and contains the Lenny d-i. To change more settings, take a look at debimg.cfg. Future
    • Cleanup of the configuration format (almost finished)
    • Support for splitting disks
      • Introduction of MediaSet class
      • Changes to the lists required
    • Add documentation to the disks
    • Support for PowerPC
    • Create Debian package (almost finished)
    Another interesting feature will be the libisofs [0] support provided by
    the python-libisofs extension, which is currently under development. [1] Previous release announcements Links

    2 April 2008

    Julian Andres Klode: Python Extension for libisofs


    I am working on a Python extension for the libisofs library. The extension is written in Cython , a Python-like language designed to write Python extensions. At a later point, this extension will be used to create the ISO Images in debimg. It will be disabled by default, but you can enable it via a configuration option.

    24 March 2008

    Julian Andres Klode: Python Speed: Getting the first part of a string


    If you want to get the first part of a string (in the following example a), you should use the partition method of the string, as it is the fastest way (and it also gives you the delimiter in [1] and the other part of the string in [2]): In [1]: a = ‘a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z’ In [2]: timeit a.partition(’/')[0]
    1000000 loops, best of 3: 362 ns per loop In [3]: timeit a[:a.find(’/')]
    1000000 loops, best of 3: 443 ns per loop In [4]: timeit a.split(’/', 1)[0]
    1000000 loops, best of 3: 697 ns per loop In [5]: timeit a.split(’/')[0]
    1000000 loops, best of 3: 1.45 s per loop These tests were made with IPython 0.8.1 (Python 2.5.1 (r251:54863, Oct 5 2007, 13:50:07) ) on an Ubuntu 64 bit system.

    21 March 2008

    Julian Andres Klode: debimg news: disk splitting, new data lists, PowerPC


    The next release of debimg (0.0.3) will be the first release supporting splitting packages over multiple disks. I worked a lot on the base technology today, and the basics are working. In order to get support for disk splitting, I introduce three new classes: Media, MediaSet and MediaSetCollection (all in libdebimg.media). The Media class is responsible for adding files to an image (incl. copying/linking), generating extra files (like MD5SUMS or documentation) and for building the image. It knows the space which is free, the size of each file and the md5sum of each file. It also writes all data inside dists/ The MediaSet class contains one or more Media instances. It has the functionality to split the packages into the disks. MediaSet knows the dependencies of all packages and tries to add it to the disk with smallest number (e.g. 1) if there is enough space left for the package and all dependencies. If a dependency is on disk2, the package will be added to disk 2 or later. (If one dependency is on the last disk, we don’t check where the others are, instead, we put it on the same disk [faster]) The MediaSetCollection class contains multiple MediaSet instances (e.g. for DVDs and CDs), and calls their functions. This makes it possible to build multiple MediaTypes at the same time in an efficient way, because we don’t need to call debimg multiple times or run in multiple loops. This means that many methods of libdebimg.packages.MirrorBuilder move into the new module. For example, the writePackagesFiles() and writeReleaseFiles() will be part of media.Media. (and can be called from MediaSet [for every Media] and MediaSetCollection [for every MediaSet], too) From boot, run_genisoimage() will be removed. It is replaced by the createImage() method of media.Media. In future, debimg will be able to run in three modes: simple, set and sets. The simple mode only creates one disk and is used for netinst and businesscard images. The set is used when only one MediaType has to be generated. The recommended mode for building e.g. weekly-builds is sets, as it has support for multiple MediaTypes. Another change is the change to the format of data/*.list. I remove the keys called Priority and Tasks. Instead of these, I will add support for these directly into Depends. This means that you will be able to use “Priority:standard” just like “pkgname”. This makes sorted lists possible, which are needed for disk splitting. I will also rename the package list to match the names used in debian-cd (mostly) and add a new field called Single-Disk: yes, which disables sorting of the list, and is a bit faster than the other one. This feature code is unreleased at the moment, but will hopefully be ready next week. Please note that I will never build complete sets with debimg. Therefore, I added a mode to create a list of all packages and build the image without them. (I have no local mirror) Next week will also be the start of the first daily-builds of PowerPC images and businesscard images available from jak-linux.org/cdimage. If you want to use the current release (0.0.2), a good point to start is a mail I wrote: http://lists.debian.org/debian-cd/2008/03/msg00116.html

    20 March 2008

    Julian Andres Klode: debimg 0.0.2 builds netinst in less than 4 seconds


    debimg 0.0.2 has a new high speed dependency resolver and support for local repositories. With these new features, debimg is now able to produce netinst images in less than 4 seconds. BTW, you can easily build your own disk. Simply unpack the tarball, change the mirror to your one, and run ./debimg debimg.cfg. This should give you an i386 netinst disk. Get debimg 0.0.2 from http://users.alioth.debian.org/~jak-guest/debimg_0.0.2.tar.gz Fetch daily-built images at http://jak-linux.org/cdimage/daily-builds/testing/. For more information, see http://lists.debian.org/debian-cd/2008/03/msg00114.html

    6 March 2008

    Julian Andres Klode: cdimage for debimg is online now!


    debimg’s cdimage is now online at http://jak-linux.org/cdimage/, and contains daily-builds of Debian testing netinst disks for i386 and amd64 architectures. debimg is a new software which aims to replace debian-cd. No code has been released yet, but will be in the next days. Please note that I can only provide jigdo images, because of bandwith and storage. I will soon add build logs, and files listing the differences compared to original netinst images. I will also add support for more architectures. debimg homepage at jak-linux.org

    4 March 2008

    Julian Andres Klode: gimmie (ITA) and the new menu policy + building with pristine-tar


    While working on Bug#460620: ITA: gimmie — elegant desktop organizer, I noticed that I need to upgrade debian/menu to the new policy. Currently, gimmie uses Apps/Tools, but what should I use now? It does not fit into the other sections. Recommendations? Other important changes:
    • I am the new maintainer
    • Gmenu and sexy extensions are not built, instead the python-gmenu and python-sexy packages are used
    • Gimmie’s extensions are compiled for Python 2.4 and Python 2.5
    • debian/copyright uses the format defined at http://wiki.debian.org/Proposals/CopyrightFormat
    • The suspend and hibernations buttons are back again (Commit)
    The package is maintained in a git repo in the collab-maint project, and can be viewed online using Gitweb. You can get the source from its repo at git://git.debian.org/git/collab-maint/gimmie.git To create the orig.tar.gz tarballs, you need to have pristine-tar installed. To build the package, install git-buildpackage (from unstable) and pristine-tar and simply run ‘git-buildpackage –git-pristine-tar’ The same instructions also apply to building readahead-list, which can be found at git://git.debian.org/git/collab-maint/readahead-list.git

    25 February 2008

    Julian Andres Klode: pristine-deb - git-buildpackage s pristine-tar support


    Reading about the idea of pristine-deb, I actually noticed that using ar -rc file.deb debian-binary control.tar.gz data.tar.gz does not work, due to timestamps and other differences. I am currently working on a pristine-deb program which will workaround all these issues. It will be able to work with git repositories like pristine-tar and uses pristine-tar for control.tar.gz and data.tar.gz. I may also add a function to decompress all compressed files (like changelog.gz) and uses pristine-gz to compress this file again before adding it to the tarball. This may save some additional space. BTW, git-buildpackage now supports pristine-tar. Simply enable it with “pristine-tar = True” in gbp.conf. Thank you Guido Guenther, for adding these patches.

    Julian Andres Klode: debimg - debian-cd in Python


    I’m currently working on a rewrite of debian-cd in Python. Although there is already deb-imgs-gen, I decided to start from scratch, because deb-imgs-gen is more than 1 year old. debimg’s main features are Speed debimg should be able to build netinst disks in less than 20 seconds Free Software This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Easy Configuration
    • Packages can be included based on their priority, tasks or name (no manually created task files)
    • All packages are defined in one file,which is based on the format on debian/control. You can even use the “package [architectures]” syntax from Build-Depends
    Based on python-apt
    • Highspeed dependency solver written in C (or C++ ?)
    • Used for downloading all kind of data in debimg
    • Packages ,.gz files are created from the apt cache instead of scanning the disk
    many features are missing at the moment, and no code has been released. I will send an email containing more details, like configuration file examples, to the MLs in a few days.

    14 February 2008

    Julian Andres Klode: Ubuntu: aufs with casper 1.118 / ndisgtk 0.8.1 / ndisgtk in main?


    Colin Watson today uploaded casper 1.118, now supporting aufs. To use aufs in future Ubuntu disks built with casper 1.118 or newer, use union=aufs. Please test it. Another upload today was ndisgtk 0.8.1-1ubuntu1, bringing Ubuntu up-to-date with Debian and closing 3 bugs. BTW, I requested to include ndisgtk in main, see https://wiki.ubuntu.com/MainInclusionReportNdisgtk. Having ndisgtk on the Ubuntu disks would be very useful for users without linux network drivers available and without enough experiences to use ndiswrapper from the commandline.

    11 February 2008

    Julian Andres Klode: JAK LINUX website now powered by ikiwiki


    I’m glad to announce that finally, after being powered by ftpsync for more than six months, the JAK LINUX website now uses ikiwiki. I currently have some small issues with the website: After using –rebuild, tarballs have a different modification time and are therefore reuploaded everytime, though the content is actually the same. I would also need a plugin to create directory indexes with sha1sums, but I haven’t found one yet. (If you know one, please let me know). If you have never heard of ikiwiki: ikiwiki is a wiki system used and developed by Debian Developer Joey Hess and many contributors. In contrast to ftpsync, a python script I wrote in 2007, it has an active upstream with multiple contributors, and supports multiple markup languages (e.g. Markdown). This switch to ikiwiki is also a switch back to the design used at mentors.debian.net, which had been replaced in December 2007 with a (CC-licensed) design created by styleshout.com. This template just looks better and has the better license (GPL-2). In the next days, I will cleanup and extend the website and the template and release both under the terms of the GNU GPL version 2. I will alsoI will also try to write a plugin for directory indexes, write a plugin to create directory indexes (although I have almost no experience with perl), and will release it under the GPL 2. Thank you, Joey and all contributors for creating this software.

    4 February 2008

    Julian Andres Klode: Experiences with git and pristine-tar


    In the last days, I used git very often. It was almost the first time I really used it, but I quickly understand the basic commands. As some of you may know, the readahead-list package is now maintained in a git repo in the collab-maint project. I decided to use git instead of bzr (which I used for everything before), because of its speed and because I wanted to learn more about git, how it works. I used git-import-dsc to import the first revision, and used debdiffs from 1 to 2 and from 2 to 3 to import the next revisions. Afterwards, I run git-import-orig on the new upstream tarball, which I downloaded and recompressed. Then, I did the packaging changes, added them using ‘git add changed-file‘ and committed them using git commit. After I had done this, I read Planet Debian and saw Joey Hess’s post about the new features of pristine-tar 0.5, i.e. the integration with git. Running Ubuntu at the moment, I fetched the source package, built it and installed it. I then opened a shell in my git repo and ran pristine-tar commit path-to-orig upstream/0.20050517.0220 to import the delta for the first tarball. Afterwards I did it for the second tarball. Because I use git-buildpackage to build the package and Joey said he would like to see support for pristine-tar in git-buildpackage, I then wrote a patch for the programs in git-buildpackage to import and export the orig.tar.gz when needed. The patch can be seen in gitweb, and the maintainer responded in Bug#463580 will integrate the patch with some minor modifications.
    Both git and pristine-tar are great works, and it makes it so easy to maintain the readahead-list package. The combination of git, git-buildpackage and pristine-tar is the most powerful I ever used to maintain a Debian package, especially when you are not upstream.

    Julian Andres Klode: uploads and machine-readable copyright


    Two days ago, zobel uploaded some of my package updates for me. One of them was ndisgtk 0.8.1, which adds more translations and fixes some problems. I intent to create a 0.9 release soon, with support for PolicyKit. I will upload the release candidate of this version to Debian experimental and Ubuntu Hardy. The other upload was readahead-list 1:1.20060421.1016-1, which I found on the Gentoo mirrors, but not where previous releases were located. This is OK, because the upstream author is a Gentoo developer and uploaded this tarball himself. I already requested to sync this release into Ubuntu Hardy, to reduce the diff between both distributions. In both uploads, I changed the format of debian/copyright to match http://wiki.debian.org/Proposals/CopyrightFormat. I will also change my other packages in their next uploads, and hope that other maintainers also use the new format, especially for NEW packages. I some cases (especially when you are upstream + packager), this format is also shorter.

    Julian Andres Klode: Debian Maintainer


    Since yesterday, I am a Debian maintainer. This will help me and my sponsors, which have to do less now. I can now upload new versions of my packages if the version in unstable contains the “Dm-Upload-Allowed” field in the dsc (and only if the package is not NEW). For more information about the Concept of Debian Maintainers, see http://wiki.debian.org/Maintainers I’m very happy about this, as it makes my life easier. But this does not mean that I don’t want to be a DD anymore. A DD is able to vote, to sponsor packages, to upload NEW packages, and many more things. (BTW: I’m currently at T&S step)

    29 January 2008

    Julian Andres Klode: Improved aufs support in Ubuntu, Debian


    pre-compiled aufs modules for Ubuntu Hardy will be available soon. Today, the linux-ubuntu-modules git has seen the commit which adds the aufs module for generic and server kernels on the i386 and amd64 architectures. But this is not the only thing. 5 patches from the aufs source have been commited to Ubuntu Hardy’s kernel repo.
    1. Export __lookup_hash: and is needed for NFS
    2. Export put_filp: This patch exports put_filp and is needed for NFS.
    3. Export do_splice_from and do_splice_to:
    4. Export security_inode_permission(), also used by UnionFS, where it is currently disabled
    5. Export deny_write_access():
    The aufs source package will see an update in Debian soon, which will be sync’ed into Ubuntu Hardy. This update uses the same code as the aufs code in linux-ubuntu-modules. This new code has improved XFS support, improved TMPFS support, improved support for lhash and put_filp patches. It’s also the first revision to support kernel 2.6.24. In the next days, we may see first disks using aufs. I’ll provide patches for the software tomorrow. If nothing goes wrong, Ubuntu Hardy disks may use aufs instead of UnionFS, which may still be provided as a fallback.

    Next.

    Previous.