Accepting request 233240 from Base:System
fix macro adjusting in installplatform OBS-URL: https://build.opensuse.org/request/show/233240 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=224
This commit is contained in:
commit
1d1cd5c145
25
gentlyadjustmacros.diff
Normal file
25
gentlyadjustmacros.diff
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
commit 46993cd3846a8c8935c980e30bbc3718338e2378
|
||||||
|
Author: Panu Matilainen <pmatilai@redhat.com>
|
||||||
|
Date: Fri May 9 10:56:46 2014 +0300
|
||||||
|
|
||||||
|
Sometimes a smaller hammer is better (but only sometimes)
|
||||||
|
|
||||||
|
- The sed-munger added in commit ccd6281e699781e0b00edb16b6e9f4dec6878c15
|
||||||
|
causes bigger breakage than it fixes, perhaps because the hammer
|
||||||
|
applied was disproportionally large. The only thing needing adjustment
|
||||||
|
is ${prefix} in case when localstatedir is not explicitly set, so
|
||||||
|
we fixup just that instead of "everything".
|
||||||
|
- Discovered via RhBug:921973 testing
|
||||||
|
|
||||||
|
diff --git a/installplatform b/installplatform
|
||||||
|
index ffaef48..98b87f3 100755
|
||||||
|
--- installplatform.orig
|
||||||
|
+++ installplatform
|
||||||
|
@@ -154,5 +154,5 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
-# gently adjust autoconf variables to rpm macros...
|
||||||
|
-cat $MACROS | sed -e '/\${\w*:-/!s,\${,%{_,' > ${DESTDIR}/${pkglibdir}/macros
|
||||||
|
+# gently adjust undefined autoconf variables to rpm macros...
|
||||||
|
+cat $MACROS | sed -e 's,${prefix},%{_prefix},g' > ${DESTDIR}/${pkglibdir}/macros
|
19
rpm.changes
19
rpm.changes
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 9 13:33:09 CEST 2014 - mls@suse.de
|
||||||
|
|
||||||
|
- fix macro adjusting in installplatform
|
||||||
|
the old code broke macos like GNUconfigure [bnc#874897]
|
||||||
|
new patch: gentlyadjustmacros.diff
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 25 15:41:57 CEST 2014 - mls@suse.de
|
||||||
|
|
||||||
|
- make _rundir configurable
|
||||||
|
new patch: rundir.diff
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 22 09:53:19 UTC 2014 - coolo@suse.com
|
||||||
|
|
||||||
|
- offer a %_rundir to avoid hardcoding /run - and packages wanting
|
||||||
|
to support older distros, can have /var/run as fallback for the macro
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 10 14:28:45 CET 2014 - mls@suse.de
|
Mon Mar 10 14:28:45 CET 2014 - mls@suse.de
|
||||||
|
|
||||||
|
5
rpm.spec
5
rpm.spec
@ -137,6 +137,8 @@ Patch92: find-lang-python.patch
|
|||||||
Patch93: weakdepscompat.diff
|
Patch93: weakdepscompat.diff
|
||||||
Patch94: checksepwarn.diff
|
Patch94: checksepwarn.diff
|
||||||
Patch95: exportoldtags.diff
|
Patch95: exportoldtags.diff
|
||||||
|
Patch96: rundir.diff
|
||||||
|
Patch97: gentlyadjustmacros.diff
|
||||||
Patch6464: auto-config-update-aarch64-ppc64le.diff
|
Patch6464: auto-config-update-aarch64-ppc64le.diff
|
||||||
Patch68000: m68k.patch
|
Patch68000: m68k.patch
|
||||||
Patch68001: debugedit-m68k.patch
|
Patch68001: debugedit-m68k.patch
|
||||||
@ -226,7 +228,7 @@ rm -f rpmdb/db.h
|
|||||||
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
|
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
|
||||||
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
|
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
|
||||||
%patch -P 80 -P 82 -P 85
|
%patch -P 80 -P 82 -P 85
|
||||||
%patch -P 92 -P 93 -P 94 -P 95
|
%patch -P 92 -P 93 -P 94 -P 95 -P 96 -P 97
|
||||||
|
|
||||||
%ifarch aarch64 ppc64le
|
%ifarch aarch64 ppc64le
|
||||||
%patch6464
|
%patch6464
|
||||||
@ -274,6 +276,7 @@ sed -i -e 's,{PYTHON_VERSION}mu,{PYTHON_VERSION}mu python${PYTHON_VERSION}m,' co
|
|||||||
./configure --disable-dependency-tracking --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
./configure --disable-dependency-tracking --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
||||||
--libdir=%{_libdir} --sysconfdir=/etc --localstatedir=/var --with-lua \
|
--libdir=%{_libdir} --sysconfdir=/etc --localstatedir=/var --with-lua \
|
||||||
--with-vendor=suse \
|
--with-vendor=suse \
|
||||||
|
--with-rundir=/run \
|
||||||
--with-selinux --with-internal-beecrypt \
|
--with-selinux --with-internal-beecrypt \
|
||||||
--with-acl --with-cap --enable-shared %{?with_python: --enable-python} $BUILDTARGET
|
--with-acl --with-cap --enable-shared %{?with_python: --enable-python} $BUILDTARGET
|
||||||
|
|
||||||
|
26
rundir.diff
Normal file
26
rundir.diff
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
--- configure.ac.orig 2014-04-25 13:40:13.808532251 +0000
|
||||||
|
+++ configure.ac 2014-04-25 13:40:13.822532172 +0000
|
||||||
|
@@ -814,6 +814,13 @@ AC_SUBST(RPMCANONVENDOR)
|
||||||
|
AC_SUBST(RPMCANONOS)
|
||||||
|
AC_SUBST(RPMCANONGNU)
|
||||||
|
|
||||||
|
+RUNDIR="/run"
|
||||||
|
+AC_ARG_WITH([rundir],
|
||||||
|
+ AS_HELP_STRING([--with-rundir=RUNDIR], [specify run-time variable directory]),
|
||||||
|
+ [RUNDIR=$withval])
|
||||||
|
+AC_DEFINE_UNQUOTED([RUNDIR],["${RUNDIR}"],[run-time variable directory])
|
||||||
|
+AC_SUBST(RUNDIR)
|
||||||
|
+
|
||||||
|
if test X"$prefix" = XNONE ; then
|
||||||
|
usrprefix="$ac_default_prefix"
|
||||||
|
else
|
||||||
|
--- platform.in.orig 2014-04-25 13:40:13.823532166 +0000
|
||||||
|
+++ platform.in 2014-04-25 13:41:13.034198906 +0000
|
||||||
|
@@ -44,6 +44,7 @@
|
||||||
|
%_initddir %{_sysconfdir}/init.d
|
||||||
|
# Deprecated misspelling, present for backwards compatibility.
|
||||||
|
%_initrddir %{_initddir}
|
||||||
|
+%_rundir @RUNDIR@
|
||||||
|
|
||||||
|
%_defaultdocdir %{_datadir}/doc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user