SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-20-2010, 05:06 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
SageTV V7 plugin installation in linux

If your plugin includes some executable components.

Would I be right in assuming that you need to get your plugin implementation to chmod all those to be executable when the plugin is enabled?

For some reason I was under the mistaken impression that if I chmod the shell scripts and exes to be executable, zipped it up and published to the world...

...that when SageTV unzipped the plugin on install that the executability of files would be preserved.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #2  
Old 10-20-2010, 06:13 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Michael,

I'm not a linux expert by any stretch of the imagination. My experience is the same as yours, you need to use chmod to make the programs executable.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #3  
Old 10-20-2010, 07:07 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by michaeldjcox View Post
If your plugin includes some executable components.

Would I be right in assuming that you need to get your plugin implementation to chmod all those to be executable when the plugin is enabled?

For some reason I was under the mistaken impression that if I chmod the shell scripts and exes to be executable, zipped it up and published to the world...

...that when SageTV unzipped the plugin on install that the executability of files would be preserved.
The issue, is that .zip files do not maintain file attributes, which is why in unix systems, people never use zip, but rather tar (and then gzip).

So, your .zip files will never transfer a unix executable (ie, a file with the execute flag enabled). I don't know what your executable is, but I'd suggest (at least for linux) you simply have the end users install it separately. For one thing, if you ship a linux binary, you'll need to worry about 32bit/64bit and you'll also have to ensure that it's statically linked, etc. I would also think that most linux users (if not all) should know how to install a particular dependency using their respective package managers, etc.

If you do need to deploy a unix exectuable, then you'll need to chmod the file yourself form the Plugin class.
Reply With Quote
  #4  
Old 10-20-2010, 07:14 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by stuckless View Post
The issue, is that .zip files do not maintain file attributes, which is why in unix systems, people never use zip, but rather tar (and then gzip).

So, your .zip files will never transfer a unix executable (ie, a file with the execute flag enabled). I don't know what your executable is, but I'd suggest (at least for linux) you simply have the end users install it separately. For one thing, if you ship a linux binary, you'll need to worry about 32bit/64bit and you'll also have to ensure that it's statically linked, etc. I would also think that most linux users (if not all) should know how to install a particular dependency using their respective package managers, etc.

If you do need to deploy a unix exectuable, then you'll need to chmod the file yourself form the Plugin class.
I have a number of executables depending on platform and a shell script related to starting and stopping something as a service on many different platforms if not every significant platform.

Thanks for the informed description of why it don't work :-)

I shall chmod from my plugin class.

Many thanks,

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
External Command Tuner Plugin for Linux stuckless SageTV Linux 36 05-16-2017 03:11 PM
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
Plugin installation and restart michaeldjcox SageTV v7 Customizations 8 07-23-2010 10:54 AM
SageTV 3.07 Installation succeed LostInSpace SageTV Beta Test Software 2 09-08-2005 10:09 AM


All times are GMT -6. The time now is 07:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.