Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722094 - net-misc/onedrive: Free Client for OneDrive on Linux
Summary: net-misc/onedrive: Free Client for OneDrive on Linux
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Joe Kappus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-10 10:40 UTC by z79av
Modified: 2024-02-28 16:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description z79av 2020-05-10 10:40:10 UTC
There is a suggestion to add the OneDrive client to the official gentoo repository.
https://github.com/abraunegg/onedrive
The client develops in contrast to the others. In Debian, it is already in sid. In OpenSUSE in experimental.

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2020-05-10 15:00:39 UTC
see also 
https://repology.org/projects/?search=onedrive
Comment 2 MW 2021-03-11 23:47:26 UTC
(In reply to avz79 from comment #0)
> There is a suggestion to add the OneDrive client to the official gentoo
> repository.
> https://github.com/abraunegg/onedrive
> The client develops in contrast to the others. In Debian, it is already in
> sid. In OpenSUSE in experimental.
> 
> Reproducible: Always

That project contains an ebuild:

https://github.com/abraunegg/onedrive/blob/master/contrib/gentoo/onedrive-2.4.10.ebuild

It works (both the ebuild and the OneDrive client), but depends on stuff from the dlang overlay.
Comment 3 Gordon Pritchard 2021-04-16 13:07:45 UTC
I also request that OneDrive client be formally added to "stable" Portage, ensuring dependencies are identified/satisfied.
Comment 4 Joe Kappus 2023-08-10 09:13:30 UTC
Taking this for now. It's going to need a few annoying but minor enough things to get in ::gentoo.

Currently the hold up has been that the onedrive client is written in D and has been stuck languishing in the dlang overlay (where I'm effectively its maintainer): https://github.com/gentoo/dlang/tree/master/net-misc/onedrive It really shouldn't be here, it's just the only place it can be right now as upstream officially only supports DMD and LDC compilers. I'm motivated to get it out since this overlay is not well maintained and I am not the person to take on maintaining toolchain ebuilds.

The onedrive ebuild will still build and install on a system with a recent enough dmd present after removing the eclasses. But the only dlang compiler available in ::gentoo is GDC (through sys-devel/gcc[d]).

I've removed dmd from my system and now I'm building gcc with d useflag and testing: https://github.com/joecool1029/joecool-overlay/commit/59f47e0c328469e37aaade7009710a933472b7f4

Should work though once I patch the configure script to add gdc. Also, will need at least gcc-12.1 as this was the first self-hosting version of the dlang compiler, the previous versions in gcc are too old to compile this.
Comment 5 Joe Kappus 2023-08-11 04:15:57 UTC
Ok so that was a deeper rabbit hole than I expected, but I got it working fine with GDC. 

This is my fork with what was done: https://github.com/joecool1029/onedrive/tree/gdcsupport 

My overlay has the full working ebuild with patch: https://github.com/joecool1029/joecool-overlay/tree/master/net-misc/onedrive

Patch size is slightly overlimit for ::gentoo inclusion because gdc dropped out the sqlite3.d file from phobos (the D standard library) and I had to include it in the package. This is a file that has not changed in years and is included in current dmd's phobos, some of the other D language developers think it might have been ommitted from gcc by mistake. 

None of the changes I made should break or change compiling for users with dmd on their system (like if you had it from dlang-overlay). I'll ask gentoo devs if it's ok to be overlimit on this or if I can get it hosted.