LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2022, 10:30 AM   #1
nicholas_hubbard
LQ Newbie
 
Registered: Apr 2022
Posts: 11

Rep: Reputation: 1
Proper way to upgrade built-in package on Slackware stable release?


I am using Slackware 15.0 and I wish to upgrade my Emacs to the new 28.1 version.

The way that I have thought to do this is to download the Slackware-15.0 source tree, replace the emacs-27.2.tar.xz tarball with the new emacs-28.1.tar.xz tarball, make any necessary changes to the emacs.SlackBuild and then execute the emacs.SlackBuild.

Is this the best way to do it? What happens if the Slackware team releases an update for Emacs whether security related or to upgrade to version 28.1?

Last edited by nicholas_hubbard; 04-24-2022 at 10:36 AM. Reason: font
 
Old 04-24-2022, 11:34 AM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 452

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Welcome. That's the right idea. If you use slackpkg, you'll also want to add emacs to /etc/slackpkg/blacklist to keep the script from offering to upgrade your new package:
Code:
emacs.*
 
2 members found this post helpful.
Old 04-24-2022, 11:55 AM   #3
nicholas_hubbard
LQ Newbie
 
Registered: Apr 2022
Posts: 11

Original Poster
Rep: Reputation: 1
Ok thanks. I do use slackpkg so I will be sure to blacklist emacs.
 
Old 04-24-2022, 12:16 PM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,684

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Emacs 28.1 was added to slackware-current on April 5, so the easiest solution is the just grab the source from the slackware-current branch and build that on your 15.0 system... Easiest way is...
Code:
cd /tmp
lftp -c "open https://slackware.osuosl.org/slackware64-current/source/e/ ; mirror emacs"
cd emacs
chmod +x emacs.SlackBuild
./emacs.SlackBuild
then like pghvlaans said, make sure you blacklist the emacs package so that it doesn't get replaced by slackpkg

Last edited by Daedra; 04-24-2022 at 12:22 PM.
 
2 members found this post helpful.
Old 04-24-2022, 01:40 PM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,105

Rep: Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281
Why not just download the package from here, http://slackware.oregonstate.edu/sla...slackware64/e/

Save it to your hard drive and run, upgradepkg --reinstall --install-new
on it?
 
Old 04-25-2022, 03:29 AM   #6
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
If you're after native-compilation, keep in mind that it's not enabled on -current just yet. To try it you have to rebuild gcc, and there are some useful notes about that in this thread, and this post.
 
Old 04-25-2022, 08:52 AM   #7
nicholas_hubbard
LQ Newbie
 
Registered: Apr 2022
Posts: 11

Original Poster
Rep: Reputation: 1
Quote:
If you're after native-compilation
Yes I am after native-compilation. I realized that to do this I will need to recompile gcc for the jit support but I am not sure that is something I want to do as I if I blacklist gcc from getting updates with slackpkg then I will have to monitor gcc myself in cases of security updates, etc.

Last edited by nicholas_hubbard; 04-25-2022 at 08:53 AM.
 
Old 04-25-2022, 09:00 AM   #8
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
I recompiled gcc here but didn't bother blacklisting it. If gcc updates come (pretty rare), then it will presumably break emacs and remind me to recompile it myself
 
Old 04-25-2022, 09:58 AM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by cwizardone View Post
Why not just download the package from here, http://slackware.oregonstate.edu/sla...slackware64/e/

Save it to your hard drive and run, upgradepkg --reinstall --install-new
on it?
While it might work right now due to -current not straying very far from 15.0 right now (I'm not sure since I haven't tested it), it's usually not a good idea to mix packages from different Slackware versions. It's possible those packages might rely on newer libraries than are present in 15.0 and the package may be partially or completely broken.

The recommended way is to download the source and compile it for your own Slackware version if an existing package compiled for that Slackware version doesn't already exist.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] proper way to compile and install a package from source? cdek Slackware 14 05-04-2017 07:13 PM
[SOLVED] Self-built Slackware package "PACKAGE DESCRIPTION" shows nothing catkin Slackware 5 10-24-2010 01:39 PM
how can i upgrade my squid 2.5 stable 1 to stable 3 in RH9? debloxie Linux - Networking 0 05-12-2004 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration