Package Details: shortwave-git 0.0.2.r0.ga22cc20-1

Git Clone URL: https://aur.archlinux.org/shortwave-git.git (read-only, click to copy)
Package Base: shortwave-git
Description: Find and listen to internet radio stations
Upstream URL: https://gitlab.gnome.org/World/Shortwave
Licenses: GPL3
Conflicts: shortwave
Provides: shortwave
Submitter: flipflop97
Maintainer: flipflop97 (yochananmarqos)
Last Packager: yochananmarqos
Votes: 6
Popularity: 0.40
First Submitted: 2019-01-30 20:00
Last Updated: 2020-02-18 16:21

Latest Comments

1 2 3 Next › Last »

yochananmarqos commented on 2019-12-22 15:39

@j1simon: Added.

j1simon commented on 2019-12-21 10:29

It lacks dependencies:

$ makepkg
....
   Compiling hyper v0.12.35
error: failed to run custom build command for `cairo-sys-rs v0.9.2`

Caused by:
  process didn't exit successfully: `/tmp/makepkg/shortwave-git/src/build/target/debug/build/cairo-sys-rs-bfa399f4b755b098/build-script-build` (exit code: 1)
--- stderr
`"pkg-config" "--libs" "--cflags" "cairo-gobject" "cairo-gobject >= 1.12"` did not exit successfully: exit code: 1
--- stdout


--- stderr
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xrender', not found
Package 'renderproto', required by 'xrender', not found
Package 'xproto', required by 'x11', not found
Package 'kbproto', required by 'x11', not found
Package 'xproto', required by 'x11', not found
Package 'kbproto', required by 'x11', not found
Package 'xextproto', required by 'xext', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xrender', not found
Package 'renderproto', required by 'xrender', not found
Package 'xproto', required by 'x11', not found
Package 'kbproto', required by 'x11', not found
Package 'xproto', required by 'x11', not found
Package 'kbproto', required by 'x11', not found
Package 'xextproto', required by 'xext', not found


warning: build failed, waiting for other jobs to finish...
error: build failed
[3/4] Generating de.haeckerfelix.Shortwave.appdata.xml_data_merge with a custom command.
FAILED: src/shortwave 
/tmp/makepkg/shortwave-git/src/Shortwave/build-aux/cargo.sh /tmp/makepkg/shortwave-git/src/build /tmp/makepkg/shortwave-git/src/Shortwave src/shortwave /usr/share/locale beta
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

yochananmarqos commented on 2019-11-20 15:37

@r381581: It turns out you are absolutely correct. I removed it.

r381581 commented on 2019-11-20 12:15

Is there any reason for forcing the removal of Gradio with the installation of this package? I mean, okay it's a complete rewrite whose objective is to replace it, but it's 1/ A different software, with different name and different binaries and file ; 2/ still in early development and can lack features of Gradio or be way more buggy.

A user can want to have both on its computer to try this new one, help on dev and do bug reports while still having Gradio for regular use. Add a note to tell Gradio is deemed to be replaced, why not, but imho you shouldn't forbid Shortwave and Gradio to be both installed: they don't conflict with each other.

Tio commented on 2019-11-12 13:07

I see thanks. I was testing it on Manjaro Gnome Stable

coxackie commented on 2019-11-12 09:27

@ Tio: you have to use the latest version of rust (1.39), where async/await became stable. rustup update

Tio commented on 2019-11-12 01:56

Error:

error[E0658]: async fn is unstable
  --> src/api/client.rs:29:5
   |
29 | /     pub async fn send_station_request(self, request: StationRequest) -> Result<Vec<Station>, Error> {
30 | |         let url = self.build_url(STATION_SEARCH, Some(&request.url_encode()))?;
31 | |         debug!("Station request URL: {}", url);
32 | |         let data = self.send_message(url).await?;
...  |
38 | |         Ok(stations)
39 | |     }
   | |_____^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/client.rs:32:20
   |
32 |         let data = self.send_message(url).await?;
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async fn is unstable
  --> src/api/client.rs:41:5
   |
