Not signed in (Sign In)

Choose a language

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormorbusg
    • CommentTimeDec 21st 2007 edited
     # 1
    Hi all.
    This is the first time I stumbled upon gobo and I must say there are some neat concepts in it.
    It looks like someone's been using OSX ;)
    For this short time I've been looking into it, I have a couple of thoughts about it.
    During installation, one can choose which programs to install. Now if I choose, say, not to install wget, but choose to install curl instead, programs such as "MakeRecipe" are "hard coded" to go with the wget.
    All in all, the package management does seem a bit like re-inventing the wheel (ie. netbsd pkgsrc could be made to fit the bill?)
    Speaking of MakeRecipe, if I exec "MakeRecipe ftp://url.for.it" I get "Line 42: Arg: command not found".
    • CommentAuthorMichael
    • CommentTimeDec 21st 2007
     # 2
    Posted By: morbusgThis is the first time I stumbled upon gobo and I must say there are some neat concepts in it.
    Welcome, I hope you stick around.

    Posted By: morbusgDuring installation, one can choose which programs to install. Now if I choose, say, not to install wget, but choose to install curl instead, programs such as "MakeRecipe" are "hard coded" to go with the wget.
    Scripts depends on wget. It doesn't seem to be listed in the Dependencies file, but it does (that's a bug). You shouldn't be able to install without wget.

    As for the implied "let me use curl instead" part... well, patches are welcome.

    pkgsrc makes some deep-rooted assumptions about how things are laid out. It might be possible to adapt it, but not without a lot of work, and Compile's already around (originally, it was just Hisham's way of speeding up package building for himself, so it grew pretty organically).
    • CommentAuthortso
    • CommentTimeDec 22nd 2007
     # 3
    the one thing to keep in mind about gobo is that it started as a way to install source based stuff inside a users home area in a controlled manner. it was later that people thought of building a independent distro off it.

    and you can still use it in its original way today. check out rootless gobo, its there on the page.

    also, i again and again see the comparison to osx, but i got to say that i really fail to see the similarities...
    • CommentAuthormorbusg
    • CommentTimeDec 22nd 2007
     # 4
    Posted By: MichaelAs for the implied "let me use curl instead" part... well, patches are welcome.
    Would it sound natural to introduce a new variable in Compile.conf, ie. "fetchProgram"?

    Posted By: tsoalso, i again and again see the comparison to osx, but i got to say that i really fail to see the similarities...
    Both use the same(ish) principal idea that all of a programs files are under its own directory.
    • CommentAuthorMohjive
    • CommentTimeDec 23rd 2007
     # 5
    Posted By: morbusgSpeaking of MakeRecipe, if I exec "MakeRecipeftp://url.for.it"I get "Line 42: Arg: command not found"

    What version of Scripts do you have installed? You should be using any version equal or greater than 2.6.0
    • CommentAuthormorbusg
    • CommentTimeDec 23rd 2007
     # 6
    Posted By: MohjiveWhat version of Scripts do you have installed? You should be using any version equal or greater than 2.6.0
    Yeah, I got that sorted out already, but thanks. I've now made a couple of recipes, one from an earlier version with some patches, and one totally new one, and I must say it was amazingly smooth. Great stuff!
    • CommentAuthorMichael
    • CommentTimeDec 23rd 2007 edited
     # 7
    Posted By: morbusgWould it sound natural to introduce a new variable in Compile.conf, ie. "fetchProgram"?
    That's one way; there are several uses of specialised wget commands though, so it would get a bit unwieldy. A quick grep across Compile and Scripts suggests there would need to be analogues for wget -c, -O, -q, -t, --no-check-certificate, --spider, --server-response, --passive-ftp, and --timeout (sometimes in combination). curl can do all of those, so it's not a technical limitation, just a default assumption in the code. It might be best to split URL-retrieving off into another script (good code reuse in any case). You'd need to update about a dozen scripts to use it all told.

    I think a clean patch that added curl support would have no trouble getting applied, and I'm happy to guide you with it. Conceivably there are systems out there with no wget, so it's a compatibility issue for Rootless on them too. If you do create another script to handle the wget/curl/other selection, our general philosophy is that tools that aren't by necessity Gobo-specific should be written in such a way that they can be used elsewhere as well.
    • CommentAuthorMichael
    • CommentTimeDec 23rd 2007
     # 8
    Ok, so I've written a quick (very preliminary) draft of a script to use curl or wget for fetching, as available. Parameters are as wget, so it's basically a drop-in replacement. Feel free to use that as a basis. You might know better curl options to use, or like to tidy up the definitions somehow.
    • CommentAuthormorbusg
    • CommentTimeDec 24th 2007
     # 9
    Nice Michael, that sure was fast.
    I need to really start digging inside the scripts to get an understanding why for example --timeout and --no-check-certificate are used, and also about how much could be done with just ftp-protocol (and hence, just ftp-client).
    • CommentAuthorMichael
    • CommentTimeDec 25th 2007
     # 10
    Good luck! The scripts are fairly easy to understand, I think, but ask if something isn't. --no-check-certificate seems to be optional anyway (it's tested for in wget --help), but I just matched it up to something similar sounding from man curl. I think it's used to allow self-signed certificates over SSL, but I didn't investigate thoroughly. --timeout didn't seem to have a perfectly corresponding option either.

    And if ftp-client can work when it's appropriate too, so much the better.
    • CommentAuthorMichael
    • CommentTimeJan 10th 2008
     # 11
    Any updates on that? There's a new Scripts release this week, so if you have a complete patch we can probably get it in for that, or just afterwards to let it bed in for a while.
    •  
      CommentAuthorsambarino
    • CommentTimeJan 11th 2008
     # 12
    Posted By: morbusg
    All in all, the package management does seem a bit like re-inventing the wheel (ie. netbsd pkgsrc could be made to fit the bill?)
    Speaking of MakeRecipe, if I exec "MakeRecipeftp://url.for.it"I get "Line 42: Arg: command not found".


    perhaps a round wheel will be invented this time?
    by that i mean, something should be reinvented as many times as it takes to get something practical and efficient. being able to work straight from source in my opinion is far better than having to have precompiled packages
    • CommentAuthormorbusg
    • CommentTimeJan 13th 2008
     # 13
    Posted By: MichaelAny updates on that? There's a new Scripts release this week, so if you have a complete patch we can probably get it in for that, or just afterwards to let it bed in for a while.
    Sorry, no updates as of yet (well, only that with the inettools ftp-client it would require heredocs I suppose, and that could become messy). I really should take the time to make a dualboot instead of qemu... That is to say, I think I've re-found the GNU/Linux-love that was lost for me for so many years. I'm here to stay. :)
    Posted By: sambarinoby that i mean, something should be reinvented as many times as it takes to get something practical and efficient. being able to work straight from source in my opinion is far better than having to have precompiled packages
    I hear you. NetBSD pkgsrc is just that. But after more insight into the Gobo-tools, I do not think that way anymore because the very different take on filesystem hierarchy, which I (even though haven't taken a closer look yet) doubt is possible to achieve with pkgsrc (although don't quote me on that just yet).
    • CommentAuthorm@cCo
    • CommentTimeJan 13th 2008 edited
     # 14
    Posted By: morbusg[...] That is to say, I think I've re-found the GNU/Linux-love that was lost for me for so many years. I'm here to stay. :) [...]
    A quick reply just to say "welcome back" :)
    • CommentAuthorMichael
    • CommentTimeJan 13th 2008
     # 15
    If you have a Scripts/Compile patch to use the script, we can get that applied and add additional methods like ftp-client to FetchURL later on. (Dynamic deltup seems like a likely one to be added at some point). It's probably too late to make this Scripts release now though, so there's no hurry. Keep us updated on your progress or any questions you have.
    • CommentAuthormorbusg
    • CommentTimeJan 17th 2008
     # 16
    Well, there is much to digest in the shellscripts. It will take me a while.