Bug 1222935 - spotifyd fails to build on Leap 15.6 - the parameter type `T` may not live long enough
Summary: spotifyd fails to build on Leap 15.6 - the parameter type `T` may not live lo...
Status: RESOLVED FIXED
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:34 UTC by Lubos Kocman
Modified: 2024-05-03 09:10 UTC (History)
1 user (show)

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:34:28 UTC
Hello

package spotifyd fails to build on Leap 15.6 

https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/spotifyd/standard/x86_64
   68s] error[E0310]: the parameter type `T` may not live long enough
[   68s]     --> /home/abuild/rpmbuild/BUILD/spotifyd-0.3.3/vendor/rustc-serialize/src/serialize.rs:1155:5
[   68s]      |
[   68s] 1155 |     fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
[   68s]      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[   68s]      |     |
[   68s]      |     the parameter type `T` must be valid for the static lifetime...
[   68s]      |     ...so that the type `T` will meet its required lifetime bounds...
[   68s]      |
[   68s] note: ...that is required by this bound
[   68s]     --> /home/abuild/rpmbuild/BUILD/rustc-1.77.0-src/library/alloc/src/borrow.rs:180:30
[   68s] help: consider adding an explicit lifetime bound
[   68s]      |
[   68s] 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
[   68s]      |                    +++++++++
[   68s] 
[   68s]    Compiling form_urlencoded v1.1.0

Could you please have a look?
Comment 1 Max Lin 2024-05-03 09:10:46 UTC
spotifyd was deleted in Backports, spotifyd has been removed from Factory with the same build fail