Home Home > Packaging
Sign up | Login

Deprecation notice: openSUSE Lizards user blog platform is deprecated, and will remain read only for the time being. Learn more...

Archive for the ‘Packaging’ Category

Now out: kde4-skrooge 0.2.7

April 28th, 2009 by

Hi Mates,

now out: kde4-skrooge 0.2.7. Published in openSUSE:Factory:Contrib and KDE:KDE4:Community.

ARM support in openSUSE Buildservice – fixed

April 27th, 2009 by

The issue caused by the OBS worker update on arm builds is fixed by a new qemu.

This new qemu version also has fixed the Fedora 10 @ ARM build problem.

So we have the following working ARM target distros available for ARM: Fedora 10, Debian 5.0 and Ubuntu 9.04.

Have fun.

ARM support for openSUSE Buildservice and openSUSE – Status update

April 26th, 2009 by

Its a while since I posted the status about the ongoing work for ARM support in the OBS and for an openSUSE port. It all started with my participation in the OBS development as an external contributor. Then, on Hackweek 2008, we had the idea to enforce a new solution other than the traditional methods of compiling code either natively or via a cross compiler on a host system. The idea was to give build scripts as much of the target enviroment as they need to just work without changes in the packaging definition – in order not to change thousands of package descriptions which define a linux distribution.

A lot happened in the meantime. And I can now report some significant progess in bringing the joys of OBS and openSUSE also to all the ARM users:

  • I held a talk about cross build in OBS on FOSDEM 2009 – documenting the solution
  • ARM support is in the source tree for OBS and the publicly available packages
  • ARM support is activated in the public OBS
  • OBS 1.6 release is currently in beta – this release is the dedicated version for ARM
  • The Linux foundation will bring the joy of OBS to an even wider audience
  • Some preparations have been done for porting Base:build to ARM – we can mix cross compilers an native emulated code now
  • A Summer of Code project will be done to accelerate the development of an openSUSE @ ARM port
  • To accelerate the openSUSE @ ARM development itself, we want to involve more people of the community. We have an IRC Channel #opensuse-arm for OBS and openSUSE @ ARM – i invite you to visit us there. We will also find a solution to bring the needed changes into the openSUSE Factory codebase so regular build for openSUSE can take place once the base system is working. I will inform you once we have a working base system that can be used to port many other packages. The soon starting Summer of Code Project “Porting openSUSE to ARM platform” is intended as the starting point here.

    The next steps are to bring in all the useful applications into OBS, so you have the wide range of applications that is already available for x86 or powerpc then also on ARM. You will see interesting things happening during the next time here. To support this, more and more of the tested ARM targets will be made available also on the public OBS. I will follow up with status updates.

    ARM support in openSUSE Buildservice – currently broken

    April 26th, 2009 by

    With this message I want to make you aware that the ARM builds inside OBS are currently broken. This is due to an update of the buildservice worker code on Friday. This update removes the limit of 2 GB for the build results from the buildservice. Also, the performance of the buildservice backend code has been improved for high loads with lots of new events.

    We are now faced with an incompatibility of the underlying QEMU emulator with this new code to extract the build results in the combination of XEN and QEMU user mode. You can in fact see in your build logs for ARM error messages like:

    … saving built packages
    /usr/src/packages/DEBS/dsme-tools_0.6mer3_armel.deb
    Unsupported ioctl: cmd=0x0002 (0)
    FIGETBSZ: Function not implemented
    Unsupported ioctl: cmd=0x80041272 (4)

    We are working on a solution already. A new QEMU with this and another issues fixed is already under test and has been dropped to openSUSE:Tools:Devel/qemu-svn. I will inform you when we have this fixed in the public build service.

    How to track changes in packages: osc vc

    April 21st, 2009 by

    As you may know, SUSE was originally based on Slackware. And some some relics from those early days if SUSE survives to present. The biggest example visible for end-users was packaging of desktop environment to /opt. Gnome was switched few years ago and KDE3 packages still remains in it, because packagers decided to focus on KDE4, so only those packages are comfortable with FHS and are installed into /usr.

    With opening of SUSE development towards community via BuildService’s collaboration, or Contrib, the another relict of Slackware days was raised – which I mentioned in my previous post – a .changes file.

    This file is used in SUSE for tracing of package changes and rpm %changelog is created from this file during build. As it has a consistent format, we used an internal command called vc for add a new entry to it and this tool generates a proper header of changes file. So after my last patch, implementation of osc vc was a logical (but not straightforward) job.

    After some discussions with Ludwig Nussel and on opensuse-buildservice mailing lists, I implemented and committed an osc vc command. This is based on buildvc script written by Ludwig and is available in build.rpm (from version 2009.04.17). It has the same behavior as an old vc command.

    Basic usage of this command is simple:

    user@host:some:project/package/ $ osc vc
    

    Command will find a changes file, open it in EDITOR (default is vim) and fill a header. You can also use it in non-interactive mode using -m MESSAGE. You can also specify a file to edit, or edit a file in other directory than current, … – see osc vc –help

    The main difference between buildvc and osc variant is in e-mail address handling. The osc implementation has more sources of it, so it try to

    1. use content of mailaddr variable (same as buildvc)
    2. read a configuration from ~/.oscrc
    3. read an email from user’s metadata (see osc meta user your_login)

    This is because many users want to use a different e-mail for changelogs than iChain one, so osc allows configure an email for each instance of BuildService. Appropriate part of ~/.oscrc looks like

    [https://api.opensuse.org/]
    user = login
    pass = password
    email = user@defined.email
    

    Now out: python-gasp & bleachbit

    April 20th, 2009 by

    Hello Mates,

    today i submitted two new Programs into openSUSE:Factory:Contrib:

    * python-gasp (A Library for Python Students)
    * bleachbit (Cleanup in /home or where you want.

    I wish you many Joy…

    Better commit message handling for osc

    April 16th, 2009 by

    If you are familiar with SUSE packages, you probably know about .changes files, which is used for tracking changes. This file has a defined structure and is converted to common %changelog section in spec file during build of package. It worked well with many internal tools and everyone was happy in those old good times ;-).

    Nowadays, we had a BuildService and osc, which has it owns commit log. I have aimed to keep the content of changes and osc changelog synchronized. But manual copying of it is not very reliable approach. So I wrote a small patch (and Adrian gives me a write access, so it is a r7099), which checks changes in it and add them to commit message as a template, so it will be easier to keep them synchronized.

    How it works:

    vi package.spec # do some changes
    vc -m "some changes done" # vc is an internal command
    osc commit
    

    and osc will open an editor with content like this

      1 - some changes done
      2 --This line, and those below, will be ignored--
      3
      4 M    package.changes
      5
      6 Diff for working copy: .
      7 Index: package.changes
      8 ===================================================================
      9
     10 --- package.changes     (revision 19)
     11 +++ package.changes     (working copy)
     12 @@ -1,3 +1,8 @@
     13 +-------------------------------------------------------------------
     14 +Thu Apr 16 16:00:58 CEST 2009 - mvyskocil@suse.cz
     15 +
     16 +- some changes done
     17 +
     18  -------------------------------------------------------------------
     19  Thu Apr 16 15:37:52 CEST 2009 - mvyskocil@suse.cz
    

    Now you can type :w (save) for commit, or :q! (quit without saving) for abort. The behavior of -m argument is unchanged.

    Combine osc with git

    April 15th, 2009 by

    Yesterday Jan-Simon (dl9pf) tells me about an great Program calls “git”. Git is an Version-Administration Program. Anything knows the Problem. We working on an Project into our osc, and 2 Weeks later, we don’t know, what the last changes was. On this place can git help.Now following a short Introducting:

    First of all we need an .git Folder. In my case i have all Projects in ~/osc/- As example i’m going to my foo.

    $ ~/osc> cd foo
    $ ~/osc/foo> git init
    Then git says:
    Initialized empty Git repository in /home/sascha/osc/foo/.git/

    $~/osc/foo> echo 123 > datei1

    $~/osc/foo> git add datei1
    This adds datei1 to your .git folder. If you use git add * you can add more than one File.

    $~/osc/foo> git commit -m”Initial Version” (Or what you want)
    git says:
    Created initial commit a7458cf: Test
    1 files changed, 1 insertions(+), 0 deletions(-)
    create mode 100644 datei1

    $~/osc/foo> echo 456 > datei2
    $~/osc/foo> git commit -m”Change 1″
    git says:
    Created commit d1ef978: Change 1
    1 files changed, 1 insertions(+), 0 deletions(-)
    create mode 100644 datei2
    $~/osc/foo> gitk (this is an GUI)

    That looks:

    gitk

    There you can find all Changes since “Intial Version”.  Git can also manage branches and can merge it perfectly. So i think that git is very good Tool. And an good completion. With an wrapper file it is also possible to add or remove files in osc and git. Very nice -)

    Updated Software: necpp 1.3.0+cvs20090101

    April 12th, 2009 by

    The Program necpp in Version 1.3.0+cvs20090101 is out. I’ve published it in hamradio:/ and home:saigkill

    New/updated Apps @ home:saigkill

    April 4th, 2009 by

    The following changes was in my home:saigkill Repo:

    dumb 0.9.3 (Dynamic Universal Music Bibiotheque)               NEW submitrequest to games:/
    kqlives 20080202 (Zelda like RPG)                                                  NEW submitrequest to games:/

    kde4-kblogger 1.0svn948858 (Blogging Client for KDE4)       NEW