[Tizen Application-dev] Permission denied on /dev/null when running `gbs build`

Iovene, Salvatore salvatore.iovene at intel.com
Fri Jul 19 09:08:04 GMT 2013


Alright, thanks Jian Feng, that helped!
Now I guess I'm at the last stumbling block:

I can't seem to be able to address the local repository files from the
spec file. So, in my "%install" section, I do this:

install -p dist/* %{buildroot}/share/myapp

because I'm trying to copy all the files in ./dist to the installation
target. However, this complains that "dist" is not found. I added an
echo of my current working directory (echo "Current dir is $(pwd)")
and that says /home/abuild/rpmbuild/BUILD.

So, how do I correctly address files in my repository, so I can install them?

Thank you!
Salvatore.


On Fri, Jul 19, 2013 at 11:43 AM, Jian-feng Ding
<jian-feng.ding at intel.com> wrote:
> Do you mean `gbs build --include-all ...` which will let gbs build on all
> local modifications.
>
> thanks
> - jf.ding
>
> On Fri, Jul 19, 2013 at 11:27:54AM +0300, Iovene, Salvatore wrote:
>> Thanks, that should help, hopefully. One more question:
>>
>> do you know how to get gbs to use the local git repository, and
>> therefore the locally modified spec file? I realized that each time I
>> run gbs, even if doing a local build, it will use the spec file that
>> is on the remote git repository. So how do I quickly make tests
>> without committing code?
>>
>> Thanks again!
>> Salvatore.
>>
>>
>> On Thu, Jul 18, 2013 at 3:35 PM, João Paulo Ventura
>> <ventura at profusion.mobi> wrote:
>> > Salvatore,
>> >
>> > May you take a look at the spec file I created for Google V8
>> > http://evoluter.tumblr.com/tagged/v8?
>> >
>> >
>> >
>> > On Thu, Jul 18, 2013 at 9:23 AM, Devchandra L Meetei <dlmeetei at gmail.com>
>> > wrote:
>> >>
>> >> For the
>> >> mkdir -p /usr/share/myapp
>> >>
>> >> Do the /usr/share have search permission ?
>> >>
>> >>
>> >> On Thu, Jul 18, 2013 at 5:42 PM, Iovene, Salvatore
>> >> <salvatore.iovene at intel.com> wrote:
>> >>>
>> >>> Thanks,
>> >>> that rid me of the errors on /dev/null, but I still get Permission
>> >>> Denied during my %install target. It looks like this:
>> >>>
>> >>> %install
>> >>> mkdir -p /usr/share/myapp
>> >>> copy dist/* /usr/share/myapp/
>> >>>
>> >>> And the output:
>> >>>
>> >>> [    4s] + mkdir -p /usr/share/myapp
>> >>> [    4s] mkdir: cannot create directory `/usr/share/myapp': Permission
>> >>> denied
>> >>> [    4s] error: Bad exit status from /var/tmp/rpm-tmp.R7IBxf (%install)
>> >>>
>> >>> Any idea of what i'm doing wrong now?
>> >>>
>> >>> Thanks!
>> >>> Salvatore.
>> >>>
>> >>>
>> >>> On Thu, Jul 18, 2013 at 3:00 PM, João Paulo Ventura
>> >>> <ventura at profusion.mobi> wrote:
>> >>> > At your ~/.gbs.conf file:
>> >>> >
>> >>> > buildroot = /tmp/
>> >>> >
>> >>> >
>> >>> > On Thu, Jul 18, 2013 at 8:55 AM, Iovene, Salvatore
>> >>> > <salvatore.iovene at intel.com> wrote:
>> >>> >>
>> >>> >> On Thu, Jul 18, 2013 at 2:49 PM, João Paulo Ventura
>> >>> >> <ventura at profusion.mobi> wrote:
>> >>> >> > As a temporary solution I've created a new GBS-ROOT at the /tmp/
>> >>> >> > directory.
>> >>> >>
>> >>> >> Thanks Joao Paulo.
>> >>> >> Can you elaborate with more details on how to do it, please?
>> >>> >>
>> >>> >> Thanks!
>> >>> >> Salvatore.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> Salvatore Iovene <salvatore.iovene at intel.com>
>> >>> >> Linux Software Engineer
>> >>> >> Intel Open Source Technology Center, Finland
>> >>> >> Tel.: +358504804026
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > Joao Paulo Fernandes Ventura
>> >>> > Software Analyst at ProFUSION Embedded Systems
>> >>> > Computing Engineer at University of Campinas
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Salvatore Iovene <salvatore.iovene at intel.com>
>> >>> Linux Software Engineer
>> >>> Intel Open Source Technology Center, Finland
>> >>> Tel.: +358504804026
>> >>> _______________________________________________
>> >>> Application-dev mailing list
>> >>> Application-dev at lists.tizen.org
>> >>> https://lists.tizen.org/listinfo/application-dev
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Warm Regards
>> >> --Dev
>> >> OpenPegasus Developer/Committer
>> >>
>> >> (\__/)
>> >> (='.'=) This is Bunny. Copy and paste bunny
>> >> (")_(") to help him gain world domination.
>> >
>> >
>> >
>> >
>> > --
>> > Joao Paulo Fernandes Ventura
>> > Software Analyst at ProFUSION Embedded Systems
>> > Computing Engineer at University of Campinas
>>
>>
>>
>> --
>> Salvatore Iovene <salvatore.iovene at intel.com>
>> Linux Software Engineer
>> Intel Open Source Technology Center, Finland
>> Tel.: +358504804026
>> _______________________________________________
>> Application-dev mailing list
>> Application-dev at lists.tizen.org
>> https://lists.tizen.org/listinfo/application-dev



-- 
Salvatore Iovene <salvatore.iovene at intel.com>
Linux Software Engineer
Intel Open Source Technology Center, Finland
Tel.: +358504804026


More information about the Application-dev mailing list