Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 118028
Collapse All | Expand All

(-)xscreensaver-4.23/configure.in (-35 / +1 lines)
Lines 4070-4110 Link Here
4070
# Now let's warn if there's a previous RPM version already installed.
4070
# Now let's warn if there's a previous RPM version already installed.
4071
# But don't bother with this test if we are currently *building* an RPM.
4071
# But don't bother with this test if we are currently *building* an RPM.
4072
4072
4073
if test -z "$RPM_PACKAGE_VERSION" ; then
4073
# Nope - breaks compilation with sandbox violation
4074
4075
  rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
4076
4077
  # M4 sucks!!
4078
  changequote(X,Y)
4079
  rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
4080
        sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
4081
        head -1`
4082
  changequote([,])
4083
4084
  if test \! -z "$rpmv" ; then
4085
    rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
4086
    rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/attraction$@\1@p'`
4087
4088
    warning=no
4089
    warnL "There is already an installed RPM of xscreensaver $rpmv"
4090
    warn2 'on this system.  You might want to remove it ("rpm -ve")'
4091
    warn2 'before running "make install" in this directory.'
4092
    echo ""
4093
    warn2 "Alternately, you could build this version of xscreensaver"
4094
    warn2 'as an RPM, and then install that.  An "xscreensaver.spec"'
4095
    warn2 'file is included.  Try "rpmbuild -v -ba xscreensaver.spec".'
4096
    warn2 "See the RPM documentation for more info."
4097
    echo ""
4098
4099
    if test "$rpmbdir" = "$rpmhdir" ; then
4100
      warn2 "The RPM version was installed in $rpmbdir/."
4101
      do_dir_warning=yes
4102
    else
4103
      warn2 "The RPM version was installed in $rpmbdir/,"
4104
      warn2 "with demos in $rpmhdir/."
4105
    fi
4106
  fi
4107
fi
4108
4074
4109
if test "${bindir}" = "${HACKDIR}" ; then
4075
if test "${bindir}" = "${HACKDIR}" ; then
4110
  do_dir_warning=yes
4076
  do_dir_warning=yes

Return to bug 118028