cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

sci-mathematics/singular[emacs] Emacs version too low #633

Closed Alessandro-Barbieri closed 3 years ago

Alessandro-Barbieri commented 3 years ago
 * Messages for package sci-mathematics/singular-4.1.1_p2-r3:                                                          
 * Log file: /var/log/portage/build/sci-mathematics/singular-4.1.1_p2-r3:20210424-214658.log                           

 * ERROR: sci-mathematics/singular-4.1.1_p2-r3::sage-on-gentoo failed (setup phase):                                   
 *   Emacs version too low                                                                                             
 *                                                                                                                     
 * Call stack:                                                                                                         
 *                     ebuild.sh, line 125:  Called pkg_setup                                                          
 *   singular-4.1.1_p2-r3.ebuild, line  50:  Called die                                                                
 * The specific snippet of code:                                                                                                                                                                                                              
 *              elisp-need-emacs 22 || die "Emacs version too low"                                                     
 * 
 * If you need support, post the output of `emerge --info '=sci-mathematics/singular-4.1.1_p2-r3::sage-on-gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-mathematics/singular-4.1.1_p2-r3::sage-on-gentoo'`.
 * The complete build log is located at '/var/log/portage/build/sci-mathematics/singular-4.1.1_p2-r3:20210424-214658.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-mathematics/singular-4.1.1_p2-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/singular-4.1.1_p2-r3/temp/die.env'.
 * Working directory: '/var/tmp/portage/sci-mathematics/singular-4.1.1_p2-r3/homedir'
 * S: '/var/tmp/portage/sci-mathematics/singular-4.1.1_p2-r3/work/singular-4.1.1'
kiwifb commented 3 years ago

You have emacs 18 I presume. I honestly thought it had left portage by now. Anyway, I did the right things by the eclass as far as I can see, although there is a small discrepancy in version number that should be corrected. As far as I can see, for things to get to this stage you need to have emacs-18 and at least one emacs-23+ to be installed and emacs-18 to be selected as your default emacs. The eclass does exactly what it says it does on the manpage https://devmanual.gentoo.org/eclass-reference/elisp-common.eclass/index.html do you want another wording for the message?

Alessandro-Barbieri commented 3 years ago

I only have emacs 27 installed. I've re-selected emacs to the only version I have and now I'm re-emerging singular

kiwifb commented 3 years ago

Looking at the manpage again, it seems the eclass shifted since I wrote the ebuild. So some migration is needed. Your problem is likely due to the change in the eclass. Michael fixed it when he migrated the last version to the main tree but didn't warn me. Can you quickly check that 4.2.0_p1 from the main tree install correctly for you?

Alessandro-Barbieri commented 3 years ago

singular[emacs]::gentoo installed fine

kiwifb commented 3 years ago

OK, I just backported the main tree fix. It should work once you synced the overlay.

Alessandro-Barbieri commented 3 years ago

Thanks