Skip to content

Commit 8c7817c

Browse files
committed
Merge branch 'rj/meson-libexecdir-fix'
Meson-based build did not handle libexecdir setting correctly, which has been corrected. * rj/meson-libexecdir-fix: po/meson.build: add missing 'ga' language code meson: fix installation when -Dlibexexdir is set
2 parents 42eb288 + 056dbe8 commit 8c7817c

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

meson.build

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,43 +1737,43 @@ git_builtin = executable('git',
17371737
sources: builtin_sources + 'git.c',
17381738
dependencies: [libgit_commonmain],
17391739
install: true,
1740-
install_dir: get_option('libexecdir') / 'git-core',
1740+
install_dir: git_exec_path,
17411741
)
17421742
bin_wrappers += git_builtin
17431743

17441744
test_dependencies += executable('git-daemon',
17451745
sources: 'daemon.c',
17461746
dependencies: [libgit_commonmain],
17471747
install: true,
1748-
install_dir: get_option('libexecdir') / 'git-core',
1748+
install_dir: git_exec_path,
17491749
)
17501750

17511751
test_dependencies += executable('git-sh-i18n--envsubst',
17521752
sources: 'sh-i18n--envsubst.c',
17531753
dependencies: [libgit_commonmain],
17541754
install: true,
1755-
install_dir: get_option('libexecdir') / 'git-core',
1755+
install_dir: git_exec_path,
17561756
)
17571757

17581758
bin_wrappers += executable('git-shell',
17591759
sources: 'shell.c',
17601760
dependencies: [libgit_commonmain],
17611761
install: true,
1762-
install_dir: get_option('libexecdir') / 'git-core',
1762+
install_dir: git_exec_path,
17631763
)
17641764

17651765
test_dependencies += executable('git-http-backend',
17661766
sources: 'http-backend.c',
17671767
dependencies: [libgit_commonmain],
17681768
install: true,
1769-
install_dir: get_option('libexecdir') / 'git-core',
1769+
install_dir: git_exec_path,
17701770
)
17711771

17721772
bin_wrappers += executable('scalar',
17731773
sources: 'scalar.c',
17741774
dependencies: [libgit_commonmain],
17751775
install: true,
1776-
install_dir: get_option('libexecdir') / 'git-core',
1776+
install_dir: git_exec_path,
17771777
)
17781778

17791779
if curl.found()
@@ -1789,22 +1789,22 @@ if curl.found()
17891789
sources: 'remote-curl.c',
17901790
dependencies: [libgit_curl],
17911791
install: true,
1792-
install_dir: get_option('libexecdir') / 'git-core',
1792+
install_dir: git_exec_path,
17931793
)
17941794

17951795
test_dependencies += executable('git-http-fetch',
17961796
sources: 'http-fetch.c',
17971797
dependencies: [libgit_curl],
17981798
install: true,
1799-
install_dir: get_option('libexecdir') / 'git-core',
1799+
install_dir: git_exec_path,
18001800
)
18011801

18021802
if expat.found()
18031803
test_dependencies += executable('git-http-push',
18041804
sources: 'http-push.c',
18051805
dependencies: [libgit_curl],
18061806
install: true,
1807-
install_dir: get_option('libexecdir') / 'git-core',
1807+
install_dir: git_exec_path,
18081808
)
18091809
endif
18101810

@@ -1815,7 +1815,7 @@ if curl.found()
18151815
)
18161816

18171817
install_symlink(alias + executable_suffix,
1818-
install_dir: get_option('libexecdir') / 'git-core',
1818+
install_dir: git_exec_path,
18191819
pointing_to: 'git-remote-http',
18201820
)
18211821
endforeach
@@ -1825,7 +1825,7 @@ test_dependencies += executable('git-imap-send',
18251825
sources: 'imap-send.c',
18261826
dependencies: [ use_curl_for_imap_send ? libgit_curl : libgit_commonmain ],
18271827
install: true,
1828-
install_dir: get_option('libexecdir') / 'git-core',
1828+
install_dir: git_exec_path,
18291829
)
18301830

