pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: net/transmission-gtk build fails (fwd)



log to the mailing list thread...

+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+

---------- Forwarded message ----------
Date: Sat, 3 Feb 2024 20:47:00 -0800 (PST)
From: Paul Goyette <paul%whooppee.com@localhost>
To: "T K Spindler (moof)" <dogcow%babymeat.com@localhost>
Subject: Re: net/transmission-gtk build fails

OK, I think I got the patching done right.  OptionsDialog.cc compiles
cleanly.  However there are lots of link errors:

ld: /usr/lib/librpcsvc.so.1: warning: warning: this program uses xdr_peername(), which is deprecated and buggy. ld: /usr/lib/librpcsvc.so.1: warning: warning: this program uses xdr_domainname(), which is deprecated and buggy. ld: /usr/lib/librpcsvc.so.1: warning: warning: this program uses xdr_mapname(), which is deprecated and buggy. ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility login_getpwclass(); include <login_cap.h> for correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility pw_scan(); include <pwd.h> to generate correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility loginx(); include <util.h> to generate correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility parsedate(); include <util.h> for correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility pw_copyx(); include <util.h> to generate correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility pw_getpwconf(); include <pwd.h> to generate correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility login(); include <util.h> to generate correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility setusercontext(); include <login_cap.h> for correct reference ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility pw_copy(); include <util.h> to generate correct reference
[100%] Built target transmission-gtk

It sort-of runs, but generates run-time errors like

Xlib: sequence lost (0x100a3 > 0xa5) in reply type 0x0!
[2024-02-03 20:42:11.932] web.cc:174: Will verify tracker certs using envvar CURL_CA_BUNDLE: none [2024-02-03 20:42:11.932] web.cc:176: NB: this only works if you built against libcurl with openssl or gnutls, NOT nss [2024-02-03 20:42:11.932] web.cc:177: NB: Invalid certs will appear as 'Could not connect to tracker' like many other errors [2024-02-03 20:42:11.932] rpc-server.cc:763: Added '127.0.0.1' to host whitelist
[2024-02-03 20:42:11.932] rpc-server.cc:763: Added '::1' to host whitelist
[2024-02-03 20:42:11.932] rpc-server.cc:923: Serving RPC and Web requests from '/usr/pkg/share/transmission/public_html'
Xlib: sequence lost (0x103f7 > 0x3f9) in reply type 0x0!
Xlib: sequence lost (0x1079a > 0x79c) in reply type 0x0!

(transmission-gtk:21979): GLib-GIO-WARNING **: 20:42:12.869: Failed to execute child process ?update-desktop-database? (No such file or directory)
Xlib: sequence lost (0x10e52 > 0xe54) in reply type 0x0!
Xlib: sequence lost (0x11a92 > 0x1a94) in reply type 0x0!

And when I quit the program I get

Segmentation fault

I no longer have a running system with the previous version installed,
so no idea if these errors are expected.



On Sat, 3 Feb 2024, Paul Goyette wrote:

Can you provide a specific pkgsrc patch for me to try?  Preferably
something that doesn't require me to figure out how to reverse a
patch that I might be able to fetch from github (assuming I knew
anything at all about github or git.)

On Sat, 3 Feb 2024, T K Spindler (moof) wrote:

[ 96%] Building CXX object gtk/CMakeFiles/transmission-gtk.dir/Session.cc.o
/tmp/pkgs/net/transmission-gtk/work.x86_64/transmission-4.0.5/gtk/OptionsDialog.cc:341:38: error: 'get_files2' was not declared in this scope; did you mean 'get_files'?
  341 |         auto const files = IF_GTKMM4(get_files2, get_files)();

This build was successful just a couple days ago (with an earlier pkgsrc
and earlier NetBSD).

Since everything is terrible, get_files2 is apparently functionality
introduced in gtkmm 4.10 - but even better, transmission supposedly
has a check for gtkmm >= 4.11.1 and does not seem to do anything
with it. See https://github.com/transmission/transmission/pull/6131
for more details.

The hacky-but-compiles way is to add a reverse of the patch from
https://github.com/transmission/transmission/commit/0faad140868b0e0ae42ca633931f358fc3c4bed1.diff
Note that I have *not* tested this, as I don't have a working X setup
anywhere convenient right now. The better-but-probably-beyond-me thing
would be to update x11/gtkmm4 to something much more recent (4.13 is out,
4.2 is what's in pkgsrc); I do not have the cycles to build/test/check
what all updating that would do to pkgsrc. Or, I could revert the
transmission package. If you're willing, I'd appreciate you testing
with the reverse patch to see if it's functional at all, or if it leaves
things even more broken than before.


!DSPAM:65bf0549101641538817516!



+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+


+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+


Home | Main Index | Thread Index | Old Index