Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tvheadend ebuild problem, I think
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Wed Sep 27, 2017 12:51 am    Post subject: tvheadend ebuild problem, I think Reply with quote

Hello,

I've just arrived but I must say I started linux with gentoo :!: some 15 years ago. The learning curve was too steep and I quickly moved to the debian and arch family, until now.

So, I'm now trying to get back by replacing my tvheadend server, now debian-jessie, to gentoo.

And this is the problem: I can't make the internal xmltv grabber to work with the message:
Code:
cannot mkdir /dev/null/.xmltv: Not a directory at /usr/lib/perl5/vendor_perl/5.24.1/XMLTV/Config_file.pm line 24

and after some digging I came to the line 24 of Config_file.pm:
Code:
    $home = '.' if not defined $home;
    my $conf_dir = "$home/.xmltv";
    (-d $conf_dir) or mkdir($conf_dir, 0777)
      or die "cannot mkdir $conf_dir: $!";

This is due to the ebuild not specifying a home (/dev/null) for the user tvheadend which runs the application.

Every other distro, that I'm aware of, gives the user a home. I wonder if the decision of the devs here is related to security issues.

Nonetheless, xmltv is important for the application and I would like it to be able to run.

Can somebody help, please? Thank you.
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Wed Sep 27, 2017 12:47 pm    Post subject: Reply with quote

Ok, I just made a home for tvheadend, moved everything from /etc to the new home, fixed some configs and it's now working.

But I still would like to know if this introduces a fragility on the security of the system.

Thank you.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Wed Sep 27, 2017 12:50 pm    Post subject: Reply with quote

This old bug is related at your problem?
If it's the case you can try to ask there.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Wed Sep 27, 2017 1:39 pm    Post subject: Reply with quote

fedeliallalinea wrote:
This old bug is related at your problem?
If it's the case you can try to ask there.


Thank you for replying.

It is in fact slightly related. But, as you read there, his tvheadend has a /home and it doesn't work. Mine, as soon as I provided a /home works perfectly, and it doesn't even have to run xmltv as root, it runs it with his own uid.

So, it's basically a different thing. Mine just needs a modification of the ebuild or then you do it as I did, after instalation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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