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

A plain tar.gz archive should be made available for downloading and packaging for Linux/*NIX #4842

Open
morancj opened this issue Jan 15, 2020 · 7 comments · Fixed by #6352
Labels
feature-request A feature should be added or improved. installation p2 This is a standard priority issue v2

Comments

@morancj
Copy link

morancj commented Jan 15, 2020

Please make a (signed, with checksums) .tar.gz or similar archive available for Linux/*NIX distributions instead of (or, at least, as well as) the command-line installer. I have several reasons for requesting this:

  1. Maintenance of an installation script is error-prone and time-consuming.
  2. Many distributions (or O/S) have different ways of packaging software for clean installation and removal. Package maintainers are the experts.
  3. It avoids trouble with sudo pip, clobbering PyPI with download requests, large Docker images and the associated complexity of passing through user data from the host. A Docker image I built FROM ubuntu:18.04 was 185MB. The Arch package is 69MB.
  4. Predicatable version installation. For example, the download URL returns 2.0.0dev3: a few days ago, it was giving 2.0.0dev2.
  5. A clear view of dependencies: for example, the Ubuntu image mentioned previously needs groff and less persistently installed in order to use the help commands.

As an example, when packaging your code for Arch Linux, I've had to run operations like this:

package() {
  ./aws/install -i "${pkgdir}/opt/${pkgname}" -b "${pkgdir}/tmp"
  rm -fr "${pkgdir}/tmp"
  cd "${pkgdir}"
  mkdir -p "${pkgdir}/usr/bin"
  ln -s "/opt/${pkgname}/v2/current/bin/aws2" "${pkgdir}/usr/bin/aws2"
  ln -s "/opt/${pkgname}/v2/current/bin/aws2_completer" "${pkgdir}/usr/bin/aws2_completer"
  cd "${pkgdir}/opt/aws-cli-v2/v2"
  rm -fr "${pkgdir}/opt/aws-cli-v2/v2/current"
  ln -s "${pkgver}" "${pkgdir}/opt/aws-cli-v2/v2/current"
}

You can see how I have to remove your symlinks and re-create them in the fakeroot to get correct paths.

Please see similar arguments e.g. here and various other places around the WWW.

@morancj
Copy link
Author

morancj commented Jan 15, 2020

Largely for the purpose of illustrating this issue, I've put my Arch package source (forked from the AUR) and Dockerfile up on GitHub here.

@morancj
Copy link
Author

morancj commented Jan 15, 2020

This also references #4660, and relates to #3553, #4278, #4175, #4926, #4942.

@kyleknap
Copy link
Contributor

Marking as a feature request. Creating a source distribution that will allow users to build the CLI v2 themselves is something want to do.

@kdaily
Copy link
Member

kdaily commented Aug 26, 2021

@morancj,

There is now a proposal for a source distribution of the AWS CLI v2 that should satisfy use cases outlined here:

#6352

We'd appreciate any feedback you have on it. Thanks!

@kdaily kdaily added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Oct 20, 2021
@github-actions
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Oct 20, 2021
@kdaily kdaily removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Oct 20, 2021
@kdaily kdaily linked a pull request Oct 20, 2021 that will close this issue
@morancj
Copy link
Author

morancj commented Oct 22, 2021

Thanks! I hit a couple of build problems, probably some missing dependencies in my chroot. In principle, this is way more than I asked for or expected, thanks for all the hard work @kyleknap & the ping @kdaily!

@FearlessHyena
Copy link

Hi just wanted to check if there were plans of releasing a tar.gz (or Linux standard) version of the archive as mentioned in #6339 as well

@tim-finnigan tim-finnigan added the p2 This is a standard priority issue label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. installation p2 This is a standard priority issue v2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants