LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-10-2023, 11:01 AM   #1
azcomm
LQ Newbie
 
Registered: Nov 2021
Distribution: Slackware
Posts: 6

Rep: Reputation: Disabled
Missing patches silently ignored in -current emacs.SlackBuilds script


While investigating building a slightly customized version of emacs (I hope to enable native compilation and imagemagick) I noticed that there are two patch files referenced from the -current SlackBuild scripts which are not present in the source area. The build runs to completion as-is, and it appears that the commands used to apply those patches will not fail when the patches are completely missing despite having '|| exit 1' statements.

Is it expected that missing patches will be ignored by SlackBuild scripts?

More details:
I am using the exact set of source files at https://mirrors.slackware.com/slackw...ource/e/emacs/, (currently) without any modifications. To build I am just downloading the files to an otherwise empty directory and executing 'emacs.SlackBuild'.

The two patch lines in the script are:
Code:
zcat $CWD/d48bb4874bc6cd3e69c7a15fc3c91cc141025c51.patch.gz | patch -p1 --verbose || exit 1

zcat $CWD/emacs.glibc-2.34.patch.gz | patch -p1 --verbose || exit 1
Breaking down those lines, the 'zcat' command returns 1 due to the file being missing, but the subsequent patch returns 0 despite being given no input. Since 'set -o pipefail' is not present only the final return value is considered from the piped portion before the '||' and the script continues merrily onward.

The following message is present in the terminal log:
Code:
gzip: <snip>/emacs/d48bb4874bc6cd3e69c7a15fc3c91cc141025c51.patch.gz: No such file or directory
Hmm...  I can't seem to find a patch in there anywhere.
 
Old 09-11-2023, 04:45 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
For native compilation see this post.
 
  


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
Emacs info missing Emacs topic peterpop Linux - Software 2 09-25-2013 08:01 AM
How can I get emacs -nw when I call emacs from a terminal but GUI emacs elsewhere? Blackened Justice Linux - Newbie 4 09-08-2011 07:57 AM
[SOLVED] Bash script for opening ktorrent silently Adol Linux - Newbie 4 06-16-2011 06:24 AM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM

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

All times are GMT -5. The time now is 07:48 AM.

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