Skip to content
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

Add support for cross-compilation to armv7 #25

Open
mariusor opened this issue Jan 13, 2018 · 14 comments
Open

Add support for cross-compilation to armv7 #25

mariusor opened this issue Jan 13, 2018 · 14 comments
Milestone

Comments

@mariusor
Copy link
Owner

Enable meson cross compilation for creating builds for armv7.

Ideally using the Mer environment and scratchbox2 toolkit - this makes it easier to start creating builds using the Mer OBS instance.

@mariusor mariusor added this to the v1.0.0 milestone Jan 13, 2018
@mariusor
Copy link
Owner Author

Made some progress with this using Mer Project's OBS. Still not finished.

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

Maybe add the rpm to the repo (or add another with this as submodule) to build using tar_git in obs?

@mariusor
Copy link
Owner Author

mariusor commented Oct 7, 2018

Hi, thank you for your comment, but unfortunately I'm not very knowledgeable about OBS or creating RPM packages. Do you have some links for me to read in order to understand what you mean?

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

You can create a _service file where obs pics up your services.
Tar_git makes a tar out of your repo and makes it available as build source to obs.
You can either point to a stable commit or make rebuild everytime you push something using webhooks.
See a pkg of mine as an example:
https://build.merproject.org/package/view_file/home:Thaodan:testing/communi-sailfish/_service?expand=1

@mariusor
Copy link
Owner Author

mariusor commented Oct 7, 2018

Thank you very much, I'll take a look.

Are you directly interested in this project so I should increase its priority, or did you just drop by to help and I can take my time?

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

I'm interresed. I used the maemo-scrobbler before but its based on a Nokia framework and can't be ported.
A accounts plugin to catch oauth token would be great.

@mariusor
Copy link
Owner Author

mariusor commented Oct 7, 2018

I have already the latest version built on OBS: https://build.merproject.org/project/show/home:habarnam:mpris-scrobbler

However I think some of the repositories that depend on it have changed and it doesn't build correctly any more. However I think you should be able to install the package manually from the avilable rpm.

To generate the credentials file you will probably need to use a desktop machine unfortunatelly, that's how I generated mine and then copied them to the phone. I have another project mpris-scrobbler-signon that will fulfill this function in the long term. However it's not functional yet... maybe you can take a look and provide some insights there. :) (No pressure, though)

Caveats:
1/ libre.fm has been taken down by the GNU people, only last.fm and listenbrainz.org are still usable Nevermind, still works.
2/ I was using the scrobbler with Spotify and the android version available for SailfishOS doesn't fill all the MPRIS data required for a valid scrobble submission, so it doesn't work. Other players might be better, though.
3/ the projects are not high priority for me right now while I'm working on something else, so while any help is appreciated, I won't be fully invested in them for a while.

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

Can you point out whats missing inside the signon plugin?
I thought of creating a plugin that collects the ouath key like the google plugin but just writes it to a text file.
This sounds much better.

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

For me librefm is still online?

@mariusor
Copy link
Owner Author

mariusor commented Oct 7, 2018

So, the signon-helper in the current state contains just the services/providers for the 3 scrobbling APIs as used by the Sailfish OS accounts manager.

If you install it in the SDK they show up in Settings > Accounts. But there's no functionality implemented for any of them.

The authentication steps for libre/last.fm are the same, detailed in the README.

For listenbrainz it just needs a password input box to put the token from the listenbrainz profile page. Also detailed in the README

To be useful it also needs to implement an ini file writer to path ~/.local/share/mpris-scrobbler/credentials with the data obtained.

For detailed steps, see the get_session() and get_token() functions in the signon.c file.

So basically it's just what you said, only with a pretty Accounts UI. :)

@mariusor
Copy link
Owner Author

mariusor commented Oct 7, 2018

For me librefm is still online?

INFO    scrobbler::now_playing: Likeim//Carpathian Forest//Likeim
INFO     api::submitted_to[libre.fm]: ok

I guess you're right... I thought I saw a message from Matt Lee saying he's unplugging the servers.

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

Could the demon not retrieve the credentials from signond?

@mariusor
Copy link
Owner Author

mariusor commented Oct 7, 2018

I don't know... probably, but I would not want to have the scrobbler too much tied into the sailfish os infrastructure. I'll investigate.

@Thaodan
Copy link

Thaodan commented Oct 7, 2018

Signond is used by Kaccounts and maybe GNOME too.
That is maybe a good why to handle logins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants