Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`buildtool_export_depend` and `build_export_depend`

Aperta
#95 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Ambito
build-system

Direzione di ricerca

Inizia tracciando dove buildtool_export_depends e build_export_depends diventano dipendenze di runtime nel flusso di generazione delle recipe conda. Confronta questo comportamento con la semantica di REP 149 citata nell’issue e con gli ambienti host/build di conda; il lavoro è completato quando queste dipendenze vengono separate correttamente senza aggiungere dipendenze di runtime indesiderate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I was looking at the dependencies of some packages and noticed that they sometimes depend on amend_cmake (take for instance ros-kilted-rmw-connextdds). These build dependencies sometimes include a large number of unwanted dependencies. And I was trying to see if we can slim that down.

I tracked this down to the buildtool_export_depends and build_export_depends being added as run-dependencies.

To clarify this is what REP 149 says:

buildtool_export_depend

Declares a rosdep key or ROS package name that this package exports which must be compiled and run on the build system, not the target system. > For cross-compilation, one must distinguish these from target build dependencies, which may be linked with your package and must be compiled for the target architecture.

<build_export_depend>

Declares a rosdep key or ROS package name that this package needs as part of some build interface it exports. For system packages, the rosdep key will normally specify the "development" package, which frequently ends in "-dev".

The <build_export_depend> declares a transitive build dependency. A common example is when one of your dependencies provides a header file included in some header exported by your package. Even if your package does not use that header when building itself, other packages depending on your header will require those transitive dependencies when they are built.

I translate this to; if we are building a package baz that has a dependency on a package foobar:

  • If foobar is a dependency, we should also include its build_export_depends in the host environment.
  • If foobar is a dependency, we should also include its buildtool_export_depends in the build environment.

I don't think that at the moment there is good mechanism to do this with the conda build infrastructure.

I'm wondering what could potentially be a good approach to properly support this mechanism.

Lingua principale
Python
Stelle
20
Fork
24
Merge medio
1g 16h
PR unite (30g)
17

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RoboStack/vinca

Tutte le issue di RoboStack/vinca

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.