Re: [SailfishDevel] [Solved] RPM validator error

2019-09-18 Thread Ville Nummela

On 18.9.2019 23.38, David Llewellyn-Jones wrote:


On 18/09/2019 23:27, Marko Koschak wrote:



I was trying to check the created rpm for my app ownKeepass but it
failed for a strange reason: "cpio: ./usr/bin/harbour-ownkeepass:
Cannot open: Permission denied"

After I changed one line in the .yml file the validation worked again:

- '%attr(655,-,-) %{_bindir}' -> - '%attr(755,-,-) %{_bindir}'

It seemed the executable bit was the source of the error...

Glad you solved it; I was too slow! Is this the first release? If not,
it's odd this has never caused problems in the past.


It's not that odd really. There used to be a bug in the validator.

 -Ville

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] [Solved] RPM validator error

2019-09-18 Thread Marko Koschak
On 18/09/2019 23:39, David Llewellyn-Jones wrote:
> > After I changed one line in the .yml file the validation worked again:
> >
> > - '%attr(655,-,-) %{_bindir}' -> - '%attr(755,-,-) %{_bindir}'
> >
> > It seemed the executable bit was the source of the error...
>
> Is this the first release? If not,
> it's odd this has never caused problems in the past.

It was in the yaml file since October 2015, so there were some
releases since then...
I have no idea why I put 655 and not 755 right in the first place ;)

Marko
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] [Solved] RPM validator error

2019-09-18 Thread David Llewellyn-Jones
On 18/09/2019 23:27, Marko Koschak wrote:
> Answering to myself ;)
> 
>> I was trying to check the created rpm for my app ownKeepass but it
>> failed for a strange reason: "cpio: ./usr/bin/harbour-ownkeepass:
>> Cannot open: Permission denied"
> 
> After I changed one line in the .yml file the validation worked again:
> 
> - '%attr(655,-,-) %{_bindir}' -> - '%attr(755,-,-) %{_bindir}'
> 
> It seemed the executable bit was the source of the error...

Glad you solved it; I was too slow! Is this the first release? If not,
it's odd this has never caused problems in the past.

David
-- 
Website: http://www.flypig.co.uk
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] RPM validator error

2019-09-18 Thread David Llewellyn-Jones
On 18/09/2019 22:35, Marko Koschak wrote:
> I was trying to check the created rpm for my app ownKeepass but it
> failed for a strange reason: "cpio: ./usr/bin/harbour-ownkeepass:
> Cannot open: Permission denied"
> 
> I have never seen this before and also a search on the web does not
> reveal anything helpful.
> 
> I you want to check yourself you can get a prebuild rpm for my app
> here: https://github.com/jobe-m/ownkeepass/releases

Hi Marko,

When I unpack your rpm, I see that the bin folder has execute
permissions set on it, which prevents access to the contents:

$ ls -l
total 8
drw-r-xr-x 2 flypig flypig 4096 Sep 12 01:20 bin
drwxrwxr-x 5 flypig flypig 4096 Sep 18 23:06 share
$ cd bin/
bash: cd: bin/: Permission denied

It looks like it's being caused by line 41 harbour-ownkeepass.yaml:

- '%attr(655,-,-) %{_bindir}'

I'd suggest removing this line to see if it has any effect.

David
-- 
Website: http://www.flypig.co.uk
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] [Solved] RPM validator error

2019-09-18 Thread Marko Koschak
Answering to myself ;)

> I was trying to check the created rpm for my app ownKeepass but it
> failed for a strange reason: "cpio: ./usr/bin/harbour-ownkeepass:
> Cannot open: Permission denied"

After I changed one line in the .yml file the validation worked again:

- '%attr(655,-,-) %{_bindir}' -> - '%attr(755,-,-) %{_bindir}'

It seemed the executable bit was the source of the error...

/Marko
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org