Debian Bug report logs - #1071744
search does not support patterns

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Konomi <[email protected]>

Date: Fri, 24 May 2024 14:54:06 UTC

Severity: normal

Found in version apt/2.9.3

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], APT Development Team <[email protected]>:
Bug#1071744; Package apt. (Fri, 24 May 2024 14:54:08 GMT) (full text, mbox, link).


Acknowledgement sent to Konomi <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], APT Development Team <[email protected]>. (Fri, 24 May 2024 14:54:08 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Konomi <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: apt: search '?installed ?not(?automatic)' causes regex compilation error
Date: Sat, 25 May 2024 00:50:53 +1000
Package: apt
Version: 2.9.3
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Running `apt search '?installed ?not(?automatic)'` results in the
following message: "Error: Regex compilation error". Using the same search
terms in aptitude `aptitude search '?installed ?not(?automatic)'` works
as expected.

Konomi

-- Package-specific info:

-- (/etc/apt/preferences present, but not submitted) --


-- (/etc/apt/preferences.d/apt-listbugs present, but not submitted) --


-- (/etc/apt/sources.list present, but not submitted) --


-- (no /etc/apt/sources.list.d/* present) --


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.137
ii  base-passwd             3.6.3
ii  debian-archive-keyring  2023.4
ii  gpgv                    2.2.43-6
ii  libapt-pkg6.0t64        2.9.3
ii  libc6                   2.38-11
ii  libgcc-s1               14.1.0-1
ii  libgnutls30t64          3.8.5-2
ii  libseccomp2             2.5.5-1
ii  libstdc++6              14.1.0-1
ii  libsystemd0             256~rc3-2

Versions of packages apt recommends:
ii  ca-certificates  20240203

Versions of packages apt suggests:
ii  apt-doc         2.9.3
ii  aptitude        0.8.13-6
ii  dpkg-dev        1.22.6
ii  gnupg           2.2.43-6
ii  powermgmt-base  1.37

-- no debconf information



Information forwarded to [email protected], APT Development Team <[email protected]>:
Bug#1071744; Package apt. (Fri, 24 May 2024 15:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Julian Andres Klode <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>. (Fri, 24 May 2024 15:03:04 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Julian Andres Klode <[email protected]>
To: Konomi <[email protected]>, [email protected]
Subject: Re: Bug#1071744: apt: search '?installed ?not(?automatic)' causes regex compilation error
Date: Fri, 24 May 2024 17:00:12 +0200
Control: retitle -1 search does not support patterns

On Sat, May 25, 2024 at 12:50:53AM +1000, Konomi wrote:
> Package: apt
> Version: 2.9.3
> Severity: normal
> X-Debbugs-Cc: [email protected]
> 
> Dear Maintainer,
> 
> Running `apt search '?installed ?not(?automatic)'` results in the
> following message: "Error: Regex compilation error". Using the same search
> terms in aptitude `aptitude search '?installed ?not(?automatic)'` works
> as expected.

Yes this is well known, the apt search command specifically can only
do text search, you are looking for the apt list command.

There's some limitations to actually allow search to take patterns,
as it currently builds a regular expression vector and then runs them
over the descriptions, hence why there's no patterns yet.
-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en



Changed Bug title to 'search does not support patterns' from 'apt: search '?installed ?not(?automatic)' causes regex compilation error'. Request was from Julian Andres Klode <[email protected]> to [email protected]. (Fri, 24 May 2024 15:03:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 07:26:08 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.