diff options
| author | Lucas Castro <lucas@gnuabordo.com.br> | 2024-11-13 12:51:05 -0300 |
|---|---|---|
| committer | Lucas Castro <lucas@gnuabordo.com.br> | 2024-11-13 14:18:50 -0300 |
| commit | 5b73a4ae7f940aa79cb4f0ac9001b3f896f6f1a1 (patch) | |
| tree | de40f441017d6a6963e772f17b3573148e655b57 /debian/patches | |
| parent | 532f02e5c41383d88c29717942c910ff449c91e4 (diff) | |
Debian patched updateddebian/devel
Added two patches related to meson build
Fix project name on meson build system
Set meson to install project headers files
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/0024-Fix-project-name-in-meson-build.patch | 21 | ||||
| -rw-r--r-- | debian/patches/0025-Set-meson-to-install-project-headers-files.patch | 58 | ||||
| -rw-r--r-- | debian/patches/series | 2 |
3 files changed, 81 insertions, 0 deletions
diff --git a/debian/patches/0024-Fix-project-name-in-meson-build.patch b/debian/patches/0024-Fix-project-name-in-meson-build.patch new file mode 100644 index 0000000..176226d --- /dev/null +++ b/debian/patches/0024-Fix-project-name-in-meson-build.patch @@ -0,0 +1,21 @@ +From: Lucas Castro <lucas@gnuabordo.com.br> +Date: Wed, 13 Nov 2024 12:48:42 -0300 +Subject: Fix project name in meson build + +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 42a45b5..afbf4b0 100644 +--- a/meson.build ++++ b/meson.build +@@ -15,7 +15,7 @@ + # You should have received a copy of the GNU General Public License + # along with this program. If not, see <https://www.gnu.org/licenses/>. + +-project('freediameter', 'c', ++project('freeDiameter', 'c', + version : '1.5.0', + license : 'BSD-3-clause', + meson_version : '>= 0.43.0', diff --git a/debian/patches/0025-Set-meson-to-install-project-headers-files.patch b/debian/patches/0025-Set-meson-to-install-project-headers-files.patch new file mode 100644 index 0000000..6ac6960 --- /dev/null +++ b/debian/patches/0025-Set-meson-to-install-project-headers-files.patch @@ -0,0 +1,58 @@ +From: Lucas Castro <lucas@gnuabordo.com.br> +Date: Wed, 13 Nov 2024 12:49:50 -0300 +Subject: Set meson to install project headers files + +--- + include/freeDiameter/meson.build | 26 +++++++++++++++++++++++++- + meson.build | 1 + + 2 files changed, 26 insertions(+), 1 deletion(-) + +diff --git a/include/freeDiameter/meson.build b/include/freeDiameter/meson.build +index 5497d7d..f61ce67 100644 +--- a/include/freeDiameter/meson.build ++++ b/include/freeDiameter/meson.build +@@ -179,7 +179,31 @@ else + endif + + configure_file(output : 'freeDiameter-host.h', +- configuration : freeDiameter_host_conf) ++ configuration : freeDiameter_host_conf, ++ install_dir: includedir / meson.project_name(), ++ install: true) + + configure_file(output : 'version.h', + configuration : freeDiameter_version_conf) ++ ++libfdcore_headers = [ ++ 'libfdcore.h', ++] ++ ++libfdproto_headers = [ ++ 'libfdproto.h', ++] ++ ++libfd_headers = [ ++ 'extension.h', ++] ++ ++ ++install_headers( ++ libfdcore_headers, ++ libfdproto_headers, ++ libfd_headers, ++ subdir: meson.project_name() ++) ++ ++ +diff --git a/meson.build b/meson.build +index afbf4b0..7f960ae 100644 +--- a/meson.build ++++ b/meson.build +@@ -34,6 +34,7 @@ bindir = join_paths(prefix, get_option('bindir')) + libdir = join_paths(prefix, get_option('libdir')) + sysconfdir = join_paths(prefix, get_option('sysconfdir')) + localstatedir = join_paths(prefix, get_option('localstatedir')) ++includedir = get_option('includedir') + + cc = meson.get_compiler('c') + host_system = host_machine.system() diff --git a/debian/patches/series b/debian/patches/series index b74c798..f60379a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -21,3 +21,5 @@ b_contrib_tools_diameter-rfcs.org.patch b_extensions_dict_dcca_3gpp_dict_dcca_3gpp.org.patch b_extensions_dict_dcca_starent_dict_dcca_starent.org.patch 0023-Added-meson-build-system-required-files.patch +0024-Fix-project-name-in-meson-build.patch +0025-Set-meson-to-install-project-headers-files.patch |
