Re: rpm will only install with --noscripts flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/21/06, Edward Quick <edwardquick@xxxxxxxxxxx> wrote:
Hi,

I'm trying to install an RPM I've built on Redhat onto a Solaris 8 (Sparc)
box, and the only way I can get it to install anything is if I issue it with
the --noscripts flag eg:

rpm --nodeps --ignoreos --ignorearch --noscripts --install
apache-instance-ohdev04-1-1.i386.rpm

It's the same when I run rpm --erase. If I don't include --noscripts,
nothing gets installed/uninstalled
This is the verbose output when I try to install without the --noscripts
flag:

rpm --nodeps --ignoreos --ignorearch --install -vvv
apache-instance-ohdev04-1-1.i386.rpm
D: counting packages to install
D: found 1 packages
D: looking for packages to download
D: retrieved 0 packages
D: New Header signature
D: Signature size: 180
D: Signature pad : 4
D: sigsize         : 184
D: Header + Archive: 32059
D: expected size   : 32059
D: opening db index       /opt/sfw/lib/rpm/Packages create mode=0x102
D: locked  db index       /opt/sfw/lib/rpm/Packages
D: found 0 source and 1 binary packages
D: installing binary packages
D: getting list of mounted filesystems
D: opening db index       /opt/sfw/lib/rpm/Name create mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Basenames create mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Group create mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Requirename create
mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Providename create
mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Conflictname create
mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Triggername create
mode=0x102
D: opening db index       /opt/sfw/lib/rpm/Depends create mode=0x102
D: New Header signature
D: Signature size: 180
D: Signature pad : 4
D: sigsize         : 184
D: Header + Archive: 32059
D: expected size   : 32059
D: package: apache-instance-ohdev04-1-1 files test = 0
D:    file: /etc/rc.d/init.d/ohdev04-apache action: create
D:    file: /etc/rc.d/init.d/ohdev04-tomcat action: create
D:    file: /oh/apache/ohdev04 action: create
D:    file: /oh/apache/ohdev04/bin action: create
D:    file: /oh/apache/ohdev04/bin/.apache-tomcatctl action: create
D:    file: /oh/apache/ohdev04/bin/.install action: create
D:    file:
/oh/apache/ohdev04/bin/.install/apache-instance-ohdev04.spec action:
create
D:    file: /oh/apache/ohdev04/bin/.install/post-install action: create
D:    file: /oh/apache/ohdev04/bin/.install/pre-uninstall action:
create
D:    file: /oh/apache/ohdev04/bin/.install/set-appconf action: create
D:    file: /oh/apache/ohdev04/bin/.install/set-bootscripts action:
create
D:    file: /oh/apache/ohdev04/bin/.install/set-cron action: create
D:    file: /oh/apache/ohdev04/bin/.install/set-permissions action:
create
D:    file: /oh/apache/ohdev04/bin/.install/set-sudoers action: create
D:    file: /oh/apache/ohdev04/bin/apache-bootscript action: create
D:    file: /oh/apache/ohdev04/bin/apache-tomcatctl action: create
D:    file: /oh/apache/ohdev04/bin/apache_log_cleanup.sh action: create
D:    file: /oh/apache/ohdev04/bin/apachectl action: create
D:    file: /oh/apache/ohdev04/bin/catalina.sh action: create
D:    file: /oh/apache/ohdev04/bin/setclasspath.sh action: create
D:    file: /oh/apache/ohdev04/bin/setenv.sh action: create
D:    file: /oh/apache/ohdev04/bin/shutdown.sh action: create
D:    file: /oh/apache/ohdev04/bin/startup.sh action: create
D:    file: /oh/apache/ohdev04/bin/tomcat-bootscript action: create
D:    file: /oh/apache/ohdev04/bin/tomcatctl action: create
D:    file: /oh/apache/ohdev04/cgi-bin action: create
D:    file: /oh/apache/ohdev04/conf action: create
D:    file: /oh/apache/ohdev04/conf/ohdev04.conf action: create
D:    file: /oh/apache/ohdev04/conf/server.xml action: create
D:    file: /oh/apache/ohdev04/conf/ssl action: create
D:    file: /oh/apache/ohdev04/conf/ssl.conf action: create
D:    file: /oh/apache/ohdev04/conf/ssl/ohdev04.baplc.com.crt action:
create
D:    file: /oh/apache/ohdev04/conf/ssl/ohdev04.baplc.com.csr action:
create
D:    file: /oh/apache/ohdev04/conf/ssl/ohdev04.baplc.com.key action:
create
D:    file: /oh/apache/ohdev04/conf/ssl/passphrase action: create
D:    file: /oh/apache/ohdev04/conf/tomcat-users.xml action: create
D:    file: /oh/apache/ohdev04/conf/web.xml action: create
D:    file: /oh/apache/ohdev04/httpdocs action: create
D:    file: /oh/apache/ohdev04/logs action: create
D:    file: /oh/apache/ohdev04/temp action: create
D:    file: /oh/apache/ohdev04/webapps action: create
D:    file: /oh/apache/ohdev04/work action: create
D:    file: /oh/logs/apache/ohdev04 action: create
D: running preinstall script (if any)
D: closed  db index       /opt/sfw/lib/rpm/Depends
D: closed  db index       /opt/sfw/lib/rpm/Triggername
D: closed  db index       /opt/sfw/lib/rpm/Conflictname
D: closed  db index       /opt/sfw/lib/rpm/Providename
D: closed  db index       /opt/sfw/lib/rpm/Requirename
D: closed  db index       /opt/sfw/lib/rpm/Group
D: closed  db index       /opt/sfw/lib/rpm/Basenames
D: closed  db index       /opt/sfw/lib/rpm/Name
D: closed  db index       /opt/sfw/lib/rpm/Packages

