Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
Re: [opensuse-buildservice] Difference between cli and obs
  • From: "Sascha 'saigkill' Manns" <samannsml@xxxxxxxxxxxxx>
  • Date: Mon, 21 Jun 2010 00:16:47 +0200
  • Message-id: <201006210016.55860@xxxxxxxxxxxxxxxxxxx>
Am Sonntag 20 Juni 2010 23:20:39 wrote Marcus Meissner:
On Sun, Jun 20, 2010 at 11:12:31PM +0200, Sascha 'saigkill' Manns wrote:
Hello Mates,

i have a strange error with my freediams Package.
My osc says:
RPMLINT report:
===============
freediams.x86_64: W: wrong-script-end-of-line-encoding
/usr/share/freediams/forms/fagerstrom.xml freediams.x86_64: W:
wrong-script-end-of-line-encoding
/usr/share/freediams/textfiles/listemotsfr.txt This script has wrong
end-of-line encoding, usually caused by creation or modification on a
non-Unix system. It will prevent its execution.

2 packages and 0 specfiles checked; 0 errors, 2 warnings.

But inside the OBS (home:saigkill:medical) i'm getting:
+ /usr/lib/rpm/brp-hook
Processing files: freediams-0.3.0-3.1.i586
error: File not found: 
/usr/src/packages/BUILDROOT/freediams-0.3.0-3.1.i386/usr/lib64/freediams
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wOfc0H

After that the Build breaks.

What is now to do? And if i must fix this, how can i do this?

Obsoletes: %{name} < %{version}-%{release} is kind of useless.

use LIBRARY_BASENAME="%_lib" then it will even work on other lib64 systems.

On your error:
In %files you use unconditionally:
%dir /usr/lib64/freediams
which breaks the build on non-64bit systems.

use %dir %{_libdir}/freediams or so.
Great. All your tips helped me to fix the issues. Now tha packaging is fine.
Thanks :-)

--
Sincerely yours

Sascha Manns
open-slx GmbH
openSUSE Community & Support Agent
openSUSE Marketing Team

Blog: http://saigkill.wordpress.com

Web: http://www.open-slx.de (openSUSE Box Support German)
Web: http://www.open-slx.com (openSUSE Box Support English)
< Previous Next >