Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson.build: new file #2

Merged
merged 1 commit into from
Nov 21, 2022
Merged

meson.build: new file #2

merged 1 commit into from
Nov 21, 2022

Conversation

osmith42
Copy link

Hi @acetcom,

while packaging open5gs for the Osmocom OBS, we run meson subprojects download to have the sources of subprojects in the source package, so we can later build the binary package without access to internet.

The command is currently failing with:

  Download prometheus-client-c...
    -> Subproject exists but has no meson.build file

This patch adds a simple meson.build file that fixes the error.

Allow using this repository as meson subproject, as it is being used by
open5gs for example. Without this file, 'meson subprojects download'
fails with:
  Download prometheus-client-c...
    -> Subproject exists but has no meson.build file
@acetcom acetcom merged commit a58ba25 into open5gs:open5gs Nov 21, 2022
@acetcom
Copy link
Member

acetcom commented Nov 21, 2022

@osmith42

Thank you so much!
Sukchan

osmocom-gerrit pushed a commit to osmocom/osmo-ci that referenced this pull request Nov 23, 2022
With recent changes in open5gs, building the source packages we
generated fails:
[   45s] ../lib/metrics/meson.build:52:4: ERROR: Automatic wrap-based subproject downloading is disabled
[   45s] dh_auto_configure: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 meson .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu --libexecdir=lib/x86_64-linux-gnu returned exit code 1

Fix this by downloading all subprojects. This is now possible as I added
a meson.build file to the prometheus-client-c repository that open5gs
uses: open5gs/prometheus-client-c#2

Change-Id: If3910b520382b177a77b216c93771ea88414723d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants