Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947675 - app-misc/mc-4.8.23: regex in mc.ext no longer working
Summary: app-misc/mc-4.8.23: regex in mc.ext no longer working
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-07 16:29 UTC by Timo Ollech
Modified: 2025-01-17 19:33 UTC (History)
1 user (show)

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


Attachments
emerge --info app-misc/mc (emerge-info.txt,10.36 KB, text/plain)
2025-01-07 16:30 UTC, Timo Ollech
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Ollech 2025-01-07 16:29:30 UTC
I'm not exactly sure if the change came with mc-4.8.23 or mc-4.8.23-r1, but the regex syntax in mc.ext changed. Example:

# Microsoft Excel Worksheet
#regex/\.([xX][lL][sSwW])$
[Regex/_.__xX__lL__sSwW___]
<------>Regex=\.([xX][lL][sSwW])$
<------>RegexIgnoreCase=false
<------>Open=(libreoffice %f >/dev/null 2>&1 &)
<------>View=%view{ascii} xls2csv %f || strings %f

This new Regex syntax is not working, libreoffice does no longer start when I press enter on an Excel file. The new syntax is working neither.

Reproducible: Always




Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.40-r5, 6.6.67-gentoo x86_64)
=================================================================
System uname: Linux-6.6.67-gentoo-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-glibc2.40
KiB Mem:    16069184 total,   3670116 free
KiB Swap:   20971516 total,  17719488 free
Timestamp of repository gentoo: Tue, 07 Jan 2025 09:15:00 +0000
Head commit of repository gentoo: 0677b0b22d81525598e8f9f2f12cf35251b4b661
Timestamp of repository fem-overlay: Mon, 06 Jan 2025 20:33:19 +0000
Head commit of repository fem-overlay: e747cfaaff2541f5e7be099ceaaf6e4188c39c51

Timestamp of repository ferki: Tue, 17 Dec 2024 22:21:19 +0000
Head commit of repository ferki: eedde251d05ffada39f7cd989393bff0cbc7fe42

Timestamp of repository flow: Fri, 03 Jan 2025 18:03:19 +0000
Head commit of repository flow: 1fa1b6c14186912f55384756539c7df2e8597531

Timestamp of repository guru: Mon, 06 Jan 2025 21:48:31 +0000
Head commit of repository guru: c2db0087e5039baa2fcfe378918b4ff902a299e6

Timestamp of repository haarp: Sun, 22 Dec 2024 19:48:19 +0000
Head commit of repository haarp: b1fe178717558e10aabb922ff38352b1bac89410

Timestamp of repository haskell: Mon, 06 Jan 2025 20:03:11 +0000
Head commit of repository haskell: 5baa0d46d2a5ac32375738db703451c499a254af

Head commit of repository librewolf: ded03c0ced66213122ffb37b7f8820002df299a9

Timestamp of repository linuxunderground-overlay: Tue, 17 Dec 2024 22:21:14 +0000
Head commit of repository linuxunderground-overlay: 03299175a0b1ac6aee1e49adeac8ad0821778433

Timestamp of repository ulm: Tue, 17 Dec 2024 22:21:04 +0000
Head commit of repository ulm: fa94e431a2f54fa64cc903f748a564f5f56a9e76

Head commit of repository without-systemd: 5d3567162093b20268bee39d28ade80ca3732aeb

Head commit of repository brother-overlay: c7e774490529149a447a06da85da595dc0ba4615

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
ccache version 4.10.2 [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin:         1.81.0-r101::gentoo, 1.82.0-r101::gentoo
dev-util/ccache:           4.10.2-r1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.4::gentoo
llvm-core/lld:             19.1.4::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo, 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241025::gentoo, 14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

fem-overlay
    location: /var/db/repos/fem-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/fem-overlay.git
    masters: gentoo
    volatile: False

ferki
    location: /var/db/repos/ferki
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ferki.git
    masters: gentoo
    volatile: False

flow
    location: /var/db/repos/flow
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/flow.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

haarp
    location: /var/db/repos/haarp
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haarp.git
    masters: gentoo
    volatile: False

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

linuxunderground-overlay
    location: /var/db/repos/linuxunderground-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/linuxunderground-overlay.git
    masters: gentoo
    volatile: False

localrepo
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ulm
    location: /var/db/repos/ulm
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ulm.git
    masters: gentoo
    volatile: False

without-systemd
    location: /var/db/repos/without-systemd
    sync-type: git
    sync-uri: https://github.com/KenjiBrown/without-systemd.git
    masters: gentoo
    volatile: False

brother-overlay
    location: /usr/local/portage/brother-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 9999
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de de_DE"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr elogind encode eudev exif ffmpeg flac gdbm gif gpm gtk gui iconv icu ipv6 jemalloc jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp opus pam pango pcre pdf png policykit ppds qml qt5 qt6 readline sanitize sdl seccomp sound spell ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="synaptics evdev libinput" KERNEL="linux" L10N="de de-DE" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel i965 dummy fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Timo Ollech 2025-01-07 16:30:47 UTC
Created attachment 916072 [details]
emerge --info app-misc/mc
Comment 2 Viorel Munteanu gentoo-dev 2025-01-08 13:51:53 UTC
It has this by default:

[msxls-by-shell]                                                                                                                                                                                                                                                
Regex=\\.(xl[sw]|xlsx)$                                                                                                                                                                                                                                         
RegexIgnoreCase=true

I see it starts with \\. not \. and they use RegexIgnoreCase to simplify the expression.
Comment 3 Timo Ollech 2025-01-17 19:33:56 UTC
@Viorel Munteanu thanks, the second \ fixed it, and just to be sure I changed RegexIgnoreCase to true everywhere.

That only leaves the question how these wrong entries got into my mc.ext in the first place? I didn't change anything myself there.