AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

Feature: BUILDDEPONLY #115

Closed neruthes closed 1 year ago

neruthes commented 3 years ago

Introducing new variable BUILDDEPONLY.

In autobuild/defines, if BUILDDEPONLY is set to 1, the flattened list of dependencies will not include PKGDEP. Therefore, Autobuil3 will not install the runtime dependencies when building.

MingcongBai commented 3 years ago

Hmm I guess I do have reservation for the variable name... BUILDDEPONLY could potentially be confusing, does it mean "only write BUILDDEP to .deb" or "only install BUILDDEP at build-time?"

@neruthes Just a thought, any ideas?

MingcongBai commented 3 years ago

This actually might not work out, because Autobuild3, when generating .deb metadata, relies on local dpkg database to write version information. While this logic works, it should be binding VER_NONE=1, otherwise, .deb packages will not be generated correctly (Autobuild3 will even throw an error).