LinuxQuestions.org
Review your favorite Linux distribution.
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-02-2020, 04:52 PM   #4741
kaott
Member
 
Registered: Mar 2020
Posts: 63

Rep: Reputation: Disabled
man lsof broken on -current, fix included


Updated my -current installation and looked through the changelog, but didn't see this fixed. The patch to the SlackBuild below should resolve the problem. Reposting for visibility, as I am guessing the first post was missed.

Quote:
Originally Posted by kaott View Post
On -current running:
Quote:
man lsof
returns the error:
Quote:
man: can't open /usr/man/./version: No such file or directory
No manual entry for lsof
---snipped---
Code:
--- lsof.SlackBuild     2020-03-28 14:44:30.654731663 -0500
+++ lsof.SlackBuild.new 2020-03-28 15:36:31.697136682 -0500
@@ -70,6 +70,10 @@
 # No, NOT suid.
 chmod 755 $PKG/usr/bin/lsof
 mkdir -p $PKG/usr/man/man8
+sed -i -e "s/^\.so \.\/version/.ds VN $VERSION/" Lsof.8
+ed -s Lsof.8 <<< '/\.so \.\/00DIALECTS/d
+-1r ./00DIALECTS
+wq'
 cat Lsof.8 | gzip -9c > $PKG/usr/man/man8/lsof.8.gz
 mkdir -p $PKG/usr/doc/lsof-$VERSION
 cp -a 00* $PKG/usr/doc/lsof-$VERSION
 
1 members found this post helpful.
Old 04-02-2020, 05:10 PM   #4742
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 322

Rep: Reputation: Disabled
Quote:
Originally Posted by kaott View Post
Updated my -current installation and looked through the changelog, but didn't see this fixed. The patch to the SlackBuild below should resolve the problem. Reposting for visibility, as I am guessing the first post was missed.
I'm running current from today and I'm not having this problem.
 
Old 04-02-2020, 06:04 PM   #4743
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
This is a plea to add the original sc back to Slackware.

I noticed that sc was replaced by sc-im in 2018, as I was looking for the sc
source code. I was a bit sad to see the original and venerable sc had
disappeared. Sc-im may call itself `sc improved', but it is not comparable to
`vi improved', IMHO anyway.

About sc-im crashes:

I used sc-im for a year or so in 14.2 before switching back to the
original sc. The main reason I stopped using sc-im is that it
crashes/seqfaults so damned often. It is so bad that I made a
ctrl-x keybind to :write! files before doing any kind of complex
operation (i.e. more than just manually typing text or numbers in),
but it mostly crashed when I used that too(!)

