Re: [aur-general] Nee help with a python PKGBUILD

2016-10-18 Thread Martin Kühne via aur-general
On Tue, Oct 18, 2016 at 2:49 AM, Storm Dragon via aur-general
 wrote:
> Howdy,
> Did you ever get the chance to do anything with the PKGBUILD? I'm still
> stuck with it, but it seems like it is so close to working.
> Thanks
> Storm

Uh, no. Sorry.
Thanks for the reminder, though. Will do.

cheers!
mar77i


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-17 Thread Storm Dragon via aur-general

Howdy,
Did you ever get the chance to do anything with the PKGBUILD? I'm still stuck 
with it, but it seems like it is so close to working.
Thanks
Storm
On Sat, Oct 15, 2016 at 07:55:41AM +0200, AUR General wrote:

On Sat, Oct 15, 2016 at 1:23 AM, Storm Dragon via aur-general
 wrote:



Fenrir needs to be ran as root, so it should be able to read its config
files. It has to access (I hope I got this right) /dev/vcsa*. I do help with
writing Fenrir, but I do a lot more testing and very minor code stuff. Do I
still need to do the -m644, or leave it out?






Just to chime in here, but it I just want to stress that gnu coreutils
cp(1) does *not* have a -m flag. the flag in question is for the
similar install(1) binary which can be said to be the prefered way to
install files in package() {}.

Other than that, I might find a few minutes to install your package
today and look into the problem. ok?

cheers!
mar77i


--
Powered by Arch Linux! I am registered Linux user number 508465: 
https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.tk/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! 
http://2mb.social/main/register
Get paid to read email: http://is.gd/feRiB
"Fell in a river of illusion and apathy"
Godsmack - Realign


signature.asc
Description: PGP signature


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Martin Kühne via aur-general
On Sat, Oct 15, 2016 at 1:23 AM, Storm Dragon via aur-general
 wrote:
>
>
> Fenrir needs to be ran as root, so it should be able to read its config
> files. It has to access (I hope I got this right) /dev/vcsa*. I do help with
> writing Fenrir, but I do a lot more testing and very minor code stuff. Do I
> still need to do the -m644, or leave it out?
>>
>>


Just to chime in here, but it I just want to stress that gnu coreutils
cp(1) does *not* have a -m flag. the flag in question is for the
similar install(1) binary which can be said to be the prefered way to
install files in package() {}.

Other than that, I might find a few minutes to install your package
today and look into the problem. ok?

cheers!
mar77i


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Joost Bremmer via aur-general
On 15 October 2016 01:23:39 CEST, Storm Dragon via aur-general 
 wrote:

>Fenrir needs to be ran as root, so it should be able to read its config
>files. It has to access (I hope I got this right) /dev/vcsa*. I do help
>with writing Fenrir, but I do a lot more testing and very minor code
>stuff. Do I still need to do the -m644, or leave it out?
>>
>>-- 
>>"We apologize for the inconvenience"

Right sorry, I was just going off the top of my head since I'm not near my PC 
and can't install the package. 

If you're gonna keep the install commands then sure, -m644, keep things safe 
from normal users and  also make things clear for the readers.
If you're going to keep just the cp commands I'd at least add 
--no-preserve=owner to make sure the user who installed the package doesn't 
stay the owner of the files once installed. 

Either way should be fine, both of them too if you prefer that. Can't help you 
with your problem though, sorry.

Sincerely,
Joost Bremmer

-- 
"We apologize for the inconvenience"


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Storm Dragon via aur-general

On Sat, Oct 15, 2016 at 01:09:29AM +0200, Joost Bremmer via aur-general wrote:

On 14 October 2016 20:59:19 CEST, Stefan Husmann  
wrote:

Storm Dragon via aur-general  writes:


Howdy,
There is a new console screen reader in the works. It is written in

python. I have written a PKGBUILD for it. The PKGBUILD works, it
installs things where they are supposed to go, but the problem is the
reader won't launch once installed in this way. If you just run
setup.py it works fine though. Can someone please take a look and let
me know how to fix this?

Thanks
Storm


Try
package()
{
 cd "$srcdir/$_gitname"
 python setup.py install --root="$pkgdir" install
}
and do not put install file into source-array. This gives less errors,
but still is not working.

[haawda@frege fenrir]$ fenrir
Traceback (most recent call last):
 File "/usr/bin/fenrir", line 137, in 
   main()
 File "/usr/bin/fenrir", line 132, in main
   app = fenrir()
 File "/usr/bin/fenrir", line 21, in __init__
raise RuntimeError('Cannot Initialize. Maybe the configfile is not
available or not parseable')
RuntimeError: Cannot Initialize. Maybe the configfile is not available
or not parseable

Best Regards

Stefan



Seems maybe the config files or folders might not be readable by normal users? 
Check the rights on /etc/fenrir/{settings, keyboard, substitution} and add 
-m644 to their install commands, or better yet just leave those out fine you're 
using cp anyway.


Fenrir needs to be ran as root, so it should be able to read its config files. 
It has to access (I hope I got this right) /dev/vcsa*. I do help with writing 
Fenrir, but I do a lot more testing and very minor code stuff. Do I still need 
to do the -m644, or leave it out?


--
"We apologize for the inconvenience"


--
Powered by Arch Linux! I am registered Linux user number 508465: 
https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.tk/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! 
http://2mb.social/main/register
Follow me on GNU Social: https://social.stormdragon.tk/storm
"I am the Lord of this Kingdom. He is the lord of this world. I am the Master of the 
wind. He is the Master of the wind. Carry your brothers if they die, through Hell they 
survived. We carry the sword on our shoulders until the end of time."
Celesty - Lord of This Kingdom


signature.asc
Description: PGP signature


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Joost Bremmer via aur-general
On 14 October 2016 20:59:19 CEST, Stefan Husmann  
wrote:
>Storm Dragon via aur-general  writes:
>
>> Howdy,
>> There is a new console screen reader in the works. It is written in
>python. I have written a PKGBUILD for it. The PKGBUILD works, it
>installs things where they are supposed to go, but the problem is the
>reader won't launch once installed in this way. If you just run
>setup.py it works fine though. Can someone please take a look and let
>me know how to fix this?
>> Thanks
>> Storm
>>
>Try
>package()
>{
>  cd "$srcdir/$_gitname"
>  python setup.py install --root="$pkgdir" install 
>}
>and do not put install file into source-array. This gives less errors,
>but still is not working.
>
>[haawda@frege fenrir]$ fenrir
>Traceback (most recent call last):
>  File "/usr/bin/fenrir", line 137, in 
>main()
>  File "/usr/bin/fenrir", line 132, in main
>app = fenrir()
>  File "/usr/bin/fenrir", line 21, in __init__
>raise RuntimeError('Cannot Initialize. Maybe the configfile is not
>available or not parseable')
>RuntimeError: Cannot Initialize. Maybe the configfile is not available
>or not parseable
>
>Best Regards
>
>Stefan


Seems maybe the config files or folders might not be readable by normal users? 
Check the rights on /etc/fenrir/{settings, keyboard, substitution} and add 
-m644 to their install commands, or better yet just leave those out fine you're 
using cp anyway.

-- 
"We apologize for the inconvenience"


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Stefan Husmann
Storm Dragon via aur-general  writes:

> Howdy,
> There is a new console screen reader in the works. It is written in python. I 
> have written a PKGBUILD for it. The PKGBUILD works, it installs things where 
> they are supposed to go, but the problem is the reader won't launch once 
> installed in this way. If you just run setup.py it works fine though. Can 
> someone please take a look and let me know how to fix this?
> Thanks
> Storm
>
Try
package()
{
  cd "$srcdir/$_gitname"
  python setup.py install --root="$pkgdir" install 
}
and do not put install file into source-array. This gives less errors,
but still is not working.

[haawda@frege fenrir]$ fenrir
Traceback (most recent call last):
  File "/usr/bin/fenrir", line 137, in 
main()
  File "/usr/bin/fenrir", line 132, in main
app = fenrir()
  File "/usr/bin/fenrir", line 21, in __init__
raise RuntimeError('Cannot Initialize. Maybe the configfile is not 
available or not parseable')
RuntimeError: Cannot Initialize. Maybe the configfile is not available or not 
parseable

Best Regards

Stefan


Re: [aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Uwe via aur-general
Can you open it up by using /usr/bin/fenrir?

Or is there an error Message?


[aur-general] Nee help with a python PKGBUILD

2016-10-14 Thread Storm Dragon via aur-general

Howdy,
There is a new console screen reader in the works. It is written in python. I 
have written a PKGBUILD for it. The PKGBUILD works, it installs things where 
they are supposed to go, but the problem is the reader won't launch once 
installed in this way. If you just run setup.py it works fine though. Can 
someone please take a look and let me know how to fix this?
Thanks
Storm
--
Powered by Arch Linux! I am registered Linux user number 508465: 
https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.tk/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! 
http://2mb.social/main/register
The great thing about Object Oriented code is that it can make small, simple 
problems look like large, complex ones.
"No life anymore only darkness and pain, shape of shadow no flesh nor blood. All 
passions now gone no reason to be, cursed by the Lord of the Rings."
Battlelore - The Curse of the Kings
# Maintainer: Storm Dragon 
# Maintainer: Chrys 

_gitname='fenrir'
pkgname="${_gitname}-git"
pkgver=v0.1.2.gb72614a
pkgrel=1
pkgdesc='A user space console screen reader written in python3'
arch=('any')
url='https://github.com/chrys87/${_pkgname}'
license=('MIT')
depends=('python' 'python-espeak' 'python-evdev')
optdepends=('brltty: For Braille support'
  'gstreamer: for soundicons via gstreamer'
  'sox: The default sound driver'
  'python-enchant: for spell check functionality')
makedepends=('git')
provides=('fenrir')
conflicts=('fenrir')
install="$pkgname".install
source=("git+https://github.com/chrys87/${_gitname}.git";
  'fenrir-git.install')
md5sums=('SKIP'
 '9d1e82fce2e02ae2a1216a18ca576bfb')

pkgver()
{
  cd "$srcdir/$_gitname"
  local ver="$(git describe --tags)"
  echo "${ver//-/.}"
}

package()
{
  cd "$srcdir/$_gitname"
  install -d "$pkgdir/usr/bin"
 install -d "$pkgdir/etc/fenrir/keyboard"
 install -d "$pkgdir/etc/fenrir/settings"
 install -d "$pkgdir/etc/fenrir/substitution"
 install -d "$pkgdir/usr/share/sounds/fenrir"
  install -m644 -D "autostart/systemd/fenrir.service" 
"$pkgdir/usr/lib/systemd/system/fenrir.service"
  python setup.py install --root="${pkgdir}/" --optimize=1
  cp -a config/keyboard/* "$pkgdir/etc/fenrir/keyboard"
  cp -a config/settings/* "$pkgdir/etc/fenrir/settings"
  cp -a config/sound/* "$pkgdir/usr/share/sounds/fenrir"
  cp -a config/substitution/* "$pkgdir/etc/fenrir/substitution"
}

# vim: set ts=2 sw=2 et:


signature.asc
Description: PGP signature