diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-11-23 23:28:25 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-11-23 23:28:25 +0000 |
commit | c1236b56b729c4395767247991143497610dd1cb (patch) | |
tree | 7802ec0cc81f8ac7d4b46eeb7516a520907d70db | |
parent | e43d2775f0f6f113e6dbe53d04e6292e2f6ced1e (diff) | |
download | rpm-setup-c1236b56b729c4395767247991143497610dd1cb.tar rpm-setup-c1236b56b729c4395767247991143497610dd1cb.tar.gz rpm-setup-c1236b56b729c4395767247991143497610dd1cb.tar.bz2 rpm-setup-c1236b56b729c4395767247991143497610dd1cb.tar.xz rpm-setup-c1236b56b729c4395767247991143497610dd1cb.zip |
I originally figured that querying rpm database within script weren't supposed
to be done, but as I now see it's done elsewhere, perl-base epoch tag should
rather be handled in the script than by autotools
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 13 | ||||
-rwxr-xr-x | find-requires.in | 6 |
3 files changed, 6 insertions, 16 deletions
diff --git a/Makefile.am b/Makefile.am index 3bc3aa5..cc728de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,8 +86,7 @@ edit = sed \ -e 's,@RPMSYSCONFDIR\@,$(RPMSYSCONFDIR),g'\ -e 's,@RPMOS\@,$(RPMOS),g' \ -e 's,@CANONTARGETCPU\@,$(CANONTARGETCPU),g' \ - -e 's,@RPMALLARCH\@,$(RPMALLARCH),g' \ - -e 's,@PERLEPOCH\@,$(PERLEPOCH),g' + -e 's,@RPMALLARCH\@,$(RPMALLARCH),g' %: %.in Makefile $(edit) $< > $@ diff --git a/configure.ac b/configure.ac index 953099d..bc7af73 100644 --- a/configure.ac +++ b/configure.ac @@ -107,19 +107,6 @@ else usrprefix=$prefix fi -AC_MSG_CHECKING([for epoch tag of perl-base package]) -PERLEPOCH=`rpm -q --queryformat '%|EPOCH?{[%{EPOCH}]:}|' perl-base` -if test "$?" != 0; then - PERLEPOCH="" -fi -AC_SUBST(PERLEPOCH) - -if test $PERLEPOCH; then - AC_MSG_RESULT([$PERLEPOCH]) -else - AC_MSG_RESULT([no]) -fi - RPMLIBDIR="${usrprefix}/lib/rpm" AC_ARG_WITH(rpmlibdir, [ --with-rpmlibdir=dir location of rpm config file ]) if test $with_rpmlibdir; then diff --git a/find-requires.in b/find-requires.in index 341cae0..7f1930b 100755 --- a/find-requires.in +++ b/find-requires.in @@ -92,8 +92,12 @@ fi # # --- Perl or python deps +PERL_EPOCH=`rpm -q --queryformat '%|EPOCH?{[%{EPOCH}]:}|' perl-base` +if [ $? != 0 ]; then + unset PERL_EPOCH +fi for f in $filelist; do - echo $f | sed -n -e 's@.*/usr/lib/perl5/\(site_perl/\)\([0-9]\{1,\}\.[0-9]\{1,\}\)\.\([0-9]\{1,\}\).*$@perl-base >= \2.\3@p' -e "s@.*/usr/lib/perl5/\(vendor_perl\/\)\([.0-9]\{1,\}\).*\$@perl-base >= @PERLEPOCH@\2@p" -e 's@.*/usr/\(lib\|lib64\)/python\([.0-9]\{1,\}\).*$@python-base >= \2@p' + echo $f | sed -n -e 's@.*/usr/lib/perl5/\(site_perl/\)\([0-9]\{1,\}\.[0-9]\{1,\}\)\.\([0-9]\{1,\}\).*$@perl-base >= \2.\3@p' -e "s@.*/usr/lib/perl5/\(vendor_perl\/\)\([.0-9]\{1,\}\).*\$@perl-base >= $PERL_EPOCH\2@p" -e 's@.*/usr/\(lib\|lib64\)/python\([.0-9]\{1,\}\).*$@python-base >= \2@p' done | sort -u |