Mailinglist Archive: opensuse-packaging (23 mails)

< Previous Next >
10.1 RC1: bug in %suse_update_desktop_file + about python packages
  • From: Pascal Bleser <pascal.bleser@xxxxxxxxx>
  • Date: Fri, 14 Apr 2006 04:26:20 +0200
  • Message-id: <443F084C.6010903@xxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Started building on 10.1 RC1 and I noticed two things:

1) there's a bug in the %suse_update_desktop_file macro
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(in the /usr/lib/rpm/suse_macros file)
I always use that macro like this:
%suse_update_desktop_file -r "%{name}" Foo Bar

The -r flag overwrites categories that already exist in the .desktop
file (without -r, it just appends to the existing).

That doesn't work on 10.1, the bug + workaround is described here:
https://bugzilla.novell.com/show_bug.cgi?id=166170

Workaround: edit /usr/lib/rpm/suse_macros and change line 48:

%suse_update_desktop_file() \

into this:

%suse_update_desktop_file(cinrud) \

2) all your spec files that build using python setuptools are hosed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The default prefix for builds with Python setuptools (setup.py) is now
/usr/local instead of /usr

So you need to change the
%__python ./setup.py install --root="%{buildroot}"
line into this:
%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}"

Then it works as expected.

I wanted to file a bug for this one as well, but I've been told it's
explicitely wanted that way.

Could someone @SUSE comment on this one ? Adrian ?
Is it a bug or is it intended ?

cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\ <pascal.bleser@xxxxxxxxx> <guru@xxxxxxxxxxx>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEPwhLr3NMWliFcXcRAnvAAJ4lVwxoce+5rF7waX9KtGINqNz/MgCcC9bN
63i7af2m9M1KlrzagL4yS/U=
=1glY
-----END PGP SIGNATURE-----

< Previous Next >