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 packages #718
Comments
+1 |
1 similar comment
+1 |
This would be great |
It's always possible to provide packages for anything. The question is, will we be willing to do it? I never made a Debian package, so I don't know how it's done. I'm sure it's technically easy, but where do they get submitted and how do they get accepted? If someone does research for this, we could integrate it in our release process. |
You can build a deb package and upload it to github and/or to a PPA without needing anyone to accept anything. Submitting it to be included with Debian/Ubuntu is a nice-to-have, but it would take a while before it's available through the distros. |
Here's a StackOverflow question about how to build deb packages for go projects: http://stackoverflow.com/questions/15104089/packaging-golang-application-for-debian. Sounds like there's no fancy tool, you'd just use |
That SO answer warps my little brain a little bit. I don't even know what |
I bookmarked this tool a while ago. Maybe it'd help. |
@mislav ubuntu and debian support more than one architecture, so one pre-compiled binary will not be enough unless for some reason you want to only support x86 or x64. However cross-compiling go shouldn't be that hard. The SO answer mentioned here tells you how to generate a .deb package. This is a package file that contains the pre-compiled binaries and a list of dependencies. Once you have a .deb for each architecture and ubuntu/debian version that you wish to support you can immediately distribute it through a PPA as has been mentioned by dbarnett. I guess this answer may be helpful: http://askubuntu.com/a/71516/49920 You can then request it to be posted to the debian repositories: |
There is an ITP for a similar tool on Debian: |
+1 |
+1 |
1 similar comment
+1 |
@sometimesfood created a |
@rroblak My packaging script uses Debian's Ruby-specific packaging tool chain, so it will probably not be too useful. Still, if there is enough interest, I can look into creating a new Debian package and updating the PPA. Creating packages is not too difficult but it can be quite intimidating for a beginner (lots of tools, lots of policies). Also, to make matters worse, the Debian packaging tools and docs for golang seem to be rather new. |
Btw, just for reference: Michael Stapelberg has compiled some nice examples on how to package a simple Go application for Debian: Also, the debian/rules and debian/control files of this package seem to be a nice reference: |
Hey guys, I just created two .deb packages (amd64 and i386). I've tested amd64 and it is working fine. It's missing the completion scripts because I didn't know where to put them. So, I just don't know where I can upload them. |
@alfredocdmiranda If you do not want to host your own repository, you can either upload the sources to Launchpad and let it build packages for a PPA, or you can try http://packagecloud.io or a similar service. |
@sometimesfood thanks, I liked this packagecloud.io So, I've uploaded the files. https://packagecloud.io/alfredocdmiranda/misc |
I built a "proper" dpkg for Ubuntu and created a ppa. You should be able to install it with the following:
If there's any interest, I'd be willing to try to get these changes into the various upstreams. |
👍 |
@cpick I get this :
|
Ah, I only built packages for trusty. I'll produce some for utopic and On Thu, May 14, 2015, 17:32 th3m4ri0 notifications@github.com wrote:
|
@th3m4ri0 I've added packages for utopic, vivid, and wily to the ppa and tested it on a vivid VM. |
Working 👍 |
👍 |
Awesome, I really hope they start publishing this in a 'official' upstream ppa. Thanks for your work @cpick. |
I'd love if the CI kept this PPA up to date. In the mean time, might you be able to push a new version? Thank you. |
I've updated For my future reference this is the series of commands I run perform the update: # Having initially setup my ppa at: https://launchpad.net/~cpick/+archive/ubuntu/hub
export DEBEMAIL=chris@foobar.com
export DEBFULLNAME=Chris Pick
git clone cpick/hub
cd hub
git checkout debian
HUB_VERS="2.2.9"
git merge "v${HUB_VERS}"
dch -v "${HUB_VERS}-0ubuntu0ppa1" -u low
# Copy release notes over from https://github.com/github/hub/releases/tag/v${HUB_VERS}
dch -r "$(lsb_release -sc)"
git commit -am "Update debian changelog for ${HUB_VERS}"
git push origin debian
cat >|Vagrantfile <<EOF
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.synced_folder ".", "/home/ubuntu/src"
end
EOF
vagrant up
vagrant ssh
sudo apt-get update
sudo apt-get install -y packaging-dev equivs
cd src
mk-build-deps -irs sudo
dpkg-buildpackage -us -uc
dpkg-genchanges -S >"$(echo ../hub_*.dsc | sed -e 's/\.[^.]*$/_source.changes/')"
mkdir bin
mv ../hub_* bin/
exit
cd bin
debsign hub_*_source.changes
dput ppa:cpick/hub hub_*_source.changes
git checkout Vagrantfile |
Thank you for the PPA! There doesn't seem to be a build in it for Yakkety, but installing the package built for Xenial seems to work on my system. |
@abesto I just copied the latest packages into yakkety and zesty repos (they contain the same binaries as the ones you installed from xenial, so I don't know that there's any reason to take any further action in your case). |
Thanks for the PPA! Should it be advertised in the README? |
If maintaining a PPA is a burden we can publish the deb file to bintry or packagecloud. |
Maybe Alin Andrei (andrew@webupd8.org), who runs webupd8, would be more co-operative. His repo is widely used, and is thoughtfully put together. See his Launchpad page. |
@mslinn thanks for the effort and the pull request! I usually only update my PPA when there's a full (non-pre) release. |
Hello all, I would suggest to use PPA continual build service to automate the creation of deb packages. I already do something similar for other projects, eg, tmate, if you're ok, I could help to setup everything for this project, what I would need from hub's authors would be:
How it works?
Example: https://code.launchpad.net/~tmate.io/+recipe/tmate-stable PD: Happy Hacktoberfest, 🎉 🍻 😄 |
Any updates for this? |
Adding
This used to work a couple weeks ago on a different Ubuntu machine that has the same set up. Also adding |
@vanniktech I copied the latest packages to the artful and bionic repos and ran a quick installation test in an artful VM. |
That was super quick, thank you. Everything works now again 🚀 |
What about the Debian ITP? |
@jonstuebe thanks for giving it a whack! I've updated the |
Based partly on @mhalano's trick to get the latest version, I wrote a script to install the latest version on Ubuntu: https://gist.github.com/Taytay/4b463d3e7ebf9915107251b3abad7073 This script can be turned into a one-liner, but it's obviously a bit harder to read:
|
I think a good idea would be create a debian/ directory with all the metadata to allow to compile the application. |
I did |
@graingert super helpful and much prefer that to the (currently outdated) PPA (on 2.2.9) since I get 2.5.0 now. I had to add an alias for bash/fish for those who use both. For bash:
For fish:
|
@graingert I tried your command with a Ubuntu based docker image and got the following error
I'm not super familiar with this and I also tried to install the linuxbrew according to their website and it didn't work as well. but the response from @Taytay worked for me. |
Ubuntu in docker won't tell you what packages to install to be able to run
a command
…On Sun, 12 Aug 2018, 09:09 Simon Tse, ***@***.***> wrote:
@graingert <https://github.com/graingert> I tried your command with a
Ubuntu based docker image and got the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linuxbrew-wrapper
I'm not super familiar with this and I also tried to install the linuxbrew
according to their website and it didn't work as well. but the response
from @Taytay <https://github.com/Taytay> worked for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#718 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAZQTDIwbpRry2BCCEdTT7zW5LbgqEXMks5uP-LAgaJpZM4DCt8k>
.
|
|
seems that now is avalaible on debian https://packages.debian.org/sid/amd64/hub |
Apparently the preferred way of installing hub on Ubuntu is |
@3nuc Follow this issue for Ubuntu #2434 |
Would it be possible to provide deb packages to easily install hub on Ubuntu and Debian?
The text was updated successfully, but these errors were encountered: