[Packages] Building with SXEmacs
Steve Youngs <[email protected]> Sat, 11 Jul 2015 11:24:11 +1000
| Newsgroups | gmane.emacs.xemacs.patches |
|---|---|
| Organization | The SXEmacs Project |
| Message-ID | <[email protected]> |
--===============1715262427== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain The patch from the other day to suppress/nuke apel's alist.el inspired me to try to build all of the XEmacs packages out of mercurial with SXEmacs. The experience ended up being a good one resulting in a couple of bugs being fixed in SXEmacs. Turns out that building packages is pretty good for shaking loose bugs you didn't know you had. :-) What follows is a small patch to Local.rules.template, and XEmacs.rules that makes building packages with SXEmacs easier and turns on the 21.5 features we have. The ChangeLog is diffed with no context for easier patching. --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff -r 71eed9d4d192 ChangeLog =2D-- a/ChangeLog Sun May 17 11:59:02 2015 +0200 +++ b/ChangeLog Sat Jul 11 11:17:04 2015 +1000 @@ -1,0 +1,8 @@ +2015-07-10 Steve Youngs <[email protected]> + + * XEmacs.rules: Use BUILD_WITH_SXEMACS to let SXEmacs build + custom-defines and do auto-autoloads the same way as XEmacs 21.5. + + * Local.rules.template (BUILD_WITH_SXEMACS): New, default unset. + Allows building packages with SXEmacs. + diff -r 71eed9d4d192 Local.rules.template =2D-- a/Local.rules.template Sun May 17 11:59:02 2015 +0200 +++ b/Local.rules.template Sat Jul 11 11:17:20 2015 +1000 @@ -8,6 +8,9 @@ =20 # Path to XEmacs to use for byte compilation. # +# Using SXEmacs is also possible, though not supported by the XEmacs +# maintainers. See 'BUILD_WITH_SXEMACS' below. +# # (Double-quote path under native MS Windows if there are embedded spaces.) XEMACS_BINARY =3D xemacs =20 @@ -19,6 +22,12 @@ # so I have defaulted this to 'off' until he does. SY. XEMACS_21_5 =3D=20 =20 +## SXEmacs +# SXEmacs has _some_ 21.5 features, but not quite enough to build all +# the packages with XEMACS_21_5 set, so when building with SXEmacs, +# set BUILD_WITH_SXEMACS to 't' and leave XEMACS_21_5 unset. +BUILD_WITH_SXEMACS =3D + # Should we build the Mule packages? Set to 't' if you do not have/want M= ule. # BUILD_WITHOUT_MULE =3D diff -r 71eed9d4d192 XEmacs.rules =2D-- a/XEmacs.rules Sun May 17 11:59:02 2015 +0200 +++ b/XEmacs.rules Sat Jul 11 11:17:20 2015 +1000 @@ -115,7 +115,7 @@ # Set this in the package Makefile if necessary (BEFORE including this fil= e) EARLY_GENERATED_LISP :=3D $(AUTOLOAD_PATH)/auto-autoloads.el \ $(AUTOLOAD_PATH)/custom-load.el $(EARLY_GENERATED_LISP) =2Difeq ($(XEMACS_21_5),t) +ifeq ($(or $(XEMACS_21_5),$(BUILD_WITH_SXEMACS)),t) EARLY_GENERATED_LISP +=3D $(AUTOLOAD_PATH)/custom-defines.el endif =20 @@ -490,7 +490,7 @@ $(AUTOLOAD_PATH)/auto-autoloads.el :: $(AUTOLOAD_PATH)/_pkg.el rm -f $(AUTOLOAD_PATH)/auto-autoloads.el =20 =2Difeq ($(XEMACS_21_5),t) +ifeq ($(or $(XEMACS_21_5),$(BUILD_WITH_SXEMACS)),t) $(AUTOLOAD_PATH)/auto-autoloads.el :: $(GENERATED_ELC_DEPENDENCIES) $(XEMACS_BATCH_CLEAN) \ -eval '(setq load-path (cons "$(XEMACS_PACKAGES_BASE)/xemacs-packages/xem= acs-base" load-path)))' \ --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 |---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---| | SXEmacs - The only _______ you'll ever need. | | Fill in the blank, yes, it's THAT good! | |------------------------------------<[email protected]>---| --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: The SXEmacs Project <http://www.sxemacs.org/> Comment: EMchat - The SXEmacs IM client <http://www.emchat.org/> Comment: SYcom <http://www.steveyoungs.com/> Comment: the Reading Lamp <http://www.thereadinglamp.net/> iEYEARECAAYFAlWgcDsACgkQHSfbS6lLMAPeYACgrARF2fVv+BabregO3GUshzsa hdgAnjVNj5llZA6ZYeYwiiFYz5OPXf2Q =TJdN -----END PGP SIGNATURE----- --==-=-=-- --===============1715262427== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XEmacs-Patches mailing list [email protected] http://lists.xemacs.org/mailman/listinfo/xemacs-patches --===============1715262427==--