This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linux rpm package creation on Enterprise Console 5.4.0

I have created the rpm packages following Sophos documentation.

 

When installing, the rpm packages' post run scriplets fail:

pm -ivh /root/rpmbuild/RPMS/x86_64/savinstpkg-0.0-1.x86_64.rpm

Preparing... ########################################### [100%]

1:savinstpkg ########################################### [100%]

 

/var/tmp/rpm-tmp.TN70Q1: line 62: /tmp/sophos-install_F9Ct941/install.sh: No such file or directory

 

 

Looks like script has some sort of issue with creating/accessing tmp files.

 

Any ideas.



This thread was automatically locked due to age.
Parents
  • Hello,

     

    Apologies for the delay in getting back to you. In order us to help more would it be possible to run 

    strace –f

    and post the output to this thread. 

     

    Cheers

    Mark 

  • Hi Mark,

     

    Thanks for your response. Attached is strace output from rpm installation.

     

    Apologies for late reply.

     

    Samsav-installrpm.txt

  • Hi Sam,

    I'm not sure what has gone wrong here - the tar file (inside the RPM) is either wrong, or has unpacked wrong.

    The tarfile should contain paths prefixed with sophos-av which is what the rest of the post-install RPM script expects.

    Things you could try:

    1) Unpack the RPM with rpm2cpio to get the tarfile and see what it contains

    2) Make sure the OS you are building the RPM and the one you are using it on are the same.

    But I'm surprised to see it fail in this way. What OS and version are you installing the RPM on?

     

    Thanks,

    Douglas.

Reply
  • Hi Sam,

    I'm not sure what has gone wrong here - the tar file (inside the RPM) is either wrong, or has unpacked wrong.

    The tarfile should contain paths prefixed with sophos-av which is what the rest of the post-install RPM script expects.

    Things you could try:

    1) Unpack the RPM with rpm2cpio to get the tarfile and see what it contains

    2) Make sure the OS you are building the RPM and the one you are using it on are the same.

    But I'm surprised to see it fail in this way. What OS and version are you installing the RPM on?

     

    Thanks,

    Douglas.

Children
No Data