Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: netnomad on September 17, 2011, 03:10:30 PM

Title: unison - small bug
Post 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.
Title: Re: unison - small bug
Post by: vinnie on September 18, 2011, 02:54:03 AM
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
Title: Re: unison - small bug
Post by: netnomad on September 18, 2011, 05:41:37 AM
thank you for your reply,
thank you for your packaging,
the small bug should not be that big problem...
Title: Re: unison - small bug
Post by: vinnie on September 18, 2011, 06:40:45 PM
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 :(
Title: Re: unison - small bug
Post by: netnomad on September 22, 2011, 05:37:11 AM
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.
Title: Re: unison - small bug
Post by: vinnie on September 23, 2011, 06:37:53 AM
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.

Title: Re: unison - small bug
Post by: netnomad on September 23, 2011, 02:52:49 PM
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.

Title: Re: unison - small bug
Post by: vinnie on September 24, 2011, 05:53:16 AM
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
Title: Re: unison - small bug
Post by: netnomad on September 24, 2011, 09:48:47 AM
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.
Title: Re: unison - small bug
Post by: vinnie on September 25, 2011, 08:16:32 AM
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
Title: Re: unison - small bug
Post by: netnomad on September 25, 2011, 09:05:40 AM
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.
Title: Re: unison - small bug
Post by: bmarkus on September 25, 2011, 09:33:38 AM
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.
Title: Re: unison - small bug
Post by: netnomad on September 28, 2011, 12:10:10 PM
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.
Title: Re: unison - small bug
Post by: vinnie on September 28, 2011, 02:32:37 PM
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
Title: Re: unison - small bug
Post by: netnomad on September 29, 2011, 12:09:11 AM
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.
Title: Re: unison - small bug
Post by: vinnie on September 29, 2011, 05:44:16 AM
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.
Title: Re: unison - small bug
Post by: netnomad on September 29, 2011, 06:41:51 AM
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 .
Title: Re: unison - small bug
Post by: bmarkus on September 29, 2011, 06:45:16 AM
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.
Title: Re: unison - small bug
Post by: bmarkus on September 29, 2011, 08:40:49 AM
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.
Title: Re: unison - small bug
Post by: netnomad on September 29, 2011, 11:22:02 AM
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")
Title: Re: unison - small bug
Post by: bmarkus on September 29, 2011, 12:08:32 PM
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.
Title: Re: unison - small bug
Post by: netnomad on September 29, 2011, 12:52:22 PM
so 48x48 is still the recommended standard?
Title: Re: unison - small bug
Post by: bmarkus on September 29, 2011, 12:57:46 PM
so 48x48 is still the recommended standard?

yes
Title: Re: unison - small bug
Post by: netnomad on September 30, 2011, 12:03:03 PM
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...
Title: Re: unison - small bug
Post by: vinnie on October 01, 2011, 01:42:09 AM
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?
Title: Re: unison - small bug
Post by: netnomad on October 01, 2011, 03:38:14 AM
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.
Title: Re: unison - small bug
Post by: vinnie on October 01, 2011, 08:47:50 AM
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.  ;)
Title: Re: unison - small bug
Post by: netnomad on October 01, 2011, 11:33:53 AM
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.
Title: Re: unison - small bug
Post by: vinnie on October 01, 2011, 11:43:05 AM
happy to be able to help  :)