18311831
foreach alias : [ 'git-receive-pack', 'git-upload-archive', 'git-upload-pack' ]
@@ -1835,7 +1835,7 @@ foreach alias : [ 'git-receive-pack', 'git-upload-archive', 'git-upload-pack' ]
18351835
)
18361836

18371837
install_symlink(alias + executable_suffix,
1838-
install_dir: get_option('libexecdir') / 'git-core',
1838+
install_dir: git_exec_path,
18391839
pointing_to: 'git',
18401840
)
18411841
endforeach
@@ -1849,9 +1849,9 @@ foreach symlink : [
18491849
'scalar',
18501850
]
18511851
if meson.version().version_compare('>=1.3.0')
1852-
pointing_to = fs.relative_to(get_option('libexecdir') / 'git-core' / symlink, get_option('bindir'))
1852+
pointing_to = fs.relative_to(git_exec_path / symlink, get_option('bindir'))
18531853
else
1854-
pointing_to = '../libexec/git-core' / symlink
1854+
pointing_to = '..' / git_exec_path / symlink
18551855
endif
18561856

18571857
install_symlink(symlink,
@@ -1891,7 +1891,7 @@ foreach script : scripts_sh
18911891
meson.project_build_root() / 'GIT-BUILD-OPTIONS',
18921892
],
18931893
install: true,
1894-
install_dir: get_option('libexecdir') / 'git-core',
1894+
install_dir: git_exec_path,
18951895
)
18961896
endforeach
18971897

@@ -1924,7 +1924,7 @@ if perl_features_enabled
19241924
input: perl_header_template,
19251925
output: 'GIT-PERL-HEADER',
19261926
configuration: {
1927-
'GITEXECDIR_REL': get_option('libexecdir') / 'git-core',
1927+
'GITEXECDIR_REL': git_exec_path,
19281928
'PERLLIBDIR_REL': perllibdir,
19291929
'LOCALEDIR_REL': get_option('datadir') / 'locale',
19301930
'INSTLIBDIR': perllibdir,
@@ -1948,7 +1948,7 @@ if perl_features_enabled
19481948
output: fs.stem(script),
19491949
command: generate_perl_command,
19501950
install: true,
1951-
install_dir: get_option('libexecdir') / 'git-core',
1951+
install_dir: git_exec_path,
19521952
depends: [git_version_file],
19531953
)
19541954
test_dependencies += generated_script
@@ -1957,9 +1957,9 @@ if perl_features_enabled
19571957
bin_wrappers += generated_script
19581958

19591959
if meson.version().version_compare('>=1.3.0')
1960-
pointing_to = fs.relative_to(get_option('libexecdir') / 'git-core' / fs.stem(script), get_option('bindir'))
1960+
pointing_to = fs.relative_to(git_exec_path / fs.stem(script), get_option('bindir'))
19611961
else
1962-
pointing_to = '../libexec/git-core' / fs.stem(script)
1962+
pointing_to = '..' / git_exec_path / fs.stem(script)
19631963
endif
19641964

19651965
install_symlink(fs.stem(script),
@@ -1989,7 +1989,7 @@ if target_python.found()
19891989
'@OUTPUT@',
19901990
],
19911991
install: true,
1992-
install_dir: get_option('libexecdir') / 'git-core',
1992+
install_dir: git_exec_path,
19931993
)
19941994
test_dependencies += generated_python
19951995
endforeach
@@ -2023,7 +2023,7 @@ mergetools = [
20232023
]
20242024

20252025
foreach mergetool : mergetools
2026-
install_data(mergetool, install_dir: get_option('libexecdir') / 'git-core' / 'mergetools')
2026+
install_data(mergetool, install_dir: git_exec_path / 'mergetools')
20272027
endforeach
20282028

20292029
if intl.found()

po/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ translations = i18n.gettext('git',
88
'el',
99
'es',
1010
'fr',
11+
'ga',
1112
'id',
1213
'is',
1314
'it',

0 commit comments

Comments
 (0)