Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160139 - kscannerbuttons-0.9.4 (new ebuild)
Summary: kscannerbuttons-0.9.4 (new ebuild)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
Keywords: EBUILD
Depends on:
Reported: 2007-01-04 17:08 UTC by Carlos Laué
Modified: 2009-03-10 03:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

initial ebuild for kscannerbuttons-0.9.4 (kscannerbuttons-0.9.4.ebuild,2.59 KB, text/plain)
2007-01-04 17:50 UTC, Carlos Laué
kscannerbuttons-0.9.4.ebuild: cleaned-up version (kscannerbuttons-0.9.4.ebuild,821 bytes, text/plain)
2007-01-04 22:36 UTC, Carlos Laué
kscannerbuttons-0.9.4-destdir.patch (kscannerbuttons-0.9.4-destdir.patch,2.19 KB, patch)
2007-01-04 22:44 UTC, Carlos Laué
Details | Diff
Fixes wrong ksystraycmd calling (kscannerbuttons-0.9.4-fix-ksystraycmd.patch,327 bytes, patch)
2007-01-28 22:34 UTC, Philipp Wollermann
Details | Diff
kscannerbuttons-0.9.5.ebuild (kscannerbuttons-0.9.5.ebuild,785 bytes, text/plain)
2007-09-29 10:21 UTC, SpanKY
kscannerbuttons-0.9.5-build.patch (kscannerbuttons-0.9.5-build.patch,5.95 KB, patch)
2007-09-29 10:21 UTC, SpanKY
Details | Diff
kscannerbuttons-0.9.5-fix-ksystraycmd.patch (kscannerbuttons-0.9.5-fix-ksystraycmd.patch,355 bytes, patch)
2008-07-23 17:16 UTC, Stephan Sokolow
Details | Diff
Updated 0.9.5 ebuild to go with my patch (kscannerbuttons-0.9.5.ebuild,899 bytes, text/plain)
2008-07-23 17:17 UTC, Stephan Sokolow
fixes .desktop file provided (kscannerbuttons-0.9.5-desktop-file.patch,559 bytes, patch)
2008-07-23 23:57 UTC, Carlos Laué
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Laué 2007-01-04 17:08:05 UTC
An ebuild for kscannerbuttons, a button monitoring daemon for your scanner.
Comment 1 Carlos Laué 2007-01-04 17:50:23 UTC
Created attachment 105442 [details]
initial ebuild for kscannerbuttons-0.9.4

this ebuild mimics the installation paths as found into Makefile (mostly)

there is some patching needed for moving the .kmdr script from /usr/local/bin (hardcoded paths) so I left it where it (initially) was.

originally, installing with the Makefile puts an .desktop file on ~/Desktop/ so it appear's on the installing user's desktop (and installs system-wide files using a kdesu-dialog) so installation is at the moment handled by the ebuild. I didn't want to write down a doins for each new locale the program might have (only french at the moment) but I did so.

the program works for me on amd64, originally is written for x86 so I've put both ~ARCH's flags.
Comment 2 Carlos Laué 2007-01-04 22:36:46 UTC
Created attachment 105449 [details]
kscannerbuttons-0.9.4.ebuild: cleaned-up version

The first ebuild was buggy anyway. Now everything seems to work and install properly (no missing icons inside the program). 
It seems to be ready to install more language files, no handwork.
Also cleaned up ebuild.skel comments (sorry!)
Comment 3 Carlos Laué 2007-01-04 22:44:16 UTC
Created attachment 105451 [details, diff]
Comment 4 Philipp Wollermann 2007-01-28 22:34:07 UTC
Created attachment 108429 [details, diff]
Fixes wrong ksystraycmd calling

This patch fixes the error message on startup:

$ kscannerbuttons
/bin/bash: kmdr-executor --icon scanner /usr/local/bin/KScannerButtons.kmdr: No such file or directory
Comment 5 SpanKY gentoo-dev 2007-09-29 10:21:35 UTC
Created attachment 132161 [details]
Comment 6 SpanKY gentoo-dev 2007-09-29 10:21:52 UTC
Created attachment 132162 [details, diff]
Comment 7 Baldrun Orv 2008-02-28 22:24:09 UTC
I emerged kscannerbuttons using the kscannerbuttons-0.9.5.ebuild and the kscannerbuttons-0.9.5-build.patch. Executing kscannerbuttons results in a scanner symbol being shown in the taskbar. Clicking on this symbol leads to an error message stating: "Kommander file /usr/local/share/kscannerbuttons/KScannerButtons.kmdr does not exist."

Console output:
$ kscannerbuttons
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x6a00012

However, KScannerButtons.kmdr can be found here: /usr/share/kscannerbuttons/KScannerButtons.kmdr.
Is there something wrong with the patch?
Comment 8 Stephan Sokolow 2008-07-23 17:16:15 UTC
Created attachment 161202 [details, diff]

Here's a patch which fixes the ksystraycmd problem when you also chmod KScannerButtons.kmdr 755 so ksystraycmd doesn't get confused by Kommander's warning dialog.
Comment 9 Stephan Sokolow 2008-07-23 17:17:42 UTC
Created attachment 161203 [details]
Updated 0.9.5 ebuild to go with my patch

...and here's an ebuild which uses the patch and does the chmodding for you. I tested both and they work perfectly well.
Comment 10 Carlos Laué 2008-07-23 23:57:55 UTC
Created attachment 161230 [details, diff]
fixes .desktop file provided

This patch fixes two bugs with the application shortcut:

The first bug was KScannerButtons not being placed into any category on the KDE application menu, now in Utilities.

The second bug was a wrong path, almost identical to the bug as described in comment #7, that happened when one tried to start the application using the menu.
Comment 11 Stephan Sokolow 2008-08-31 08:18:29 UTC
Just thought I'd warn everybody. It seems that sanebuttonsd is triggering some kind of kernel memory leak on my system. (over 1GiB per week)

I'll update you when I can figure out what part of my kernel is leaky. The simplest way to check if you've got the same problem is to use the slabtop tool and check whether the number of sysfs_dir_cache entries is ticking up slowly but very steadily. (Exactly 111 leaked entries per slabtop update on my system)