You are not logged in.
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
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 )
Offline
^ 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
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::DumpBefore 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
I can tell that's where you got it from because you have included the typo -- it should be cpan, you have cpanm
Offline
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
are you absolutely sure cpan is necessary to get the perl modules you need?
I'm not sure of anything anymore 8.(
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
sparky-* dependencies are easily satisfied (probably something like bl-text-editor) or even needless.
Yes, the package builds and runs fine without those.
Offline
I can tell that's where you got it from because you have included the typo -- it should be cpan, you have cpanm
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
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
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
Last edited by Head_on_a_Stick (2016-04-29 06:00:27)
Offline
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:
Last edited by Head_on_a_Stick (2016-04-30 11:28:19)
Offline
nice to have this.
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
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
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
@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
Fantastic, yes.
Thank you!
Offline
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
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 )
Offline
Debian package 'libdata-dump-perl' provides the perl module data::dump.
Offline
:dons dumb hat:
I'm sure I've missed something, because I'm still getting an error/missing package.
steps:
Re-added the repo from the OP
apt-get update
apt-get install obmenu-generator
say yes to all the new deps (more than I was first expecting but no big )
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
H_o_a_S says it's fixed ...
Well, it worked in the live environment when I tested it anyway
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
Don't worry, it's not you, it's me
Offline