Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: netnomad on September 17, 2011, 03:10:30 PM
-
first, i want to thank for the packaging of that great tool unison - i missed it so long.
small bug in microcore and fluxbox:
when i load unison-gui in the ondemand menu then the program is loaded,
but not started and it does not appear in the application menu (the loaded programs).
nevertheless i can start unison in a terminal with the command "unison"
and i guess it works properly.
-
I'm not a great expert on packaging, but I think the two problems can be attributed to this:
1)does not start automatically because the package name different from the name of the executable (I wanted to build in text-only version, but did not succeed)
2)poor categorization of *.desktop file (I'm slowly realizing better)
I could try to change the name of package (but first I should tell the managers of the repository) and change the extension category of .desktop, otherwise I do not know
-
thank you for your reply,
thank you for your packaging,
the small bug should not be that big problem...
-
Today I did many tests, I was hoping to solve both problems with:
1)create a /usr/local/bin/unison-gui symlink and rename unison.desktop in unison-gui.desktop
2)do a lot of experimentation with fluxbox to figure out what's wrong with the menu voice (dimension of icon, category, I even tried to copy files of seamonkey).
I could not find the problems, I do not know how to fix, if someone more streetwise than I have any ideas, I am interested
Sorry :(
-
hi vinnie,
thanks to the help of bmarkus, we can solve this problem.
you just have to rename the directory unison-gui to unison and then all works fine.
in the moment you find under /tmp/tcloop/unison-gui the binaries,
but they should be under /tmp/tcloop/unison to work fine.
to make it even perfect, please decrease the icon to 70-80%,
in the moment it's to big for wbar and doesn't look nice next to icecat or other icons.
you would do me a great favor, if you correct this little changes.
thank you.
-
Right now I'm not home but when I have time I do what you asked for.
But to be precise:
which directory you refer?, you mean the package name? in this case I tried to create symlinks in /usr/local/bin called "unison-gui" respecting the name of the package, but this did not work, could be that a symlink is not enough?
I already tried to reduce the size of the icon, but this did not work for me: I tried to use seamonkey icon (which could be seen on fluxbox), but nothing.
However I will reduce the icon.
-
hi vinnie,
thanks to the help of bmarkus, we can solve this problem.
you just have to rename the directory unison-gui to unison and then all works fine.
in the moment you find under /tmp/tcloop/unison-gui the binaries,
but they should be under /tmp/tcloop/unison to work fine.
i'm no expert in packaging, but i would call it "the main directory of your package".
make it easy and forget that stuff with unison-gui...
perhaps everything is solved, if you change all directories
that are called >unison-gui< just to >unison<.
i think you will not expect more other problems and you need no symlinks.
I already tried to reduce the size of the icon, but this did not work for me: I tried to use seamonkey icon (which could be seen on fluxbox), but nothing.
However I will reduce the icon.
just open the icon-file unison.png with gimp and use the scale option to reduce it
to a smaller %-value and save it under the old filename "unison.png".
just try it, you will succeed.
-
Ok, maybe I understand, you consider that Unison has no own directory, everything is in /usr/local/bin .
As for the size of the icon, i will reduce even though I had already tried
-
as you know there a different concepts to use or install a tcz.
in my case i use the
mount mode: tcz/install
http://distro.ibiblio.org/tinycorelinux/concepts.html (http://distro.ibiblio.org/tinycorelinux/concepts.html)
after loading your unison-gui.tcz i get the mounted loop under /tmp:
/tmp/tcloop/unison-gui with all files that are included in your package.
additionally i find these files at the defined paths.
but the path to /tmp/tcloop/unison-gui doesn't fit to the rest of your package,
you have to change this path to /tmp/tcloop/unison and all work fine...
i guess that you have to change the directory, in which you prepare the tcz-files,
from unison-gui to unison.
-
I made three mod, please try all and tell me which one works:
(everyone have the icon reduced to 128x128 as seamonkey)
http://www.mediafire.com/?a6sjjeu36vtm651 (http://www.mediafire.com/?a6sjjeu36vtm651) (bin renamed "unison-gui")
http://www.mediafire.com/?7baenhh7nie6k3s (http://www.mediafire.com/?7baenhh7nie6k3s) (bin have a symlink "unison-gui")
http://www.mediafire.com/?dt8dof3u6ifarz5 (http://www.mediafire.com/?dt8dof3u6ifarz5) (package renamed "unison.tcz")
P.s. I would prefer not change the package name, and I'd like to understand the operation of these processes to not repeat the mistake later, I will ask Bmarkus to participate in this topic
-
hi vinnie,
the third package unison.tcz works smoothly, the icon looks fine in the wbar.
i tried also the first package unison-gui.tcz with symlink,
but it has the same misbehavior as the former ones.
so just upload the unison.tcz and rename the package to unison.
thank you.
-
vinnie:
regarding your PM just read Wiki article http://wiki.tinycorelinux.net/wiki:creating_extensions (http://wiki.tinycorelinux.net/wiki:creating_extensions) Adding Custom Startup Scripts section. Everything is written there.
-
hi vinnie,
the third package unison.tcz works smoothly, the icon looks fine in the wbar.
so just upload the unison.tcz and rename the package to unison.
thank you.
just a little adjustement, then the package is o.k.
-
yes but i like to understand the mechanisms, I was seeing right now what I said bmarkus, and I can not find connections between tce.installed scripts and autogenerated ondemand script.
For example: these are the tce.installed script (http://sprunge.us/YPAI) and the ondemand script (http://sprunge.us/JajG) of flash10 package
If unison does work I ask to you to have a little 'patience because I'd rather resolve the situation without changing the package name.
It may seem stubborn, but there is a reason, I wanted to compile even the shell-only version, but I could not succeded, I wanted to call this version of Unison-text and and I would still leave space for this possibility
-
but your unison-package just works on the command line, give it a try.
it's the same binary, see it simple and just use it in the gui or in the cli, as you like it.
so you can deliver a fine working unison.tcz and time by time we all learn step by step,
how and why it just works,
never mind.
by the way the name or package-description unison-gui.tcz leads in a wrong destination,
cause it's also usable on the command line.
thank you for your packaging.
-
if you read package description, you'll notice that I am aware, but there is a difference, install the GUI version on a PC without graphic brings unnecessary dependencies.
-
hi vinnie,
i booted microcore base norestore and loaded afterwards your unison-package.
there were some open dependecies that could be resolved by loading Xlibs.tcz and libpng.tcz.
so your package works flawlessly on the basic install without gui.
but don't forget
in the moment the unison-gui.tcz in the repository is just buggy...
and for beginners it 's useless in that state.
just correct the package like mentioned above and add Xlibs.tcz and libpng.tcz to the dep-file...
afterwards you could ask some experienced maintainers, how you could package a second diet package,
without that full-blown dependencies... but that's a second step.
first the buggy package could be corrected, without any problems .
-
This package is called unison by its author and in other distros. Do not see reason to use different package name.
unison.png is 128x128 pixel while TC requires 48x48 therefore not shown on WBAR.
-
Sorry, I was wrong. It is not 128x128 pixel but 107x128. Seems that 48x48 is not a requirement today as in the beginning, but NxN is. This is why bottom lines of unison icon are missing on WBAR.
-
hi bmarkus,
the proposed package of vinnie works fine, perhaps the icon should be a little smaller.
good to know the recommended size of 107x128.
http://www.mediafire.com/?dt8dof3u6ifarz5 (http://www.mediafire.com/?dt8dof3u6ifarz5) (package renamed "unison.tcz")
-
hi bmarkus,
the proposed package of vinnie works fine, perhaps the icon should be a little smaller.
good to know the recommended size of 107x128.
http://www.mediafire.com/?dt8dof3u6ifarz5 (http://www.mediafire.com/?dt8dof3u6ifarz5) (package renamed "unison.tcz")
107x128 is a buggy size, not recommended.
-
so 48x48 is still the recommended standard?
-
so 48x48 is still the recommended standard?
yes
-
hi vinnie,
i booted microcore base norestore and loaded afterwards your unison-package.
there were some open dependecies that could be resolved by loading Xlibs.tcz and libpng.tcz.
so your package works flawlessly on the basic install without gui.
but don't forget
in the moment the unison-gui.tcz in the repository is just buggy...
and for beginners it 's useless in that state.
just correct the package like mentioned above and add Xlibs.tcz and libpng.tcz to the dep-file...
afterwards you could ask some experienced maintainers, how you could package a second diet package,
without that full-blown dependencies... but that's a second step.
first the buggy package could be corrected, without any problems .
never mind that i remind you, you reached the goal so close...
-
I was sending the package when it came to mind to test the dependency on libpng.tcz and to me the program starts quietly without this package.
I must insert it or not? You could motivate your suggestion?
-
i tested it again and can confirm you the dependency on >microcore base norestore< without gui, 3.8.4.
i think you can take the chance provide a multifunctional package unison.tcz that works also without gui.
that it works also on the cli, this package needs the dependency to libpng.tcz and Xlibs.tcz.
i tested it in detail:
i booted microcore base norestore in version 3.8.4.
while loading your unison-gui.tcz on the command line interface some errors about missing modules appear:
module error for libpixbufloader-tiff.so
module error for libpixbufloader-png.so
module error for libpixbufloader-jpeg.so
after starting unison on the command line, the error message of a missing libpng.so.0 is reported,
the loading of libpng.tcz resolves this problem.
after starting again unsion on the command line, the error message of a missing libfreetype.so.6 is reported,
the loading of Xlibs.tcz resolves also this problem
and afterwards unison starts without errors!!!
so i recommend these two dependencies to make this >unison.tcz< universal for gui and cli.
and please load it up in both repositories, 3.x and 4.x, and remind the opinion of bmarkus to call it >unison.tcz<.
the icon in 48x48 makes it even better.
-
ok I sent and now we just have to wait for the publish.
However, I want to take a whim to tell you why I think you're wrong, the current package is fine for those who use both shells and dm, but it is not good for those who do not use any graphical interface.
I do not know any dependencies of compilation without gui (I did not succeed), but I do not think that in a minimal environment there is a space for 12 mb of unnecessary libraries. ;)
-
i'm happy that you've uploaded an improved package.
i share your opinion that it's worth to look for ways to install programs with minimal dependencies
and to avoid every single unneeded file in a system.
one goal is to create a package without bugs and at the same time it's multifunctional,
but there could be a second goal to create something like a "diet package",
a package with minimal dependencies and size:
this could be a second alternative in the repository like f.e. unison-cli.tcz.
thank you for your help.
-
happy to be able to help :)