Search Results: "edd"

1 April 2008

Kartik Mistry: Just finished


* … I just finished installation of Ubuntu 10.

31 March 2008

Lior Kaplan: Where did the numbers go ? (major bug in OO.org 2.4.0)


About two months after the Israeli government stopped the support for openoffice.org localization, we hit a major bug (actaully - a regression) with version 2.4.0 effecting Hebrew users. In version 2.4.0 numbers written in Microsoft Word documents are shown as Hindu numbers instead of Arabic numbers. There’s a big confusion in the terms, as the number used in Arabic are the Hindu numbers and the number used in Latin languages are the Arabic numbers. Anyway, this means that, the facto, Openoffice.org 2.4.0 can’t show properly Microsoft Word documents which were written in Hebrew. I can’t start to describe how much interoperability problems that causes in Israel. Which such behavior I can’t recommend OO.org to people, and organizations already moved to previous versions of OO.org can’t upgrade to 2.4.0 and must stay with 2.3.1. This is also a problem as most Linux distributions (Debian, Ubuntu, Fedora) intend to include 2.4.0 for their stable release. With all the RTL related bugs, OO.org was still usable. But this bug absolutely changes things. I hope it will be fixed for 2.4.1 and won’t be delayed for version 3.0. I wish I could say this is an April’s fools post, but that bug is a reality… Please vote for this bug.

30 March 2008

Lior Kaplan: Closing old Firefox bugs


Back in October I ran a Firefox/Iceweasel bug triage which resulted in handling 60% of the bugs. 5 months later, this leaves ~130 bugs which I’d like to close as the submitters aren’t responsive (2/3 pings as usual). It will probably take me some time to manually review the reminding bugs before closing them. The reason for manually reviewing the bugs is to try and lower the false positives. Although I don’t see too much of them anyway as there were enough chances to verify them. The list of the old bugs is at http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=firefox. Help reviewing them will be appreciated.

Kartik Mistry: Are you Debian User?


* If yes, then read and reply to this mail! Thanks to Pabs!!

Lior Kaplan: Ubuntu and the lack of Thunderbird Hebrew localization


Almost a year ago Ubuntu uploaded thunderbird-locales for Thunderbird 2.0.0.0. As the Hebrew localization wasn’t ready then, they dropped the hebrew l10n package & files. During the last year Mozilla released more localizations for Thunderbird, but it doesn’t seem Ubuntu updated their package since the initial upload. In the same period Debian (thanks to Daniel Baumann) has added 5 more languages (some are unofficial localizations), including Hebrew. The Israeli Mozilla team is quite annoyed by Ubuntu users which (rightfully) want a “native” support for Hebrew as opposed to installing the xpi file themselves. Same for users which upgrade from feisty to newer versions and discover the support isn’t available any more. Officially, the bug report is open for 3 weeks. But like Tomer, I do too remember an older report about this issue. I do hope to see the issue solved, as I’m (as a member of the debian-hebrew team) also getting questions about the package. So, Ubuntu people - please help us get the long waited Hebrew localization for Thunderbird…

Lior Kaplan: Ubuntu and the lack of Thunderbird Hebrew localization


Almost a year ago Ubuntu uploaded thunderbird-locales for Thunderbird 2.0.0.0. As the Hebrew localization wasn’t ready then, they dropped the hebrew l10n package & files. During the last year Mozilla released more localizations for Thunderbird, but it doesn’t seem Ubuntu updated their package since the initial upload. In the same period Debian (thanks to Daniel Baumann) has added 5 more languages (some are unofficial localizations), including Hebrew. The Israeli Mozilla team is quite annoyed by Ubuntu users which (rightfully) want a “native” support for Hebrew as opposed to installing the xpi file themselves. Same for users which upgrade from feisty to newer versions and discover the support isn’t available any more. Officially, the bug report is open for 3 weeks. But like Tomer, I do too remember an older report about this issue. I do hope to see the issue solved, as I’m (as a member of the debian-hebrew team) also getting questions about the package. So, Ubuntu people - please help us get the long waited Hebrew localization for Thunderbird…

Neil Williams: deb-gview, dpkg and emdebian-tools

OK, been quiet for a few days, at least on the blog, but in accordance with typical behaviour (for me at least) a quiet blog means a lot of things going on elsewhere. The smallest was a fix for deb-gview - combining a fix for opening files in the current working directory with a fix for the imminent dpkg 1.14.17 which modified the .changes file format a bit. That was relatively easy and I've uploaded 0.2.1 to unstable. gvfs hasn't made testing yet so there's no point in waiting for deb-gview to migrate before 0.2.1.
The largest change? Depends how you define large:
  1. Large number of changes to package files - emdebian-tools 1.0.0
  2. Large effect on Emdebian workload - dpkg 1.14.17

