Mailinglist Archive: opensuse-packaging (104 mails)

< Previous Next >
[opensuse-packaging] %fdupes not expanding correctly
Hi!

I have tried to use the %fdupes macro in my aws-sdk-cpp package [1]:

Index: aws-sdk-cpp.spec
===================================================================
--- aws-sdk-cpp.spec (revision 27e40ee71aa9d59fa4dc57c72b2b274f)
+++ aws-sdk-cpp.spec (working copy)
@@ -52,7 +52,7 @@
low- and high-level SDKs, while minimizing dependencies and providing platform
portability (Windows, OSX, Linux, and mobile).

-This package contains the shared libaries.
+This package contains the shared libraries.

%package devel
Summary: AWS SDK for C++ - development files
@@ -86,7 +86,7 @@

%files devel
%defattr(-,root,root)
-%{_includedir}/aws/
-%{_libdir}/cmake/
-%{_libdir}/pkgconfig/
+%{_includedir}/aws
+%fdupes -s %{_libdir}/cmake
+%{_libdir}/pkgconfig
%changelog

However, when I try to build the package, the %fdupes macro is not expanding
correctly and I get the following mess:

[ 2425s] Processing files: aws-sdk-cpp-devel-1.5.7-0.x86_64
[ 2425s] error: File must begin with "/": _target="";
[ 2425s] error: File must begin with "/": _symlinks=0;
[ 2425s] error: File must begin with "/": _symlinks=1;
[ 2425s] error: File must begin with "/": fdupes
[ 2425s] error: File must begin with "/": -q
[ 2425s] error: File must begin with "/": -p
[ 2425s] error: File must begin with "/": -n
[ 2425s] error: File must begin with "/": -H
[ 2425s] error: File must begin with "/": -o
[ 2425s] error: File must begin with "/": name
[ 2425s] error: File must begin with "/": -r
[ 2425s] error: File must begin with "/": |
[ 2425s] error: File must begin with "/": while
[ 2425s] error: File must begin with "/": read
[ 2425s] error: File must begin with "/": _file;
[ 2425s] error: File must begin with "/": do
[ 2425s] error: File must begin with "/": if
[ 2425s] error: File must begin with "/": test
[ 2425s] error: File must begin with "/": -z
[ 2425s] error: File must begin with "/": $_target
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": then
[ 2425s] error: File must begin with "/": _target="$_file";
[ 2425s] error: File must begin with "/": else
[ 2425s] error: File must begin with "/": if
[ 2425s] error: File must begin with "/": test
[ 2425s] error: File must begin with "/": -z
[ 2425s] error: File must begin with "/": $_file
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": then
[ 2425s] error: File must begin with "/": _target="";
[ 2425s] error: File must begin with "/": continue
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": fi
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": if
[ 2425s] error: File must begin with "/": test
[ 2425s] error: File must begin with "/": $_symlinks
[ 2425s] error: File must begin with "/": =
[ 2425s] error: File must begin with "/": 1;
[ 2425s] error: File must begin with "/": then
[ 2425s] error: File must begin with "/": ln
[ 2425s] error: File must begin with "/": -sf
[ 2425s] error: File must begin with "/":
${_target#/home/abuild/rpmbuild/BUILDROOT/aws-sdk-cpp-1.5.7-0.x86_64}
[ 2425s] error: File must begin with "/": $_file
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": else
[ 2425s] error: File must begin with "/": ln
[ 2425s] error: File must begin with "/": -f
[ 2425s] error: File must begin with "/": $_target
[ 2425s] error: File must begin with "/": $_file
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": fi
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": fi
[ 2425s] error: File must begin with "/": ;
[ 2425s] error: File must begin with "/": done
[ 2425s]
[ 2425s]
[ 2425s] RPM build errors:
[ 2425s] File must begin with "/": _target="";
[ 2425s] File must begin with "/": _symlinks=0;
[ 2425s] File must begin with "/": _symlinks=1;
[ 2425s] File must begin with "/": fdupes
[ 2425s] File must begin with "/": -q
[ 2425s] File must begin with "/": -p
[ 2425s] File must begin with "/": -n
[ 2425s] File must begin with "/": -H
[ 2425s] File must begin with "/": -o
[ 2425s] File must begin with "/": name
[ 2425s] File must begin with "/": -r
[ 2425s] File must begin with "/": |
[ 2425s] File must begin with "/": while
[ 2425s] File must begin with "/": read
[ 2425s] File must begin with "/": _file;
[ 2425s] File must begin with "/": do
[ 2425s] File must begin with "/": if
[ 2425s] File must begin with "/": test
[ 2425s] File must begin with "/": -z
[ 2425s] File must begin with "/": $_target
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": then
[ 2425s] File must begin with "/": _target="$_file";
[ 2425s] File must begin with "/": else
[ 2425s] File must begin with "/": if
[ 2425s] File must begin with "/": test
[ 2425s] File must begin with "/": -z
[ 2425s] File must begin with "/": $_file
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": then
[ 2425s] File must begin with "/": _target="";
[ 2425s] File must begin with "/": continue
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": fi
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": if
[ 2425s] File must begin with "/": test
[ 2425s] File must begin with "/": $_symlinks
[ 2425s] File must begin with "/": =
[ 2425s] File must begin with "/": 1;
[ 2425s] File must begin with "/": then
[ 2425s] File must begin with "/": ln
[ 2425s] File must begin with "/": -sf
[ 2425s] File must begin with "/":
${_target#/home/abuild/rpmbuild/BUILDROOT/aws-sdk-cpp-1.5.7-0.x86_64}
[ 2425s] File must begin with "/": $_file
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": else
[ 2425s] File must begin with "/": ln
[ 2425s] File must begin with "/": -f
[ 2425s] File must begin with "/": $_target
[ 2425s] File must begin with "/": $_file
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": fi
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": fi
[ 2425s] File must begin with "/": ;
[ 2425s] File must begin with "/": done
[ 2425s]
[ 2425s] epyc failed "build aws-sdk-cpp.spec" at Wed Aug 8 11:42:34 UTC 2018.
[ 2425s]

Does anyone know what the problem is? I used %fdupes as documented in [2].

Adrian

[1]
https://build.opensuse.org/package/show/home:glaubitz:branches:Cloud:Tools/aws-sdk-cpp
[2]
https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25fdupes
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >