RPM spec file is wrong for 2.7.0 tar file
-----------------------------------------

         Key: XERCESC-1492
         URL: http://issues.apache.org/jira/browse/XERCESC-1492
     Project: Xerces-C++
        Type: Bug
  Components: Build  
    Versions: 2.7.0    
 Environment: Red Hat Enterprise Linux 3 / i386
    Reporter: Jonathan Lennox


The directory layout of the Xerces C++ source distribution has changed.

In previous versions, the Xerces source distribution was placed into a 
directory named (e.g.) xerces-c-src_2_5_0/, but the tar files 
http://www.apache.org/dist/xml/xerces-c/xerces-c-current.tar.gz (equivalently 
http://www.apache.org/dist/xml/xerces-c/source/xerces-c-src_2_7_0.tar.gz) 
unpack into a directory named simply xerces-c-src/.

Unfortunately, the xerces-c.spec file has not been updated to match.  Thus, you 
get the following failure:

$ rpmbuild -ta xerces-c-src_2_7_0.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.34504
+ umask 022
+ cd /home/lennox/Proj/NoBackup/RPMs/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/lennox/Proj/NoBackup/RPMs/BUILD
+ rm -rf xerces-c-src_2_7_0
+ /usr/bin/gzip -dc 
/n/irt-filer1/proj/irt-taped1/lennox/Xerces-C/xerces-c-src_2_7_0.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd xerces-c-src_2_7_0
/var/tmp/rpm-tmp.34504: line 33: cd: xerces-c-src_2_7_0: No such file or 
directory
error: Bad exit status from /var/tmp/rpm-tmp.34504 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.34504 (%prep)

(Note that I have a ~/.rpmmacros file with %_topdir set, but that shouldn't 
affect this.)

As a workaround, un-tar the file, rename the xerces-c-src directory to 
xerces-c-src_2_7_0, create a new file, and run rpmbuild -ta on that.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to