Page 6 of 24

Posted: Sat 12 Jan 2013, 12:14
by Argolance
Hello,
I tried to compile xpupsay from xpupsay-1.2.1.tar.gz patched by technosaurus running Puppy Precise 5.3.4 but didn't succeed:
# ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strtol... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strchr... yes
checking for pid_t... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XCOWSAY... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
# make
make all-recursive
make[1]: Entering directory `/mnt/sdb2/my-documents/downloads/xpupsay-1.2.1'
Making all in po
make[2]: Entering directory `/mnt/sdb2/my-documents/downloads/xpupsay-1.2.1/po'
make[2]: Leaving directory `/mnt/sdb2/my-documents/downloads/xpupsay-1.2.1/po'
Making all in src
make[2]: Entering directory `/mnt/sdb2/my-documents/downloads/xpupsay-1.2.1/src'
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DDATADIR=\"/usr/local/share/xpupsay\" -DHAVE_CONFIG_H -I. -I.. @XPUPSAY_CFLAGS@ -Wall -g -O2 -MT xpupsay.o -MD -MP -MF .deps/xpupsay.Tpo -c -o xpupsay.o xpupsay.c
gcc: error: @XPUPSAY_CFLAGS@: No such file or directory
make[2]: *** [xpupsay.o] Error 1
make[2]: Leaving directory `/mnt/sdb2/my-documents/downloads/xpupsay-1.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sdb2/my-documents/downloads/xpupsay-1.2.1'
make: *** [all] Error 2
#
Any idea of what's going wrong?
Thank you.

Cordialement.

Posted: Mon 14 Jan 2013, 18:10
by Argolance
Hello,
Nobody 's here?

Posted: Mon 14 Jan 2013, 18:16
by peebee
Argolance wrote:Hello,
Nobody 's here?
Hi Argolance

Could be because this is a Frisbee thread and you are asking about xpupsay which is used by Frisbee but came from elsewhere.

Probably better to post your query in the xpupsay thread (if that exists) or in a more general thread about pop-up notifications...again if such exists.

or a compiling thread....

or pm technosaurus....

Cheers
peebee

Integrated Frisbee network manager 1.0

Posted: Wed 16 Jan 2013, 22:55
by rerwin
The attached tarball contains six pet packages that implement an integrated version of Frisbee, with the intent that it be added to the woof infrastructure system. The packages are existing or added pets for developer inclusion in a distribution -- except that the "woof updates" package is targeted for the basic puppy infrastructure.

This version of frisbee is derived from the "beta4" version used in the "carolina" project. If further improvements are made to the "beta" series, they can easily be migrated to the integrated version by way of an "adaptation" script (that I am not yet publishing). The adaption retains the Frisbee logic but relocates the residency of its components, to isolate it from the beta series. It also corrects a few bugs, fixes for which I offer to the maintainers of the betas.

The packages included in this "kit" (as of 2/17/2013) are:
  • frisbee-1.0 - required
    network_tray-2.6 - OPTIONAL (Includes frisbee_tray logic.)
    woof_updates_precise - required (Based on Precise Pup versions of infrastructure scripts. Adds disconnect improvement to SNS)
    dhcpcd-dropwait - desirable (reduces random disconnects)
    net_setup - desirable (wag-profiles.sh uses dhcpcd-dropwait, adds an item)
Do not install the previous beta versions of Frisbee into a puppy that contains this integrated version, frisbee (lower case), because they are incompatible.

This is the result of many months of work and the patient assistance of peebee, who tested the changes, gave me many recommendations and shrank the tray icons to 24x24 pixels. 01micko also assisted with the "dropwait" function and recommendations. Thank you, peebee and 01micko.

Barry, if there are further mods needed to facilitate the incorporation of these packages in woof, please instruct me.

Performance note: Because frisbee is now one of several network managers selectable by the user, it is not set up until a user selects it with the connect wizard. Therefore, the initial scanning for wireless networks may be slow. Please be patient with it. Other than that, please report any problems in this thread, as well as suggestions for improvements. To generate diagnostic information, please install and use the "pdiag" pet package, available here:
http://www.murga-linux.com/puppy/viewto ... 751#671751

As for the original set of these packages in the precise-pup 5.4-5.4.2 thread, they are updated to match the attached "kit", to avoid having obsolete versions available.
Richard

Update 1/17/2013: Removed redundant test from AppRun in the woof_updates package (per shinobar's advice), uploaded after d/l #18 -- no functional change. Added pdiag package with the splash notifications expected when run from frisbee. Updated frisbee to use it.

Update 1/23/2013: Updated the frisbee and pdiag packages as release candidates, given that I have resolved all of the issues I am aware of and can fix. Please report any further problems I might have missed, other than the new delays reported above, which we just have to live with. Note that Argolance is internationalizing the frisbee package, which can be applied once the release version goes into woof -- or if he sends it to me for inclusion in the "kit". Pdiag now accepts a "--wpa" argument, to include WPA .conf and .log files, but only if the user allows that operation when asked. The --splash argument is removed, since pdiag now always uses dialogs and a splash notice.

Update 2/7/2013: Updated the frisbee and network_tray packages. Network_tray is unchanged but has improved pinstall and puninstall scripts to facilitate user installation of it. Frisbee is internationalized (mostly by Argolance), although there may be further work done with the buttons, to accommodate translations that are longer than the original text. It also does not kill the older version of network_tray, making the new one ("2.6") an optional (not required) installation that adds the frisbee-style connectivity icons. Also added minor fixes to pdiag, to correct internationalization of the generated tarball name and capture the /etc/frisbee directory contents, after download #23.

Update 2/17/2013: Updated kit with precise-beta release versions of frisbee and network_tray. Merged wag-profiles back into net_setup.

Update 2/21/2013: Updated the kit with corrected (20130220) version of frisbee, to restore missing (internationalized) text display.

Update 2/27/2013: Updated the kit to avoid forced wpa_supplicant logging at the debug level, which created a large and ever-growing log file. Debug logging is controlled by a new frisbee checkbox in the Diagnostics dialog.
EDIT 2/28/2013: Replaced with 20130228 after download #2 to "bullet-proof" a test against an unlikely situation. No function difference from 20130227.

Integrated-frisbee supporting information

Posted: Thu 17 Jan 2013, 00:23
by rerwin
Reserving this message, for addition of supporting files and information.

Posted: Thu 17 Jan 2013, 09:26
by peebee
Hi Richard

I've tested the new frisbee on both Precise 5.4.3 and Slacko 5.4 and Upup Precise 54x7 (& 3.7.2) and all went well - wifi connections established and persistent through reboots. Also tried switching back and forth between the various network managers and this also went OK.

[[[Problem report solved by rerwin - see above]]].

Some features that people should be aware of:

1. the initial delay in detecting available signals which you've mentioned

2. a delay that sometimes occurs when you exit frisbee the first time before the "set default" window appears

3. when used on Slacko, the signal levels for some reason are -ve numbers rather than the +ve numbers on Precise

I'm not completely happy with the 24*24 versions of the tray icons that I produced for you - they are a bit "jaggy" still - I'm sure they could be improved further....

Finally, as this thread belongs to Jemimah and therefore it's title is unlikely to be updated, perhaps you should start a new thread with a more accurate title for this new integrated frisbee?

Cheers
peebee

Posted: Thu 17 Jan 2013, 09:33
by 01micko
Has anyone got a link to the source for the frisbee tray icon? I'm thinking that svg icons might be the go. The svg icon I hacked into the pmusic tray icon looks very nice. I could also hack in IP address for the tootip as I did for the slacko network_tray icon. It is a handy feature especially when running a few machines and swapping around nics.

OH, I see one in about the third post of the topic.. is that the latest source?

Posted: Thu 17 Jan 2013, 09:58
by peebee
01micko wrote:Has anyone got a link
OH, I see one in about the third post of the topic.. is that the latest source?
That's the one I used.....they look pretty latest - be aware that some renaming has been needed for the integration

Frisbee localization with gettext

Posted: Thu 17 Jan 2013, 18:24
by Argolance
Hello,
frisbee_pet_kit-20130117.tar.gz
: This is great and seems to work fine (Puppy Precise 5.4.3)!. I noticed that Frisbee is in English :? ... Did someone already begin to work on the localization?

Cordialement.

Posted: Thu 17 Jan 2013, 20:34
by pemasu
The only problem I've found is that the "Generate Diagnostic Data" button under the "Wireless Diagnostics" tab does not seem to do anything - presumably it should call the new pdiag (or maybe I should have loaded pdiag as well - no Upup Precise has pdiag and it's not called)?
Wrong x 3. It does, no you should not and Upup Precise`s has pdiag.

