icu
icu copied to clipboard
ICU-22109 icu-config hardcodes build paths unnecessarily
https://unicode-org.atlassian.net/browse/ICU-22109
The makefile hardcodes paths to the build directory into icu-config. It doesn’t need to do this and it unnecessarily breaks build reproducibility. This patch makes a simple change to avoid this.
Signed-off-by: Richard Purdie [email protected]
@srl295 could you please take a look at this?
@rpurdie this change is fair enough.
But in general, the deprecated icu-config does tend to hardcode paths and tools. It's recommended to use the pkg-config files instead.
Thanks, I appreciate it is deprecated and we (as in Yocto Project) very much prefer pkg-config too but until you drop it, we also need to ship it!
Hi @rpurdie our commit checker complains about the commit message. It looks like you have a line break after the ICU ticket number. Could you please try to amend your commit so that there is just a simple space between the ticket number and the first line of text?
@rpurdie this change is fair enough. But in general, the deprecated icu-config does tend to hardcode paths and tools. It's recommended to use the pkg-config files instead.
Thanks, I appreciate it is deprecated and we (as in Yocto Project) very much prefer pkg-config too but until you drop it, we also need to ship it!
why does yocto need to ship it?
We've had people building software on target which has wanted it from icu in the past. Probably not for a while but we tend to follow the lead of the upstream with provision of things like this as a path of least resistance. If your plan is to remove it, we could delete it and see what issues are raised but it will take a while for users to switch to new versions and notice .
We've had people building software on target which has wanted it from icu in the past. Probably not for a while but we tend to follow the lead of the upstream with provision of things like this as a path of least resistance. If your plan is to remove it, we could delete it and see what issues are raised but it will take a while for users to switch to new versions and notice
.
I think what I wanted to do with it was to make it only built if you explicitly requested
Hooray! The files in the branch are the same across the force-push. 😃
~ Your Friendly Jira-GitHub PR Checker Bot
We've had people building software on target which has wanted it from icu in the past. Probably not for a while but we tend to follow the lead of the upstream with provision of things like this as a path of least resistance. If your plan is to remove it, we could delete it and see what issues are raised but it will take a while for users to switch to new versions and notice .
I think what I wanted to do with it was to make it only built if you explicitly requested
Looking at the configure code, it defaults to being installed so we've just run with that. I dislike config scripts like this enough I'm happy to try disabling it!
We've had people building software on target which has wanted it from icu in the past. Probably not for a while but we tend to follow the lead of the upstream with provision of things like this as a path of least resistance. If your plan is to remove it, we could delete it and see what issues are raised but it will take a while for users to switch to new versions and notice .
I think what I wanted to do with it was to make it only built if you explicitly requested
Looking at the configure code, it defaults to being installed so we've just run with that. I dislike config scripts like this enough I'm happy to try disabling it!
If pkg-config was as widespread then (2002?) as now, I would never have written icu-config. At the time we didn't want to have to require it as a dependency.
Hi @rpurdie our commit checker complains about the commit message. It looks like you have a line break after the ICU ticket number. Could you please try to amend your commit so that there is just a simple space between the ticket number and the first line of text?
Thanks for fixing that!
We've had people building software on target which has wanted it from icu in the past. Probably not for a while but we tend to follow the lead of the upstream with provision of things like this as a path of least resistance. If your plan is to remove it, we could delete it and see what issues are raised but it will take a while for users to switch to new versions and notice .
I think what I wanted to do with it was to make it only built if you explicitly requested
Looking at the configure code, it defaults to being installed so we've just run with that. I dislike config scripts like this enough I'm happy to try disabling it!
If pkg-config was as widespread then (2002?) as now, I would never have written icu-config. At the time we didn't want to have to require it as a dependency.
Indeed! I totally understand how we end up here. I'm really happy there is a config option. We're now turning off icu-config in Yocto Project/OpenEmbedded and I've not had any complaints so far. If there are we'll tell them to use pkg-config :).
Great ! If you want to help a PR to make it off by default would be great.