Re: Newbie rpmbuild question: change directory error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Olin Oden wrote:
> On 3/20/06, Raman Gupta <rocketraman@xxxxxxxxxxx> 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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux