[SOLVED] trying to build single package with kde.SlackBuild for plasma (AlienBob script)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Rep:
trying to build single package with kde.SlackBuild for plasma (AlienBob script)
I'm trying to build single package for plasma (kde5), with AlienBob kde.SlackBuild, and for some package I've no result, no package built, no errors. My system is a pure x86_64 multilib system with kde4 replaced with plasma, and every package has been installed.
Here are 2 examples of rebuilding with log results: akonadi and baloo.
I executed the following command for baloo:
./kde.SlackBuild frameworks:baloo 2>&1 | tee build-baloo-log.txt
and for akonadi:
./kde.SlackBuild applications:akonadi 2>&1 | tee build-baloo-log.txt
nota: I modified the SlackBuild with 'set -x' option to see every line of the executing script, and I don't understand the results of the logs.
I had a cursory look at the baloo log -- without even looking at the build script itself. It looks like a table of names is scanned -- e.g. at line 1477 and following I see:
Indeed some packages are named a bit differently than their source tarball suggests. This was meant to prevent clashes with packages that are in Slackware-current itself.
In the "pkgsrc" directory you will find all the package names for which the source tarball has a different name. The actual source is inside the file:
Code:
$ cat pkgsrc/baloo5
frameworks/baloo
And therefore compiling the baloo source results in a baloo5 package, as follows:
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Original Poster
Rep:
libktorrent fails to be rebuilt:
--------------
[ 4%] Building CXX object src/CMakeFiles/KF5Torrent.dir/util/fileops.cpp.o
/tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.cpp: In function ‘bool bt::XfsPreallocate(const QString&, bt::Uint64)’:
/tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.cpp:369:36: error: invalid user-defined conversion from ‘QByteArray’ to ‘const char*’ [-fpermissive]
369 | int fd = ::open(QFile::encodeName(path), O_RDWR | O_LARGEFILE);
| ~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/qt5/QtCore/QByteArray:1,
from /tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.h:25,
from /tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.cpp:21:
/usr/include/qt5/QtCore/qbytearray.h:450:5: note: candidate is: ‘QByteArray::operator QNoImplicitBoolCast() const’ <near match>
450 | operator QNoImplicitBoolCast() const;
| ^~~~~~~~
/usr/include/qt5/QtCore/qbytearray.h:450:5: note: no known conversion from ‘QNoImplicitBoolCast’ {aka ‘int’} to ‘const char*’
/tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.cpp:369:64: error: ‘QByteArray::operator QNoImplicitBoolCast() const’ is private within this context
369 | int fd = ::open(QFile::encodeName(path), O_RDWR | O_LARGEFILE);
| ^
In file included from /usr/include/qt5/QtCore/QByteArray:1,
from /tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.h:25,
from /tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.cpp:21:
/usr/include/qt5/QtCore/qbytearray.h:450:5: note: declared private here
450 | operator QNoImplicitBoolCast() const;
| ^~~~~~~~
In file included from /tmp/kde_build/applications-extra/libktorrent-2.1.1/src/util/fileops.cpp:30:
/usr/include/fcntl.h:195:30: note: initializing argument 1 of ‘int open(const char*, int, ...)’
195 | extern int open (const char *__file, int __oflag, ...) __nonnull ((1));
| ~~~~~~~~~~~~^~~~~~
make[2]: *** [src/CMakeFiles/KF5Torrent.dir/build.make:206: src/CMakeFiles/KF5Torrent.dir/util/fileops.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:619: src/CMakeFiles/KF5Torrent.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
applications-extra:libktorrent failed to build.
------------------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.