Bug 1222926 - kanidm fails to build on Leap 15.6 - unused imports: `AccessTokenRequest`, `AccessTokenResponse`, `CodeChallengeMethod`, `ErrorResponse`
Summary: kanidm fails to build on Leap 15.6 - unused imports: `AccessTokenRequest`, `A...
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: William Brown
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 22:08 UTC by Lubos Kocman
Modified: 2024-04-23 03:06 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Kocman 2024-04-16 22:08:16 UTC
Hello

package kanidm fails to build on Leap 15.6

https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/kanidm/standard/x86_64


[  280s] error: unused imports: `AccessTokenRequest`, `AccessTokenResponse`, `CodeChallengeMethod`, `ErrorResponse`
[  280s]  --> server/web_ui/src/oauth2.rs:3:5
[  280s]   |
[  280s] 3 |     AccessTokenRequest, AccessTokenResponse, AuthorisationRequest, AuthorisationResponse,
[  280s]   |     ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[  280s] 4 |     CodeChallengeMethod, ErrorResponse,
[  280s]   |     ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[  280s]   |
[  280s] note: the lint level is defined here
[  280s]  --> server/web_ui/src/lib.rs:2:9
[  280s]   |
[  280s] 2 | #![deny(warnings)]
[  280s]   |         ^^^^^^^^
[  280s]   = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]`
[  280s] 
[  280s] error: unused import: `web_sys::InputEvent`
[  280s]  --> server/web_ui/src/utils.rs:5:9
[  280s]   |
[  280s] 5 | pub use web_sys::InputEvent;
[  280s]   |         ^^^^^^^^^^^^^^^^^^^
[  280s] 
[  281s] error: could not compile `kanidmd_web_ui` (lib) due to 2 previous errors
[  281s] warning: build failed, waiting for other jobs to finish...
[  305s] error: Bad exit status from /var/tmp/rpm-tmp.5kPNrG (%build)

Could you please have a look into it?
Comment 1 William Brown 2024-04-23 03:06:51 UTC
The issue is that every time I try to submit to 15-SP6 backports, they are always rejected with various messages.