Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
[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.
...
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.
...

From /usr/lib/obs/server//build/Build/Rpm.pm line 133 is:
my %go = (split(/(:?)/, $getopt, -1), 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
...
%add_to_doc_files Source/JavaScriptCore/COPYING.LIB
%add_to_doc_files Source/JavaScriptCore/icu/LICENSE
%add_to_doc_files WebKit/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

< Previous Next >
This Thread
Follow Ups