From 1829d65ed0c8a0684885cd66d4ebede4e138e0caebda03bf49b30ee7197c2936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Tue, 26 Aug 2014 11:08:49 +0000 Subject: [PATCH] Accepting request 246459 from home:jengelh:branches:systemsmanagement - Resolve build failure with automake-1.14 OBS-URL: https://build.opensuse.org/request/show/246459 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=19 --- Modules.changes | 7 +++++++ Modules.spec | 30 +++++++++++++++++++++--------- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/Modules.changes b/Modules.changes index 384eb00..f1ff86b 100644 --- a/Modules.changes +++ b/Modules.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Aug 26 10:50:58 UTC 2014 - jengelh@inai.de + +- Resolve build failure with automake-1.14 +- Use some RPM macros instead of hardcoded paths; + remove redundant %clean section + ------------------------------------------------------------------- Thu Aug 1 14:50:06 UTC 2013 - max@suse.com diff --git a/Modules.spec b/Modules.spec index 186ed2d..ecc4594 100644 --- a/Modules.spec +++ b/Modules.spec @@ -1,7 +1,7 @@ # # spec file for package Modules # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -63,16 +63,31 @@ Authors: %patch1 -p1 %build +# Remove overzealous use of "dnl" (+++), which caused +# a broken "configure" (---) being generated. +#@@ -3004,7 +3004,8 @@ to "yes", and re-run configure. +# END +# as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 +# fi +#-fiac_config_headers="$ac_config_headers config.h" +#+fi +#+ac_config_headers="$ac_config_headers config.h" +# +# # Check whether --enable-versioning was given. +# if test "${enable_versioning+set}" = set; then : +# +perl -i -pe 's{dnl\n}{\n}gs' configure.ac + aclocal --force -I config autoreconf --force --install CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE" \ ./configure \ - --prefix=/usr \ - --with-version-path=/usr/share/modules \ - --with-module-path=/usr/share/modules/modulefiles \ + --prefix="%_prefix" \ + --with-version-path="%_datadir/modules" \ + --with-module-path="%_datadir/modules/modulefiles" \ --mandir=%{_mandir} \ - --with-etc-path=/etc \ - --with-skel-path=/etc/skel \ + --with-etc-path="%_sysconfdir" \ + --with-skel-path="%_sysconfdir/skel" \ --with-tcl=%{_libdir} \ --without-x make @@ -93,9 +108,6 @@ ln -s ../share/Modules/%{version}/bin/mkroot . ln -s ../share/Modules/%{version}/bin/modulecmd . popd -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root) %doc ChangeLog LICENSE.GPL NEWS README TODO