When I say `often', I mean perhaps once in every 5 operations that
involve moving or copying data around, or copying cells containing
evaluations or functions. This makes it pretty unusable.

I did save some logs to report the issue on github, but never got
around to it, as I found that plain sc was rock solid, so I deleted
them. I didn't consider that sc-im was important or popular enough
to spend time on it, but I can probably recreate some and report it
if necessary.

Other reasons:

Other than stability, I guess it's mostly my opinions on why sc is
better than sc-im, but I'll list a few anyway.

I haven't looked at sc-im's source code, so I don't know exactly how
much of original sc was used, but it seems some features were removed
to make sc-im. There was no reply from the dev when I asked on
github about perhaps adding some kind of macro support, not realising
that he had probably removed them in the first place. sc also
supports vi-like abbreviations, although I haven't yet figured out
how to use them (which is why I wanted to look through the source in
the first place.)

The main reason for using sc-im is for the `undo' feature, but it
doesn't work on *all* operations - there is still no way to get back
to the original state a file was opened in other than reopening it
and discarding all edits. sc-im's visual mode is nice too, but sc
also supports visual selection with any kind of `range' operations.

I just tried doing a *very* quick and dirty comparison of @()
commands with the help and man pages for both applications:

egrep '^ @[a-z]+\(' /usr/share/sc-im/sc-im_help | wc -l
61

man sc | egrep -o '^ @[a-z]+\([^)]+\)' | wc -l
82

Other things like exiting sc by pressing `q' no longer work in sc-im,
but there *is* much better colour and keybind support, although it
unfortunately makes the files slightly incompatible with the original
sc. sc also comes with `psc', which is used to convert other file
types to sc format, and works great on CSV files, so sc-im's CSV and
TSV importer isn't really that special.

Well I hope that this makes a convincing argument in support of sc.

Last edited by dive; 04-02-2020 at 06:08 PM. Reason: z?
 
4 members found this post helpful.
Old 04-02-2020, 06:34 PM   #4744
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by dive View Post
This is a plea to add the original sc back to Slackware.

I noticed that sc was replaced by sc-im in 2018, as I was looking for the sc
source code. I was a bit sad to see the original and venerable sc had
disappeared. Sc-im may call itself `sc improved', but it is not comparable to
`vi improved', IMHO anyway.
Just two remarks:
1. the "original" sc isn't all that original and was abandoned once before, taken over by a new maintainer, but there hasn't been done anything by him (or anyone else) since about two years. There is even an issue for a new maintainer:github.com/n-t-roff/sc/issues/18
Quote:
This is a much modified version of a public domain spread sheet originally authored by James Gosling, and subsequently modified and posted to USENET by Mark Weiser under the name vc. The program was subsequently renamed sc, and further modified by numerous contributors, Jeff Buhrt of Proslink, Inc. and Robert Bond of Sequent, prominent among them.
2. sc-im is not "improved" but "improvised"; according to its github page
Quote:
SC-IM - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Its last release was in 2017 too, although there are 119 commits to that version, the last being on Feb 10, 2020 (according to that same github). But that hasn't resulted into a new release (yet?).

Last edited by ehartman; 04-03-2020 at 02:24 AM. Reason: small typing error
 
1 members found this post helpful.
Old 04-02-2020, 06:52 PM   #4745
kaott
Member
 
Registered: Mar 2020
Posts: 63

Rep: Reputation: Disabled
Quote:
Originally Posted by alex14641 View Post
I'm running current from today and I'm not having this problem.
Interesting... I could swear I was still having the problem even if I gave man the full path the page, but now that seems to be working. That is specifically running works fine:
Quote:
man /usr/man/man8/lsof.8.gz

However, just invoking
Quote:
man lsof
exits with code 16, which is:
Quote:
16 At least one of the pages/files/keywords didn't exist or wasn't matched.
And double checking the man page shows that is still requesting the version file:
Quote:
$ zcat /usr/man/man8/lsof.8.gz | head -2
.so ./version
.TH LSOF 8 Revision-\*(VN
Running man and less on the extracted page in my home directory works. Under man no errors are reported, but when using less it reports the errors that my patch is supposed to fix:
Quote:
$ less lsof.8
troff: lsof.8:1: can't open './version': No such file or directory
troff: lsof.8:77: can't open './00DIALECTS': No such file or directory
Can anyone else verify if this is a problem, or lend some light on what is busted in my configuration? I haven't changed the configuration relating to the man pages as far as I know (e.g. no environment variables for man are set, mandb cron job is still running daily, etc.)
 
Old 04-02-2020, 06:59 PM   #4746
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469
Quote:
Originally Posted by kaott View Post
Can anyone else verify if this is a problem, or lend some light on what is busted in my configuration? I haven't changed the configuration relating to the man pages as far as I know (e.g. no environment variables for man are set, mandb cron job is still running daily, etc.)
I can verify. Thanks for the report.
 
2 members found this post helpful.
Old 04-02-2020, 08:56 PM   #4747
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
Just two remarks:
1. the "original" sc isn't all that original and was abondoned once before, taken over by a new maintainer, but there hasn't been done anything by him (or anyone else) since about two years. There is even an issue for a new maintainer:github.com/n-t-roff/sc/issues/18

2. sc-im is not "improved" but "improvised"; according to its github page

Its last release was in 2017 too, although there are 119 commits to that version, the last being on Feb 10, 2020 (according to that same github). But that hasn't resulted into a new release (yet?).
I know the history of sc, but still it is rock solid and has never crashed on me once.

As for the `improved', the first time I came across it that's how it was named. Just a quick search on ddg found https://pkgsrc.se/math/sc-im

I realise that sc-im is likely more active than sc, but it's been unusable with all the random crashing. But I'm not asking that it be removed; I'm asking if sc can be reinstated.
 
