This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Libkscreen illegal char in line and failed to find provides

Tags: None
(comma "," separated)
User avatar
sling-shot
Registered Member
Posts
26
Karma
0
OS
I am unable to build libkscreen on a fully updated PCLinuxOS 2013 KDE 4.10.4 32 bit installation.
The failed build log shows the following towards the end :

Code: Select all
Processing files: libkscreen1-1.0-1slingshot2013.i586
Executing(%doc): /bin/sh -e /home/testinstall/src/tmp/rpm-tmp.rCqcgL
+ umask 022
+ cd /home/testinstall/src/rpm/BUILD
+ cd libkscreen-1.0
+ DOCDIR=/home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386/usr/share/doc/libkscreen1
+ export DOCDIR
+ /bin/mkdir -p /home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386/usr/share/doc/libkscreen1
+ cp -pr COPYING /home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386/usr/share/doc/libkscreen1
+ exit 0
Finding  Provides: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386' /usr/lib/rpm/mandriva/find-provides
Finding  Requires: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386' /usr/lib/rpm/mandriva/find-requires /home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386 i586
Provides: KSC_Fake.so KSC_XRandR11.so KSC_XRandR.so libkscreen.so.1
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libgcc_s.so.1 libkdecore.so.5 libkdeui.so.5 libkscreen.so.1 libm.so.6 libm.so.6(GLIBC_2.0) libpthread.so.0 libqjson.so.0 libQtCore.so.4 libQtDBus.so.4 libQtGui.so.4 libstdc++.so.6 libstdc++.so.6(GLIBCXX_3.4) libX11.so.6 libX11-xcb.so.1 libxcb-randr.so.0 libxcb.so.1 libXrandr.so.2 rtld(GNU_HASH)
Processing files: libkscreen-devel-1.0-1slingshot2013.i586
Finding  Provides: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/home/testinstall/src/rpm/BUILDROOT/libkscreen-1.0-1slingshot2013.i386' /usr/lib/rpm/mandriva/find-provides
error: line 79: Illegal char '(' in: - Initial package at 1.0

error: Failed to find Provides:
Provides: libkscreen1-devel = 1.0-1slingshot2013
Requires(rpmlib): rpmlib(VersionedDependencies) <= 3.0.3-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1


RPM build errors:
    line 79: Illegal char '(' in: - Initial package at 1.0

    Failed to find Provides:


Full build log - https://dl.dropboxusercontent.com/u/379 ... n.spec.log

The .spec used in this build :

Code: Select all
%define      major      1
%define      libname      %mklibname kscreen %{major}
%define      libdevname   %mklibname kscreen -d

Name:      libkscreen
Version:   1.0
Release:   %mkrel 1
Summary:   Display configuration library
License:   GPLv2+
Group:      System/Libraries
URL:      https://projects.kde.org/projects/playground/libs/libkscreen
Source:      http://download.kde.org/stable/libkscreen/1.0/src/%{name}-%{version}.tar.xz
BuildRoot:   %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:   kdelibs-devel
BuildRequires:   libxrandr-devel
BuildRequires:   qjson-devel >= 0.8.1
# XCB should probably be disabled, but I do not know how. Until then this will stay.
BuildRequires:   libxcb-util-devel

%description
LibKScreen is a library that provides access to current configuration
of connected displays and ways to change the configuration.

%package -n %{libname}
Summary:   Display configuration library
Group:      System/Libraries

%description -n %{libname}
LibKScreen is a library that provides access to current configuration
of connected displays and ways to change the configuration.

%package -n %{libdevname}
Summary:   Devel package of %{name}
Group:      System/Libraries
Requires:   %{libname} = %{version}-%{release}
Provides:   %{libname}-devel = %{version}-%{release}

%description -n %{libdevname}
Devel package of %{name}

%prep
%setup -q

%build
# Need to figure out how to disable XCB
%cmake_kde4
%make

%install
rm -rf %{buildroot}

# The config/build files are written into the 'build' subdirectory
%makeinstall_std -C build

%post -n %{libname}
/sbin/ldconfig

%postun -n %{libname}
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n %{libname}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libkscreen.so.%{major}*
%{_libdir}/kde4/plugins/kscreen/KSC_*.so

%files -n %{libdevname}
%defattr(-,root,root)
%{_includedir}/kscreen/*.h
%{_libdir}/cmake/LibKScreen/LibKScreen*.cmake
%{_libdir}/libkscreen.so
%{_libdir}/pkgconfig/kscreen.pc

%changelog
* Tue Jun 25 2013 Sling Shot <sling-shot at lycos.com> 1.0-1slingshot2013
- Initial package at 1.0
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It appears that your RPM spec file has some syntax issues.
As the syntax can vary depending on the distribution, I would suggest asking your distributions packagers for KDE software for help here.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
sling-shot
Registered Member
Posts
26
Karma
0
OS
Looks like the problem was in a .pc file as suggested by TerryN here http://www.pclinuxos.com/forum/index.ph ... msg1000720

Code: Select all
# fix broken kscreen.pc file
sed -i -e 's/VERSION/libkscreen_VERSION/' src/kscreen.pc.in


Sorry for forgetting to post the solution.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If that file is shipped as part of KScreen, you might want to post the diff on git.reviewboard.kde.org so the developers can merge the fix into the upstream sources.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
sling-shot
Registered Member
Posts
26
Karma
0
OS
Thanks for the help. I looked into the link provided and it looks beyond my current paygrade >:D
As I said above, the solution was provided by another forum member and may be he could do it.
Regards,
-SS.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot]