-
Notifications
You must be signed in to change notification settings - Fork 10
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
Upgrade snap to core24 - iteration #2 #169
base: core24
Are you sure you want to change the base?
Conversation
I believe the cause is because the set -- "${SNAP}/kf6/command-chain/hooks-configure-desktop" "$@" I see that the #!/bin/bash
if [ "$QT_VERSION" == "6" ]; then
set -- "${SNAP}/kf6/snap/command-chain/desktop-launch6" "$@"
# shellcheck source=/dev/null
source "${SNAP}/snap/command-chain/run"
elif [ "$QT_VERSION" == "5" ]; then
set -- "${SNAP}/kf5/snap/command-chain/desktop-launch" "$@"
# shellcheck source=/dev/null
source "${SNAP}/snap/command-chain/run"
fi Source: https://github.com/canonical/snapcraft/blob/main/extensions/desktop/command-chain-kde/desktop-launch The desktop hooks are at: https://invent.kde.org/neon/snap-packaging/snapcraft-desktop-integration Should |
#!/bin/bash
- set -- "${SNAP}/kf6/command-chain/hooks-configure-fonts" "$@"
+ set -- "${SNAP}/kf6/command-chain/hooks-configure-desktop" "$@"
# shellcheck source=/dev/null
source "${SNAP}/snap/command-chain/run"
|
@ScarlettGatelyMoore do you have suggestions on any of the points above? Thanks! |
https://invent.kde.org/neon/snap-packaging/snapcraft-desktop-integration/-/commit/44bfe759fde903bbc018d97d1b54c7eccf92312d Fixed, thanks! I am rebuilding kf5-core24 to bring in changes |
Just an FYI I have another snapcraft PR for kde-neon fixes canonical/snapcraft#5261 |
This comment was marked as resolved.
This comment was marked as resolved.
No, it is correct. desktop-configure-fonts actually gets overwritten later in the process with actual font configuration stuff |
@ScarlettGatelyMoore Great, then I'll wait until the snapcraft change is merged and there's a new upstream release. In the meantime, do you have any feedback on points 1 and 3? |
Correct. I have that removed on mine. The qt libraries and kde frameworks SDKs are now in two separate snaps. The kde-neon extension should have added them both as build snaps. Is it not? |
Great, on point 1 then I'll remove this snippet: kf5-core24:
content: kf5-core24-all
interface: content
default-provider: kf5-core24
target: $SNAP/kf5 On point 3:
It is not, I think. I've just double-checked it again with a test build at https://github.com/furgo16/FreeCAD-snap/actions/runs/13378095289/job/37361464569. Unless you add On a related note, FreeCAD is not a KDE app. Is there a lightweight "Qt-libs-only" snap alternative for |
Okay, I need to fix that in snapcraft. Thanks for letting me know.
Not for qt5. I do however have a pr open for qt6 canonical/snapcraft#5236 |
If I create a basic snap with a part that includes the
However, in the FreeCAD snap (this PR), the relevant extract of the
|
I've found out what creates this situation: if Update: or should we list @ScarlettGatelyMoore let me know if this helps. Happy to look into it if you point me where in the code to look at. Thanks! |
Continuation of #123
freecad-deps-core24
snap is available)kf5-core24
in theplugs
section (point 1 in "To be resolved") => removed, it's expanded bykde-neon
LD_LIBRARY_PATH
definition does not seem to be working properly (point 2 in "To be resolved")kde-qt5-core24-sdk
package needs to be specified to build FreeCAD (point 3 in "To be resolved") => has workaround (either leave as it is, or specifykf5-core22
in the cleanup part instead ofkf5-core22
)snap/command-chain/hooks-configure-desktop
path is hardcoded to kf6 (point 5 in "To be resolved") => Fix committed, needs rebuild and reuploadkde-neon
extension bugs => kde-neon extension fixes canonical/snapcraft#5261Test build available at: https://github.com/furgo16/FreeCAD-snap/actions/runs/13313463891/job/37181598919
Currently, FreeCAD builds without errors, but the snap packing step fails with this error:
I cannot figure out what it is. It comes from https://github.com/canonical/snapd/blob/f381bfd88038c3d7e27329decc51de4243c6398d/snap/validate.go#L1044-L1048
To be resolved
kf5-core24
in theplugs
section here? Should this not happen implicitly when adding thekde-neon
extension?FreeCAD-snap/snap/snapcraft.yaml
Lines 77 to 81 in 875c782
LD_LIBRARY_PATH
definition does not seem to be working properly. If a library is deleted from the snap at the prime step, but that library is already provided by thekf5-core24-sdk
snap, it is not seen by FreeCAD.FreeCAD-snap/snap/snapcraft.yaml
Line 84 in 875c782
kde-qt5-core24-sdk
package needs to be specified here to be able to build FreeCAD, as it contains the Qt CMake files. Before, those files were in thekf5-qt5-core24-sdk
package, so that this step (and yet another snap) was not necessary. Is there a better way to do this?LD_LIBRARY_PATH
is not working)FreeCAD-snap/snap/snapcraft.yaml
Lines 317 to 319 in 875c782