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

configure: Make display of package versions less confusing #34193

Closed
mkoeppe opened this issue Jul 16, 2022 · 29 comments
Closed

configure: Make display of package versions less confusing #34193

mkoeppe opened this issue Jul 16, 2022 · 29 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Jul 16, 2022

When we don't install the SPKG, then its exact version is not relevant.

We change the output from

gc-8.0.4:     no suitable system package; standard, will be installed as an SPKG
gcc-11.3.0:   using system package; SPKG will not be installed

to

gc:     no suitable system package; standard, SPKG version 8.0.4 will be installed
gcc:    using system package; SPKG will not be installed

Component: build: configure

Author: Matthias Koeppe

Branch: 7bda1cb

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/34193

@mkoeppe mkoeppe added this to the sage-9.7 milestone Jul 16, 2022
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

Commit: 3f8965d

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

New commits:

3f8965dm4/sage_spkg_collect.m4: Do not show SPKG versions when system package is used

@jhpalmieri
Copy link
Member

comment:3

Looks good to me. A few questions:

  • The number 32 is hard-coded in the formatting string. How much work would it be to determine that from the list of all packages? (This is not really worth spending time on, though.)

  • With or without this branch: pip packages are treated differently than others if I run this after building Sage:

charset_normalizer:             standard, SPKG version 2.0.4 will be installed
cliquer:                        already installed as an SPKG

(At least I'm guessing it's pip vs. other types.) Should the cliquer message say "already installed version $SPKG_VERSION as an SPKG"? Should they both say that?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Changed commit from 3f8965d to 1b61561

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

1b61561m4/sage_spkg_collect.m4: Display installed package version

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

comment:5

Replying to @jhpalmieri:

  • The number 32 is hard-coded in the formatting string. How much work would it be to determine that from the list of all packages? (This is not really worth spending time on, though.)

Not sure that we would want to automatically change it if a package with a longer name comes along

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

comment:6

Replying to @jhpalmieri:

  • With or without this branch: pip packages are treated differently than others if I run this after building Sage:
charset_normalizer:             standard, SPKG version 2.0.4 will be installed
cliquer:                        already installed as an SPKG

(At least I'm guessing it's pip vs. other types.)

This version of the message is actually for packages with an spkg-configure.m4 that are installed already (and hence the test for a system package is not run at all).

Should the cliquer message say "already installed version $SPKG_VERSION as an SPKG"? Should they both say that?

I've made a change in this direction, but I guess it could be done more generally

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

215fbbcm4/sage_spkg_collect.m4: Omit 'version none' in messages
8273456m4/sage_spkg_collect.m4: Show installed versions / upgrade information

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Changed commit from 1b61561 to 8273456

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

comment:8

Now it knows how to talk about package upgrades/downgrades

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Changed commit from 8273456 to b1a4aac

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

9574e8cm4/sage_spkg_collect.m4: Handle multiple installation records better
b1a4aacbuild/make/Makefile.in: For script packages, remove old installation records

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

515a785m4/sage_spkg_collect.m4: Update comment regarding multiple installation records of script packages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Changed commit from b1a4aac to 515a785

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 18, 2022

comment:11

Ready for testing

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

46a0870m4/sage_spkg_collect.m4: Actually find installation records in SAGE_VENV when that is set implicitly

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 18, 2022

Changed commit from 515a785 to 46a0870

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 19, 2022

Changed commit from 46a0870 to 7bda1cb

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 19, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

7bda1cbm4/sage_spkg_collect.m4: Restore uninstall message

@jhpalmieri
Copy link
Member

comment:16

This looks good to me.

This is not new to this ticket, and not particularly relevant to the changes here, but I don't quite see how uninstall_message works. When will it be set to "use "$srcdir/configure --disable-SPKG_NAME" to uninstall" — it seems as though this would be most useful for optional/experimental packages.

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 19, 2022

comment:17

The uninstall message is only issued for packages with spkg-configure.m4 for which currently an SPKG is installed. The uninstallation command is particularly useful for these packages because after uninstallation, configure will test again whether the system package can be used.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 19, 2022

comment:18

Thanks for the review!

@vbraun
Copy link
Member

vbraun commented Aug 4, 2022

@slel
Copy link
Member

slel commented Aug 8, 2022

Changed commit from 7bda1cb to none

@slel

This comment has been minimized.

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

4 participants