Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging / Packages / libphonenumber
Commits: 4eea0be5 by Jan Alexander Steffens (heftig) at 2025-10-08T19:57:31+02:00 1:9.0.15-2: Don't build static libs Closes: https://gitlab.archlinux.org/archlinux/packaging/packages/libphonenumber/-/issues/7 - - - - - 3 changed files: - .SRCINFO - + 0003-Fix-BUILD_STATIC_LIB-OFF.patch - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = libphonenumber pkgdesc = Google's common library for parsing, formatting, and validating international phone numbers pkgver = 9.0.15 - pkgrel = 1 + pkgrel = 2 epoch = 1 url = https://github.com/googlei18n/libphonenumber arch = x86_64 @@ -18,9 +18,11 @@ pkgbase = libphonenumber source = git+https://github.com/googlei18n/libphonenumber#tag=v9.0.15 source = 0001-Use-find_package-for-protobuf.patch source = 0002-Remove-Werror.patch + source = 0003-Fix-BUILD_STATIC_LIB-OFF.patch b2sums = bfda8009947d5a5b5dd198ab696ab511007fe84e6268c5de6bdba04731af5fc80b0eb157c55a3c6c0603e39817cbc9b74215c08796bdf235eed51fde9e9735c5 b2sums = 44be662cd62d87f4f0ceedc7c98cf4dedd1428bc5792288a4a861022e31a03a231b513bde125a95437871e69d3f7aba08db17b601dd6806b502cfe03bfda2f4b b2sums = 24854002196053b9758705b251a6dc2763fa6db5055c2b8ee0c7bd6a0adcb64eecab7f03ebec4fade42c4f19671e85ee4ca6450c13a9581118705c983f5d3a00 + b2sums = c30bd9cc785319794360b37713f9241e59ef54d3d4742c114342b05d10ed71d062945eba4bb2613903890892dca61020dc36bef8c8adb5a0fb32939718e8669c pkgname = libphonenumber depends = abseil-cpp ===================================== 0003-Fix-BUILD_STATIC_LIB-OFF.patch ===================================== @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <[email protected]> +Date: Wed, 8 Oct 2025 19:54:16 +0200 +Subject: [PATCH] Fix BUILD_STATIC_LIB=OFF + +--- + cpp/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt +index cd606e50ffb9..26f2cc302b0d 100644 +--- a/cpp/CMakeLists.txt ++++ b/cpp/CMakeLists.txt +@@ -591,7 +591,7 @@ if(BUILD_TESTING) + # libraries are built properly. + if (BUILD_GEOCODER) + add_executable (geocoding_test_program "test/phonenumbers/geocoding/geocoding_test_program.cc") +- target_link_libraries (geocoding_test_program geocoding phonenumber) ++ target_link_libraries (geocoding_test_program geocoding-shared phonenumber-shared) + endif () + endif() + ===================================== PKGBUILD ===================================== @@ -2,7 +2,7 @@ pkgname=libphonenumber pkgver=9.0.15 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers" url="https://github.com/googlei18n/libphonenumber" @@ -25,10 +25,12 @@ source=( "git+$url#tag=v$pkgver" 0001-Use-find_package-for-protobuf.patch 0002-Remove-Werror.patch + 0003-Fix-BUILD_STATIC_LIB-OFF.patch ) b2sums=('bfda8009947d5a5b5dd198ab696ab511007fe84e6268c5de6bdba04731af5fc80b0eb157c55a3c6c0603e39817cbc9b74215c08796bdf235eed51fde9e9735c5' '44be662cd62d87f4f0ceedc7c98cf4dedd1428bc5792288a4a861022e31a03a231b513bde125a95437871e69d3f7aba08db17b601dd6806b502cfe03bfda2f4b' - '24854002196053b9758705b251a6dc2763fa6db5055c2b8ee0c7bd6a0adcb64eecab7f03ebec4fade42c4f19671e85ee4ca6450c13a9581118705c983f5d3a00') + '24854002196053b9758705b251a6dc2763fa6db5055c2b8ee0c7bd6a0adcb64eecab7f03ebec4fade42c4f19671e85ee4ca6450c13a9581118705c983f5d3a00' + 'c30bd9cc785319794360b37713f9241e59ef54d3d4742c114342b05d10ed71d062945eba4bb2613903890892dca61020dc36bef8c8adb5a0fb32939718e8669c') prepare() { cd $pkgname @@ -39,13 +41,17 @@ prepare() { # Don't use -Werror; fixes build with GCC 15 git apply -3 ../0002-Remove-Werror.patch + + # Fix building test with BUILD_STATIC_LIB=OFF + git apply -3 ../0003-Fix-BUILD_STATIC_LIB-OFF.patch } build() { local cmake_options=( - -D CMAKE_INSTALL_PREFIX=/usr + -D BUILD_STATIC_LIB=OFF -D CMAKE_BUILD_TYPE=None -D CMAKE_CXX_STANDARD=17 + -D CMAKE_INSTALL_PREFIX=/usr -D USE_BOOST=OFF -D USE_STDMUTEX=ON ) View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/libphonenumber/-/commit/4eea0be58b663c5f06b179139c0ba0dce6aa9c76 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/libphonenumber/-/commit/4eea0be58b663c5f06b179139c0ba0dce6aa9c76 You're receiving this email because of your account on gitlab.archlinux.org.
