SliTaz SliTaz Forum

You are not logged in.

#1 2013-01-02 09:16:52

yves04
Member
Registered: 2012-09-23
Posts: 135

Happy new year ! Does xpad work ?

Hi

All my problem is in the title. I can't succeeded to have xpad working on Slitaz 4.0, whatever the version is : it's impossible to edit.

What can I do to fix that.

Very nice day for every one.

Offline

#2 2013-01-02 18:12:21

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

hi, i encountered same problem as you, it seems that the patch proposed here

https://bugs.launchpad.net/xpad/+bug/591978

solves the problem.

this is the receipt

[c]# SliTaz package receipt.

PACKAGE="xpad"
VERSION="4.0"
CATEGORY="utilities"
SHORT_DESC="Desktop note pad using GTK+ toolkit."
MAINTAINER="pankso@slitaz.org"
DEPENDS="gtk+ xorg-libXdamage xorg-libSM"
BUILD_DEPENDS="pkg-config intltool"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://xpad.sourceforge.net/"
WGET_URL="http://launchpad.net/xpad/trunk/$VERSION/+download/$TARBALL"
HANDBOOK_URL='http://www.slitaz.org/doc/handbook/utilities.html#xpad'

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i 's/^.*GTK_WINDOW_TOPLEVEL,//' src/xpad-pad.c
    ./configure $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
}[/c]
this is the link to the receipt in slitaz paste (in case the receipt is not visible above)

http://paste.slitaz.org/?0e419d127a7ab154#h1SM78mo1ZCYpZsZ+YYeyIh5mR5PNCVpQukodAprwAk=

and i enclose the package, if you trust me or you are not able to build the package.

Please, let me know  if this solves the problem for you too.

Offline

#3 2013-01-02 18:17:40

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

http://www.filedropper.com/xpad-40

Offline

#4 2013-01-02 19:10:22

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

I have problems when cooking this receipt in SliTaz 4.0.

Ok, I'll try to modify it.

Is it worth move to xpad-4.1 (2011-11-14)?

Offline

#5 2013-01-02 19:31:54

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

I'm on rolling.

Maybe i had some dependencies already installed?

Forgive me but i'm not familiar with the new cooking system.

If i remember well i just changed 4 to $VERSION in WGET_URL and added the sed row.

i had lot of problems trying to build 4.1, initial problems were of this kind:

http://www.google.com/search?q=#error%20"Only%20<glib.h>%20can%20be%20included%20directly."

but changing every glib inclusion to #include <glib.h> produced some type cast errors (int instead of gchar),  so i gave up (i'm not a programmer).

they classify both 4.0 and 4.1 as trunk, if it was for me i would come back to 3.1, which is the last stable, but 3.1 soffers of this bug too.

i would stay with 4.0

Offline

#6 2013-01-02 20:23:42

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

Thanks, ernia!

Commit to Stable: http://hg.slitaz.org/wok-stable/rev/ee3986615c83

Commit to Cooking/Rolling: http://hg.slitaz.org/wok/rev/eceda27fe4a8

Wait about 45 minutes, and we'll see if it cooked well or not.

Offline

#7 2013-01-02 20:51:36

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

xpad 4.1 does it work in 4.0?

i got

[c]Cook date: 2013-01-02 20:43
ERROR: cook failed
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."[/c]
in rolling

maybe it's due to the newest glib?

I'll take a shower meanwhile :-)

Offline

#8 2013-01-02 21:00:50

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

Maybe, Pascal started cooker.

Xpad-4.0 for SliTaz 4.0 cooked. Download it and test.

Xpad-4.1 for SliTaz Rolling failed (cooking log). Same error:

[c]/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."[/c]

Offline

#9 2013-01-02 21:20:00

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

i just see that you did put 4.0 in stable and 4.1 in cooking.

4.0 works in cooking too, i think that it's a waste of time trying to upgrade to 4.1, unless the debug of the error is trivial to you.

thanks for the committings.

Offline

#10 2013-01-02 21:20:52

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

forgot to specify that i tested xpad 4.0 dowloaded from your link

Offline

#11 2013-01-02 21:22:55

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

Xpad-4.1 with this receipt cooked in my stable SliTaz, but fails in Cooking cooker. Let's think.

src/xpad-undo.c:

[c]#include <glib/glist.h>[/c]
/usr/include/glib-2.0/glib/glist.h:28

[c]#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
#error "Only <glib.h> can be included directly."
#endif[/c]
I don't know C.

Seems like it need to define (__GLIB_H_INSIDE__) somewhere in src/xpad-undo.c

How I can try it? Change receipt and wait sad

Offline

#12 2013-01-02 21:25:27

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

change receipt and post it, i'll try for you :-)

Offline

#13 2013-01-02 21:34:27

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

Thanks!

Next...

/usr/include/glib-2.0/glib.h:20

[c]#ifndef __G_LIB_H__
#define __G_LIB_H__

#define __GLIB_H_INSIDE__

...[/c]
Hmm. Its in the stable packages. What we have in Cooking? See next...

Offline

#14 2013-01-02 21:40:04

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

http://paste.slitaz.org/?a0df50508255ec06#eWNPC4MDfsQiOopYcNVGlFIWhxySsk85c1kPOoT1MZ8=

Offline

#15 2013-01-02 21:53:31

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

I downloaded and extracted cooking version, thanks.

Let's try to remove line "#include <glib/glist.h>" from src/xpad-undo.c (see attached receipt).

Ernia, please try to cook it (it cooked and worked in my stable).

Offline

#16 2013-01-02 22:02:53

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

it seems to work, oh you diabolic one :-)

i refuse to admit that it works well, it took me at list two hours and all what it's required it's to delete a row?

awwwww ;-)

here it's the package for your testing purpose:

http://www.filedropper.com/xpad-41

i'll dedicate my life to find a bug in it :-) :-)

Offline

#17 2013-01-02 22:16:24

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

it seems that util-linux-ng-uuid had become util-linux-uuid in cooking, so you better modify the receipt.

i doubt that this will ever be a problem, a lot of progs depends on that lib, but you never know...

good job, time to go bed, thanks for your help.

Offline

#18 2013-01-02 22:18:23

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

Thank you too wink

Offline

#19 2013-01-02 22:19:18

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

util-linux-ng-uuid is required to build too

Offline

#20 2013-01-02 22:31:05

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: Happy new year ! Does xpad work ?

did not see your previous post, i did not mean to be rude, good night and happy xpad

Offline

#21 2013-01-03 06:36:48

yves04
Member
Registered: 2012-09-23
Posts: 135

Re: Happy new year ! Does xpad work ?

Hi

Thanks ernia & Aleksej for all your answers. With the link you gave I download the package xpad-4.0.tazpkg and it works very well (color, edit and so on)

Thanks for your work. Have a nice day.

Offline

#22 2013-01-03 07:00:44

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Happy new year ! Does xpad work ?

yves04, in short time that packages will be available with regular tazpkg or tazpanel (after mirror syncing).

Thanks for raising the problem and testing.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]