dpkg
dpkg bugs closed - emdebian-tools 1.0.0 pending - dpkg-shlibdeps is now able to look into directories containing libraries used by cross-built binaries provided that the right environment variable are set. Closes: #453267. dpkg-buildpackage will set PKG_CONFIG_LIBDIR (but not override an existing value) in case of cross-compilation so that pkgconfig finds .pc files in the directory specific to the target architecture. Closes: #439979.
These two changes will have a major effect on the overall workload required within Emdebian and give us a sane cross-building environment in Lenny which is ABSOLUTELY $^ @&*! FANTASTIC. :-) Currently, 1.14.17 is in experimental but I've installed it on my system for testing purposes so that I can complete emdebian-tools 1.0.0:
emdebian-tools 1.0.0
Now here, I'm making some progress. A bug has been bothering me for some time with how emdebian-tools needs a Debian primary mirror to calculate various dependency information and other apt cache stuff whilst taking into account the host architecture. Simon and I now think that we can do the dependency stuff with a continually updated dpkg-cross repository and I can use libcache-apt-perl for the rest. So whereas dpkg-cross might still exist into Lenny, it is looking like apt-cross might not - at least not as an application. However, I'm not taking that step with emdebian-tools just yet. In the meantime, I'm simply using debconf to replace the automated selection of a Debian Primary Mirror and passing that mirror to apt-cross - something I should probably have setup a while ago.
As well as that bug fix, I've added a check to emchain so that users are warned if they don't actually need to run it, added the mirror support to the various scripts and removed the workarounds now fixed by dpkg.
'dpkg-buildpackage -a' is usable for nearly all packages once you have dpkg-dev >= 1.14.7. emdebuild >= 1.0.0 is only necessary IF:
  1. You want to modify/update Emdebian patches (not just apply them) - i.e. if you have commit access to Emdebian SVN.

  2. You need the one remaining wrapper: 'X-Build-Cross-Libtool: yes' which is my next main target. This is a package-specific problem and each incidence needs a package-specific solution via an appropriate patch. As such, the wrapper is likely to stay in place in emdebuild for some considerable time - at least until someone can rebuild the entire archive with a test that can identify which packages are still affected.

  3. You want the build checks currently implemented by emdebuild but which I plan to spin out during the life of emdebian-tools 1.x. I want to standardise those build checks and abstract them into possibly a lintian-compatible check set.

Also, there should now be no need for any wrapper scripts that anyone may have devised to mangle LD_LIBRARY_PATH or PKG_CONFIG_LIBDIR - indeed,
explicit support for these within dpkg means that it is to be considered harmful from now on to touch these variables, except possibly in some specific corner cases.

28 March 2008

Kartik Mistry: Joy


* Of fixing/NMUs 2 RG Bugs (Thanks Madcoder and Kumar!) * Of this smile! Kavin s smile after he learn to stand!

27 March 2008

Julien Danjou: PHP applications code quality

Ah, Erich, that IS so true. I never found a well written PHP application anyway, or it was only 10 lines long. I guess that's primarily the language fault. It permits to do a lot of stuff and does not simplify, help nor force the simplest implementation methods like MVC which should be the base in Web developement. Well, take as example what we would do with Python and GTK+ if they were like PHP and HTML (I do not have the API reference so it will be somewhat improvised):
#finally we do not need this module I wrote everything myself
#import somemodule
def main():
    # Well we want to do some printing
    window = GtkWindow()
    # Connect to the database without any abstraction, that sucks
    db = mysql.connect()
    data = db.query("select RANDOMLYTYPEDDATA from MYONLYTABLE");
    while data:
        # Ah, we do not have include() so we cannot reuse code
        # I'm a PHP developer, I do not know functions
        import somestuff
    window.print(somestuff.result)
    # Obviously, forgot to close db connection, etc.
    if form.data.field == "hello":
        # The user asked for hello, print hello
        window.print("hello")
    # debug
    print data[0]
    if form.data.anotherfield[0] == "morning":
        data = db.query("select anotherdata from MYONLYDATA")
    else:
        sys.exit(42)
    label = GtkLabel()
    # Yes know we construct the view!
    window.add(label)
    label.print(data)
That is typical PHP code: we just take randomly typed data from our DB eng... no wait, from MySQL (remember that's LAMP!!! Not LAPP or anything else, bitches!), then we print some HTML code with data, and we do tests on environment, forms, etc, and we get back data, reprint them, do not use functions but include() multiple times thousand of files and then do not close/free anything. It's so easy to do bad code that lot of people coming from nowhere and who did not learn anything from other languages are doing it. Another hypothesis coming from my experiment: PHP is a language which can be developed under any OS since it's server-side executed. A link between mostly brain dead "developers" from the Microsoft world and whose from the Free Software world. A clash. I apologize to some of my coworkers doing better PHP all the day. :-)

25 March 2008

Tollef Fog Heen: pkg-config, sonames and Requires.private

This post is both an attempt at replying to a bug against telepathy-glib, but also an attempt at explaining what Requires.private do (and don't). I am using Evolution as my example here, not to pick on Evolution or its authors in any way, but because it's a convenient example. Currently, on Ubuntu Hardy, evolution links against 75 different libraries. Amongst those, we find libz.so.1, libXinerama.so.1 and many more. I'll go out on a limb here and claim that Evolution does not call any of the functions in libXinerama directly. Let that be the assumption from here on. An obvious question then is, why does evolution link against libXinerama.so.1 if it doesn't use it? To answer that question, we need to go back in time to before we had dynamic linking. If you wanted to build a binary like evolution you had to have 75 -l statements when you linked and you ended up with the whole code for Xinerama embedded in your email and calendar client. For various reasons, we stopped doing that and switched to dynamic linking where the evolution binary just contains a reference to libXinerama. At some point we also grew the ability for libraries to contain those references to other libraries, so you don't have to hunt down all the dependencies of libfoo when you are linking with it. We also got tools such as libtool which try to abstract away a lot of the problems of building on older platforms which don't support inter-library dependencies. Now, since evolution still doesn't use anything directly in libXinerama.so.1 but just uses a library which in turn links against libXinerama.so.1, it shouldn't be linking against it. Then why is it linked with it? Again, we need to look back at history, and for this part I am at least partially responsible. pkg-config was originally written as a replacement for gnome-config and various other -config utilities. Lots of libraries and applications now ship .pc files and we have a standardised interface for querying those files. One of the problems the original authors of pkg-config faced was the problem of dependencies. They added dependencies so the authors of gst-python-0.10 could say "We need pygtk-2.0 too" and so the compilation flags needed for gst-python-0.10 would also include those for pygtk-2.0. Note that I'm using "compilation flags" loosely here, I am not just talking about CFLAGS. This did not fix the problem of inflated dependencies. Not at all. I talked with some of the Debian Release Managers back in 2004/2005 and we worked out a solution which should help us have correct, uninflated dependencies since the then-current way of handling dependencies caused big problems for migrations of packages between unstable and testing. The plan was to introduce a new field, Requires.private which would not show up unless you passed --static to the pkg-config invocation (since you need all libraries if you are linking statically). This definition of Requires.private was mostly useless since GNOME and GTK+ have a habit of including each other's headers. To make a long story short, I changed the semantics so the Cflags field from private dependencies were included even when not linking statically. A problem which pkg-config does nothing to guard against in this case is if you have libfoo.so.2 linking against libbar.so.1 and libfoo.so.2 exports some of libbar's types in its ABI (and not just as pointers, but actual structs and such). If libbar's soname is then bumped to libbar.so.2 and libfoo is rebuilt, libfoo's ABI has changed without a soname bump. This is bad and will cause problems. If your application is linked against both libfoo.so.2 and libbar.so.1, you'll still get problems since libfoo.so.2 then suddenly pulls in symbols from libbar.so.2. If you used symbol versioning, you would at least not get symbol conflicts and your application would continue to work, but you would have a spurious dependency and the package containing libbar.so.1 would be kept around until your application was recompiled. With this background, you might ask the question why we still have Requires since it is seemingly useless. For C, it is useless in all but the most special cases, just use Requires.private instead (and its sibling Libs.private). Other languages have different semantics. Some people use .pc files for other purposes such as gnome-screensaver having variables defining where themes and screensavers go. Hopefully this blog post has explained a bit about why we have Requires.private and what the difference between this and their regular counterpart is. If there's anything unclear, please do not hesitate to contact me.

Luca Bruno: Inkscape 0.46 released


The Inkscape community is really proud to announce the release of the newest version of its open source vector graphics editor: Inkscape 0.46 is out!
This version introduces a lot of new features and various improvements, and I’d suggest you to read the release notes.
Binary packages for most common platforms will be available soon.
Inkscape 0.46 released
Kudos to all the members working to keep Inkscape rocking!

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.

22 March 2008

Lior Kaplan: Status of the binNMU unsafe packages


Back in July, I started reporting bugs against binNMU unsafe packages. All reports include a patch, to ease the work of the maintainer. During the last 8 months 58 bugs were closed and 19 more and still open. Resulting in an almost empty page for Lintian’s not-binnmuable-any-depends-any tag. The not-binnmuable-any-depends-all and not-binnmuable-all-depends-any aren’t that fare behind. We still have 572 packages which use the old style substvar (”$ Source-Version ”). As this is used with arch-dep only packages, they are still binNMU safe, as all the packages get the version number increased, so nothing breaks. See Lintain’s substvar-source-version-is-deprecated tag for more info. The numbers above might change a bit due to extending the binNMU checks, but I don’t expect them to change too much.

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

Adam Rosi-Kessel: The Onion Video is the New SNL

Growing up for the most part in the 1980’s, Saturday Night Live was the funniest regularly scheduled part of my week. It’s either gotten less funny over the years, or I’ve changed. Probably both. One of the biggest problems SNL faces is that it must fill ninety minutes every week, although these days if you subtract out ads, music, and other filler/transitional material, I expect it’s only thirty to forty minutes of actual comedy. Either way, a lot of SNL skits go on longer than necessary to deliver their comic payload. I expect this was actually true in the 1980’s as well, but I didn’t notice it so much. Enter The Onion and its video content. Freed from the confines of the television programming schedule, the Onion can make its online video clips just exactly as long as the writers want, and release them on their own schedule. In recent months, they’ve been batting in the high 800s. E.g., Diebold Accidentally Leaks Results of 2008 Election Early (on a serious note, see Ed Felten’s recent Sequoia discovery and followup); Army Holds Annual ‘Bring Your Daughter to War’ Day. Or any of them, really.
White House Press Secretary Spins Wife’s Tragic Death As A Positive
Army Holds Annual ‘Bring Your Daughter To War’ Day My only complaint about The Onion video content is that they have only one sponsor at any given time, and they make you watch the same exact ad (both as a short pre-mercial and a longer post-mercial) every time you watch a video. The repetition isn’t effective and I can’t imagine it’s the best use of the Onion’s advertising revenue. I suggest at least rotation ads — or better yet, only forcing an ad on the viewer after every nth video. Thanks to Steve and Flour for the key insight about clip-length. Technorati Tags: ,

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

Kartik Mistry: One Ring to Rule Them All

Kartik Mistry: What do you need to live?


* What else you need?? 1. Family: K with K Amazed! 2. Debian: Debian-Bootup 3. And Friends (and gifts!!) LOTR * Thanks to all F R I E N D S for ^^^ I am amazed!

19 March 2008

Eddy Petrișor: News from other worlds

I was recently forced to face once more the limitations and quirks of rpm. This is more painful, when looking at a more capable system like .deb.

When building a .deb package, the debian/rules file is pretty much the heart of all things happening, with debian/control and debian/changelog as the lungs and the liver(? maybe) .

Having different files for the maintainer scripts makes possible things like automatic (but repetitive) generation/modifications of those scripts. This can be useful in some situations when the postinst should do stuff depending on the current contents of the released upstream source (sorry, I know I am being vague, but I can't detail too much). The source package is then generated and the resulting package can be rebuilt 1000 times and the resulting postinst will not be different for a given release. But this is always done in the same way, no matter the upstream version.

Fatality one - the spec is fixed, saint, but still can be altered... still, not in due time

So the basic idea is to have postinst.in as a source for postinst, which is created during the configure stage and later removed on clean. This is possible and works on deb.

Try the same on rpm and you will fail. This is because, although the spec file supports file inclusions, the altered files are merged into the spec right at the beginning of the build process, and you end up with no or an outdated postinst. A later rebuild of the same package would do the trick, but that is wrong for more than one reason.

Fatality two - why fatality one was met

All of this is made in order to overcome yet another rpm limitation: rpm can't assist too much on upgrades; you can't simply upgrade packages properly from one version to another, because rpm doesn't have the notion of letting the scripts know which version is installed over which; it only tells that it is an upgrade or not.

This has lead some people believe rpm isn't able to upgrade at all. Glad to tell them they're wrong (still rpm sucks and is brain dead).

Fatality three - why rpm based system fail to have upgrade support today

Want another RPM limitation? RPM has this brain dead idea that on upgrade the "proper" order and way to call the maintainer script(lets) is:
The numbers 1 and 2 are literally what is passed to the scripts and mean "the number of the installed versions of the same package that will exist after the current operation finishes". No versions of any kind, no other parameters, no rollback, no nothing, just 1 or 2.

And by letting the scripts of the old version run AFTER the scripts of the new one means that you have to explicitly prepare the packages for a later upgrade support (and the best idea is to do NOTHING in the old prerm and postrm scripts on upgrades, since nobody is clairvoyant to see what would be the right course of action for upgrade in future releases).

More bad ideas from the rpm land (glad not to be there)

In somewhat related news, the fedora people are discussing now around the rejection of being able to have package names contain non-ascii characters, characters like kanji, kanas, cyrillic characters or any other characters. Even if I am pro-l10n, this wreaks of bad idea scent from a mile afar.

They aren't probably aware that even unicode is broken (if you see the same glyphs in the comparison table, that is proof unicode is broken) but that is their decision and I am glad I am not in that lost land.

Kartik Mistry: Raghudixit Project


* Got the album. Enjoying it!

Next.

Previous.