[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Newbie rpmbuild question: change directory error
- From: Raman Gupta <rocketraman fastmail fm>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Newbie rpmbuild question: change directory error
- Date: Mon, 20 Mar 2006 12:34:02 -0500
James Olin Oden wrote:
> On 3/20/06, Raman Gupta <rocketraman fastmail fm> wrote:
>> Hello, I am running Fedora Core 4. I have followed the directions at [1]
>> in order to get a non-root build tree setup with the appropriate macros,
>> dir structure, etc.
>>
>> I am now attempting to build the msttcorefonts RPM (spec file at [2]).
>> However, any lines that involve "cd <somedir>" seem to fail during building:
>>
>> $ rpmbuild -bb msttcorefonts-1.3-4.spec
>> Executing(%prep): /bin/sh -e /home/raman/rpmbuild/tmp/rpm-tmp.28761
>> + umask 022
>> + cd /home/raman/rpmbuild/BUILD
>> + rm -rf msttcorefonts
>> + mkdir msttcorefonts
>> + cd msttcorefonts
>> /home/raman/rpmbuild/tmp/rpm-tmp.28761: line 24: cd: msttcorefonts: No
>> such file or directory
>> error: Bad exit status from /home/raman/rpmbuild/tmp/rpm-tmp.28761 (%prep)
>>
>>
> What are the perms on the directory after its created and its
> ownership? Specifically, does the user who created the directory have
> eXecute permision on the directory?
Yup, perms are 755, as expected based on the earlier umask command in
the script. The owner/group is the build user/group raman/raman (the
build user/group).
After the rpmbuild command bombs out, I have no problems manually cd'ing
into the directory. Also, the rpmbuild works correctly if I modify the
spec file and prepend a `pwd`/ to the directory, which indicates that
the user does indeed have execute perms, but for some reason the cd only
works if the full path is provided.
Cheers,
Raman
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]