• Bug#1103255: /usr/bin/rails: No $EDITOR to open file in. Assign one lik

    From =?utf-8?B?0L3QsNCx?=@21:1/5 to All on Tue Apr 15 19:40:01 2025
    Package: ruby-railties
    Version: 2:6.1.7.10+dfsg-1~deb12u1
    Severity: serious
    Justification: Policy 11.4
    File: /usr/bin/rails

    Dear Maintainer,

    I just got
    $ rails credentials:edit
    No $EDITOR to open file in. Assign one like this:

    EDITOR="mate --wait" bin/rails credentials:edit

    For editors that fork and exit immediately, it's important to pass a wait flag,
    otherwise the credentials will be saved immediately with no chance to edit.

    Quoth Policy 11.4:
    Thus, every program that launches an editor or pager must use the
    EDITOR or PAGER environment variable to determine the editor or
    pager the user wishes to use. If these variables are not set, the
    programs /usr/bin/editor and /usr/bin/pager should be used,
    respectively. These commands may be invoked explicitly (e.g., as /usr/bin/editor) or via a PATH search (e.g., as editor).

    Best,

    -- System Information:
    Debian Release: 12.9
    APT prefers stable-updates
    APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.1.0-27-amd64 (SMP w/24 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages ruby-railties depends on:
    ii rake 13.0.6-3
    ii ruby 1:3.1
    ii ruby-actionpack 2:6.1.7.10+dfsg-1~deb12u1
    ii ruby-activesupport 2:6.1.7.10+dfsg-1~deb12u1
    ii ruby-method-source 1.0.0-2
    ii ruby-thor 1.2.1-2

    ruby-railties recommends no packages.

    ruby-railties suggests no packages.

    -- no debconf information

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmf+mFUACgkQvP0LAY0m WPF9mA//f9sUCuBxPzBT9aR/54hCk6mwuymf8YLTw6j0URDeLnLzS8XillgAgref tI3bxJfN4m1ry4+qf3taoXtA38ybtjZq7dTb6TnwVWt3Cot30QGMp41CMDgHCXxV XKdLaoJa+0j5wvTHnWM718+Hsi8hYUU+zv5kIgPoxlvCEAzNvxt0lMOBDq1vfr3b aNz9SNApu2GCI/7XiHC9e2T+1PtWfKr7E6iLEBc+ZpG5J/fvaIU97LLeraUZitUh TOpaOFloQc1326BRv4ZAt3UtH1Ek4YK2ukspZSeWK2OPTGotDUHreKvgrf84n86J qrrhzey4okCIK+b7AoomK/K1NJFk2pN09MufJuwhuA/E+RvvShl1lLJOYd4lR1P4 38m9TWGZ14+Roo51UfvYiY7EFGp7GskT80Et0XUOQHpV7xdYKH5Z5SQdEwgfeGqY GtxL3eLKpfc19+zeFa7sGpZDlYPPdVhgSs2dbUXSZzlXHK3afU49C7iqKpun67dd QmObPLFPvVn2pLX2Hzxel4jhHM9xkG5y/rulUWUMCui/Ceg4O8VHsS7P5O7xoNEe 6bKJXiLCBogiFZ83d1x/GHu+WdXP9JhHa04mynlKkMDjkeW0HSihs8vnStSS5yBa FnEQ9aFuLMfDqBJACLyPNHixLJrc8/F8RB9f6Mzydu7ip5Lik2k=
    =ihaM
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?0L3QsNCx?=@21:1/5 to Antonio Terceiro on Tue Apr 15 20:30:01 2025
    On Tue, Apr 15, 2025 at 03:20:02PM -0300, Antonio Terceiro wrote:
    However, not following a "should" directive in policy is not really a
    serious bug.
    Whoops, misread the "must" for using-$EDITOR-in-general as also applying
    to defaulting-to-/bin/editor. my b.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmf+pCoACgkQvP0LAY0m WPE5Eg//WFpLcV6m88Xgwy4rx6SeKGrma//OJrO1TjjEeIwdP+cvhNl1DIoglydc pUYwZPITH9MwuZJOtiaP6s4uH1/8qPamd8pzVyodKvslz/BpN+uzVz+F3A81sXSi FFaWeTolLuqhPEyhRgrAKNFSzdW/2d/t8M/zKTB2Q2u0apUmIXF2WbYRjLBrM7O9 8Bxi91LE9RMqpg/nuZ+DgdE3ZnWU4YPS2MOuWiVfDPFANIs0wlPzMXZ8P2bsG/2u 74JlTB7jSFs88z14L4cHNKccmR0tf3yFN/sIUEPfGjQO9F3ZEu1J9iLpQbVaLlL4 uGAoBnvO2n5XjMw66l0/En8WQ41pXTS2+w3wULG36To+X06f9a1KgQGhx+R/6Xs0 4HREHYU+onhymrj109D+fv3kL8QhPt1g10PJJ3KlcLtL6BXKl/qh3fq0UnKUMewS 7PoAOa5Di7U4qa3cafGo8HTqj4dqwTHbKr3R8UEB6lx28Vcs97QiNRGjF3VRfqd1 Gca1FAmfDHx2C1gCYSxAt52CrQeTJEvfyHiaq4hg0JcivcnxfHcWwXMu1CYippMU gM6gXb8w7nzWQO5KFM2e51mxlP8IljMkrnS555HrL0RrZSt2gkapzOzs0TwkQRHO P0MCHo0bQjp8o1X3TnK1cT5A0v80yU4bBFM2i/u1F8jcw/03y2c=
    =TIhI
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)