diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-22 08:47:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-22 08:47:10 +0000 |
| commit | 6b6e214c0f9060e104f8ed37fff5255cf6f039e2 (patch) | |
| tree | 2867e9f1a24ece6455d7afef394dd15e45f8e51b | |
| parent | 9ea32f5483215439e4c001cad62a5d5d94e6ab72 (diff) | |
automatic import of bluetoothopeneuler24.03_LTS_SP3
| -rw-r--r-- | bluetooth.spec | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bluetooth.spec b/bluetooth.spec index d6b8f2e..dd668b9 100644 --- a/bluetooth.spec +++ b/bluetooth.spec @@ -74,8 +74,16 @@ Header files and development libraries for the BlueZ Bluetooth library. %make_build lib/libbluetooth.la %install -# Install only the library, headers, and pkgconfig file -%make_install install-libLTLIBRARIES install-pkgincludeHEADERS install-pkgconfigDATA +# Install only the library, headers, and pkgconfig file. +# Do NOT use %%make_install (which runs the bare 'install' make target) — +# in automake install→install-am→all-am, which rebuilds src/bluetoothd. +# With --disable-hfp the HFP functions (hfp_hf_sco_remove, hfp_hf_get_device) +# are not compiled, but profiles/audio/media.c still references them, so +# linking bluetoothd fails. Instead invoke only the specific install +# sub-targets directly; they depend solely on lib/libbluetooth.la (built +# in %%build), the source headers, and lib/bluez.pc (generated by configure). +make DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p" \ + install-libLTLIBRARIES install-pkgincludeHEADERS install-pkgconfigDATA # Remove libtool archive files find %{buildroot} -name '*.la' -delete |