41 | /     pub async fn get_stations_by_identifiers(self, identifiers: Vec<StationIdentifier>) -> Result<Vec<Station>, Error> {
42 | |         let mut stations = Vec::new();
43 | |
44 | |         for identifier in identifiers {
...  |
55 | |         Ok(stations)
56 | |     }
   | |_____^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/client.rs:47:24
   |
47 |             let data = self.send_message(url).await?;
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async fn is unstable
  --> src/api/client.rs:58:5
   |
58 | /     pub async fn get_stream_url(self, station: Station) -> Result<StationUrl, Error> {
59 | |         let url = self.build_url(&format!("{}{}", PLAYABLE_STATION_URL, station.id), None)?;
60 | |         debug!("Request playable URL: {}", url);
61 | |         let data = self.send_message(url).await?;
...  |
66 | |         Ok(result[0].clone())
67 | |     }
   | |_____^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/client.rs:61:20
   |
61 |         let data = self.send_message(url).await?;
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async fn is unstable
  --> src/api/client.rs:70:5
   |
70 | /     async fn send_message(&self, url: Url) -> std::result::Result<GString, Error> {
71 | |         // Create SOUP message
72 | |         match soup::Message::new("GET", &url.to_string()) {
73 | |             Some(message) => {
...  |
86 | |         }
87 | |     }
   | |_____^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/client.rs:75:36
   |
75 |                 let input_stream = self.session.send_async_future(&message).await?;
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/client.rs:80:30
   |
80 |                 let result = data_input_stream.read_upto_async_future("", glib::PRIORITY_LOW).await?;
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async fn is unstable
  --> src/api/favicon_downloader.rs:33:5
   |
33 | /     pub async fn download(self, url: Url, size: i32) -> Result<Pixbuf, Error> {
34 | |         match self.get_cached_pixbuf(&url, &size).await {
35 | |             Ok(pixbuf) => return Ok(pixbuf),
36 | |             Err(_) => debug!("No cached favicon available for {:?}", url),
...  |
64 | |         Ok(self.get_cached_pixbuf(&url, &size).await?)
65 | |     }
   | |_____^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:34:15
   |
34 |         match self.get_cached_pixbuf(&url, &size).await {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:43:36
   |
43 |                 let input_stream = self.session.send_async_future(&message).await?;
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:50:30
   |
50 |                 let pixbuf = Pixbuf::new_from_stream_at_scale_async_future(&data_input_stream, 192, 192, true).await?;
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:55:31
   |
55 |                     let ios = file.create_readwrite_async_future(gio::FileCreateFlags::REPLACE_DESTINATION, glib::PRIORITY_DEFAULT).await?;
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:57:21
   |
57 |                     pixbuf.save_to_streamv_async_future(&data_output_stream, "png", &[]).await?;
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:64:12
   |
64 |         Ok(self.get_cached_pixbuf(&url, &size).await?)
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async fn is unstable
  --> src/api/favicon_downloader.rs:67:5
   |
67 | /     async fn get_cached_pixbuf(&self, url: &Url, size: &i32) -> Result<Pixbuf, Error> {
68 | |         let file = Self::get_file(&url)?;
69 | |         if Self::exists(&file) {
70 | |             let ios = file.open_readwrite_async_future(glib::PRIORITY_DEFAULT).await.expect("Could not open file");
...  |
76 | |         }
77 | |     }
   | |_____^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:70:23
   |
70 |             let ios = file.open_readwrite_async_future(glib::PRIORITY_DEFAULT).await.expect("Could not open file");
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error[E0658]: async/await is unstable
  --> src/api/favicon_downloader.rs:73:16
   |
73 |             Ok(Pixbuf::new_from_stream_at_scale_async_future(&data_input_stream, *size, *size, true).await?)
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50547

error: aborting due to 19 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `shortwave`.

To learn more, run the command again with --verbose.
[3/4] Generating de.haeckerfelix.Shortwave.appdata.xml_data_merge with a custom command.
FAILED: src/shortwave 
/var/tmp/pamac-build-tio/shortwave-git/src/Shortwave/build-aux/cargo.sh /var/tmp/pamac-build-tio/shortwave-git/src/build /var/tmp/pamac-build-tio/shortwave-git/src/Shortwave src/shortwave /usr/share/locale beta
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

yochananmarqos commented on 2019-11-11 17:04

Tags are now available:

pkgver() {
    cd "$srcdir/Shortwave"
    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
0.0.1.r0.cd80fc2

Also, appstream-glib is required to build:

Program appstream-util found: YES (/usr/sbin/appstream-util)

Listing both cargo and rust is redundant, just use one or the other. The project page specifies rust.

gradio should be added to provides() and conflicts().

flipflop97 commented on 2019-03-30 16:27

@nicoulaj

Thanks, added!

nicoulaj commented on 2019-03-29 19:49

I think a makedepends on gst-plugins-base-libs is needed, this is what happens when building in a chroot:

Package gstreamer-audio-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-audio-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gstreamer-audio-1.0', required by 'virtual:world', not found


warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `gstreamer-video-sys v0.7.0`
process didn't exit successfully: `/build/shortwave-git/src/build/target/release/build/gstreamer-video-sys-287deda3e527dbee/build-script-bu
ild` (exit code: 1)