This is mystifying.  I keep looking but I don't see anything about the
return from the pre-install script.  Nor do I see anything comming
from a post-install script, finally it never seems to transition from
pre-install to the FSM (file state machine), and there are no error
messages.

OK here are some standard questions:

  - What version of rpm did you build it with?
  - What version of RedHat where you on when you build it?
  - What version of rpm is on your solaris box?

Jeff do you have any ideas?
...james


Hi James,

Thanks for your help. This is my redhat box, where I'm buiilding the RPM:

$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon Update 3)
$ uname -a
Linux blx01af01 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux
$ rpm --version
RPM version 4.2.3
$ rpm -qa | grep -i rpm
rpm-libs-4.2.3-10
rpm-python-4.2.3-10
rpmdb-redhat-3-0.20040902
rpm-devel-4.2.3-10
redhat-rpm-config-8.0.28-2
redhat-java-rpm-scripts-1.0.2-2
rpm-build-4.2.3-10
rpm-4.2.3-10

And this is the solaris box where I'm trying to install the RPM:

# uname -a
SunOS smpd328 5.8 Generic_117000-05 sun4u sparc SUNW,Sun-Fire-V240
# rpm --version
RPM version 4.0
smpd328>pkginfo -l SFWrpm
  PKGINST:  SFWrpm
     NAME:  RPM - Red Hat Package Manager
 CATEGORY:  system
     ARCH:  sparc
  VERSION:  4.0,REV=2001.11.28.11.45
  BASEDIR:  /opt
   VENDOR:  Red Hat Inc.
     DESC:  RPM 4.0
   PSTAMP:  freeware20011128143402
 INSTDATE:  Dec 21 2006 10:59
  HOTLINE:  Please contact the owners of this software
   STATUS:  completely installed
    FILES:      251 installed pathnames
                  4 shared pathnames
                 88 directories
                 44 executables
              22755 blocks used (approx)


Also, here's my spec file in case that helps:

$ cat apache-instance.rpmspec
Summary:   Apache instance INSTANCE_NAME
Name:      apache-instance-INSTANCE_NAME
Version:   RPM_VERSION
Release:   RPM_RELEASE
License:   GPL
Packager:  RPM_PACKAGER
Vendor:    Joe Bloggs
Group:     Applications/System
Provides:  apache-instance-INSTANCE_NAME

%description
Apache instance INSTANCE_NAME

%pre
#
# Add the "apache" user & group
#
/usr/sbin/groupadd FILESGROUP \
        2> /dev/null || :
/usr/sbin/useradd -c "File owner for APPLICATION_CODE" -g FILESGROUP FILESUSER \
        2> /dev/null || :
/usr/sbin/groupadd APACHEGROUP \
        2> /dev/null || :
/usr/sbin/useradd -c "Apache for APPLICATION_CODE" -g APACHEGROUP APACHEUSER \
        2> /dev/null || :

%files
%defattr(-,root,root)
/APPLICATION_CODE/apache/INSTANCE_NAME
/APPLICATION_CODE/logs/apache/INSTANCE_NAME
/etc/rc.d/init.d/INSTANCE_NAME-*

%post
/APPLICATION_CODE/apache/INSTANCE_NAME/bin/.install/post-install

%preun
/APPLICATION_CODE/apache/INSTANCE_NAME/bin/.install/pre-uninstall

Cheers,

Ed.

_________________________________________________________________
It's Hotmail's 10th Birthday! Come and play Pass the Parcel http://www.msnpasstheparcel.com

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux