Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
RE: [opensuse-buildservice] custom-defined macro causes error in src_server.log
I missed some info.
I add below.

-----Original Message-----
From: Rick Liu [mailto:rickliu@xxxxxxxxxxxx]
Sent: Friday, June 06, 2014 5:04 PM
To: opensuse-buildservice@xxxxxxxxxxxx
Subject: [opensuse-buildservice] custom-defined macro causes error in
src_server.log

Hi,

From src_server.log,
I found a couple of error messages like below:
Odd number of elements in hash assignment at
/usr/lib/obs/server//build/Build/Rpm.pm line 133, <SPEC> line 97.
Use of uninitialized value in list assignment at
/usr/lib/obs/server//build/Build/Rpm.pm line 133, <SPEC> line 97.
[Rick Liu]
Use of uninitialized value in concatenation (.) or string at
/usr/lib/obs/server//build/Build/Rpm.pm line 367, <SPEC> line 97.
...
Odd number of elements in hash assignment at
/usr/lib/obs/server//build/Build/Rpm.pm line 133, <SPEC> line 98.
Use of uninitialized value in list assignment at
/usr/lib/obs/server//build/Build/Rpm.pm line 133, <SPEC> line 98.
[Rick Liu]
Use of uninitialized value in concatenation (.) or string at
/usr/lib/obs/server//build/Build/Rpm.pm line 367, <SPEC> line 98.
...

From /usr/lib/obs/server//build/Build/Rpm.pm:
[Rick Liu]
line 133: my %go = (split(/(:?)/, $getopt, -1), undef);
line 367: $line = $line . pop(@expandstack);

When error occurred, @expandstack content is:
@expandstack=
$VAR1 = '\\';
$VAR2 = undef;


I have traced back to the source SPEC file, which is my "WebKit.spec", where
I have below in the file:
%define add_to_doc_files() \
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}; \
cp -p %1 %{buildroot}%{_docdir}/%{name}-%{version}/$(echo '%1' | sed
-e 's!/!.!g') \
echo %%doc %%{_docdir}/%{name}-%{version}/$(echo '%1' | sed -e
's!/!.!g') >> docfiles.list ...
%install
...
[Rick Liu]
line 97: %add_to_doc_files Source/JavaScriptCore/COPYING.LIB
line 98: %add_to_doc_files Source/JavaScriptCore/icu/LICENSE



Why this custom-defined macro causes error?

Thanks,

Rick
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
References