Skip to content

maxima: dont default sbcl on aarch64, dont makedepends on emacs#43311

Closed
tornaria wants to merge 1 commit into
void-linux:masterfrom
tornaria:maxima-aarch64
Closed

maxima: dont default sbcl on aarch64, dont makedepends on emacs#43311
tornaria wants to merge 1 commit into
void-linux:masterfrom
tornaria:maxima-aarch64

Conversation

@tornaria

@tornaria tornaria commented Apr 6, 2023

Copy link
Copy Markdown
Contributor

@dkwo: try this.

  • Default to ~sbcl for aarch64 since you say it's broken
  • Remove emacs from hostmakedepends; it seems the emacs support files don't really need emacs.

Let's see how this works. Note that your maxima package will not contain any binary, you will have to manually install maxima-ecl. If this is a good setup we can figure out how to address this. Not a problem for sagemath which depends on maxima-ecl.

For cross compiling, we would need to do something more fancy, i.e. an ecl binary that can cross-compile for aarch64. This is in principle possible as ecl compiles itself this way using the host ecl.

@dkwo

dkwo commented Apr 7, 2023

Copy link
Copy Markdown
Contributor

hmm, that's not enough: i also have to remove the package maxima-emacs, otherwise emacs is in rundepends for both maxima and maxima-ecl. can it be made conditional on arch? (i only care about using maxima in sage btw :)

@tornaria

tornaria commented Apr 7, 2023

Copy link
Copy Markdown
Contributor Author

hmm, that's not enough: i also have to remove the package maxima-emacs, otherwise emacs is in rundepends for both maxima and maxima-ecl. can it be made conditional on arch? (i only care about using maxima in sage btw :)

That's weird, nothing depends on maxima-emacs afaict. That's the point of splitting this as a subpackage, that you don't have to pull emacs as a dependency.

I don't have maxima-emacs installed in my box and nothing pulls in emacs.

@tornaria

tornaria commented Apr 7, 2023

Copy link
Copy Markdown
Contributor Author

🤦‍♂️ sorry, now I see what you mean. Because we are building maxima-emacs and this rundepends on emacs, then xbps-src wants to build emacs anyway...

So yeah, the only way out of this is to make maxima-emacs an optional build.

As a workaround, you can use -I with xbps-src, then it should not try to build emacs. But it's better to add emacs as an option.

As an immediate workaround, try removing maxima-emacs from the last line of the template.

@tornaria

tornaria commented Apr 7, 2023

Copy link
Copy Markdown
Contributor Author

Also: since emacs is not required anyway to build the emacs support, we might as well ship the emacs files in the main maxima package and get rid of the maxima-emacs subpkg and the emacs dependency.

@dkwo

dkwo commented Apr 7, 2023

Copy link
Copy Markdown
Contributor

immediate workarounds are fine. i agree we should get rid of/make optional emacs subpk and dep.

@dkwo

dkwo commented Apr 27, 2023

Copy link
Copy Markdown
Contributor

Also: since emacs is not required anyway to build the emacs support, we might as well ship the emacs files in the main maxima package and get rid of the maxima-emacs subpkg and the emacs dependency.

if you implement that, I'm happy to test it here.

@dkwo dkwo mentioned this pull request Apr 27, 2023
@dkwo

dkwo commented May 10, 2023

Copy link
Copy Markdown
Contributor

@tornaria Should we include this emacs change in the other maxima update?

@tornaria

Copy link
Copy Markdown
Contributor Author

@tornaria Should we include this emacs change in the other maxima update?

Thanks for the reminder, yes we should. I'll do it later.

@tornaria

Copy link
Copy Markdown
Contributor Author

I've included these changes in the update to 5.46.0 that is part of #43659 .

@tornaria tornaria closed this May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants