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-09-2021, 11:44 AM   #1
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 15.0, OpenBSD 7.4
Posts: 310

Rep: Reputation: Disabled
mtPaint slackbuild for Slackware 14.2: source file name gets changed when downloading with firefox


mtPaint is a small fast image editor (good for indexed image files) with no additional dependencies.

The mtPaint slackbuild has a link to the source .tar.gz file as usual. The link URL is

Code:
https://github.com/wjaguar/mtPaint/archive/ff0a801/mtpaint-ff0a801413e612f74fe4c5d251e4bf36c6628013.tar.gz
For some reason, using Firefox this file downloads as...

Code:
root@foo:/home/keith/Downloads/slackbuilds/mtpaint# ls -1
README
doinst.sh
mtPaint-ff0a801413e612f74fe4c5d251e4bf36c6628013.tar.gz*
mtpaint.SlackBuild*
mtpaint.info
slack-desc
...which caused me some head scratching until I spotted what was happening because the slackbuild quits straight away with a 'file not found' error.

Downloading with wget results in the correct lowercase file name for the tar.gz file.

Any ideas why the name of the source code .tar.gz file get changed when saving with Firefox (both click the link and right click save as...? I've never been aware of any case changes when saving from Firefox previously.

PS: mtPaint 3.50 is out on sourceforge.

Last edited by keithpeter; 04-09-2021 at 11:46 AM.
 
Old 04-09-2021, 02:17 PM   #2
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
The problem lies at line 75 in the mtpaint.SlackBuild file
tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz

IF you change that to:
tar xvf $CWD/$DIRVER-$COMMIT.tar.gz

it'll work (just tested here)

Please report the issue to Petar Petrov

__________________________

If you want to build the 3.50 version:

Line 26-29:
PRGNAM=mtpaint
VERSION=${VERSION:-3.50}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

Line 75:
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2

Line 76:
cd $PRGNAM-$VERSION

Just tested, builds fine

Last edited by MDKDIO; 04-09-2021 at 02:30 PM.
 
2 members found this post helpful.
Old 04-09-2021, 03:23 PM   #3
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 15.0, OpenBSD 7.4
Posts: 310

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MDKDIO View Post
The problem lies at line 75 in the mtpaint.SlackBuild file
tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz

IF you change that to:
tar xvf $CWD/$DIRVER-$COMMIT.tar.gz

it'll work (just tested here)
Thanks for your very prompt reply and for taking the trouble to do a test compile. The version 3.5 source code archive downloaded from sourceforge has the same name when saved from Firefox or using

Code:
wget -c https://downloads.sourceforge.net/project/mtpaint/mtpaint/3.50/mtpaint-3.50.tar.bz2
and I shall email Petar Petrov to say so along with your changes to the slackbuild.

What worried me was Firefox apparently changing the name of the downloaded file in the 3.49.29 version from github so that the name of the source archive depended on the method the user used to download it. That is history now with the new version so I'm marking this solved.
 
1 members found this post helpful.
Old 04-09-2021, 03:29 PM   #4
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
thanks guys, I will fix it

-petar
 
1 members found this post helpful.
Old 04-09-2021, 03:56 PM   #5
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 15.0, OpenBSD 7.4
Posts: 310

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by solarfields View Post
thanks guys, I will fix it

-petar
Well then you can ignore the email I just sent you

Thanks.
 
1 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
Original UNIX-Like Efficient Softwares (mtpaint, mtword, mtsheet, mtcalc,...)? Xeratul Linux - Software 5 04-04-2019 12:00 PM
where is Mtpaint's preferences window? newbiesforever Linux - Software 2 01-18-2019 08:41 PM
LXer: How to make pixel art and animated GIFs with mtPaint LXer Syndicated Linux News 0 02-10-2017 04:35 PM
LXer: Damn Small Linux replaces Xpaint with MtPaint LXer Syndicated Linux News 0 12-16-2007 05:41 AM
Some mtPaint images inserted into Abiword are blank BuilderQ Linux - Software 2 10-03-2007 11:25 AM

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

All times are GMT -5. The time now is 05:12 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