[opensuse-buildservice] macros (e.g. %{buildroot} are expanded to NULL ("")...

Hello, basically, the subject says it all... E.g. %config(noreplace) %{_sysconfdir}/%{name}/vche.conf results in [ 50s] error: Installed (but unpackaged) file(s) found: [ 50s] /vche/vche.conf [ 50s] RPM build errors: [ 50s] File not found: /home/abuild/rpmbuild/BUILDROOT/vche-1.7.2-210.1.i386/etc/vche/vche.conf [ 50s] Installed (but unpackaged) file(s) found: [ 50s] /vche/vche.conf There's several other weird errors along that line (%buildroot not being expanded in %install, and whatnot ..) -dnh -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

David Haller <dnh@opensuse.org> writes:
%config(noreplace) %{_sysconfdir}/%{name}/vche.conf
results in
[ 50s] error: Installed (but unpackaged) file(s) found: [ 50s] /vche/vche.conf [ 50s] RPM build errors: [ 50s] File not found: /home/abuild/rpmbuild/BUILDROOT/vche-1.7.2-210.1.i386/etc/vche/vche.conf
%{_sysconfdir} was expanded to /etc, as expected. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Saturday 2013-10-05 19:35, David Haller wrote:
Hello,
basically, the subject says it all...
Answer: subject says it all. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Sun, Oct 6, 2013 at 2:01 AM, Jan Engelhardt <jengelh@inai.de> wrote:
On Saturday 2013-10-05 19:35, David Haller wrote:
Hello,
basically, the subject says it all...
Answer: subject says it all.
True: OP missed: BuildRoot: %{_tmppath}/%{name}-%{version}-build in his specfile, while [ 50s] File not found: /home/abuild/rpmbuild/BUILDROOT/vche-1.7.2-210.1.i386/etc/vche/vche.conf [ 50s] Installed (but unpackaged) file(s) found: [ 50s] /vche/vche.conf is a different problem, he may override /etc to "" in his %build section. Marguerite -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
David Haller
-
Jan Engelhardt
-
Marguerite Su