https://bugs.kde.org/show_bug.cgi?id=505246
Bug ID: 505246
Summary: [snapcraft] libtoolize shipped in kde-qt6-core-sdk is
unusable
Classification: KDE Neon
Product: neon
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Snaps
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 182052
--> https://bugs.kde.org/attachment.cgi?id=182052&action=edit
minimal sample code to reproduce the issue
SUMMARY
trying to use autotools to build a project using `kde-neon-6` plugin /
`kf6-core24-sdk` as libtoolize is not located properly.
STEPS TO REPRODUCE
try to use use `kde-neon-6` with in an autotools project. a minimal sample code
is provided in attachment
OBSERVED RESULT
logs from the command `snapcraft --verbosity verbose build`
```
Starting snapcraft, version 8.9.2
Logging execution to
'/home/pierre/.local/state/snapcraft/log/snapcraft-20250605-184715.448675.log'
Launching managed ubuntu 24.04 instance...
Starting snapcraft, version 8.9.2
Logging execution to '/tmp/snapcraft.log'
Initialising lifecycle
Installing build-packages
Installing build-snaps
Repulling myapp ('source-type' property changed)
Skipping pull for cleanup (already ran)
Skipping pull for kde-neon-6/sdk (already ran)
Building myapp
:: + '[' '!' -f ./configure ']'
:: + '[' -f ./autogen.sh ']'
:: + '[' '!' -f ./configure ']'
:: + '[' -f ./bootstrap ']'
:: + '[' '!' -f ./configure ']'
:: + autoreconf --install
:: libtoolize: error: $pkgauxdir is not a directory:
'/root/stage/usr/share/libtool/build-aux'
:: autoreconf: error: libtoolize failed with exit status: 1
Failed to run the build script for part 'myapp'.
Detailed information:
:: + '[' -f ./bootstrap ']'
:: + '[' '!' -f ./configure ']'
:: + autoreconf --install
:: libtoolize: error: $pkgauxdir is not a directory:
'/root/stage/usr/share/libtool/build-aux'
:: autoreconf: error: libtoolize failed with exit status: 1
Recommended resolution: Check the build output and verify the project can work
with the 'autotools' plugin.
For more information, check out:
https://documentation.ubuntu.com/snapcraft/8.9.2/reference/plugins/
Failed to run snapcraft in instance
```
EXPECTED RESULT
either libtoolize should execute properly or kf6-core24-sdk shouldn't ship
libtoolize (snapcraft documentation suggest to install the corresponding
packages [1])
SOFTWARE/OS VERSIONS
kf6-core24-sdk: 6.11.0-6.2.5-24.12.3
kde-qt6-core24-sdk: 6.8.3
Qt Version: 6.8.3
ADDITIONAL INFORMATION
* overriding the PATH in the build-environment has no effect as the kde-neon-6
extension prepend kf6 paths to the user defined paths
* this can be worked around by patching libtoolize like it's done for
pkg-config files (see [2])
` sed -i -e "s#/root/stage#/snap/kf6-core24-sdk/current#"
/snap/kf6-core24-sdk/current/usr/bin/libtoolize`
but this hack can't be done in snapcraft.yaml side as snap/kf6-core24-sdk is
readonly. maybe there are some proper way to relocate libtoolize,
[1]
https://documentation.ubuntu.com/snapcraft/stable/common/craft-parts/reference/plugins/autotools_plugin/
[2]
https://invent.kde.org/neon/snap-packaging/kf6-core-sdk/-/blob/b8b6c2f339e0d4d80e68d8fbb8f9abdac1a2f29c/snapcraft.yaml?page=3#L2488
--
You are receiving this mail because:
You are watching all bug changes.