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

debian/ubuntu package #9

Closed
dnut opened this issue Aug 1, 2022 · 11 comments
Closed

debian/ubuntu package #9

dnut opened this issue Aug 1, 2022 · 11 comments
Assignees

Comments

@dnut
Copy link
Owner

dnut commented Aug 1, 2022

Reply here to vote for this feature.

I exclusively use arch linux so I won't prioritize this work unless someone is interested. One person is enough to get me to look into it. Just be sure to actually comment, a thumbs up won't notify me.

@dnut dnut mentioned this issue Aug 1, 2022
@mskyaxl
Copy link
Contributor

mskyaxl commented Feb 25, 2023

+1 for ubuntu packages.

@dnut
Copy link
Owner Author

dnut commented Mar 12, 2023

I'll try to find some time to work on it this week.

@dnut dnut self-assigned this Mar 12, 2023
@dnut
Copy link
Owner Author

dnut commented Mar 24, 2023

Quick update... The latest release was in November. Since then, I made a variety of changes, hoping to fix some bugs, but may have caused some other issues. I'm sorting it all out, to get some reasonably stable code ready for the next release, which will include something for ubuntu, probably just a .deb file to start.

@dnut
Copy link
Owner Author

dnut commented Mar 29, 2023

I fixed the major bugs. It does not appear to have any more regressions. Next step is the deb package.

@dnut
Copy link
Owner Author

dnut commented Mar 29, 2023

@mskyaxl

I have implemented a build process for a deb package. You can test it out if you want. It requires building from source, but it produces a normal ubuntu package that you can install with apt. Instructions are in the readme. In my testing it worked fine, but I need to do some more testing to make sure it's rock solid.

I will release some deb files with the next version, but I'm not sure when that will be, probably within the next few weeks. In terms of getting the package in served by a repo or ppa, I have no clue how to even do that at this point. But I'll look into it if the demand is there.

37d6e11

@mskyaxl
Copy link
Contributor

mskyaxl commented Apr 8, 2023

@dnut, thanks for taking the time!
I'm on Pop!_OS, the installation works. The only thing I would do is to include the enabling of the systemd service during the installation.

Regarding the ppa, I can try to do that if you're ok with it.

mskyaxl added a commit to mskyaxl/clipboard-sync that referenced this issue Apr 9, 2023
added a deblint target - errors are to be fixed in future commits
@mskyaxl
Copy link
Contributor

mskyaxl commented Apr 9, 2023

@dnut I created a PR.
For start I created a fix for the makefile and i added another target for lintian(debian package checker).
I will try to fix the lintian errors in the following days.

@dnut
Copy link
Owner Author

dnut commented Apr 10, 2023

@mskyaxl

Thanks for taking the initiative. I'd be happy to integrate any improvements.

I'm working on getting 0.2.0 released. Once your PR is complete and we have a solid build process for deb files, then we can go ahead and upload the deb file to the PPA and the github release. I've already created a PPA, it was very easy. Releasing a version is just a matter of uploading a deb file. I would like a github workflow to take care of this automatically in the future, but for the first release I can do it manually.

@dnut
Copy link
Owner Author

dnut commented Apr 10, 2023

The only thing I would do is to include the enabling of the systemd service during the installation.

Unfortunately I don't think that would work. The package manager can enable services system-wide but this is a user service, not a system service.

I'm on Pop!_OS, the installation works.

I'm curious, what is your use case? Are you running two separate desktop environments? Is it working well for you?

@mskyaxl
Copy link
Contributor

mskyaxl commented Apr 10, 2023

My usecase is a little bit different... By default, Pop!_OS does not support Wayland. I enabled it(better high rez support, battery life) but now I face some issues with synchronizing the clipboard between Wayland windows and X11 Windows (among others, neovim + neoclip). Xclip/wl-copy/wl-paste are not reliable and fails now and then.

In the end I got it working with clipboard-sync.

More info here: matveyt/neoclip#5 (comment)

I am using dotbot to maintain my dotfiles and I was able to bootstrap the clipboard-sync installation (cargo + scripting) but I would prefer a debian package.

@dnut
Copy link
Owner Author

dnut commented Apr 20, 2023

I built a deb file using make deb and loaded it into basic debian repository. It successfully installs in vanilla debian stable and ubuntu 22.04. In my basic testing, this build is compatible with the dynamically linked libraries available on those systems.

I want to move forward with a "good enough" solution for v0.2.0, so I've published this release with instructions to install it in the readme, and I'm going to close this issue. I'm sure there are countless ways make deb file and the repository setup more sophisticated. You can open additional github issues for any specific concerns you would like to address.

I misunderstood something I read about setting up the PPA. It's actually a very convoluted and annoying process that relies on old and buggy software, some of which is not even available in recent version of ubuntu. I spent a couple hours working on it and kept running into issues. I personally don't see much benefit to hosting in a PPA, so I decided not to go that route at this time. I'm not opposed to it, I just couldn't justify the effort at this point. If you want to implement it yourself, please feel free to create a github issue with that specific purpose, and we can discuss it in more detail over there.

@dnut dnut closed this as completed Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants