Showing posts with label port. Show all posts
Showing posts with label port. Show all posts

Thursday, October 14, 2021

emacs Universal build Intel x86_64 and arm64

emacs Intel, arm build

If you just want to install gnu emacs for macos and get going Emacs for MacOSX is the place to go.  

I did the builds on my early-2015 mbp with Big Sur 11.6.
  • read https://github.com/caldwell/build-emacs
  • download build scripts
 
I didn't install xcode.
xcode-select --install (installs command line tools)

install macports
sudo port install xz
./fetch-emacs-from-ftp -v ftp://ftp.gnu.org/gnu/emacs/
 
# port install xz
# if you need to convert xz to bz2
# xzcat -c emacs-27.2.tar.xz | bzip2 > emacs-27.2.tar.bz2

./build-emacs-from-tar -v emacs-27.2.tar.bz2 release 

Success:
Built Emacs-27.2-11.6-x86_64.tar.bz2, Emacs-27.2-11.6-x86_64-extra-source.tar

  • CODESIGN crash
Then I reproduced those same steps on an m1 mac mini with xcode13 installed and signed it:
  • ./combine-and-package -v --sign "Common Name" Emacs-27.2-11.6-arm64.tar.bz2 
    • replace "Common Name" with the name in the keychain access login cert.
  • see: code signing issue #103  
  • Success!  Thanks Emacs for MacOSX!
TODO:
Go back to the MBP and try the codesign step. 


 

 

 




 

Monday, August 23, 2021

macports gramps geneology build Universal binary

 

Installing macports pkg manager for macos 11.5.2


  • Install port 
  • edit macports.conf; uncomment the universal_archs line

sudo nano /opt/local/etc/macports/macports.conf

sudo port install gramps +universal

try this instead 

sudo port -s install gramps +universal 

result:

--->  Configuring m4

Error: Failed to configure m4: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19/config.log

Error: Failed to configure m4: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gramps failed

 

known issue

#62991    m4 @1.4.19+universal: configure: error:
 
sudo port clean m4 

sudo port install gramps

result:


--->  Configuring db53

Error: Failed to configure db53: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/work/db-5.3.28/build_unix/config.log

Error: Failed to configure db53: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gramps failed

--->  Some of the ports you installed have notes:

  gawk has the following notes:

    readline support has been removed from gawk. If you need to run gawk interactively, install rlwrap:

    

    sudo port install rlwrap

    

    and run gawk using rlwrap:

    

    rlwrap gawk ...


db53 report filed

#63400    Error: Processing of port db53 failed


Check:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19/config.log


$xcodebuild -showsdks




Nice Table of Xcode and macos versions

https://developer.apple.com/support/xcode/




Update needed after OS upgrade


sudo xcode-select --install



Big Sur problem builds

broken ports