Discussion:
Bug#1083171: missing wx-config
(too old to reply)
g***@noxyz.eu
2024-10-02 17:20:02 UTC
Permalink
Package: wx-common
Version: 3.2.2+dfsg-2

Trying to compile some code which requires wxWidgets I get errors for
undefined lib/headers.
Makefile makes use of 'wx-config --libs' but wx-config is missing, only
package mentioning it is (from https://packages.debian.org/search?...):

==========
You have searched for filenames that contain wx-config in suite
bookworm, all sections, and all architectures. Found 1 results.
File Packages
/usr/share/man/man1/wx-config.1.gz wx-common
==========

which is installed (in aptitude):

==========
aptitude 0.8.13 @ myhost
i wx-common 3.2.2+dfsg-2 3.2.2+dfsg-2
i wx3.2-headers 3.2.2+dfsg-2 3.2.2+dfsg-2
==========

arch is amd64 and

==========
File list of package wx-common in bookworm of architecture amd64

/usr/bin/wxrc
/usr/share/aclocal/wxwin.m4
/usr/share/bakefile/presets/wx.bkl
/usr/share/bakefile/presets/wx_presets.py
/usr/share/bakefile/presets/wx_unix.bkl
/usr/share/bakefile/presets/wx_win32.bkl
/usr/share/bakefile/presets/wx_xrc.bkl
/usr/share/doc/wx-common/changelog.Debian.gz
/usr/share/doc/wx-common/changelog.gz
/usr/share/doc/wx-common/copyright
/usr/share/lintian/overrides/wx-common
/usr/share/man/man1/wx-config.1.gz
/usr/share/man/man1/wxrc-tools.1.gz
==========

so there's the manpage but the command/shell script itself seems
missing.
No clues in docs and manpage /usr/share/man/man1/wx-config.1.gz
man wxrc yields the wxrc-tools.1

Only mention in changelog is:

==========
3.2.2: (released 2023-02-08)
----------------------------

All:

- Fix regression in saving TIFF images that could end up truncated
(#23048).
- Fix long standing bug in parsing wxHTTP responses.
- Fix wx-config generation in CMake builds (Maarten Bent, #22806).
==========

Seems somehow the build fails (to include) it.


thanx
-- g
g***@noxyz.eu
2024-10-04 12:20:02 UTC
Permalink
...man/man1/wx-config.1.gz wx-common
Post by g***@noxyz.eu
==========
wx-config is provided by the libwxgtk3.2-dev package. libwxgtk3.2-dev
ok thanks, now I see it makes
/usr/bin/wx-config -> /etc/alternatives/wx-config ->
/usr/lib/x86_64-linux-gnu/wx/config/gtk3-unicode-3.2
upon install, that's why pkg search could't find it.
But then perhaps its manpage should be moved into this package as well


thanx
-- g
Olly Betts
2024-10-04 22:50:01 UTC
Permalink
Post by g***@noxyz.eu
...man/man1/wx-config.1.gz wx-common
wx-config is provided by the libwxgtk3.2-dev package. libwxgtk3.2-dev
ok thanks, now I see it makes
/usr/bin/wx-config -> /etc/alternatives/wx-config ->
/usr/lib/x86_64-linux-gnu/wx/config/gtk3-unicode-3.2
upon install, that's why pkg search could't find it.
But then perhaps its manpage should be moved into this package as well
Then the man page wouldn't be installed when /etc/alternatives/wx-config
was provided by a different wx version/flavour. It seems worse to not
have the man page in some cases when the program is there than the current
situation.

We'd need to have a wx-dev-common or similar to house the man page and
then have that pulled in by any wx -dev package, but this doesn't seem to
really justify splitting things into even more packages.

Cheers,
Olly
g***@noxyz.eu
2024-10-05 08:40:01 UTC
Permalink
Post by Olly Betts
...
Post by g***@noxyz.eu
But then perhaps its manpage should be moved into this package as well
Then the man page wouldn't be installed when
/etc/alternatives/wx-config
...
so any wx* package providing wx-config *ould depend on/suggest wx-common
(too).
Or just add a line in that manpage listing pkgs that provide wx-config
or just tip to use 'apt search wx-config' & 'apt-file search wx-config'
since they look for different things:

$ apt-file search wx-config
wx-common: /usr/share/man/man1/wx-config.1.gz
$ apt search wx-config
Sorting... Done
Full Text Search... Done
libwxgtk3.2-dev/stable,now 3.2.2+dfsg-2 amd64

the dpkg search web inteface could be augmented in that way, BTW

anyway, issue solved for me

thanx all
-- g
Olly Betts
2024-10-07 02:50:01 UTC
Permalink
Post by g***@noxyz.eu
Post by Olly Betts
...
Post by g***@noxyz.eu
But then perhaps its manpage should be moved into this package as well
Then the man page wouldn't be installed when /etc/alternatives/wx-config
...
so any wx* package providing wx-config *ould depend on/suggest wx-common
(too).
That should already be the case. E.g. libwxgtk3.2-dev depends on
wx-common; libwxgtk3.0-gtk3-dev (only in oldstable and older) did too.
Post by g***@noxyz.eu
Or just add a line in that manpage listing pkgs that provide wx-config
That's possible, but would require manually updating that list and
uploading a new version whenever a new wx version is packaged or an old
one removed. That happens every few years so it's not very onerous, but
inevitably it'll get forgotten and we'll end up with a stale list.
Post by g***@noxyz.eu
or
just tip to use 'apt search wx-config' & 'apt-file search wx-config' since
$ apt-file search wx-config
wx-common: /usr/share/man/man1/wx-config.1.gz
That doesn't seem helpful - that just tells you the man page you're
suggesting adding the tip to and the package it is in.
Post by g***@noxyz.eu
$ apt search wx-config
Sorting... Done
Full Text Search... Done
libwxgtk3.2-dev/stable,now 3.2.2+dfsg-2 amd64
That's more useful.

Cheers,
Olly

Loading...