Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Oblogout in gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cr0n0s
n00b
n00b


Joined: 08 Nov 2014
Posts: 16

PostPosted: Tue Sep 06, 2016 5:11 am    Post subject: Oblogout in gentoo Reply with quote

hi all, with permission from the admin, I would like to ask a question to the community, Gentoo install a more flavored openbox time on my laptop, I have the intention to install oblogout, some of you have done? I searched for information without any good news, I hope someone can support me.

Greetings and thanks.

hola a todos, con el permiso del admin, me gustaria realizar una pregunta a la comunidad, instale una vez mas Gentoo con sabor openbox en mi laptop, tengo la intención de instalar oblogout, alguno de ustedes lo ha hecho? he buscado información sin ninguna buena noticia, espero alguien pueda apoyarme.

Saludos y gracias.
_________________
cronos
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21362
Location: here

PostPosted: Tue Sep 06, 2016 10:04 am    Post subject: Reply with quote

I created the ebuild for oblogout-0.2, you can find here.
For documentation you can try to see arch wiki.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cr0n0s
n00b
n00b


Joined: 08 Nov 2014
Posts: 16

PostPosted: Tue Sep 06, 2016 8:01 pm    Post subject: Reply with quote

fedeliallalinea wrote:
I created the ebuild for oblogout-0.2, you can find here.
For documentation you can try to see arch wiki.



apology, which is to gentoo package should I download? I'm something new packages emerge outside, well I'm new to gentoo.
_________________
cronos
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21362
Location: here

PostPosted: Tue Sep 06, 2016 8:17 pm    Post subject: Reply with quote

You need to create a local overlay where you can put ebuild not present in default portage tree.
After creation of local overlay run these commands:
Code:
# mkdir /usr/local/portage/x11-misc
# cd /usr/local/portage/x11-misc
# wget -qO- https://bugs.gentoo.org/attachment.cgi?id=446716 | tar xzv
# cd oblogout/
# repoman manifest
# emerge -a oblogout


EDIT: changed download file url
_________________
Questions are guaranteed in life; Answers aren't.


Last edited by fedeliallalinea on Mon Sep 19, 2016 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
cr0n0s
n00b
n00b


Joined: 08 Nov 2014
Posts: 16

PostPosted: Tue Sep 06, 2016 10:56 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You need to create a local overlay where you can put ebuild not present in default portage tree.
After creation of local overlay run these commands:
Code:
# mkdir /usr/local/portage/x11-misc
# cd /usr/local/portage/x11-misc
# wget -qO- https://bugs.gentoo.org/attachment.cgi?id=445062  | tar xzv
# cd oblogout/
# repoman manifest
# emerge -a oblogout



Thanks, boss mistakenly delete "emerges" will solve this and I commented when I can install layman because I also came out errors.
Thank you.
_________________
cronos
Back to top
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 283
Location: Seattle

PostPosted: Sat Sep 17, 2016 6:19 am    Post subject: Reply with quote

I tried running this but I get:
Code:
me@Desktop ~ $ oblogout
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/oblogout", line 97, in <module>
    sys.exit(main())
  File "/usr/lib/python-exec/python2.7/oblogout", line 92, in main
    app = OpenboxLogout(config, local_mode)
  File "/usr/lib64/python2.7/site-packages/oblogout/__init__.py", line 85, in __init__
    self.__init_window()
  File "/usr/lib64/python2.7/site-packages/oblogout/__init__.py", line 141, in __init_window
    pilimg = Image.fromstring("RGB", wh, pb.get_pixels())
  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 2063, in fromstring
    "Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.
Does this look like something on my system or a bug to report?
(Also get the same if run as root)
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21362
Location: here

PostPosted: Sat Sep 17, 2016 10:10 am    Post subject: Reply with quote

roki942 wrote:
Does this look like something on my system

Try to add this patch (howto apply user patch)
Code:
diff -Naur oblogout.orig/oblogout/__init__.py oblogout/oblogout/__init__.py
--- oblogout.orig/oblogout/__init__.py  2016-09-17 12:03:44.810056054 +0200
+++ oblogout/oblogout/__init__.py       2016-09-17 12:04:44.206057383 +0200
@@ -138,7 +138,7 @@
             self.logger.debug("Rendering Fade")
             # Convert Pixbuf to PIL Image
             wh = (pb.get_width(),pb.get_height())
-            pilimg = Image.fromstring("RGB", wh, pb.get_pixels())
+            pilimg = Image.frombytes("RGB", wh, pb.get_pixels())
             
             pilimg = pilimg.point(lambda p: (p * self.opacity) / 255 )

roki942 wrote:
or a bug to report?

This package isn't official supported by gentoo a bug report will be ignored
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 283
Location: Seattle

PostPosted: Mon Sep 19, 2016 12:28 am    Post subject: Reply with quote

fedeliallalinea wrote:

Try to add this patch (howto apply user patch)
Code:
diff -Naur oblogout.orig/oblogout/__init__.py oblogout/oblogout/__init__.py
--- oblogout.orig/oblogout/__init__.py  2016-09-17 12:03:44.810056054 +0200
+++ oblogout/oblogout/__init__.py       2016-09-17 12:04:44.206057383 +0200
@@ -138,7 +138,7 @@
             self.logger.debug("Rendering Fade")
             # Convert Pixbuf to PIL Image
             wh = (pb.get_width(),pb.get_height())
-            pilimg = Image.fromstring("RGB", wh, pb.get_pixels())
+            pilimg = Image.frombytes("RGB", wh, pb.get_pixels())
             
             pilimg = pilimg.point(lambda p: (p * self.opacity) / 255 )

Thank you for your patch but the link on how to apply leaves me confused as where to place it and what to name it.
I checked the ebuild and it does call "epatch_user" so I placed it in /usr/local/portage/x11-misc/oblogout/files as oblogout-0.2_1.patch and rebuilt the manifest.
I'm still getting the same result.

Please help me understand the correct way to apply it.

Thank you
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13509

PostPosted: Mon Sep 19, 2016 12:33 am    Post subject: Reply with quote

According to section Adding user patches, patches are placed under /etc/portage/patches in a category-qualified package-specific directory. You should not place them in the main Portage tree, nor should you need to rebuild the manifest.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21362
Location: here

PostPosted: Mon Sep 19, 2016 5:36 am    Post subject: Reply with quote

@roki942: tell me if patch work, which then I update the files in bug report
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 283
Location: Seattle

PostPosted: Mon Sep 19, 2016 6:23 am    Post subject: Reply with quote

Thanks Hu, I should have just done that the 1st time.

Fedeliallalinea: Thank you for the patch, it works great. In case you don't know, /etc/oblogout.conf is set for a systemd setup.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21362
Location: here

PostPosted: Mon Sep 19, 2016 6:34 pm    Post subject: Reply with quote

roki942 wrote:
Fedeliallalinea: Thank you for the patch, it works great.

I added patch to files on bug report. I changed the attachment url in my post

roki942 wrote:
In case you don't know, /etc/oblogout.conf is set for a systemd setup.

Yes I know, but commented there are other examples
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum