diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:31:50 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:32:25 +0100 |
commit | b7baf40e099b4215181fe7b0c63083b12ef2c7fb (patch) | |
tree | a6efabd31d05b6d0a36624729e80377bbbfb0149 /nixpkgs/pkgs/development/libraries/libphonenumber | |
parent | 710028664e26e85cb831a869b3da9f6993902255 (diff) | |
parent | 0799f514b1cd74878174939df79ac60ca5036673 (diff) | |
download | nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.gz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.bz2 nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.lz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.xz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.zst nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libphonenumber')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libphonenumber/build-reproducibility.patch | 32 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libphonenumber/default.nix | 5 |
2 files changed, 21 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libphonenumber/build-reproducibility.patch b/nixpkgs/pkgs/development/libraries/libphonenumber/build-reproducibility.patch index 202370a80fc5..137c9045c77d 100644 --- a/nixpkgs/pkgs/development/libraries/libphonenumber/build-reproducibility.patch +++ b/nixpkgs/pkgs/development/libraries/libphonenumber/build-reproducibility.patch @@ -1,8 +1,6 @@ -diff --git a/tools/cpp/src/cpp-build/generate_geocoding_data.cc b/tools/cpp/src/cpp-build/generate_geocoding_data.cc -index 205947e831..1e628e2cd2 100644 ---- a/tools/cpp/src/cpp-build/generate_geocoding_data.cc -+++ b/tools/cpp/src/cpp-build/generate_geocoding_data.cc -@@ -97,7 +97,8 @@ class DirEntry { +--- a/tools/cpp/src/cpp-build/generate_geocoding_data.cc.orig 1970-01-01 01:00:01.000000000 +0100 ++++ b/tools/cpp/src/cpp-build/generate_geocoding_data.cc 2024-01-16 19:03:45.409089423 +0100 +@@ -94,7 +94,8 @@ DirEntryKinds kind_; }; @@ -12,13 +10,19 @@ index 205947e831..1e628e2cd2 100644 // success. bool ListDirectory(const string& path, vector<DirEntry>* entries) { entries->clear(); -@@ -135,6 +136,9 @@ bool ListDirectory(const string& path, vector<DirEntry>* entries) { +@@ -114,8 +115,14 @@ + // http://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html + errno = 0; + entry = readdir(dir); ++ if (errno != 0) { ++ return false; ++ } + if (entry == NULL) { +- return errno == 0; ++ std::sort( ++ entries->begin(), entries->end(), ++ [](const DirEntry& a, const DirEntry& b) { return a.name() < b.name(); }); ++ return true; } - entries->push_back(DirEntry(entry->d_name, kind)); - } -+ std::sort( -+ entries->begin(), entries->end(), -+ [](const DirEntry& a, const DirEntry& b) { return a.name() < b.name(); }); - } - - // Returns true if s ends with suffix. + if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { + continue; diff --git a/nixpkgs/pkgs/development/libraries/libphonenumber/default.nix b/nixpkgs/pkgs/development/libraries/libphonenumber/default.nix index a9b0df3304be..edd337961727 100644 --- a/nixpkgs/pkgs/development/libraries/libphonenumber/default.nix +++ b/nixpkgs/pkgs/development/libraries/libphonenumber/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, fetchFromGitHub, cmake, gtest, boost, pkg-config, protobuf, icu, Foundation, buildPackages }: stdenv.mkDerivation rec { - pname = "phonenumber"; + pname = "libphonenumber"; version = "8.12.37"; src = fetchFromGitHub { @@ -12,7 +12,8 @@ stdenv.mkDerivation rec { }; patches = [ - # Submitted upstream: https://github.com/google/libphonenumber/pull/2921 + # An earlier version of this patch was submitted upstream but did not get + # any interest there - https://github.com/google/libphonenumber/pull/2921 ./build-reproducibility.patch ]; |