Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

optify liqbase

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


liquid at gmail

Nov 2, 2009, 7:42 AM

Post #1 of 4 (324 views)
Permalink
optify liqbase

hey,

i am considering how to optify liqbase and its components.
the issue I have is I don't want all the apps to need to change and do not
want 100s of symlinks and added complexity when only 1 is needed.

assuming the following packages:
libliqbase
liqflow
liqtorch
liqcalendar
onedotzero
liqbase-playground
etc
* (lots more)

everything I would need optifying could be done with a single item

/usr/share/liqbase/*

into

/opt/liqbase/*

(or whatever the path needs to be)

this should with 1 symlink or hardlink and will cure all liqbase /opt
situations:

/usr/share/liqbase/*
/usr/share/liqbase/libliqbase/*
/usr/share/liqbase/liqflow/*
/usr/share/liqbase/liqtorch/*
/usr/share/liqbase/liqcalendar/*
/usr/share/liqbase/*/*

however, I don't know the best place or time to put this in.

also, what would happen if a new app came out from some other party who did
/optification themselves?
(ie, they optify /usr/share/liqbase/newapp which technically already exists
in /opt/liqbase/newapp by virtue of its parent)

i thought about doing it in the libliqbase package, but don't know how it
would handle updating the .deb etc between versions in the future.
i have considered make a simple "libliqbase_optifier" package which the
library depends and which would do the necessary transfer but will hopefully
not need updating often.

thoughts, ideas, suggestions?

should I just go with the normal splash 100s of optify symlinks?

gary


andrew at bleb

Nov 2, 2009, 8:04 AM

Post #2 of 4 (308 views)
Permalink
Re: optify liqbase [In reply to]

On Mon, Nov 2, 2009 at 15:42, Gary Birkett <liquid [at] gmail> wrote:
>
> i am considering how to optify liqbase and its components.
> the issue I have is I don't want all the apps to need to change and do
> not want 100s of symlinks and added complexity when only 1 is needed.
>
[snip]
>
> everything I would need optifying could be done with a single item
>
> /usr/share/liqbase/*
>
> into
>
> /opt/liqbase/*

The easy answer is that you control the packaging, and the
specification of addon liq* applications:

1) Don't use maemo-optify, install into /opt/liqbase directly.
2) Other liq* applications install into whatever sub-directory/process
under /opt/liqbase/ of your choosing.

This is also compatible with Diablo, when you want to maintain N8x0.

The mass of symlinks will probably cause problems with dependent
packages, similar to those seen by the PyMaemo folks.

Hope that helps,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


marius.vollmer at nokia

Nov 2, 2009, 8:16 AM

Post #3 of 4 (308 views)
Permalink
Re: optify liqbase [In reply to]

ext Gary Birkett <liquid [at] gmail> writes:

> /usr/share/liqbase/*
> /usr/share/liqbase/libliqbase/*
> /usr/share/liqbase/liqflow/*
> /usr/share/liqbase/liqtorch/*
> /usr/share/liqbase/liqcalendar/*
> /usr/share/liqbase/*/*
>
> [...]
>
> should I just go with the normal splash 100s of optify symlinks?

I would expect one symlink per package, not hundreds:

/usr/share/liqbase/libliqbase -> /opt/maemo/usr/share/liqbase/libliqbase
/usr/share/liqbase/liqflow -> /opt/maemo/usr/share/liqbase/liqflow
...

Where do these hundreds of symlinks come from? From hundreds of
packages?
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


henrik.hedberg at innologies

Nov 2, 2009, 1:25 PM

Post #4 of 4 (306 views)
Permalink
Re: optify liqbase [In reply to]

Gary Birkett wrote:

> this should with 1 symlink or hardlink and will cure all liqbase /opt
> situations:
>
> /usr/share/liqbase/*

Why do you need that symlink at all? If you put all your application
data into /opt/liqbase (and subdirectories) and you have the control,
then all paths can point directly to /opt/liqbase/something.

As someone said earlier, maemo-optify is not the only solution.
Installing directly into /opt/package and accessing that directly is
even better. Only .desktop files, binaries (/usr/bin, probably
symlinked) and such need to be somewhere else.

So, use /opt/liqbase in your code, not /usr/share/liqbase.

BR,

Henrik

--
Henrik Hedberg - http://www.henrikhedberg.net/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.