Fix Windows build #246

Closed
pal1000 wants to merge 3 commits from pal1000/pkgconf:fix-win-build-tests-feature into master

Regression from #244.

Regression from #244.
pal1000 added 2 commits 2022-08-21 16:23:44 +00:00
psykose reviewed 2022-08-24 22:55:58 +00:00
@ -19,5 +19,7 @@ tests = [
# yuck
foreach test : tests
test_file = configure_file(input: test + '.sh', output: test, copy: true)

curious- the configure_file here can take a install_mode: 'rwxr-xr-x' argument, perhaps that works on windows too?

curious- the configure_file here can take a `install_mode: 'rwxr-xr-x'` [argument](https://mesonbuild.com/Reference-manual_functions.html#configure_file), perhaps that works on windows too?

install_mode is set at install time by meson install. I'm going to add a build_mode to the fs.copyfile() function, which is the replacement for configure_file(copy : true) (its a lot of historical baggage that configure_file() is used to copy files.

`install_mode` is set at install time by `meson install`. I'm going to add a `build_mode` to the `fs.copyfile()` function, which is the replacement for `configure_file(copy : true)` (its a lot of historical baggage that `configure_file()` is used to copy files.
As promised: https://github.com/mesonbuild/meson/pull/10744

aha, thanks for the information! that looks much better once that lands in

aha, thanks for the information! that looks much better once that lands in

the ci: Fix syntac error title also has a typo in it (syntax)

the `ci: Fix syntac error` title also has a typo in it (`syntax`)
pal1000 force-pushed fix-win-build-tests-feature from 6a59466e1b to ad1fe45f4e 2022-08-25 09:05:59 +00:00 Compare
dcbaker reviewed 2022-08-26 17:07:54 +00:00
@ -20,3 +20,3 @@
foreach test : tests
test_file = configure_file(input: test + '.sh', output: test, copy: true)
run_command('chmod', '755', test_file, check : true)
if host_machine.system() != 'windows'

that's the wrong fix, that will break building on msys, which reports windows but very much has chmod

something like:

run_command(find_program('chmod', required : false, disabler : true), '755', test_file, check : true)

Is a more robust solution.

that's the wrong fix, that will break building on msys, which reports windows but very much has chmod something like: ```meson run_command(find_program('chmod', required : false, disabler : true), '755', test_file, check : true) ``` Is a more robust solution.
pal1000 force-pushed fix-win-build-tests-feature from ad1fe45f4e to b8593a3af5 2022-08-27 08:27:00 +00:00 Compare

Is this good to merge yet, or no?

Is this good to merge yet, or no?

Is this good to merge yet, or no?

Yes, however someone deamed the chmod usage unnecessary here.

> Is this good to merge yet, or no? Yes, however someone deamed the chmod usage unnecessary [here](https://github.com/pkgconf/pkgconf/pull/263).
pal1000 closed this pull request 2023-01-22 15:16:42 +00:00
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#246
There is no content yet.