Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Optifying problem

    Reply
    Page 2 of 2 | Prev |   1   2 |
    rontti | # 11 | 2010-01-12, 20:38 | Report

    Originally Posted by Sasler View Post
    Does maemo-optify work in Windows using MADDE? If not, what would be the best way to optify in Windwos?
    maemo-optify is not delivered with MADDE. I think that we can add it for next MADDE release when I'm integrated it in.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to rontti For This Useful Post:
    Sasler, timperi

     
    VDVsx | # 12 | 2010-01-12, 22:10 | Report

    Originally Posted by VDVsx View Post
    If you put the same code in the rules script, it will solve your problem.
    Actually was very wrong, I didn't looked to our script carefully, probably I was a bit sleepy .

    Anyway if you want to create symlink the best and easy option is using maemo-optify as mikkov explained.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to VDVsx For This Useful Post:
    timperi

     
    timperi | # 13 | 2010-01-13, 17:45 | Report

    Originally Posted by mikkov View Post
    Sorry, but you're doing it all wrong.

    Use maemo-optify. Simplest is to make debian/optify file with "auto" in it. Then run maemo-optify-deb for debs produced with dpkg-buildpackage.

    Other option is to install directly to /opt/boulderdash directory
    I can't use maemo-optify, i'm using MADDE on windows too, as Sasler is. I don't want to go the autobuilder road either, because this package isn't going to maemo.org repositories.

    Installing directly to /opt is working very well so far, as i've done it already. The only problem is that i don't know how to remove the symlinks while removing the package.

    I guess i could just transfer the .deb to the N900, run maemo-optify on it there, and get the package back. It seems kind of an unnecessary hassle to me. I already know where the files have to be, and i already know that there has to be some symlinks in the right places, so why can't i just make a .deb that does that automatically?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by timperi; 2010-01-13 at 17:54. Reason: updated the message according to new posts that i hadn't seen

     
    Nathan | # 14 | 2010-01-14, 20:55 | Report

    Originally Posted by timperi View Post
    Installing directly to /opt is working very well so far, as i've done it already. The only problem is that i don't know how to remove the symlinks while removing the package.
    For simplicity, right now; How about you just create a postrm or prerm script in the debian folder to delete your symlink if it exists.

    Originally Posted by
    I guess i could just transfer the .deb to the N900, run maemo-optify on it there, and get the package back. It seems kind of an unnecessary hassle to me. I already know where the files have to be, and i already know that there has to be some symlinks in the right places, so why can't i just make a .deb that does that automatically?
    Nope, you can't just transfer the deb to the n900 and run maemo-optify on it -- thats too late in the process. maemo-optify has to run before it actually turns it into the single file package.

    Now the proper method would be in the debian/rules file in the install section create a rule that creates the symlink. Then the package manager would automatically delete the symlinks for you when you de-installed.

    Nathan

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Nathan For This Useful Post:
    timperi

     
    mikkov | # 15 | 2010-01-14, 21:05 | Report

    Originally Posted by timperi View Post
    Installing directly to /opt is working very well so far, as i've done it already. The only problem is that i don't know how to remove the symlinks while removing the package.
    You shouldn't create any symlinks in postinst script. If you really need them, they should be included in the actual package. I think dh_link can help creating them http://man.he.net/man1/dh_link

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to mikkov For This Useful Post:
    timperi

     
    timperi | # 16 | 2010-01-14, 21:06 | Report

    Originally Posted by Nathan View Post
    Now the proper method would be in the debian/rules file in the install section create a rule that creates the symlink. Then the package manager would automatically delete the symlinks for you when you de-installed.
    Nathan
    Thank you, i will look into the rules file, and try to figure out what to write in there to make things happen.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    javispedro | # 17 | 2010-01-14, 21:09 | Report

    Originally Posted by Nathan View Post
    Nope, you can't just transfer the deb to the n900 and run maemo-optify on it -- thats too late in the process. maemo-optify has to run before it actually turns it into the single file package.
    .. though you might be able to run maemo-optify-deb on it.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    timperi | # 18 | 2010-01-14, 21:14 | Report

    Originally Posted by mikkov View Post
    You shouldn't create any symlinks in postinst script. If you really need them, they should be included in the actual package. I think dh_link can help creating them http://man.he.net/man1/dh_link
    I had a feeling that was the wrong way, but tried it anyway
    Now since i'm running on MADDE, and it doesn't seem to have dh_link available, i think i will have to find a way to make the symlinks some other way.

    And i really need the symlinks, how else could i place everything in the /opt/... subfolders?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout