Bug#636147: jupp: removes /etc/joe/editorrc, breaking joe
Package: jupp Version: 3.1.17-2 Severity: serious Justification: wheezy RC policy §3 Jupp hijacks the editorrc alternative from joe, moving it from /etc/joe/editorrc to /etc/jupp/editorrc. This breaks joe if it is set as the default system editor: # dpkg-query -W joe joe 3.7-2 # ls -F /etc/joe/ editorrc@ ftyperc jicerc.ru jmacsrc joerc jpicorc jstarrc rjoerc # apt-get install -qq --trivial-only jupp Selecting previously deselected package jupp. (Reading database ... 465741 files and directories currently installed.) Unpacking jupp (from .../jupp_3.1.17-2_i386.deb) ... Processing triggers for man-db ... Setting up jupp (3.1.17-2) ... update-alternatives: renaming editorrc link from /etc/joe/editorrc to /etc/jupp/editorrc. # ls -F /etc/joe/ ftyperc jicerc.ru jmacsrc joerc jpicorc jstarrc rjoerc # file /etc/alternatives/editor{,rc} /etc/alternatives/editor: symbolic link to `/usr/bin/joe' /etc/alternatives/editorrc: symbolic link to `/etc/joe/joerc' # editor Couldn't open '*editorrc' # -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing'), (400, 'unstable'), (300, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.0.0-00150-gb3626c5 (SMP w/2 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages jupp depends on: ii libc6 2.13-10Embedded GNU C Library: Shared lib ii libncurses5 5.9-1 shared libraries for terminal hand ii libselinux1 2.0.98-1.1 SELinux runtime shared libraries jupp recommends no packages. jupp suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#636147: jupp: removes /etc/joe/editorrc, breaking joe
Piotr Engelking dixit: >Jupp hijacks the editorrc alternative from joe, moving it from >/etc/joe/editorrc to /etc/jupp/editorrc. This breaks joe if it is set >as the default system editor: Oh, fun. Will have a look at it, thanks for noticing, if you have an idea please do tell. A quick one would be to make them not co-installable (since /etc/joe/{syntax,charmaps} would overlap)... this I'd like to avoid since I split the joe-parts off into joe-jupp for that reason... bye, //mirabilos -- Support mksh as /bin/sh and RoQA dash NOW! ‣ src:bash (254 (273) bugs: 1 RC, 175 (190) I&N, 78 (82) M&W, 0 F&P) ‣ src:dash (82 (90) bugs: 3 RC, 44 (47) I&N, 35 (40) M&W, 0 F&P) ‣ src:mksh (2 bugs: 0 RC, 0 I&N, 2 M&W, 0 F&P) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#636147: jupp: removes /etc/joe/editorrc, breaking joe
Piotr Engelking dixit: >Jupp hijacks the editorrc alternative from joe, moving it from >/etc/joe/editorrc to /etc/jupp/editorrc. This breaks joe if it is set Do you think it would work if I just add /etc/jupp/editorrc@ -> ../joe/editorrc and then manage /etc/joe/editorrc with update-alternatives just like joe does? bye, //mirabilos -- you introduced a merge commit│ % g rebase -i HEAD^^ sorry, no idea and rebasing just fscked │ Segmentation should have cloned into a clean repo │ fault (core dumped) if I rebase that now, it's really ugh │ wuahh -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#636147: jupp: removes /etc/joe/editorrc, breaking joe
Thorsten Glaser wrote: > Do you think it would work if I just add > /etc/jupp/editorrc@ -> ../joe/editorrc > and then manage /etc/joe/editorrc with update-alternatives > just like joe does? There seems to be no point of jupp sharing the editorrc alternative with joe, especially considering that neither program is compatible with the shipped rc files of the other anymore. Apparently, at the moment, jupp uses only one alternative for /etc/jupp/editorrc. Do you plan to include the rc files from joe-jupp as alternatives as well? If so, the correct fix is to use an alternative name different from the one used by joe. If not, you don't need to use the alternatives system for /etc/jupp/editorrc at all, and can symlink the file to /etc/jupp/jupprc unconditionally. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#636147: jupp: removes /etc/joe/editorrc, breaking joe
Piotr Engelking dixit: >There seems to be no point of jupp sharing the editorrc alternative >with joe, especially considering that neither program is compatible >with the shipped rc files of the other anymore. The problem is that joe/jupp use argv[0] + "rc" as name to look for, so it’s editorrc for both of them. >Apparently, at the moment, jupp uses only one alternative for >/etc/jupp/editorrc. Do you plan to include the rc files from joe-jupp >as alternatives as well? They are already included, joe-jupp contains its own maintainer scripts enabling them. >If so, the correct fix is to use an >alternative name different from the one used by joe. But the name must still be editorrc… (which, by the way, could be a slave to editor, couldn’t it?) I think using /etc/joe/editorrc makes most sense – as editorrc is only used by editor, which can only point to one of either joe or jupp at the same time. Will try if that works. bye, //mirabilos -- FWIW, I'm quite impressed with mksh interactively. I thought it was much *much* more bare bones. But it turns out it beats the living hell out of ksh93 in that respect. I'd even consider it for my daily use if I hadn't wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#636147: jupp: removes /etc/joe/editorrc, breaking joe
Thorsten Glaser wrote: >>There seems to be no point of jupp sharing the editorrc alternative >>with joe, especially considering that neither program is compatible >>with the shipped rc files of the other anymore. > > The problem is that joe/jupp use argv[0] + "rc" as name to look > for, so it’s editorrc for both of them. Yes, I am aware of it, but the point is that a combination like joe selected as the alternative for editor, and /etc/jupp/jupprc for editorrc (or the other way around) won't work. >>Apparently, at the moment, jupp uses only one alternative for >>/etc/jupp/editorrc. Do you plan to include the rc files from joe-jupp >>as alternatives as well? > > They are already included, joe-jupp contains its own maintainer > scripts enabling them. Sorry, I checked in the wrong place. >>If so, the correct fix is to use an >>alternative name different from the one used by joe. > > But the name must still be editorrc… No, the alternative name can be different from from the name of the file referring to it. > (which, by the way, could be a slave to editor, couldn’t it?) According to the changelog entry for joe 3.5-1, sadly not: * Stop shipping fixed /etc/joe/editorrc and instead add all our versions as alternatives to it. Unfortunately it doesn't work as a slave alternative to the main editor alternative, but this is as close as it can get, closes: #269334. (Unless, perhaps, update-alternatives changed in the meantime?) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org