openSUSE Forums > openSUSE Build Service (OBS) » "ERROR: No sufficient Category definition"

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-Jun-2009, 13:35
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 14
andrew_z hasn't been rated much yet
Default "ERROR: No sufficient Category definition"

Quote:
WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
ERROR: No sufficient Category definition: /var/tmp/bleachbit-0.5.0-4.1-root-abuild//usr/share/applications/bleachbit.desktop
ERROR: No sufficient Category definition: /var/tmp/bleachbit-0.5.0-4.1-root-abuild//usr/share/applications/bleachbit-root.desktop
Errors in installed desktop file detected. Please mail stbinner@suse.de, if you think this is wrong.
error: Bad exit status from /var/tmp/rpm-tmp.25899 (%install)
I can build all OBS distros except openSUSE 11.1, but I can build it outside OBS. Therefore, I think it is a bug, but the ancient bug report has zero activity. Any workarounds?

My failed buildlog
https://build.opensuse.org/package/l...=openSUSE_11.1

Old bug report
https://bugzilla.novell.com/show_bug.cgi?id=463278
Reply With Quote
  #2 (permalink)  
Old 05-Jun-2009, 14:44
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,715
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: "ERROR: No sufficient Category definition"

Quote:
Originally Posted by andrew z

> WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does
> not exist
> WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does
> not exist
> WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu'
> does not exist
> ERROR: No sufficient Category definition:
> /var/tmp/bleachbit-0.5.0-4.1-root-abuild//usr/share/applications/bleachbit.desktop
> ERROR: No sufficient Category definition:
> /var/tmp/bleachbit-0.5.0-4.1-root-abuild//usr/share/applications/bleachbit-root.desktop
> Errors in installed desktop file detected. Please mail
> stbinner@suse.de, if you think this is wrong.
> error: Bad exit status from /var/tmp/rpm-tmp.25899 (%install)
>


I can build all OBS distros except openSUSE 11.1, but I can build it
outside OBS. Therefore, I think it is a bug, but the ancient bug report
has zero activity. Any workarounds?

My failed buildlog
http://tinyurl.com/ohk42p

Old bug report
https://bugzilla.novell.com/show_bug.cgi?id=463278
Hi
So update the category via a patch or;
Code:
desktop-file-install --delete-original          \
--dir %{buildroot}%{_datadir}/applications \
--remove-category {YOUR_STUFF}            \
--add--category {YOUR_STUFF} \
%{buildroot}%{_datadir}/applications/%{name}.desktop
This is probably worth a read as well
<http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Macros#3.33._.25suse_update_desktop_file>
I can remember seeing a webpage with the actual list of categories you
can use, but can't find it at the moment

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.21-0.1-default
up 4 days 17:47, 2 users, load average: 0.30, 0.52, 0.37
GPU GeForce 8600 GTS Silent - Driver Version: 180.51

Reply With Quote
  #3 (permalink)  
Old 05-Jun-2009, 16:00
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 14
andrew_z hasn't been rated much yet
Default Re: "ERROR: No sufficient Category definition"

Quote:
Originally Posted by malcolmlewis View Post
Hi
So update the category via a patch or desktop-file-install
I already use patches and desktop-file-install, but I don't know what triggers the error. As far as I know, I am doing everything right. I only see this error on OBS, not on regular OpenSUSE 11.1.

Quote:
This is probably worth a read as well
<http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Macros#3.33._.25suse_update_desktop_file>
Yeah, I read that 10 times.

Quote:
I can remember seeing a webpage with the actual list of categories you
can use, but can't find it at the moment
Packaging/SUSE Package Conventions/Desktop Menu - openSUSE

I'm trying to change
%suse_update_desktop_file %{name}
to
%suse_update_desktop_file %{name} Utility

That may help
Reply With Quote
  #4 (permalink)  
Old 05-Jun-2009, 18:20
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,715
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: "ERROR: No sufficient Category definition"

Hi
See the bleachbit.spec file in
<http://download.opensuse.org/repositories/openSUSE:/Factory:/Contrib/openSUSE_11.1>;
Code:
# create root desktop-file and change exec
%__cp %{name}.desktop %{name}-root.desktop
%__sed -i -e 's/Name=BleachBit$/Name=BleachBit as Administrator/g' \
%{name}-root.desktop
%__sed -i -e 's/^Exec=bleachbit$/Exec=xdg-su -c bleachbit/g' \
%{name}-root.desktop
# installing .desktop Files
%suse_update_desktop_file -n    %{name}      Utility Filesystem
%suse_update_desktop_file -n -i %{name}-root Utility Filesystem
--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.21-0.1-default
up 4 days 21:25, 3 users, load average: 0.11, 0.20, 0.17
GPU GeForce 8600 GTS Silent - Driver Version: 180.51

Reply With Quote
  #5 (permalink)  
Old 05-Jun-2009, 19:11
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 14
andrew_z hasn't been rated much yet
Default Re: "ERROR: No sufficient Category definition"

As the author, I would have expected to know that someone else packaged the software. That could explain why the openSUSE download numbers are so low from my site!

In any case, problem solved. Thanks much
Reply With Quote
  #6 (permalink)  
Old 05-Jun-2009, 19:27
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,715
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: "ERROR: No sufficient Category definition"

Quote:
Originally Posted by andrew z
As the author, I would have expected to know that someone else packaged
the software. That could explain why the openSUSE download numbers are
so low from my site!

In any case, problem solved. Thanks much
Hi
Ahhh.... How about a SLE11 version then (although I would link to
it in my own home repository, so I don't have a whole list of repo's!)

I would look at getting on the mailing list and point it out as my
understanding from contrib it should wind up in the mainstream.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.21-0.1-default
up 4 days 22:33, 2 users, load average: 0.08, 0.13, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 180.51

Reply With Quote
  #7 (permalink)  
Old 12-Jun-2009, 17:32
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: "ERROR: No sufficient Category definition"

By the way, there is a package you'd have to download to have the same checks performed as OBS, i can't remember it right now but there is a package that performs additional check which you need to download to have make the build "compatible" with OBS.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #8 (permalink)  
Old 12-Jun-2009, 18:05
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,715
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: "ERROR: No sufficient Category definition"

Quote:
Originally Posted by BenderBendingRodriguez
By the way, there is a package you'd have to download to have the same
checks performed as OBS, i can't remember it right now but there is a
package that performs additional check which you need to download to
have make the build "compatible" with OBS.

Hi
brp-check-suse, rpmlint-mini and rpmlint-Factory

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 0:50, 2 users, load average: 0.07, 0.06, 0.04
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

Reply With Quote
Reply

Bookmarks

Tags
bug, obs, opensuse, spec


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2