You are not logged in.
Wanted to show you real quick what namcap thinks about your PKGBUILD
loliclip E: ELF file ('usr/bin/loliclip') found in an 'any' package.
loliclip E: WTFPL is not a common license (it's not in /usr/share/licenses/common/)
loliclip E: Dependency bash detected and not included (programs ['sh'] needed in scripts ['usr/bin/lolictrl'])
The first one should be fixed! The second one isn't important imho and I think the third isn't important at all, because bash is in the base group, which is supposed to be installed on every Archlinux installation.
I finally switched from clipbored to loliclip. The feeling is the same, but it's nice to see loliclip actively maintained
Offline
Wanted to show you real quick what namcap thinks about your PKGBUILD
Thanks, hopefully fixed.
I finally switched from clipbored to loliclip. The feeling is the same, but it's nice to see loliclip actively maintained
I did use clipbored before as well.
Offline
I can't copy anything in Spacefm. When I kill loliclip, copying works.
Offline
I can't copy anything in Spacefm. When I kill loliclip, copying works.
Related to the binary copy issue that came up on page 1.
Implementing this will take some time.
For now if you want to be able to copy (until spacefm is closed), I think removing the CLIPBOARD_OWN_IMMEDIATLY
from config.h should work. This flag is actually is not recommended, if you use the X over network and loliclip is not running on the same client as the applications.
However, removing this flag will make you lose immediate post-processing, so whitespace removal and other post-process flags will not have effect until the application who owns the selection is closed.
Anyways, working on it.
Last edited by Cloudef (2012-07-26 12:06:18)
Offline
I can't copy even if spacefm is open.
Offline
It won't build without it.
In file included from /home/fuchs/build/loliclip/src/loliclip.c:94:0:
/home/fuchs/build/loliclip/src/config.h:48:4: error: ‘CLIPBOARD_OWN_IMMEDIATLY’ undeclared here (not in a function)
/home/fuchs/build/loliclip/src/loliclip.c: In function ‘set_clipboard_data’:
/home/fuchs/build/loliclip/src/loliclip.c:361:17: error: invalid operands to binary & (have ‘unsigned int’ and ‘struct clipdata *’)
Offline
Fixed bug where if the same text was already copied on clipboard, but primary had something else, the text would not be synchorized.
@Saran, sorry for late reply.
Don't remove the OWN_IMMEDIATLY enum in config.h.
Those are just there to show what configurations are available.
Remove the OWN_IMMEDIATLY from line 51 instead.
Offline
It makes no difference, still won't copy.
Offline
It works now, thanks!
And it works after closing spacefm, maybe because I run it deamonized.
Offline
Ok, quite huge changes this time.
Won't upload to AUR yet since it needs some testing.
Special clipboards are now supported,
this means for example file copying should work witth the OWN_IMMEDIATLY option, and the files are remembered even if file manager closes.
Copying in GIMP also works, but only for small data chunks as INCR support is still not implemented.
Loliclip also gives you full access to the selections it supports, so you could do for example:
1. Copy small area of image
2. loliclip -b image/tiff > image.tiff
And it would just work.
If you notice any weird behaviour, or some applications (kde file copy?) don't work properly with loliclip give me a heads up.
Grab it from git
If you use this release, delete or rename your history files in $HOME/.local/loliclip so that they don't have the XA_ prefix.
Last edited by Cloudef (2012-07-30 16:29:28)
Offline
% pacman -Qi loliclip|grep Version
Version : 1.7-2
% loliclip
[1] 4424 segmentation fault (core dumped) loliclip
Last edited by Army (2012-07-30 06:10:25)
Offline
% pacman -Qi loliclip|grep Version Version : 1.7-2
% loliclip [1] 4424 segmentation fault (core dumped) loliclip
Neat.
Can you makepkg with DEBUG=1, then gdb ./loliclip
and bt full when it crashes and give the output.
There was quite major refactor and there will be more in future as well,
so It's possible there are lurking some monsters I din't notice.
Thanks.
Offline
With new version, everything works without touching config.h. Copying selections in gimp also works.
Offline
% grep DEBUG PKGBUILD
DEBUG=1
[[ $DEBUG -eq 0 ]] || gcc -g "$srcdir/loliclip.c" -lxcb -lz -o "$srcdir/loliclip"
[[ $DEBUG -eq 0 ]] && gcc -DNDEBUG -s -Os "$srcdir/loliclip.c" -lxcb -lz -o "$srcdir/loliclip"
% makepkg -sirfc
==> Making package: loliclip 1.7-2 (Mon Jul 30 11:06:24 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found loliclip.c
-> Found config.h
-> Found lolictrl
==> Validating source files with md5sums...
loliclip.c ... Passed
config.h ... Passed
lolictrl ... Passed
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: loliclip 1.7-2 (Mon Jul 30 11:06:28 CEST 2012)
==> Installing package loliclip with pacman -U...
Password:
loading packages...
warning: loliclip-1.7-2 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (1):
Name Old Version New Version Net Change
loliclip 1.7-2 1.7-2 0.01 MiB
Total Installed Size: 0.05 MiB
Net Upgrade Size: 0.01 MiB
Proceed with installation? [Y/n]
(1/1) checking package integrity [---------------------------------------------------------------------------] 100%
(1/1) loading package files [---------------------------------------------------------------------------] 100%
(1/1) checking for file conflicts [---------------------------------------------------------------------------] 100%
(1/1) checking available disk space [---------------------------------------------------------------------------] 100%
(1/1) upgrading loliclip [---------------------------------------------------------------------------] 100%
==> Cleaning up...
% gdb /usr/bin/loliclip
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/loliclip...(no debugging symbols found)...done.
Am I doing something wrong?!
Offline
@Army
Actually the binary is stripped when you makepkg it.
Compile manually:
gcc -g loliclip.c -lxcb -lz -o loliclip
then gdb ./loliclip, you may need to type run in gdb. Then bt full to get full backtrace when it crashes.
It seems I've forgot to compile with -Wall so there on PKGBUILD so there might be nasty stuff.
I'll get my back to it when I'm off from work.
Offline
Right, I forgot about the stripping. Here's what I got.
% gdb ./loliclip
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/army/Programme/cloudef/PKGBUILDS/loliclip/loliclip...done.
(gdb) run
Starting program: /home/army/Programme/cloudef/PKGBUILDS/loliclip/loliclip
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
-!- [0] XSEL_DATA = 0x156
-!- [1] ATOM = 0x4
-!- [2] INTEGER = 0x13
-!- [3] UTF8_STRING = 0x157
-!- [4] TIMESTAMP = 0x158
-!- [5] TEXT = 0x15e
-!- [6] STRING = 0x1f
-!- [7] TARGETS = 0x159
-!- PRIMARY = 0x1
-!- Owning clipboard SECONDARY
-!- SECONDARY = 0x2
-!- Owning clipboard CLIPBOARD
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff772937c in __strncmp_ssse3 () from /lib/libc.so.6
(gdb) bt full
#0 0x00007ffff772937c in __strncmp_ssse3 () from /lib/libc.so.6
No symbol table info available.
#1 0x0000000000402641 in set_clipboard_data (c=0x609560, buffer=0x0, len=0) at loliclip.c:393
s = 0x0
copy = 0x0
nlen = 4210577
i = 4223357
flags = 0
#2 0x000000000040435f in sync_clip (c=0x6095e0) at loliclip.c:901
s = 0x609560
#3 0x00000000004047aa in init_clipboard_protocol () at loliclip.c:949
i = 2
reply = 0x60fe90
cookies = {{sequence = 3}, {sequence = 4}, {sequence = 5}}
sel_cookies = {{sequence = 6}, {sequence = 7}, {sequence = 8}, {sequence = 9}, {sequence = 10}}
clip_cookies = {{sequence = 11}, {sequence = 12}, {sequence = 13}}
special_cookies = {{sequence = 14}, {sequence = 15}, {sequence = 16}, {sequence = 17}, {sequence = 18}, {sequence = 19}, {sequence = 20}, {sequence = 21}, {sequence = 22}}
__func__ = "init_clipboard_protocol"
#4 0x0000000000406d29 in main (argc=1, argv=0x7fffffffdd78) at loliclip.c:1653
ev = 0x0
i = 0
doblock = 0
skiploop = 0
__func__ = "main"
Offline
Right, I forgot about the stripping. Here's what I got.
Thanks for the backtrace. I know now what the issue is.
Will fix it when I get home.
At the meantime you can comment the sync_clip in init_clipboard_protocol function @ line 901?
This synchronizes the clipboard on startup if there is data on history file.
But there actually is no data (no history) and it tries to sync NULL pointer (set_clipboard_data doesn't seem to expect NULL).
Last edited by Cloudef (2012-07-30 11:25:49)
Offline
I too get a segmentation fault when starting latest loliclip from git. This is the backtrace:
loliclip >>> gdb loliclip
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/loliclip...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/loliclip
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
-!- [0] XSEL_DATA = 0x18d
-!- [1] ATOM = 0x4
-!- [2] INTEGER = 0x13
-!- [3] UTF8_STRING = 0x110
-!- [4] TIMESTAMP = 0x18e
-!- [5] TEXT = 0x18f
-!- [6] STRING = 0x1f
-!- [7] TARGETS = 0x190
-!- Owning clipboard PRIMARY
-!- PRIMARY = 0x1
-!- Owning clipboard SECONDARY
-!- SECONDARY = 0x2
-!- Owning clipboard CLIPBOARD
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff768506c in __strncmp_sse2 () from /lib/libc.so.6
Last edited by karabaja4 (2012-07-30 15:56:57)
Offline
Ok, it should work now.
Offline
It works now, thanks! BTW:
Copying selections in gimp also works.
I can't verify this. For me it still doesn't work.
EDIT: Correction, it works but only for small amounts of data. Looking forward to INCR
Last edited by karabaja4 (2012-07-30 16:39:46)
Offline
It works now, thanks! BTW:
EDIT: Correction, it works but only for small amounts of data. Looking forward to INCR
Indeed, the INCR will hopefully be in next update
Btw, the small image area can be retieved with 'loliclip -b image/tiff' from CLI.
Similar you can get the currently copied files with 'loliclip -b x-special/gnome-copied-files'.
Though that above one might be gnome specific as the name states. Not sure yet what targets are used in common programs.
Last edited by Cloudef (2012-07-30 16:48:21)
Offline
Ok, it should work now.
confirmed
Offline