pkgsrc-Users archive

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

Rust Modules via Git Commit and gsettings schema



I'm trying to package the newsflash RSS reader (https://gitlab.com/news-flash/news_flash_gtk) and running into two issues: 1. The dependency of the clapper video player, while only needed for its libraries, is failing when I attempt to invoke the player itself with:
---
(clapper:2462): GLib-GIO-ERROR **: 18:37:09.320: Settings schema 'com.github.rafostar.Clapper' is not installed
fish: Job 1, 'clapper' terminated by signal SIGABRT (Abort)
---
The libraries work, but I feel like I should make the player work as well even if I'll never use it.

2. Newsflash itself has a dependency on a crate html2gtk defined in its cargo file as:
---
[dependencies.html2gtk]
features = ["ratex", "video-thumbnails"]
git = "https://gitlab.com/news-flash/html2gtk.git";
--
This crate without any speciifed version breaks both url2pkg with
--
fetch: Unable to fetch expected file html2gtk-0.1.0.crate
*** Error code 1

Stop.
make: stopped making "distinfo" in /usr/pkgsrc/wip/test
Traceback (most recent call last):
  File "/usr/pkg/bin/url2pkg", line 1379, in <module>
    main(sys.argv, Globals())
    ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/pkg/bin/url2pkg", line 1368, in main
    g.bmake('distinfo')
    ~~~~~~~^^^^^^^^^^^^
  File "/usr/pkg/bin/url2pkg", line 118, in bmake
    subprocess.check_call([self.make, *args], cwd=self.pkgdir, env=env)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/pkg/lib/python3.14/subprocess.py", line 420, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/make', 'distinfo']' returned non-zero exit status 1.
--
and the structure of cargo-depends.mk doesn't have an obvious solution I can see for this.

lang/rust/cargo.mk seems to list this as a TODO thing?
---
# TODO: some Cargo.lock files include git+https sources which need to be fetched from the URL (not necessarily resolving to a crate.io url)
DISTFILES?=                     ${DEFAULT_DISTFILES}
---

(Newsflash also has an optional feature, libc, I need to remove to build it on NetBSD from testing outside pkgsrc, but I can work on this after I get it to start building in PKGSRC at all).

I've pushed these broken build files to wip as clapper and newsflash respectively for examination.

Thanks,
Gourd


Home | Main Index | Thread Index | Old Index