-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plist.mk: Cheap fix for PLIST madness found with Issue #4211 #4221
Conversation
@hgy59 and @ymartin59 and all, here is a temporary fix proposal for the |
Solution ain't sufficient, needs additional thinking or complete rewrite of the |
@@ -9,14 +9,13 @@ endif | |||
|
|||
.PHONY: cat_PLIST | |||
cat_PLIST: | |||
@for depend in $(DEPENDS) ; \ | |||
@echo Processing PLIST dependencies 1>&2 | |||
@for depend in `$(MAKE) dependency-list` ; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you take dependency-list instead of $(DEPENDS)
you get the dependencies of $(BUILD_DEPENDS) $(DEPENDS) $(OPTIONAL_DEPENDS)
but this will fail because all files in PLIST must exist (and the optional are dependencies that exist not for all archs).
And BUILD_DEPENDS is for packages that are used only in the build environment and not needed at runtime (i.e. dependency of another spk like python).
If dependency-list fixes the PLIST file for some packages, those packages may have used BUILD_DEPENDS but should have used DEPENDS.
As for fossil-scm if the error you meant in #4222 is missing PLIST files of openssl or zlib, then the real error is that fossil-scm has defined BUILD_DEPENDS instead of DEPENDS for cross/zlib and cross/openssl.
Just used grep and found false usage of BUILD_DEPENDS in
|
How do you do to you determine if theses are false usages of |
if a package has BUILD_DEPENDS on it's own it must fail, as it is not (properly) packaged into the spk.
cross/tcl:
cross/autossh:
cross/he853:
spk/ffsync:
spk/mercurial:
So my statement was hasty - not regarding the dependencies of wheels - but for non python wheels following packages must use DEPENDS instead of BUILD_DEPENDS:
and
|
I am curious to know what "code changes" has introduced bug to better understand how to get it fixed. Does it come from moving targets to dedicated "plist.mk" file? |
There was no code change from the framework point of view. Also the changes I recently did had no effect on the If there was a change it may end-up being in a dependency being build only with shared libs or a change in configuration option that make a binary to not link against the expected static lib but rather needing the shared lib instead. Thus, from @hgy59 analysis and comment above, some of the packages must use Lastly, note that code in this PR is irrelevant (thnx to @hgy59)... although discussions may lead at finding a better approach. |
The code change for fossil was with commit 26ad900 on by removing |
As a local mistake in fossil-scm I propose to close without merge |
Agreed. |
|
Motivation: Fix
PLIST
black-magic issue foundLinked issues: #4211
Checklist
all-supported
completed successfully