It just does not give any gui confirmation or gui info where it was generated. Just check /root after pressing the button.

Posted: Thu 17 Jan 2013, 20:38
by pemasu
Has anyone got a link to the source for the frisbee tray icon?
If you mean the original Jemimah`s source ?
How about this: http://murga-linux.com/puppy/viewtopic. ... h&id=37535

Edit. Sorry. It was found already. I really need to meet the optician. Everybody tells me that. I just have told them to check their medication, but maybe I should.

Posted: Thu 17 Jan 2013, 20:49
by 01micko
Hi pemasu, yeah got that one but I thought there might have been something later.

Anyway, I have made a start on converting icons to svg, boy the filesize is drastically smaller!

I found and compiled a little proggy called potrace. I had to convert the icons in gimp to .pbm format then feed them to potrace to output an svg, but it only outputs black on transparency. So some hacking is involved after, manually :roll: . I am no expert in this field but like I said, I made a start. Someone may want to "pick up the ball" and fix some of the rest of the icons.

I can hack the source code to accept svg but the icons will not be compiled in like they can be with .xpm.

Ok, attached is the incomplete set of icons and potrace, you can google the source, easy to find.

Frisbee Network Manager - Beta 2

Posted: Fri 18 Jan 2013, 00:57
by Sky Aisling
Hello,
Hope I'm jumping in here at an appropriate time.
I downloaded *Frisbee* yesterday from this source:

http://distro.ibiblio.org/quirky/pet_pa ... recise.pet

Frisbee is running without issue on Puppy-528.005 via Live CD on a ZaReason Big Lap.
Prior to trying Frisbee, Puppy-528.005 wouldn't reconnect once rebooted or powered up even though I'd do all the proper profile arrangements through Internet Connection Wizard.
Ah! such a relief! Thank you to whomever is responsible for this .pet.
Is that you, peebee?

I have one question:

Is there a way I can eliminate the pup bubbles (dialogue boxes) that bounce around the screen telling me what the app is doing?
I am fine with no pup bubbles and just waiting for the connection.
Or ...
as an alternative, is there a way to have the dialogue boxes show up in one place on the screen like in the lower right corner above the wifi icon?


I find the dialogue boxes (pup bubbles) distracting, annoying actually.

Again, thank you for the good work put into this app.

I intend to install and test it in several other machines running other Puppies.
News at 11.

Re: Frisbee localization with gettext

Posted: Fri 18 Jan 2013, 19:39
by rerwin
Argolance wrote:I noticed that Frisbee is in English :? ... Did someone already begin to work on the localization? If not, I would eventually like to try to do it (using gettext).
Sorry to be so slow in responding to your offer. Internationalization is the next step for integrating frisbee into an internationalized puppy. I would be grateful if you would take that on.

To minimize the effort needed to complete internationalization, please make your changes to the "carolina beta4" version of Frisbee. I assume that is the latest version of the betas. Once your changes are verified in a beta environment, I can use my script that converts the beta version to frisbee-1.0. That way I do not have to re-code for "1.0".

Note, though, that the name of the Frisbee script is different in "1.0". That needs to be taken into account. From what I see, code similar to this must also be included, besides the $(gettext ...) mods.

Code: Select all

ver="0.19"
export TEXTDOMAIN=wmswitcher
export OUTPUT_CHARSET=UTF-8
I am guessing that the TEXTDOMAIN line specifies the name of the script for reference by the translation files. If so, please consider "export TEXTDOMAIN=frisbee" if it does not have to match exactly the actual script-file name (Frisbee in the betas, frisbee in 1.0).

We can work together on this by PM, if you so wish. Thanks for offering to do the internationalization.
Richard

Re: Frisbee Network Manager - Beta 2

Posted: Fri 18 Jan 2013, 19:53
by peebee
Sky Aisling wrote:Is there a way I can eliminate the pup bubbles (dialogue boxes)
Hi Sky

I'm surprised but pleased to learn that my Precise version of Frisbee works OK on Lupu 528 - I never tested it on that Puppy version.

There is a slightly improved version here:
http://murga-linux.com/puppy/viewtopic. ... &start=100

It has been a feature of Frisbee since Jemimah first implemented it that it does produce feedback on how the connection is progressing - most people seem to like this feedback....there is no pre-implemented way to turn it off that I know of :-(

If you really want to get rid of the messages you could try renaming /usr/bin/xpupsay to something else and seeing what happens - there's probably no other uses of xpupsay on Lupu 528 so it should be safe - might cause some error messages...

Yep - tested on Precise and it seems to kill the pop-ups as you want. I just renamed it to xppupsay.

Cheers
peebee

Posted: Sat 19 Jan 2013, 04:51
by 01micko
I have svg'd all the frisbee icons and the whole lot now weigh in at 68k uncompressed.

Now I have to code them in.. @rerwin.. what is that source above? Is that to make 1 tray app covering both frisbee and the other networking apps?

EDIT 0: @rerwin, ok looks like it! I'll adjust THAT code for my new icons, compile, test and upload source.

EDIT 1: Ok compile and test is successful, so if the original 2.6 adjusted by rerwin works, this version should work. The source with icons and binary weighs about the same as rerwin's but the icons should look much better. Svg scales perfectly as that's what it's designed to do (scalable vector graphics).

EDIT2: I installed the latest frisbee packages apart from the network tray and it svg shows but the icon doesn't update,

EDIT 3: Installed the original rerwin network_tray-2.6 and it still failed, but after a reboot the icons worked.. so I reinstalled my hacked network tray and rebooted and it worked! Now we can have nice frisbee tray icons. Probably a little work to do to get it refreshing without a reboot, or at least a message.

EDIT 4: I have now incorporated my IP patch, however I will leave the other version up in case that the IP code is buggy, I am yet to receive reports for PPP and PPPoe interfaces.

Posted: Sat 19 Jan 2013, 07:31
by peebee
01micko wrote:
EDIT2: I installed the latest frisbee packages apart from the network tray and it svg shows but the icon doesn't update,

EDIT 3: Installed the original rerwin network_tray-2.6 and it still failed, but after a reboot the icons worked.. so I reinstalled my hacked network tray and rebooted and it worked! Now we can have nice frisbee tray icons. Probably a little work to do to get it refreshing without a reboot, or at least a message.
Hi Mick

It may be because you haven't renamed:

network*.svg to network*-eth.svg - at least that was the scheme that Richard used with the old versions.

However you do still need the old network* versions for the other network manager / the network wizard?? Maybe now in both formats??

Just guessing.
Cheers
peebee

Posted: Sat 19 Jan 2013, 07:36
by 01micko
Hi peebee,

No, I renamed them, like I said, works perfectly after a reboot, so it's something else, I haven't tracked it down yet, but it doesn't work after an X restart either. I'm 99.8% sure that the icons have nothing to do with it. The other source posted by rerwin behaves the same.

Posted: Sat 19 Jan 2013, 08:35
by peebee
01micko wrote:Hi peebee,

No, I renamed them, like I said, works perfectly after a reboot, so it's something else, I haven't tracked it down yet, but it doesn't work after an X restart either. I'm 99.8% sure that the icons have nothing to do with it. The other source posted by rerwin behaves the same.
Did you include svg versions of the original network* icons - they're still needed as well as the 3 sets with - suffixes....

Really like the new icons BTW.

Cheers
peebee

Posted: Sat 19 Jan 2013, 08:52
by 01micko
peebee wrote:Did you include svg versions of the original network* icons - they're still needed as well as the 3 sets with - suffixes....

Really like the new icons BTW.

Cheers
peebee
No, they are not needed as they are called by *.xpm. They can coexist nicely. Even png could be mixed in, or whatever. (And BTW those relevant xpm icons are in my source).

EDIT 0: @rerwin, The refreshing of the icon when frisbee is engaged seems to be dependant on the renewal of the IP address. If from the frisbee main gui I reset the wireless process then the icons refresh and work as expected. This is why it works on a reboot. Simply restarting network_tray fails every time. I'm no programmer but I hope this info gives you a clue.

EDIT 1: I think I have got it! Wrong signal:

Code: Select all

#define SIGRTfrisbeeup	35
This seems not to be respected. (I have been testing in slacko-5.4 and pemau's upup-3.7.2).
If I enter

Code: Select all

killall -36 network_tray
it works! BUT that is for wireless only, and isn't consistent.. so for other connection types this won't work in /usr/local/bin/frisbee_mode_enable. This is definitely a starting point, 8). [A few moments later...] well not quite, but sending 36 and then 35 did work after an X restart, tested both in upup and slacko, consisitent results. HTH