The problem seems to be inside the building process, when I start the script 
with 

#sh /var/tmp/daemontools-0.76-show_flags 
It goes  flawlessly...
 RPM RELEASE: daemontools-toaster-0.76-1.3.3
 OS TYPE IS : CentOS 5 Linux
 BUILD DATE : Sat Apr 14 2007
 CCFLAGS    : -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
 LDFLAGS    : -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic

I install the rpm source package and then edit the line that runs this command:

# Take care to execute and then to delete
#----------------------------------------------------------------------------------
chmod u+x %{_tmppath}/%{name}-%{pversion}-show_flags
%{_tmppath}/%{name}-%{pversion}-show_flags
[ -f %{_tmppath}/%{name}-%{pversion}-show_flags ] && rm -f 
%{_tmppath}/%{name}-%{pversion}-show_flags
#----------------------------------------------------------------------------------

to 

# Take care to execute and then to delete
#----------------------------------------------------------------------------------
chmod u+x %{_tmppath}/%{name}-%{pversion}-show_flags
sh %{_tmppath}/%{name}-%{pversion}-show_flags
[ -f %{_tmppath}/%{name}-%{pversion}-show_flags ] && rm -f 
%{_tmppath}/%{name}-%{pversion}-show_flags
#----------------------------------------------------------------------------------

then I start the building process ... 
#rpmbuild -ba --rebuild --with cnt5064 
/usr/src/redhat/SPECS/daemontools-toaster.spec
it builds the rpm without errors

German 


----- Original Message ----- 
From: "Dan McAllister" <[EMAIL PROTECTED]>
To: <qmailtoaster-list@qmailtoaster.com>
Sent: Monday, October 27, 2008 12:59 PM
Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise


> the only other time I've seen this type of error it was because the 
> filesystem that contained /tmp was full.
> 
> by default, RHEL puts /tmp on the / (root) filesystem. One of the many 
> "customizations" I usually deploy is that I change /tmp to be a symbolic 
> link to /var/tmp.
> 
> I hope this helps....
> 
> Dan
> 
> Daniel McAllister, President
> 
> IT4SOHO, LLC
> PO BOX 507
> St. Petersburg, FL 33731-0507
> 
> 877-IT4SOHO: Toll Free
> 727-647-7646 In Pinellas
> 813-464-2093 In Hillsborough
> 727-507-9435 Fax Only
> 
> "When did you do your last backup?"
> 
> Ask me about unattended offsite backup solutions...
> to protect your business, not just your data!
> 
> 
> 
> German Molano & Asociados wrote:
>> Yes Selinux is disabled ...
>> #cat /etc/selinux/config
>> # This file controls the state of SELinux on the system.
>> # SELINUX= can take one of these three values:
>> #   enforcing - SELinux security policy is enforced.
>> #   permissive - SELinux prints warnings instead of enforcing.
>> #   disabled - No SELinux policy is loaded.
>> SELINUX=disabled
>> # SELINUXTYPE= can take one of these two values:
>> #   targeted - Only targeted network daemons are protected.
>> #   strict - Full SELinux protection.
>> SELINUXTYPE=targeted
>>
>> # SETLOCALDEFS= Check local definition changes
>> SETLOCALDEFS=0
>>
>> I am doing the building with CenOS 50 x64 scripts ...
>>
>>
>> ----- Original Message ----- From: "Eric Shubert" <[EMAIL PROTECTED]>
>> To: <qmailtoaster-list@qmailtoaster.com>
>> Sent: Monday, October 27, 2008 11:48 AM
>> Subject: Re: [qmailtoaster] Failed build on RedHat Enterprise
>>
>>
>>> Have you disabled selinux?
>>>
>>> German Molano & Asociados wrote:
>>>> Hi there, i am trying to build the qmailtoaster packages on RedHat
>>>> Enterprise Linux Server release 5.2 on a x86_64 server, i am getting
>>>> this error on the building process:
>>>>  
>>>> + chmod u+x /var/tmp/daemontools-0.76-show_flags
>>>> + /var/tmp/daemontools-0.76-show_flags
>>>> /var/tmp/rpm-tmp.28671: /var/tmp/daemontools-0.76-show_flags: /bin/sh:
>>>> bad interpreter: Permission denied
>>>> error: Bad exit status from /var/tmp/rpm-tmp.28671 (%prep)
>>>>
>>>> RPM build errors:
>>>>     Bad exit status from /var/tmp/rpm-tmp.28671 (%prep)
>>>> I am logged as root and i run /var/tmp/daemontools-0.76-show_flags and
>>>> it fails:
>>>>  
>>>> -bash: /var/tmp/daemontools-0.76-show_flags: /bin/sh: bad interpreter:
>>>> Permission denied
>>>>  
>>>> What's wrong ?
>>>>  
>>>>  
>>>> Thanks for your help
>>>>  
>>>
>>>
>>> ---------------------------------------------------------------------
>>>     QmailToaster hosted by: VR Hosted <http://www.vr.org>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>>     QmailToaster hosted by: VR Hosted <http://www.vr.org>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> ---------------------------------------------------------------------
>     QmailToaster hosted by: VR Hosted <http://www.vr.org>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to