2 members found this post helpful.
Old 04-03-2020, 02:27 AM   #4748
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by dive View Post
But I'm not asking that it be removed; I'm asking if sc can be reinstated.
As it doesn't change anymore, you can just install it from the 14.2 tree. It effectively has become "pasture" now - no new versions anymore.
 
Old 04-03-2020, 04:04 AM   #4749
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
As it doesn't change anymore, you can just install it from the 14.2 tree. It effectively has become "pasture" now - no new versions anymore.
Continuing to use a package from an older release isn't the way we do things

If this request goes nowhere then I'll probably maintain it on SBo myself when 15.0 is released.

Actually, I rescind what I just said about keeping sc-im, because I care that Slackware's rock solid stability is affected. I'm sure that you would think it a problem too, if something you were using was continually crashing all the time

I don't know why you have such animosity towards the idea. AFIAK this is a thread for requests, not running arguments. I made a simple request and highlighted a problem for Pat and the team.

Last edited by dive; 04-03-2020 at 04:38 AM. Reason: Trying to be a teacher, not a preacher - Procol Harum :)
 
1 members found this post helpful.
Old 04-03-2020, 09:42 AM   #4750
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,104

Rep: Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279Reputation: 7279
Mesa 20.0.4 has been released to fix a regression.
https://www.mesa3d.org/

Quote:
News
April 3, 2020
Mesa 20.0.4 is released. This is an emergency release which reverts a serious SPIR-V regression in the 20.0.3 release. Users of 20.0.3 are recommended to upgrade immediately.

Last edited by cwizardone; 04-03-2020 at 10:09 AM.
 
2 members found this post helpful.
Old 04-03-2020, 10:23 AM   #4751
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by dive View Post
I don't know why you have such animosity towards the idea. AFIAK this is a thread for requests, not running arguments.
I don't have any animosity towards the idea (nor to you).
Just wanted to point out that REadding an obsolete package isn't really the way forward in a testing pre-release like -current. Probably sc-im should be removed too, according to you it really doesn't seem an improvement.
 
Old 04-03-2020, 12:13 PM   #4752
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 dive View Post
Actually, I rescind what I just said about keeping sc-im, because I care that Slackware's rock solid stability is affected. I'm sure that you would think it a problem too, if something you were using was continually crashing all the time
I don't use sc at all, but have you reached out to the developers with crash reports? It may be possible that they aren't seeing it there and they need to have reports from users to try and fix it.
 
Old 04-03-2020, 12:39 PM   #4753
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
I don't use sc at all, but have you reached out to the developers with crash reports? It may be possible that they aren't seeing it there and they need to have reports from users to try and fix it.
I will get some crash logs soon and let the guy know.
 
Old 04-03-2020, 07:25 PM   #4754
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
As XFCE 4.14 will be coming and GTK3 already has, I'd love to see webkitgtk3 added to Slackware 15.0. There are more and more packages based on it and it seems like the SBo version constantly needs to be recompiled in -current for whatever reason if deciding to use it. As qtwebkit was added for qt5, only seems fair.. and worthwhile to incorporate it. The compile time is also atrocious lol..

(and hi `dive`! long time )
 
1 members found this post helpful.
Old 04-04-2020, 04:11 AM   #4755
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Thanks Pat , and Hey phantom_cyph

To be fair, a quick check shows there have been some fixes for segfaults in
sc-im's git log since the last release. These ones are since I last used it:

Code:
git log | grep -iB2 segfault | grep -ie segfault -e date:

Date:   Thu Feb 6 17:08:04 2020 +0100
    fix segfault
Date:   Thu Feb 6 02:04:32 2020 +0100
    fix segfault, do not load_header when option nocurses
    Fix segfault when fcopy'ing with no selection while on first column
Release/tag dates:

Code:
git tag -l --sort=-creatordate --format='%(creatordate:short)|%(refname:short)'

2017-12-13|v0.7.0
2017-04-19|v0.6.0
2017-02-19|v0.5.0
2016-11-30|v0.4.0
2016-05-06|v0.3.0
2016-04-06|v0.2.2
2015-09-03|v0.2.1
2015-04-18|v0.1.9
2015-03-01|v0.1.8

Last edited by dive; 04-04-2020 at 04:22 AM.
 
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
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

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