]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-macros.patch
- added lzma_w7 patch - first attempt to make lzma usable on non-high-end
[packages/rpm.git] / rpm-macros.patch
CommitLineData
a70fc0af
ER
1--- rpm-4.4.9/macros.in 2008-04-04 23:15:28.121279270 +0300
2+++ rpm-4.5/macros.in 2008-09-03 16:47:30.861766714 +0300
fa78cfd4 3@@ -109,6 +109,10 @@
4 %__automake automake
5 %__autoconf autoconf
6
7+# compiler used to build kernel and kernel modules
8+%kgcc %{__cc}
9+%kgcc_package gcc
10+
11 #==============================================================================
12 # Conditional build stuff.
13
14@@ -206,7 +210,7 @@
4d016095
AM
15 %endif\
16 %{nil}
17
18-%_defaultdocdir %{_usr}/doc
19+%_defaultdocdir %{_usr}/share/doc
20
c9b276b0
JB
21 # The path to the pgp executable (legacy, use %{__pgp} instead).
22 %_pgpbin %{__pgp}
fa78cfd4 23@@ -233,12 +237,12 @@
c9b276b0 24 # The directory where newly built source packages will be written.
5bfda13a
AM
25 %_srcrpmdir %{_topdir}/SRPMS
26
c9b276b0 27-# Directory where temporaray files can be created.
5bfda13a 28-%_tmppath %{_var}/tmp
c9b276b0 29+# Directory where temporary files can be created.
5bfda13a 30+%_tmppath %(echo "${TMPDIR:-/tmp}")
c9b276b0 31 %tmpdir %{_tmppath}
e493253e
ER
32
33 # Path to top of build area.
dc6aae45
JB
34-%_topdir %{_usrsrc}/rpm
35+%_topdir %(echo $HOME)/rpm
e493253e 36
c9b276b0
JB
37 #==============================================================================
38 # ---- Optional rpmrc macros.
fa78cfd4 39@@ -248,7 +252,7 @@
5bfda13a
AM
40 # Configurable build root path, same as BuildRoot: in a specfile.
41 # (Note: the configured macro value will override the spec file value).
42 #
43-%buildroot %{_tmppath}/%{name}-root
44+%buildroot %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
45
46 # The sub-directory (relative to %{_builddir}) where sources are compiled.
47 # This macro is set after processing %setup, either explicitly from the
fa78cfd4 48@@ -347,8 +351,8 @@
3f2f32d6 49 # "w9.bzdio" bzip2 level 9.
c9b276b0 50 # "w9.lzdio" lzma level 9.
3f2f32d6
ER
51 #
52-#%_source_payload w9.gzdio
53-#%_binary_payload w9.gzdio
54+%_source_payload w9.gzdio
55+%_binary_payload w9.lzdio
56
57 # Archive formats to use for source/binary package payloads.
58 # "cpio" cpio archive (default)
a70fc0af 59@@ -508,7 +512,7 @@
e72fb97a
AM
60
61 #
62 # Path to magic file used for file classification.
639079f5 63-%_rpmfc_magic_path %{_rpmhome}/magic
e72fb97a
AM
64+%_rpmfc_magic_path /usr/share/file/magic
65
66 #==============================================================================
67 # ---- Database configuration macros.
fa78cfd4 68@@ -991,9 +995,12 @@
69 %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\
70 export CLASSPATH}\
71 unset PERL_MM_OPT || :\
72- LANG=C\
73- export LANG\
74- unset DISPLAY || :\
75+ export LC_ALL=C\
76+ export LANG=C\
77+ unset LINGUAS ||:\
78+ unset LANGUAGE ||:\
79+ unset LC_MESSAGES ||:\
80+ unset DISPLAY ||:\
81 \
82 %{verbose:set -x}%{!verbose:exec > /dev/null}\
83 umask 022\
84@@ -1127,17 +1134,17 @@
c9b276b0
JB
85 %_exec_prefix %{_prefix}
86 %_bindir %{_exec_prefix}/bin
87 %_sbindir %{_exec_prefix}/sbin
88-%_libexecdir %{_exec_prefix}/libexec
89+%_libexecdir %{_exec_prefix}/lib
90 %_datadir %{_prefix}/share
91-%_sysconfdir %{_prefix}/etc
92-%_sharedstatedir %{_prefix}/com
93-%_localstatedir %{_prefix}/var
94+%_sysconfdir /etc
95+%_sharedstatedir /var/lib
96+%_localstatedir /var
97 %_lib lib
98 %_libdir %{_exec_prefix}/%{_lib}
3bf6878c
AM
99 %_includedir %{_prefix}/include
100 %_oldincludedir /usr/include
c9b276b0 101-%_infodir %{_prefix}/info
3bf6878c 102-%_mandir %{_prefix}/man
c9b276b0 103+%_infodir %{_prefix}/share/info
3bf6878c 104+%_mandir %{_prefix}/share/man
c9b276b0 105 %_localedir %{_datadir}/locale
3bf6878c
AM
106
107 #==============================================================================
fa78cfd4 108@@ -1429,6 +1436,23 @@
c9b276b0
JB
109 #%__executable_provides %{_usrlibrpm}/executabledeps.sh --provides
110 #%__executable_requires %{_usrlibrpm}/executabledeps.sh --requires
d488200a
AM
111-%__scriptlet_requires /bin/bash --rpm-requires
112+#%__scriptlet_requires /bin/bash --rpm-requires
fa78cfd4 113+
e493253e
ER
114+# PLD rpm macros
115+%_enable_debug_packages 1
116+
117+#-----------------------------------------------------------------
118+# CFLAGS and LDFLAGS used to build
119+
5dda5fa7
PS
120+%debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
121+# -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed.
e493253e
ER
122+
123+%debugcflags -O0 -g -Wall
fa78cfd4 124
5b60995d 125+# Warning: those macros are overwritten by macros.build,
126+# left here for compatibility
e493253e
ER
127+%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
128+%rpmcxxflags %{rpmcflags}
4126bfd3 129+%rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed}
c9b276b0 130+
a70fc0af
ER
131 # \endverbatim
132 #*/
133@@ -1480,7 +1504,7 @@
134 #
135 # Note: Used if _use_internal_dependency_generator is non-zero. The
136 # helper is also used by %{_rpmhome}/rpmdeps --provides
137-#%__mimetype_provides %{_rpmhome}/mimetypedeps.sh --provides
138+%__mimetype_provides %{_rpmhome}/mimetypedeps.sh --provides
139
e493253e
ER
140 # \endverbatim
141 #*/
639079f5
ER
142--- rpm-4.5/configure.ac~ 2008-06-10 02:03:07.000000000 +0300
143+++ rpm-4.5/configure.ac 2008-06-10 02:04:18.395836371 +0300
144@@ -1479,7 +1479,7 @@
f587ec65
AM
145 [Full path to rpm system configuration directory (usually /etc/rpm)])
146 AC_SUBST(SYSCONFIGDIR)
147
639079f5 148-MACROFILES="${USRLIBRPM}/${VERSION}/macros:${USRLIBRPM}/%{_target}/macros:${SYSCONFIGDIR}/%{_host_vendor}/macros:${SYSCONFIGDIR}/%{_host_vendor}/%{_target}/macros:${SYSCONFIGDIR}/macros.*:${SYSCONFIGDIR}/macros.d/*.macros:${SYSCONFIGDIR}/macros:${SYSCONFIGDIR}/%{_target}/macros:~/.rpmmacros"
c9b276b0 149+MACROFILES="${USRLIBRPM}/macros:${USRLIBRPM}/macros.build:${USRLIBRPM}/%{_target}/macros:${SYSCONFIGDIR}/macros.*:${SYSCONFIGDIR}/macros:${SYSCONFIGDIR}/%{_target}/macros:~/etc/.rpmmacros:~/.rpmmacros"
f587ec65
AM
150 AC_DEFINE_UNQUOTED(MACROFILES, "$MACROFILES",
151 [Colon separated paths of macro files to read.])
152 AC_SUBST(MACROFILES)
This page took 0.0598919999999999 seconds and 4 git commands to generate.