[Bug 987515] New: vim lost ability to use XServer clipboard in Leap 42.1 (+xterm_clipboard)
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 Bug ID: 987515 Summary: vim lost ability to use XServer clipboard in Leap 42.1 (+xterm_clipboard) Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: kolAflash@kolAhilft.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- This bug just returned in Leap 42.1 https://bugzilla.opensuse.org/show_bug.cgi?id=853072 Looks like the responsible switch in vim.spec is now called "--with-x=no". Please remove this again. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c1 --- Comment #1 from kolA flash <kolAflash@kolAhilft.de> --- Created two requests for merging fixed versions of the package into 42.1 and 42.2: https://build.opensuse.org/request/show/419002 https://build.opensuse.org/request/show/419012 Hope I've done everything right. Please be forgiving if anything's wrong. This is my first SUSE commit request. By the way: Has there been there a specific reason (other than package rationalization) why the "--with-x=no" option has been added to the spec file in the first place? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c2 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |astieger@suse.com --- Comment #2 from Andreas Stieger <astieger@suse.com> --- Ismail's comment on the submission: "This is OK by me. Original reasoning for SLE was vim package was pulling down whole X stack." Is this no longer valid? If there was a good reason to do it in SLE, the same reason still applies for openSUSE. Also in openSUSE I would not agree that having vim pull in X is a good idea. Also on SLE this would need to change again, would it not? This package is currently inherited from SLE maintenance. As such we would like to keep it that way, but this change would fork the package. Is there a way to fix this bug by different means, e.g. to make a vim without X support, vim with X support in addition to gvim? Are you sure you want to fork the package for this particular change? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c3 --- Comment #3 from kolA flash <kolAflash@kolAhilft.de> --- Not a 100% sure. But to me it looks like the switch "--with-x=no" is relatively harmless. It only enables the non-gui version of vim to interact with the X-Server. But it doesn't provides gvim. I was able to build with the "--with-x=no" option without any additional dependencies (compared to the original package) on a system without X. And I changed none of the "BuildRequires" lines in the spec file and the package builds fine on OBS. vim-7.4.tar.bz2/src/Makefile says this about the "--without-x" option (seems to be an alias for "--with-x=no"). #- Uncomment the line "CONF_OPT_X = --without-x" if you have X11 but # want to disable using X11 libraries. This speeds up starting Vim, # but the window title will not be set and the X11 selection can not # be used. "window title" and "X11 selection" sound like useful features. I even use those trough ssh when working on remote servers (only requires the -X command-line parameter when running ssh). # GUI - For creating Vim with GUI (gvim) (B) # Uncomment this line when you don't want to get the GUI version, although you # have GTK, Motif and/or Athena. Also use --without-x if you don't want X11 # at all. #CONF_OPT_GUI = --disable-gui Which explains the difference between "--disable-gui" and "--without-x". I'm also asking me, why this wasn't a problem in openSUSE 13.2? Because in 13.2 the normal "vim" package had that X-clipboard function. On the other hand until openSUSE 12.3 there where two different packages "vim" and "vim-enhanced". And only "vim-enhanced" provided the X-clipboard function. Maybe that's the better way to go!? https://build.opensuse.org/package/show/openSUSE:12.3/vim https://build.opensuse.org/package/view_file/openSUSE:12.3/vim/vim.spec -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |idonmez@suse.com Flags| |needinfo?(idonmez@suse.com) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c4 Ismail Donmez <idonmez@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(idonmez@suse.com) | --- Comment #4 from Ismail Donmez <idonmez@suse.com> --- First of all SLE change to remove X support from vim was _not_ approved by me. Enabling X support in vim pulls in libX11, libXt6 and all the dependencies. So that might be overwhelming for someone doing a server only installation. So, I'd like to suggest a simple workaround instead: alias vim="gvim -v" This way you'll have X support and vim itself can still disable X support. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c8 --- Comment #8 from kolA flash <kolAflash@kolAhilft.de> --- Thanks for accepting! So what about 42.2 ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 Robin Roth <robin.roth@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robin.roth@kit.edu -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c9 Christian Wittmer <chris@computersalat.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@computersalat.de --- Comment #9 from Christian Wittmer <chris@computersalat.de> --- Hi, this change makes vi taking forever to open and edit a file ... open("/etc/gai.conf", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=2584, ...}) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=2584, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2300c4d000 read(3, "# Configuration for getaddrinfo("..., 4096) = 2584 read(3, "", 4096) = 0 close(3) = 0 munmap(0x7f2300c4d000, 4096) = 0 futex(0x7f22ff14ff64, FUTEX_WAKE_PRIVATE, 2147483647) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sa_family=AF_INET, sin_port=htons(6010), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 getsockname(3, {sa_family=AF_INET, sin_port=htons(47723), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 close(3) = 0 socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sa_family=AF_INET6, sin6_port=htons(6010), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 getsockname(3, {sa_family=AF_INET6, sin6_port=htons(42513), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0 close(3) = 0 socket(PF_INET6, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 3 setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0 setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 connect(3, {sa_family=AF_INET6, sin6_port=htons(6010), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28^CProcess 3693 detached and there it keeps 'hanging' without opening the file for edit ... :( Can you please fix ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c10 --- Comment #10 from kolA flash <kolAflash@kolAhilft.de> --- (In reply to Christian Wittmer from comment #9)
Hi, this change makes vi taking forever to open and edit a file ...
I currently can't reproduce it. Can you provide more information to reproduce? Especially the command line used to launch vim and the content and owner/group/permissions of the opened file. $ cat /etc/issue Welcome to openSUSE Leap 42.1 - Kernel \r (\l). $ uname -r 4.1.34-33-default $ rpm -qa vim; vi --version | grep xterm_clipboard; time vi '+:q' /etc/gai.conf vim-7.4.326-3.10.x86_64 +eval +mouse_dec +startuptime -xterm_clipboard real 0m0.033s user 0m0.028s sys 0m0.004s $ rpm -qa vim; vi --version | grep xterm_clipboard; time vi '+:q' /etc/gai.conf vim-7.4.326-5.1.x86_64 +eval +mouse_dec +startuptime +xterm_clipboard real 0m0.036s user 0m0.028s sys 0m0.004s -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=987515 http://bugzilla.opensuse.org/show_bug.cgi?id=987515#c11 --- Comment #11 from Christian Wittmer <chris@computersalat.de> --- Here my results: s4y-01:~ # cat /etc/issue Welcome to openSUSE Leap 42.1 - Kernel \r (\l). s4y-01:~ # uname -r 4.1.34-33-default s4y-01:~ # rpm -qa vim; vi --version | grep xterm_clipboard; time vi '+:q' /etc/hosts vim-7.4.326-3.10.x86_64 +eval +mouse_dec +startuptime -xterm_clipboard real 0m0.141s user 0m0.032s sys 0m0.008s s4y-01:~ # rpm -qa vim; vi --version | grep xterm_clipboard; time vi '+:q' /etc/hosts vim-7.4.326-5.1.x86_64 +eval +mouse_dec +startuptime +xterm_clipboard ^C real 0m31.210s user 0m0.044s sys 0m0.012s as you can see I needed to do 'Control-C' the process, cause it won't come up ... even not after 30 seconds -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com