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 05-13-2023, 10:35 AM   #196
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369

Quote:
Originally Posted by LuckyCyborg View Post
Well, in the latest getGraphicsProcessor() presented by me (at suggestion of my friend) the (TM) and (R) are already parsed by fancyString() before the cut is done. And was triple checked that a similar logic is done by the code from Plasma5.
But with some of my computers it doesn't work. So I don't strip it in my version.
 
1 members found this post helpful.
Old 05-13-2023, 10:46 AM   #197
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by ZhaoLin1457 View Post
If @BrunoLafleur allows me, I would like to remind him of the maximum 4 thumbnails in the taskbar. It would be nice to have a maximum of 6 or 7 thumbnails.

With that about-distro, you seem to have solved it. Heartiest congratulations!
For the taskbar it is difficult to find. I have not looked to the right direction until now. If I find it I will tell you.
 
3 members found this post helpful.
Old 05-14-2023, 07:14 AM   #198
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
For about-distro, I have made a new patch with the last version from LuckyCyborg and the translations po files for the "Graphics Processor" item.

So now I have it in french like the others items.

The patch is here :
https://github.com/BrunoLafleur/pbsl...o-gpu.patch.gz

Note than in pbslacks I have put about-distro in extragear as suggested above. So I have updated kde/modules/extragear and kde/slack-desc
 
3 members found this post helpful.
Old 05-14-2023, 08:49 AM   #199
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
I have also added a fallback for the cpu info which was not showing in one of my machine because some /sys cpu information are not there.

In the last version of the about-distro patch :
https://github.com/BrunoLafleur/pbsl...o-gpu.patch.gz
 
3 members found this post helpful.
Old 05-14-2023, 08:58 AM   #200
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
And a new snapshot of about-distro in KInfoCenter.
Attached Thumbnails
Click image for larger version

Name:	KInfoCenterKDE415.jpg
Views:	18
Size:	114.9 KB
ID:	41054  
 
4 members found this post helpful.
Old 05-14-2023, 09:03 AM   #201
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Original Poster
Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
@BrunoLafleur

While we are at this, do you know what I believe to be very nice?

To have this about-distro page as default (if exists) in KInfoCenter, like in Plasma5 .

So, I guess that this "About Distro" page to have a higher priority than "Summary" page, which is the first.
 
2 members found this post helpful.
Old 05-14-2023, 12:23 PM   #202
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Original Poster
Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
@BrunoLafleur

I have managed to successfully build Krusader on kde4town, but I have build issues with the (associated) Krename. Maybe you can take a look.

I have used the patches from there:

https://mandriva.c3sl.ufpr.br/offici....0.9-2.src.rpm

and this patch
Code:
Author: Pino Toscano <toscano.pino@tiscali.it>
Description: Fix flags for KIO::file_delete()
 .
 Pass a proper value for flags, instead of a boolean.
 .
 This fixes the build with GCC 6.
Last-Update: 2016-06-26
Forwarded: no

--- a/src/batchrenamer.cpp
+++ b/src/batchrenamer.cpp
@@ -402,7 +402,7 @@ void BatchRenamer::undoFiles( ProgressDi
                 break;
             case eRenameMode_Link:
                 // In case of link delete created file
-                job = KIO::file_delete( dstUrl, false );
+                job = KIO::file_delete( dstUrl, KIO::HideProgressInfo );
                 break;
             case eRenameMode_Copy: // no undo possible
                 // TODO: Maybe we should delete the created files
The build failure is this:
Code:
[  2%] Building CXX object src/CMakeFiles/krename.dir/pluginloader.o
In file included from /tmp/kde_build/extragear/krename-4.0.9/src/pluginloader.cpp:40:
/tmp/kde_build/extragear/krename-4.0.9/src/fontplugin.h:28:10: fatal error: ft2build.h: No such file or directory
   28 | #include <ft2build.h>
      |          ^~~~~~~~~~~~

For Krusader, I have used this patch named krusader-gcc11.patch made by my friend :
Code:
diff -urN krusader-389b153d_20160328git.orig/krusader/Dialogs/packgui.cpp krusader-389b153d_20160328git/krusader/Dialogs/packgui.cpp
--- krusader-389b153d_20160328git.orig/krusader/Dialogs/packgui.cpp	2023-05-13 10:34:19.000000000 +0300
+++ krusader-389b153d_20160328git/krusader/Dialogs/packgui.cpp	2023-05-14 19:26:16.455499375 +0300
@@ -40,7 +40,7 @@
 #include <QtGui/QComboBox>
 #include <khistorycombobox.h>
 
-#define PS(x) lst.contains(x)>0
+#define PS(x) lst.contains(x)
 
 // clear the statics first
 QString PackGUI::filename = 0;
diff -urN krusader-389b153d_20160328git.orig/krusader/Konfigurator/kgarchives.cpp krusader-389b153d_20160328git/krusader/Konfigurator/kgarchives.cpp
--- krusader-389b153d_20160328git.orig/krusader/Konfigurator/kgarchives.cpp	2023-05-13 10:34:19.000000000 +0300
+++ krusader-389b153d_20160328git/krusader/Konfigurator/kgarchives.cpp	2023-05-14 19:30:20.902479786 +0300
@@ -163,7 +163,7 @@
 
 void KgArchives::disableNonExistingPackers()
 {
-#define PS(x) lst.contains(x)>0
+#define PS(x) lst.contains(x)
 
     // get list of available packers
     QStringList lst = KRarcHandler::supportedPackers();
diff -urN krusader-389b153d_20160328git.orig/krusader/Konfigurator/krresulttable.cpp krusader-389b153d_20160328git/krusader/Konfigurator/krresulttable.cpp
--- krusader-389b153d_20160328git.orig/krusader/Konfigurator/krresulttable.cpp	2023-05-13 10:34:19.000000000 +0300
+++ krusader-389b153d_20160328git/krusader/Konfigurator/krresulttable.cpp	2023-05-14 19:30:58.904476741 +0300
@@ -27,7 +27,7 @@
 
 using namespace std;
 
-#define PS(x) _supported.contains(x)>0
+#define PS(x) _supported.contains(x)
 
 KrResultTable::KrResultTable(QWidget* parent)
         : QWidget(parent),
diff -urN krusader-389b153d_20160328git.orig/krusader/MountMan/kmountman.cpp krusader-389b153d_20160328git/krusader/MountMan/kmountman.cpp
--- krusader-389b153d_20160328git.orig/krusader/MountMan/kmountman.cpp	2023-05-13 10:34:19.000000000 +0300
+++ krusader-389b153d_20160328git/krusader/MountMan/kmountman.cpp	2023-05-14 19:29:54.894481870 +0300
@@ -109,18 +109,18 @@
 
 bool KMountMan::invalidFilesystem(QString type)
 {
-    return (invalid_fs.contains(type) > 0);
+    return invalid_fs.contains(type);
 }
 
 // this is an ugly hack, but type can actually be a mountpoint. oh well...
 bool KMountMan::nonmountFilesystem(QString type, QString mntPoint)
 {
-    return((nonmount_fs.contains(type) > 0) || (nonmount_fs_mntpoint.contains(mntPoint) > 0));
+    return (nonmount_fs.contains(type) || nonmount_fs_mntpoint.contains(mntPoint));
 }
 
 bool KMountMan::networkFilesystem(QString type)
 {
-    return (network_fs.contains(type) > 0);
+    return network_fs.contains(type);
 }
 
 void KMountMan::mainWindow()
With it, the Krusader builds fine and works well. But ff course, it wants the Krename.

Last edited by LuckyCyborg; 05-14-2023 at 12:33 PM.
 
2 members found this post helpful.
Old 05-14-2023, 01:10 PM   #203
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
I have put the about-distro by default in KInfoCenter.

It needs a new version of the about-distro patch :
https://github.com/BrunoLafleur/pbsl...o-gpu.patch.gz

And a little patch in kde-workspace (no need to recompile packages which depends on it) :
https://github.com/BrunoLafleur/pbsl...enter.patch.gz
with :
https://github.com/BrunoLafleur/pbsl...orkspace.patch

For krusader I will look.
 
3 members found this post helpful.
Old 05-14-2023, 01:16 PM   #204
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Original Poster
Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by BrunoLafleur View Post
I have put the about-distro by default in KInfoCenter.

It needs a new version of the about-distro patch :
https://github.com/BrunoLafleur/pbsl...o-gpu.patch.gz

And a little patch in kde-workspace (no need to recompile packages which depends on it) :
https://github.com/BrunoLafleur/pbsl...enter.patch.gz
with :
https://github.com/BrunoLafleur/pbsl...orkspace.patch

For krusader I will look.
Great news!
 
Old 05-14-2023, 01:16 PM   #205
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
For krename it is in freetype2.

Try to add -I/usr/include/freetype2 in a cmake/krename file starting from a copy of cmake/cmake inside k4town.

I will test as soon I have time.
 
3 members found this post helpful.
Old 05-14-2023, 01:21 PM   #206
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Original Poster
Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by BrunoLafleur View Post
For krename it is in freetype2.

Try to add -I/usr/include/freetype2 in a cmake/krename file starting from a copy of cmake/cmake inside k4town.

I will test as soon I have time.
I will do.
 
Old 05-14-2023, 01:35 PM   #207
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
And a new snapshot of KInfoCenter.
Attached Thumbnails
Click image for larger version

Name:	KInfoCenterKDE415b.jpg
Views:	8
Size:	114.7 KB
ID:	41057  
 
3 members found this post helpful.
Old 05-14-2023, 01:55 PM   #208
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Original Poster
Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by BrunoLafleur View Post
For krename it is in freetype2.

Try to add -I/usr/include/freetype2 in a cmake/krename file starting from a copy of cmake/cmake inside k4town.

I will test as soon I have time.
well, in the end, this cmake/krename file did the trick
Code:
mkdir build
cd build
  cmake \
    $KDE_OPT_ARGS \
    -DKDE_PLATFORM_FEATURE_DISABLE_DEPRECATED=TRUE \
    -DCMAKE_PREFIX_PATH="/usr/lib${LIBDIRSUFFIX}/exiv221" \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS  -std=c++11 -I/usr/include/freetype2" \
    -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS  -std=c++11 -I/usr/include/freetype2" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS  -std=c++11 -fpermissive -I/usr/include/freetype2" \
    -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS  -std=c++11 -fpermissive -I/usr/include/freetype2" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DMAN_INSTALL_DIR=/usr/man \
    -DSYSCONF_INSTALL_DIR=/etc/kde \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    ..
Many thanks for suggestion!

And in the attached screenshot, the KInfoCenter after rebuilding kde-workspace and about-distro with your latest patches.

So, I believe that this addition of about-distro was concluded successfully.
Attached Thumbnails
Click image for larger version

Name:	snapshot12.png
Views:	7
Size:	107.2 KB
ID:	41058  

Last edited by LuckyCyborg; 05-14-2023 at 01:59 PM.
 
2 members found this post helpful.
Old 05-14-2023, 03:02 PM   #209
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Original Poster
Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
So, there is the 6th upload of the kde4town of mine:

https://easyupload.io/m/c7rk48

As usual, this kde4town upload is split in 2 big tarballs for packages and sources, kde4town-packages-20230514.tar with the size of 1.07 GB and kde4town-source-20230514.tar with the size of 1.6 GB

These tarballs have the following SHA256 sums:
Code:
8623525e30e5d23ee53303d6b8502f334d9677ea6ff5fc61a2477e470eea1e69  kde4town-packages-20230514.tar
b96c28b9ddc9033b63f9a998358deb17d840777bf2713a0250e1f61943fb4e92  kde4town-source-20230514.tar
Please note that the packages directory structure was changed, now the packages built for Slackware 15.0 are on packages/15.0 while on packages/current are some additional packages reported to be required for kde4town's proper working under Slackware-current - in fact, there's today only a special build of jasper20 capable to be installed along with the stock jasper package from -current. Be warned that this jasper20 package is NOT needed for Slackware 15.0 .

As was requested, was added Krusader (and its friend Krename), and also was updated the libmm-qt, libnm-qt and plasma-nm packages from NetworkManager integration infrastructure, as of latest work of @BrunoLafleur.

Also, that new KCM module (seen discussed in the previous posts) named about-distro was added, with the kde-workspace patched along, and it gives a default page on KInfoCenter similar with the one from Plasma5.

Please note also that a new package named eigen20 was added, and the kdeedu:step was rebuilt along. In the end, I have arrived at conclusion that's simpler this way, because there may be another KDE4 software/packages depending on it.

Have fun!

Last edited by LuckyCyborg; 05-14-2023 at 03:20 PM.
 
3 members found this post helpful.
Old 05-14-2023, 03:05 PM   #210
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,152

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
Many thanks!
You are a gentleman and a scholar!


Edit in: installed and working as advertised.
Thanks, again, to LuckyCyborg and BrunoLafleur.

Last edited by cwizardone; 05-14-2023 at 03:48 PM.
 
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
KDE4 pbslacks BrunoLafleur Slackware 29 02-26-2021 07:57 AM
e.g., BSD style (Slackware) vs. SystemV style startup scripts haertig Slackware 5 01-03-2009 10:52 PM

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

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