Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

View Poll Results: Do you find this as a agreeable standard for the iLiad?
Yes 27 87.10%
No 4 12.90%
Voters: 31. You may not vote on this poll

Reply
 
Thread Tools Search this Thread
Old 04-30-2007, 06:56 PM   #46
Alexander Turcic
Fully Converged
Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.
 
Alexander Turcic's Avatar
 
Posts: 18,163
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
Adam released a new version of FBReader using the packaging system described here. I suggest we try out his release and from there comment on further ways to improve the packaging system.

FBReader 0.8.2b: https://www.mobileread.com/forums/sho...threadid=10641
Alexander Turcic is offline   Reply With Quote
Old 05-01-2007, 04:07 AM   #47
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
ipkg homepage

One last thing: for all who want to know more about ipkg, here is it's web page.

http://handhelds.org/moin/moin.cgi/Ipkg

EDIT: I was not aware that it can install by URL (!), as in "ipkg install http://projects.mobileread.com/iliad/users/johndoe/myipk.ipk". That's a VERY good thing.

Last edited by Antartica; 05-01-2007 at 04:11 AM.
Antartica is offline   Reply With Quote
Advert
Old 05-01-2007, 06:33 AM   #48
Henry Loenwind
Enthusiast
Henry Loenwind is on a distinguished road
 
Posts: 28
Karma: 73
Join Date: Jul 2006
Could we shorten this discussion a little bit by agreeing on this sentence?...:

"Unless iRex cooperates with the iLiad's base system, our installation approach will always be fragile to a certain degree."

Now we could collect points to address to iRex that would help us:

* Mounting of cards in boot process.
* Content Lister extension with:
** Auto-detection if target program is on inserted media
** per-media config file
* ipkg GUI (warning dialog, result output, URL entry field, sync-after-install)
* Automatic setup op /usr/local/* symlinks after mounting a card with _local on it.
* ...
Henry Loenwind is offline   Reply With Quote
Old 05-03-2007, 10:46 AM   #49
mtas
Enthusiast
mtas doesn't littermtas doesn't litter
 
Posts: 42
Karma: 145
Join Date: Oct 2006
Device: iLiad
Quote:
Originally Posted by Antartica
One last thing: for all who want to know more about ipkg, here is it's web page.

http://handhelds.org/moin/moin.cgi/Ipkg

EDIT: I was not aware that it can install by URL (!), as in "ipkg install http://projects.mobileread.com/iliad/users/johndoe/myipk.ipk". That's a VERY good thing.
For what's it worth here's the method that I use when building packages for the iLiad, it's a little different from the one that seems to be proposed but. . .

First, the file system structure is just about the same with the only difference being the addition of an extra directory named _installed_programs under programs. In this directory there is a file with the same name as the package installed. The reason for this file is to enable some control over what packages are installed in the mounted file system. I'm working on an application that will make it possible to interactively select what package to uninstall based on the content of that directory.

Secondly, no preinstall script is used to create the symlinks from /usr/local to the local file system. The reason for this is that ipkg seems to change directory to / when running the preinstall script. This of course makes it well night impossible to determine what file system that should be the target for the symlinks. Instead I embed the ipk file in a shell script that first creates the necessary symlinks and file structure and after that extracts the ipk file and installs it.

In order to make life a bit simpler for me I'm using a script to create the package.sh script described above (scripts building scripts, I know ). This scripts is a wrapper around ipkg-build and firstly build the ipk file and then appends the ipk file to a generic shell script that when run on the iLiad takes care of setting up the environment and installing the package.

The generic shell script has references to two files under /usr/bin, warning_usr-local_symlink_exists.sh and error_usr-local_directory_exists.sh. Those references can be safely ignored for now, they are placeholders for gtkdialog scripts but I'm still playing around with that.

I'm attaching a tar tar file that contains three directories , bin, mrxvt and template. In bin there's mkpkg that creates the package.sh file and install_skeleton.sh which is the script part that goes into the package.sh file. the mrxvt directory is a pre-configured package directory that can be built directly by issuing the command bin/mkpkg mrxvt. The las directory template is a "naked" package directory that contains the file structure needed for creating a package except for the parts relating to the actual application to be packaged.

So, if you want to play around with this unpack the tar ball, cd into ipkg_utils and run the command bin/mkpkg mrxvt. The result will be a file mrxvt_1.0.0.sh that can be installed on the iLiad.
EDIT: Updated the file install_skeleton.sh to reflect the usage of programs instead of additional_progs.
Attached Files
File Type: gz ipkg_utils_v2.tar.gz (103.4 KB, 604 views)

Last edited by mtas; 05-05-2007 at 04:57 AM. Reason: Script change
mtas is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposed changes to Fair Use in copyright law llreader News 17 02-19-2010 05:17 AM
der standard newspaper on iliad harald iRex 4 01-17-2008 04:00 PM
Proposed MobileRead newsletter Karel iRex 17 11-27-2006 01:58 PM
e-book Packaging Question NatCh Legacy E-Book Devices 13 09-06-2006 12:02 PM
Proposed Solutions for Mobile Computing Bob Russell Lounge 5 10-24-2005 11:56 AM


All times are GMT -4. The time now is 08:28 PM.


MobileRead.com is a privately owned, operated and funded community.