aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am16
-rw-r--r--NEWS3
-rw-r--r--configure.ac8
3 files changed, 13 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am
index 619d682..1ff4b4b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,14 +7,14 @@ pkg_gdata = \
macros \
rpmrc
-pkg_sysconf_macros_tmp = \
+pkg_macrosd_tmp = \
build.macros
pkg_data_in = $(pkg_gdata:=.in)
-pkg_sysconf_macros_in = $(pkg_sysconf_macros_tmp:=.in)
+pkg_macrosd_in = $(pkg_macrosd_tmp:=.in)
-pkg_sysconf_macros = $(pkg_sysconf_macros_tmp)
+pkg_macrosd = $(pkg_macrosd_tmp)
pkg_gconfig = \
platform \
@@ -80,7 +80,7 @@ foobar_pkglib_SCRIPTS = \
EXTRA_DIST = \
$(pkg_data_in) \
- $(pkg_sysconf_macros_in) \
+ $(pkg_macrosd_in) \
$(pkg_attr_defs) \
$(pkg_scripts) \
$(pkg_scripts_in) \
@@ -116,7 +116,7 @@ platform: rpmgenplatform Makefile
platform32: rpmgenplatform Makefile
perl rpmgenplatform $(CANONTARGETCPU32) > $@
-install-data-local: $(arch_macrosfiles) $(pkg_gconfig) $(pkg_sysconf_macros_tmp)
+install-data-local: $(arch_macrosfiles) $(pkg_gconfig) $(pkg_macrosd_tmp)
if ONLY_RPMRC
echo "not installing per-arch macros which are already in rpmrc and standard rpm per-arch macros"
else
@@ -126,8 +126,8 @@ else
done
endif
[ -d $(DESTDIR)$(RPMSYSCONFDIR)/macros.d ] || $(mkinstalldirs) $(DESTDIR)$(RPMSYSCONFDIR)/macros.d
- for i in $(pkg_sysconf_macros); do \
- $(install_sh_DATA) $${i} $(DESTDIR)$(RPMSYSCONFDIR)/macros.d/$${i}; \
+ for i in $(pkg_macrosd); do \
+ $(install_sh_DATA) $${i} $(DESTDIR)$(RPMLIBDIR)/macros.d/$${i}; \
done
for i in $(pkg_attr_defs); do \
$(install_sh_DATA) $${i} $(DESTDIR)$(RPMLIBDIR)/fileattrs/$${i}; \
@@ -148,5 +148,5 @@ test: $(pkg_gdata) $(pkg_gscripts) $(arch_macrosfiles) $(pkg_gconfig)
sh tests.sh
CLEANFILES = $(pkg_gdata) $(pkg_gscripts) $(arch_macrosfiles) $(pkg_gconfig)\
- macros-perarch $(pkg_sysconf_macros_tmp) \
+ macros-perarch $(pkg_macrosd_tmp) \
make_arch_macrosfiles.sh
diff --git a/NEWS b/NEWS
index 0f1f228..1c2ac0b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- move files from /etc/rpm/macros.d into /usr/lib/rpm/macros.d thus fixing most
+ issues with rpm's testsuite (related to not being able to disable debuginfo)
+
Version 2.39 - 4 May 2019, by Pascal Terjan
- make armv7hl chroots on aarch64 work as expected (urpmi accepts to install armv7hl
diff --git a/configure.ac b/configure.ac
index c9ee67b..d637133 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,12 +176,8 @@ AC_SUBST(RPMCONFDIR)
RPMVENDORDIR="${RPMCONFDIR}/${RPMCANONVENDOR}"
AC_SUBST(RPMVENDORDIR)
-RPMSYSCONFDIR="/etc/rpm"
-AC_ARG_WITH(rpmsysconfdir, [ --with-rpmsysconfdir=dir location of etc ])
-if test $with_rpmsysconfdir; then
- RPMSYSCONFDIR=$with_rpmsysconfdir
-fi
-AC_SUBST(RPMSYSCONFDIR)
+RPMMACROSD="/usr/lib/rpm/macros.d"
+AC_SUBST(RPMMACROSD)
AC_ARG_WITH(rpmplatform, [ --with-rpmplatform use /etc/rpm/platform ])