Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915192 - app-backup/borgbackup: bypass dev-python/pkgconfig to avoid dependence on rust
Summary: app-backup/borgbackup: bypass dev-python/pkgconfig to avoid dependence on rust
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-05 01:17 UTC by Michael Orlitzky
Modified: 2024-01-06 23:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2023-10-05 01:17:59 UTC
Borg is now pulling in rust,

  [nomerge       ] app-backup/borgbackup-1.2.6 
  [nomerge       ]  dev-python/pkgconfig-1.5.5-r1 
  [nomerge       ]   dev-python/poetry-core-1.6.1 
  [ebuild     U  ]    dev-python/jsonschema-4.19.1
  [ebuild  N     ]     dev-python/jsonschema-specifications-2023.7.1
  [ebuild  N     ]      dev-python/referencing-0.30.2
  [ebuild  N     ]       dev-python/rpds-py-0.9.2
  [ebuild  N     ]        dev-util/maturin-1.2.3
  [ebuild  N     ]         dev-python/setuptools-rust-1.7.0
  [ebuild  N     ]          virtual/rust-1.71.1-r1  USE="-rustfmt" 
  [ebuild  N     ]           dev-lang/rust-bin-1.71.1

because it needs dev-python/pkgconfig.

Fortunately, if you read borg's setup.py, it provides several environment variables that can be used to bypass pkgconfig. The "prefix variable" idea is crude but it looks like our installations of openssl, lz4, zstd, xxhash are simple enough that all we'd need to do is sed setup.py to fix the lib_subdir="lib" and then point all of the variables to /usr.
Comment 1 Marek Szuba archtester gentoo-dev 2023-10-05 10:39:27 UTC
Unless upstream provides a non-hacky way of doing this, NAK. I do not like experimenting on anything from app-backup, and feel even less motivated to do so given how core to the Python ecosystem in general Rust has become.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-05 11:13:29 UTC
There's not much point in worrying about this either, because https://github.com/python-poetry/poetry-core/pull/642 should land in a release soon which elides the Rust dep.
Comment 3 Michael Orlitzky gentoo-dev 2023-10-05 11:35:21 UTC
(In reply to Sam James from comment #2)
> There's not much point in worrying about this either, because
> https://github.com/python-poetry/poetry-core/pull/642 should land in a
> release soon which elides the Rust dep.

Thanks, waiting for somebody else to fix it is also an acceptable solution :)
Comment 4 Michael Orlitzky gentoo-dev 2024-01-06 23:16:50 UTC
poetry(-core) now pull in fastjsonschema instead of jsonschema, problem solved