Bug 285185 - graphics/gdk-pixbuf2: some programs fail without extra loaders
Summary: graphics/gdk-pixbuf2: some programs fail without extra loaders
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-desktop (Team)
URL:
Keywords:
: 285343 285354 285389 285430 285498 285518 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-05 20:36 UTC by rkoberman
Modified: 2026-07-18 22:47 UTC (History)
16 users (show)

See Also:
vishwin: maintainer-feedback+


Attachments
new port v0 (3.52 KB, patch)
2025-03-11 22:18 UTC, Charlie Li
no flags Details | Diff
Add missing dependency, include recursively included dependencies explicitly, merge pkg-plist to makefile, satisfy most of portlint and friends' output (1.45 KB, patch)
2025-06-12 01:15 UTC, Edward.Sanford.Sutton, III
no flags Details | Diff
cleanup variable definitions (845 bytes, patch)
2025-06-12 20:58 UTC, Edward.Sanford.Sutton, III
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rkoberman 2025-03-05 20:36:50 UTC
Since the update of gdk-pixbuf2 to gdk-pixbuf2-2.42.12, I am unable to run gkrellm. I have reinstalled gkrellm2 with no change. Also built with "OTHER" option. I get:
dkPixbuf-WARNING **: 12:27:25.558: Error loading XPM image loader: Image type “xpm” is not supported
  Cannot load xpm: (null)

repeatedly when attempting to run start the utility. I suspect that other cases exist that use xpm images.
Comment 1 rkoberman 2025-03-06 20:39:12 UTC
After rolling graphics/gdk-pixbuf2 to 2.42.10_3, gkrellm is working correctly agai, so there is no questionof the source of the problem.
Comment 2 rkoberman 2025-03-07 17:59:53 UTC
After looking at the update, I see that several older image formats (xpm, ani, bmp, icns, ico, pnm, qtif, tga, and xpm) were placed into a non-default 'OTHERS' build option. As a result, any software using these formats will no longer function.

There was no indication of this change; just updating packages that used any of the OTHER formats stopped working. This is a significant POLA violation. At very least, I think that an UPDATING entry would be appropriate.
Comment 3 bsd 2025-03-08 08:15:36 UTC
This is worse than that - I experienced exactly the same problem with mail/clawsmail, and basically every xpm consumer could be affected. And downgrading gdkpixbuf2 solved the issue for me as well.
Comment 4 Patrick Mackinlay 2025-03-08 17:18:01 UTC
Don't know if this helps, but the commit that changed the build options in the upstream project is

https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/e052a112075a19fb75f1f2ff3de4c82923de13f2
Comment 5 rkoberman 2025-03-09 18:07:34 UTC
As many ports make use of "OTHER" image formats, it makes it impossible to use them for those using packages. The options I see are:
1 Make "OTHER" a default
2. Flavorize the port with an OTHER flavor
3. Create a gdk-pixbuf2-other port. Name might be clearer as gdk-pixbuf2-all-formats)
Comment 6 bsd 2025-03-10 11:02:52 UTC
Rebuilding the gdk-pixbuf2 port with OTHERS build option added makes the problem disappear for me. As I am building everything from sources, it was just unexpected change came in unnoticed.
Comment 7 lumiwa 2025-03-10 21:19:07 UTC
(In reply to bsd from comment #3)
I have claws-mail problem too and Geequie doesn't show bmp. A week ago I clean pkg cache.
Comment 8 rkoberman 2025-03-11 06:21:27 UTC
Until something is done to the port, the only solution is to build the port from sources and configure selecting OTHER.
Comment 9 Felix Palmen freebsd_committer freebsd_triage 2025-03-11 15:00:20 UTC
This also affects builds, for example games/eduke32:

---
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata source/duke3d/rsrc/game.bmp | sed 's/load_inc//' >> obj/duke3d/game_banner.c
failed to load "source/duke3d/rsrc/game.bmp": Couldn’t recognize the image file format for file “source/duke3d/rsrc/game.bmp”
[...]
ld.lld: error: undefined symbol: startbanner_pixdata
>>> referenced by startgtk.editor.cpp
>>>               obj/build/mapster32.lto.startgtk.editor.o:(startwin_open)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [GNUmakefile:803: mapster32] Error 1
---

Upstream discussion for reference:
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/169

This seems to indicate those formats won't come back any time soon in the default build. Therefore a flavor might be the way to go, so explicit dependencies can be used in dependent ports.
Comment 10 Felix Palmen freebsd_committer freebsd_triage 2025-03-11 15:02:42 UTC
Adding vishwin@ as the last committer, any thoughts here?
Comment 11 Charlie Li freebsd_committer freebsd_triage 2025-03-11 16:09:31 UTC
I don't intend on flavourising this. With the current gdk-pixbuf code, can't really build the other loaders separately/isolated without a lot more complexity in both code and port. Flavourising adds more complexity to the ports framework without much benefit since this has many consumers.

Also not exactly keen on re-enabling OTHER by default; upstream has been firm about discouraging use of effectively unmaintained code. However, one of the upstream maintainers split these loaders into a separate repository with a build system to match. I'm open to porting that and removing the OTHER option.

(In reply to rkoberman from comment #2)
Was the commit message, both with the changelog link and the explicit separate notable mention of this, not enough?

wrt POLA in general, sometimes upstreams have to make decisions to keep their projects moving. What can seem like a sudden astonishing change may have been brewing for some time but consumers were not paying attention (for a variety of reasons, like debt) until the full impact happened. In this specific case, they admitted that doing this in the existing release branch was poorly executed, but it had to be done.

(In reply to Felix Palmen from comment #9)
Upstream wants to divest these loaders entirely from the main codebase.
Comment 12 Felix Palmen freebsd_committer freebsd_triage 2025-03-11 17:11:01 UTC
(In reply to Charlie Li from comment #11)
> Upstream wants to divest these loaders entirely from the main codebase.
I see, nevertheless right now, it breaks stuff in our tree. So maybe the least bad would be to enable OTHER by default for now to allow for the transition to hopefully happen ...
Comment 13 lumiwa 2025-03-11 19:49:07 UTC
Something should be in /usr/ports/UPDATING and will be less problem. I didn't know that I expected a mess.
Comment 14 Charlie Li freebsd_committer freebsd_triage 2025-03-11 22:18:14 UTC
Created attachment 258577 [details]
new port v0

Rough once-over of a new port with those divested loaders, give it a try.
Comment 15 Charlie Li freebsd_committer freebsd_triage 2025-03-11 22:19:23 UTC
Comment on attachment 258577 [details]
new port v0

forgot to mention, port name is in anticipation to renaming everything gdk-pixbuf without the "2"
Comment 16 Charlie Li freebsd_committer freebsd_triage 2025-03-12 12:36:20 UTC
*** Bug 285343 has been marked as a duplicate of this bug. ***
Comment 17 rkoberman 2025-03-12 17:49:35 UTC
(In reply to Charlie Li from comment #11)
In general, I agree with most of your views. I think FLAVORS is generally overkill as other options with FAR less overhead are available. None the less, this change had some real issues that were not addressed by the commit.

The most serious one was that the change broke any ports with no warning. Mot people, myself included, update ports without looking at commit messages and, even then, there was no information of what formats had been removed from the default build to let people know what would be broken. In my case, I have multiple instances of a broken application running continually that showed no problems as the change only took effect when I rebooted my system. I did a quick check of UPDATING and found nothing. Definite astonishment for me.

I'll agree that it took minimal effort to look at the commit, realize that I needed to enable OTHER, and get my system monitors back in operation. An obvious place to get people's attention would be to add a pkg-message to warn people that the following formats (list of them) would require a build with OTHER enabled.

This is a much bigger issue for system updated with packages. Those not building from source have no easy fix. Maintaining a mix of ports and packages can be very difficult and trigger rather obscure problems that are not easy to track down. Maintaining a system which mixes ports with packages is a major pain, not really acceptable. Repeatedly there have been posts from major committers that this was a very bad idea (often from Bapt) and that it should be avoided if at all possible. I have one such port, emacs, that is a real pain to update as I have to resolve all dependency conflicts every time that it is updated on systems that I maintain with packages.
Comment 18 devnull freebsd_committer freebsd_triage 2025-03-13 07:33:43 UTC
*** Bug 285354 has been marked as a duplicate of this bug. ***
Comment 19 bsd 2025-03-14 08:44:53 UTC
Bug 285389 is another one related to this...
Comment 20 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-14 09:32:17 UTC
*** Bug 285389 has been marked as a duplicate of this bug. ***
Comment 21 commit-hook freebsd_committer freebsd_triage 2025-03-17 04:05:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e129c081e39271edac0d7b8aa174930f4317a796

commit e129c081e39271edac0d7b8aa174930f4317a796
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-03-11 21:38:21 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-03-17 04:04:29 +0000

    graphics/gdk-pixbuf-extra: add default-disabled loaders

    With the new port, remove OTHERS from graphics/gdk-pixbuf2, and add
    corresponding helper to USES=gnome. Ports using the affected loaders
    should declare USE_GNOME=gdkpixbufextra.

    PR: 285185

 Mk/Uses/gnome.mk                          |  6 +++++-
 UPDATING                                  | 12 ++++++++++++
 graphics/Makefile                         |  1 +
 graphics/gdk-pixbuf-extra/Makefile (new)  | 22 ++++++++++++++++++++++
 graphics/gdk-pixbuf-extra/distinfo (new)  |  3 +++
 graphics/gdk-pixbuf-extra/pkg-descr (new) | 12 ++++++++++++
 graphics/gdk-pixbuf-extra/pkg-plist (new) | 10 ++++++++++
 graphics/gdk-pixbuf2/Makefile             |  7 ++-----
 graphics/gdk-pixbuf2/pkg-message (new)    | 12 ++++++++++++
 graphics/gdk-pixbuf2/pkg-plist            |  9 ---------
 10 files changed, 79 insertions(+), 15 deletions(-)
Comment 22 Charlie Li freebsd_committer freebsd_triage 2025-03-17 04:08:23 UTC
Keeping this open to track any ports that need USE_GNOME=gdkpixbufextra declared.
Comment 23 Harald Schmalzbauer 2025-03-17 07:46:08 UTC
*** Bug 285430 has been marked as a duplicate of this bug. ***
Comment 24 crahman 2025-03-18 08:17:57 UTC
A problem with this approach is that it will result in a situation where ports which have not been marked with gdkpixbufextra but which need one of the extra loaders will compile and be packaged successfully, but will only work when another port which has gdkpixbufextra have been installed.  At the very least, this change should be held back until all the possible ports have been studied for the use of xpm's or other 'extra' loader usage.

Perhaps it would be best to simply make gdk-pixbuf2 depend upon the gdk-pixbuf-extra port through an option that defaults to 'true'.

Meanwhile, wmdrawer has been broken.  It needs the xpm loader, but it now works on my system since I have installed the -extra loaders through gkrellm2.  However, the option gdkpixbuf2xlib has been renamed gdkpixbufxlib in the wmdrawer port Makefile, but the Mk/Uses option has not been renamed, and so it fails to build.
Comment 25 commit-hook freebsd_committer freebsd_triage 2025-03-18 10:35:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a5479b86b57ac3bf092233ac587cc76f9b2c77a

commit 0a5479b86b57ac3bf092233ac587cc76f9b2c77a
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2025-03-18 10:31:46 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2025-03-18 10:34:58 +0000

    x11/libxfce4menu: Depend on gdkpixbufextra

    XFCE uses XPM images and other "uncommon" formats, force a dependency
    on gdkpixbufextra to ensure it is installed at runtime whenever any
    XFCE component is installed to avoid graphic glitches.

    PR:             285185, 285430

 x11/libxfce4menu/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 26 Guido Falsi freebsd_committer freebsd_triage 2025-03-18 13:58:48 UTC
*** Bug 285498 has been marked as a duplicate of this bug. ***
Comment 27 Guido Falsi freebsd_committer freebsd_triage 2025-03-19 08:52:35 UTC
*** Bug 285518 has been marked as a duplicate of this bug. ***
Comment 28 tom+fbsdbugzilla 2025-03-28 02:57:05 UTC
I'm worried about future sabotage of gtk2 like this
Comment 29 Edward.Sanford.Sutton, III 2025-06-12 01:15:50 UTC
Created attachment 261189 [details]
Add missing dependency, include recursively included dependencies explicitly, merge pkg-plist to makefile, satisfy most of portlint and friends' output

  net-im/vqcc-gtk failure and fix of adding USE_GNOME=gtkpixbufextra seemed related to this PR; no maintainer for that port so I brought it up here. Upstream release was last in 2005 and last code change was November 2007 but not made into a formal release version. 
 Added a couple additional depends that were currently recursively satisfied per poudriere warnings.
  Portlint related changes: Merged pkg-plist into Makefile. Added license with file. portlint says to use desktop-file-utils per error (thought I saw it as a warning instead at one point though, maybe changed when I merged pkg-plist into Makefile) while poudriere says it may not be needed; not added as I'm not sure if it is really necessary. Didn't redo patch with make makepatch.
  Applied portfmt suggested changes.
  Not familiar with '?=' use for CATEGORIES and MAINTAINER so I did not adjust.
  Further configurable optimization in this one port may be possible (options for NLS, configure presented options of xscreensaver/notification/test dependencies, not extracting unused files, etc.) but not attempted at this time.
  Bumped version for license and choices to reach user's installs.
  Let me know if more or less changes are desired and I will make a new patch.
Comment 30 commit-hook freebsd_committer freebsd_triage 2025-06-12 08:40:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=af7b7abe9b40ea7bbebae30dce6654c436dfe5bb

commit af7b7abe9b40ea7bbebae30dce6654c436dfe5bb
Author:     Edward.Sanford.Sutton, III <mirror176@hotmail.com>
AuthorDate: 2025-06-12 08:38:22 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-06-12 08:39:55 +0000

    net-im/vqcc-gtk: Unbreak and tidy up the port

    PR:             285185
    Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>

 net-im/vqcc-gtk/Makefile         | 18 ++++++++++++------
 net-im/vqcc-gtk/pkg-plist (gone) |  5 -----
 2 files changed, 12 insertions(+), 11 deletions(-)
Comment 31 Gleb Popov freebsd_committer freebsd_triage 2025-06-12 08:42:15 UTC
(In reply to Edward.Sanford.Sutton, III from comment #29)
Merged, thank you.

I wonder if this PR can be closed now?
Comment 32 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-12 11:20:45 UTC
(In reply to commit-hook from comment #30)
This port need more love:
1) build fine without localbase:ldflags
2) Remove "?" from "CATEGORIES?=	net-im" and "MAINTAINER?=	ports@FreeBSD.org"
3) Replace PORTVERSION with DISTVERSION.

(In reply to Edward.Sanford.Sutton, III from comment #29)
This port currently has no maintainer - would you like to become its maintainer?
Comment 33 Edward.Sanford.Sutton, III 2025-06-12 20:58:59 UTC
Created attachment 261210 [details]
cleanup variable definitions

Applied changes of comment #30. 2 & 3 seemed nondestructive but I don't know when they are needed or style changed and I presume 1 was carried through from original 2005 port. I just ran across the port while reviewing pkg fallout; after seeing a spike in my own failures I started trying to see if fixes were known upstream or simple enough for me to solve. Did more than fix this one since the port seemed simple enough but my ideas of what could be done didn't match what I pulled off. I couldn't get it to switch to the NLS languages though but that may be my own configuration issue. Otherwise I'm not a user of the port though I did confirm I could open it; seems doubtful I'd be of value as a maintainer but I could still try.
Comment 34 Vladimir Druzenko freebsd_committer freebsd_triage 2025-06-12 23:17:40 UTC
(In reply to Edward.Sanford.Sutton, III from comment #33)
You can start with it as a simple port, and then take on others. You can abandon it at any time if you no longer have the opportunity to work on it.
I wouldn't do anything in this port with NLS.
Comment 35 commit-hook freebsd_committer freebsd_triage 2025-06-13 21:27:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=12909e529a031acc5be9b338e3d7ef74fca48a3d

commit 12909e529a031acc5be9b338e3d7ef74fca48a3d
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-06-13 21:21:30 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-06-13 21:21:30 +0000

    net-im/vqcc-gtk: Improve port, set maintainer

    No functinal changes:
    - Replace PORTVERSION with DISTVERSION.
    - Remove "?" from "CATEGORIES?=" and "MAINTAINER?=".
    - Set maintainer.
    - Remove localbase:ldflags and pathfix from USES - they are unnecessary.
    - Refresh patch.

    PR:             285185
    Approved by:    Edward.Sanford.Sutton, III <mirror176@hotmail.com> (new maintainer)

 net-im/vqcc-gtk/Makefile                | 8 ++++----
 net-im/vqcc-gtk/files/patch-src__idle.c | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
Comment 36 Mark Linimon freebsd_committer freebsd_triage 2026-07-18 18:27:36 UTC
^Triage: is there anything further that needs to be done with this Problem
Report?
Comment 37 Vladimir Druzenko freebsd_committer freebsd_triage 2026-07-18 22:47:57 UTC
More than a year has passed - I think it's time to close.