You are not logged in.

#21 2016-04-28 21:05:13

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: unofficial obmenu-generator repository (fixed!)

This is all you need,

sudo apt-get install cpanminus build-essential git
git clone git://github.com/trizen/obmenu-generator
sudo cp obmenu-generator/obmenu-generator /usr/bin
sudo cpanm Linux::DesktopFiles
sudo cpanm Data::Dump

Before copying obmenu-generator to /usr/bin, make the file executive.

Offline

#22 2016-04-29 01:48:11

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: unofficial obmenu-generator repository (fixed!)

Head_on_a_Stick wrote:

As I say, both `cpan` commands worked on my BunsenLabs system ...

I will have to find out how to add the `cpan` commands to the .deb

I haven't followed this in detail, so apologies if I'm way off here, but are you absolutely sure cpan is necessary to get the perl modules you need? i.e. are there no Debian packages which install them, and could be added to your .deb's dependencies?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#23 2016-04-29 05:08:13

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: unofficial obmenu-generator repository (fixed!)

^ johnraff, that's kindof what we've been trying to ascertain here. please see my post #11.
i tried these packages: libdata-dump-perl libfile-desktopentry-perl, but couldn't get past the error message posted in #7:

Can't locate Linux/DesktopFiles.pm in @INC (you may need to install the Linux::DesktopFiles module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/bin/obmenu-generator line 34.

i believe the sparky package should contain useful hints.
i also believe that the sparky-* dependencies are easily satisfied (probably something like bl-text-editor) or even needless.

Offline

#24 2016-04-29 05:28:15

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

ostrolek wrote:

This is all you need,

sudo apt-get install cpanminus build-essential git
git clone git://github.com/trizen/obmenu-generator
sudo cp obmenu-generator/obmenu-generator /usr/bin
sudo cpanm Linux::DesktopFiles
sudo cpanm Data::Dump

Before copying obmenu-generator to /usr/bin, make the file executive.

Yes indeed, that is the manual method posted on @seppalta's website that I have already linked to twice in this thread wink

I can tell that's where you got it from because you have included the typo -- it should be cpan, you have cpanm lol

Offline

#25 2016-04-29 05:29:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

Sector11 wrote:

I added the repo:

[...]

Now to eliminate the repo!

0j0:  I'm on a 64bit "Stable" system - not Testing.

Good call -- Sparky uses stretch as a base so it would completely break BunsenLabs.

Thanks for testing!

Offline

#26 2016-04-29 05:33:48

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

johnraff wrote:

are you absolutely sure cpan is necessary to get the perl modules you need?

I'm not sure of anything anymore 8.(

johnraff wrote:

are there no Debian packages which install them, and could be added to your .deb's dependencies?

Well, the cpanminus package seems to do exactly that and it is listed as dependency for the Sparky version.

However, my package now also has the same dependencies (without the Sparky-specific ones) and does not seem to add the modules automatically but they can be built manually after installation at which point the package works.

Offline

#27 2016-04-29 05:35:26

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

ohnonot wrote:

sparky-* dependencies are easily satisfied (probably something like bl-text-editor) or even needless.

Yes, the package builds and runs fine without those.

Offline

#28 2016-04-29 05:46:31

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: unofficial obmenu-generator repository (fixed!)

Head_on_a_Stick wrote:

I can tell that's where you got it from because you have included the typo -- it should be cpan, you have cpanm lol

nope, after installing cpanminus i have a cpanm command.
anyhow, it would be nice to have this packaged and/or somehow included into bl repos.
i will look into the sparky package at some point (not this weekend), to figure out how they did it, but i might need some help to make the actual .deb work.

btw, HoaS, why did you make 32 and 64 bit packages? it's just a script...

Offline

#29 2016-04-29 05:52:28

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

ohnonot wrote:

btw, HoaS, why did you make 32 and 64 bit packages? it's just a script...

I didn't "make" them at all, I just uploaded the .dsc file with the original tarball and Debian difference file to the OpenSUSE Build Service and they built them for me smile

I forgot to change "Arch=any" to "Arch=all" in the control file  :8

Thanks!

EDIT: Changed the .dsc, I think that'll do it. I'll fix it tonight, got an early start today sad

Last edited by Head_on_a_Stick (2016-04-29 06:00:27)

Offline

#30 2016-04-30 11:20:56

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

The package is now fixed and seems to work once the schema.pl has been copied over:

mkdir -p ~/.config/obmenu-generator
cp /etc/obmenu-generator/schema.pl ~/.config/obmenu-generator

I had to put a postinstall script (to run the `cpan` commands) in the debian folder before building the package.
https://www.debian.org/doc/manuals/main … intscripts

As I am such a hopeless n00b, I copied the script from the Sparky pakage  :8

Anyway, it seems to work now.

EDIT: weird, it seems to autoconfigure:

2016-04-30-112704_1920x1080_scrot.th.png

Last edited by Head_on_a_Stick (2016-04-30 11:28:19)

Offline

#31 2016-05-02 16:09:05

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: unofficial obmenu-generator repository (fixed!)

nice to have this.

Head_on_a_Stick wrote:

EDIT: weird, it seems to autoconfigure:

i think by default it replaces the menu.xml (it does save the old one) with one that calls the appmenu as a pipemenu.
so the menu is built dynamically.
can be configured: dynamic, static, with or without icons.

Offline

#32 2016-05-02 16:17:40

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: unofficial obmenu-generator repository (fixed!)

If enough support can be gathered for this, we could make it a bunsen package.
Let us know your opinion on this.

obamenu is another (python) alternative.
See my github repofor a version that works on BL.

Offline

#33 2016-05-02 16:25:09

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

xaos52 wrote:

If enough support can be gathered for this, we could make it a bunsen package.

That would be a better option than my n00b efforts here, I was just using this as a learning exercise really.

Offline

#34 2016-05-02 16:37:04

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: unofficial obmenu-generator repository (fixed!)

@HoaS,
If enough support can be gathered, I could log all necessary steps needed to make it a BL package. How would that be for a learning experience?

Offline

#35 2016-05-02 16:37:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

Fantastic, yes.

Thank you!
smile

Offline

#36 2016-05-02 17:55:53

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: unofficial obmenu-generator repository (fixed!)

xaos52 wrote:

If enough support can be gathered for this

i think it's obvious, but i'll say it out loud: i support this.
without icons, and a customised schema.pl, it fits in perfectly.

Last edited by ohnonot (2021-07-03 10:53:18)

Offline

#37 2016-05-03 06:59:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: unofficial obmenu-generator repository (fixed!)

ohnonot wrote:

^ johnraff, that's kindof what we've been trying to ascertain here. please see my post #11.
i tried these packages: libdata-dump-perl libfile-desktopentry-perl, but couldn't get past the error message posted in #7

Ah, indeed it doesn't look as if there are any Debian packages for linux:desktop or data:dump. While googling I ran into this:
http://saleem-khan.blogspot.jp/2014/07/ … r-for.html
but it looks as if the issue is solved now anyway.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#38 2016-05-03 08:36:33

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: unofficial obmenu-generator repository (fixed!)

Debian package 'libdata-dump-perl' provides the perl module data::dump.

Offline

#39 2016-05-03 22:45:38

geekosupremo
Member
Registered: 2016-04-27
Posts: 169

Re: unofficial obmenu-generator repository (fixed!)

:dons dumb hat:

I'm sure I've missed something, because I'm still getting an error/missing package.

steps:

  1. Re-added the repo from the OP

  2. apt-get update

  3. apt-get install obmenu-generator

  4. say yes to all the new deps (more than I was first expecting but no big wink )

  5. run: obmenu-generator -i -p

Result:
Can't locate Data/Dump.pm in @INC (you may need to install the Data::Dump module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/bin/obmenu-generator line 272.

I'm sure I've messed something up since H_o_a_S says it's fixed ...

Offline

#40 2016-05-04 06:24:39

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

geekosupremo wrote:

H_o_a_S says it's fixed ...

Well, it worked in the live environment when I tested it anyway hmm

I don't have access to my build environment until tonight so I can't troubleshoot this directly.

Try installing the package mentioned by @xaos52 in the post above.

I'm really sorry about this, it's getting silly now sad

Don't worry, it's not you, it's me neutral

Offline

Board footer

Powered by FluxBB