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
WIP: Add emacs 26.1 #3352
WIP: Add emacs 26.1 #3352
Conversation
ping :) |
After it fails, did you try to find |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing. My understanding is that prefix
value is inconsistent in configure args
I applied all the changes you asked for. Sadly it didn't resolve my problems. FWIW, it appears that emacs is maybe using a non-standard method of determining where to look for ncurses, but I've been unable to locate any instructions on libncurses specifically regarding emacs builds. I've picked apart the I've reached out for help on the mailing list so maybe someone there will be able to help me out. |
Someone got back to me on the emacs list. They think this has a somewhat dubious chance of success unfortunately. But if there's anything in their message that you can speak to please do. :) |
Got some news! I was able to get the temacs step to run by hand using the advice that Noam gave me on the mailing list. Can you give me any ideas how I could work this into the spksrc build process?
|
This also made it all the way to the stripping step.
|
cross/emacs/PLIST
Outdated
@@ -0,0 +1 @@ | |||
bin:bin/emacs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should include here all files required to be packaged with proper "type": https://github.com/SynoCommunity/spksrc/wiki/PLIST-files
So "lnk" has to be used for bin/emacs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will give that a try. Any ideas on the LD_LIBRARY_PATH
problem?
With that change in place I was able to run the following without error on a clean tree.
I'm unsure exactly what I need to do to verify that emacs can launch cleanly though, and I'm still not sure how to configure Still: progress! Huzzah! |
You have to include required libraries or other resources in PLIST file so everything is embedded in package.
It is expected you cannot run binary "as is" because dynamic linkage expects some specific location you may inspect with |
I added
to the changeset and ran:
and failed again at the And again,
worked. Any thoughts on how to inform spksrc that |
Ping. :) |
1 similar comment
Ping. :) |
Any new thoughts here? |
@timvisher Just looked into this, trying to help. Unfortunately, I've not been able to find a quick fix either. This does not mean anything. Others might be able to help you. In any case, I found some insights that cross-compilation of |
@m4tt075 Thanks for trying to help! In this instance I have basically no interest in emacs as an editor and much interest in emacs as an IRC client. :)
|
@timvisher Ah, ok. Interesting. And |
@m4tt075 Yeah. I just really like my emacs set up. :) |
@timvisher Ahhh, that is YOU! LOL |
@timvisher Please configure your Git client - your commits' author is "vagrant@debian-8.10-amd64" at the moment |
I have found out what is wrong. After emacs binary is cross-compiled, build process goes on compiling lisp thanks to temacs binary - which may not be runnable on compile system (if for another architecture like ARM). |
References:
So there is chance a package can be created "easily" for x64 platforms but other architecture would require to tweak Emacs build process. |
Even try to go further building x64 for amd64 only adding
Because building in Docker context if I guess right. |
Problems -------- - Though I am depending on ncurses, I get an [error during the build][]. Some variable appears to not be being set to allow emacs to know where to find libncurses.so.6 ``` ./temacs --batch --load loadup bootstrap ./temacs: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory ``` This feels like something I'm doing wrong here rather than something that I'm not understanding about the emacs build process.
- update emacs - include all binaries in PLIST - use SPK_COMMANDS variable (avoid service-setup.sh) - use cross/ncursesw to fix error with ncurses - TODO: build tools for host to fix build for cross compiled packages
closing due to lack of support for cross compilation (see https://stackoverflow.com/questions/46746976/how-to-cross-compile-emacs-for-ios) |
Problems
Though I am depending on ncurses, I get an error during the build.
Some variable appears to not be being set to allow emacs to know where
to find libncurses.so.6
This feels like something I'm doing wrong here rather than something
that I'm not understanding about the emacs build process.
Motivation: Adding emacs 26.1, need help with
cross-cc
tooling.Checklist
all-supported
completed successfully