Bug 707600

Summary: /usr/bin/globus-spec-creator fails
Product: [Fedora] Fedora EPEL Reporter: Dennis van Dok <dennisvd>
Component: globus-coreAssignee: Mattias Ellert <mattias.ellert>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el5CC: mattias.ellert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-29 05:07:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dennis van Dok 2011-05-25 13:39:33 UTC
Description of problem:

Calling the globus-spec-creator utility fails with an unhelpful error. It is hard to determine whether this is a user error or a real bug.

Version-Release number of selected component (if applicable):

5.17-3.el5

How reproducible:

Easy

Steps to Reproduce:
1. Download the globus toolkit sources: wget -N http://www-unix.globus.org/ftppub/gt5/5.0/5.0.3/installers/src/gt5.0.3-all-source-installer.tar.bz2

2. Unpack: tar xfj gt5.0.3-all-source-installer.tar.bz2
3. mv gt5.0.3-all-source-installer/source-trees/gssapi-openssh/openssh globus_openssh-5.2
4. mv gt5.0.3-all-source-installer/source-trees/gssapi-openssh/setup globus_openssh_setup-5.2
5. globus-spec-creator --gptfile globus_openssh-5.2/pkg_data_src.gpt   --directory globus_openssh-5.2

Actual results:

Can't call method "getAttributeNode" on an undefined value at /usr/bin/globus-spec-creator line 103.

Expected results:

A spec file of sorts.

Additional info:

I followed the instructions found on http://fedoraproject.org/wiki/Packaging:Globus trying to make a globus_openssh package.

Comment 1 Mattias Ellert 2011-06-29 05:07:35 UTC
The globus-spec-creator script works for all normal globus packages. The gsissh package is special because it is a modified version of openssh. This means that the package is not really using GPT to build like the normal globus package. When packaging gsissh for Fedora it is better not to use GPT at all, but rather base the gsissh package on the structure of the existing openssh package, as has been done in the package submitted for review (bug #683587).

The gsissh package is the only package I have come across that uses the particular syntax in the package description that the globus-spec-creator is failing to interpret in the way described in this bug report. Since as explained above it is not needed to run the script for this package I suggest not to spend time fixing it.