Help - Search - Members - Calendar
Full Version: Packages Repository
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > OpenBSD
Pages: 1, 2
mathemajikian
QUOTE(gen2 @ May 24 2007, 01:08 AM)
maybe even try a coordinated attack on new releases, 4 or 5 (10-20?) people hitting different parts of the ports tree from the same snapshot, we can be up and rolling pretty quick, knock the whole tree down in a week or less, arm-farm style

Just setup a cross compile environment. Port building is a little bit harder but they complete in minutes instead of days.
gen2
QUOTE(mathemajikian @ May 24 2007, 11:18 AM)
Just setup a cross compile environment. Port building is a little bit harder but they complete in minutes instead of days.
*



Love to see your how-to on that! Welcome addition here.


Lot of people talk about how easy cross compiling is, but after having done it, I rather enjoy plugging in a batchlist and getting other work done. It took me about 3 (maybe 4) actual hands-on hours to create near 600 packages the steam-powered way. Cross building 1/10 of that, maybe even 1/100th (if I tried it anyway) would take...longer.
mathemajikian
QUOTE(gen2 @ May 24 2007, 07:18 PM)
Love to see your how-to on that! Welcome addition here.

I've been pretty busy lately, but I'll see what I can do. It's fairly easy to setup the cross compiler and friends, but using them to build ports can be pretty tricky. This is mainly due to variables assigned via the "OpenBSD Makefile"; hence, you'll have to build the port from the /usr/ports/portname/w-* source using the cross compiler, then use make package to build the package which can be used to install the port on your Z via pkg_add. I wouldn't suggest building everything with the cross compiler, but this is a great option for ports like Minimo and Firefox which take numerous days to build on the Z.
jpmatrix
Ok for me ! I only forgot i won t be there for the weekend... I ll see that right after ,next tuesday smile.gif
jpmatrix
back
i see that gen2 repository is growing quickly !

i've just installed GENERIC#113, is it the one you're using ?

what about compiling pidgin for us ? wink.gif
gen2
QUOTE(jpmatrix @ May 31 2007, 02:39 PM)
i've just installed GENERIC#113, is it the one you're using ?

what about compiling pidgin for us ? wink.gif
*


Using #110, and it looks like pidgin was added to ports a few days after I'd done the initial install, so it's not onboard atm else I'd knock that out for you. After this "pass" (ending soon-ish), I'll probably run thru an upgrade and get to some of the new ports.

Package burning has reached a micro-industrial scale somewhat inadvertently here - might be time to start cross compiling (and I'd love to bring some stuff in from outside of the standard tree)...Can I get it rolling before job/work crushes my zaurus timelines? Maybe...Maybe!
jpmatrix
QUOTE(gen2 @ Jun 2 2007, 05:37 AM)
QUOTE(jpmatrix @ May 31 2007, 02:39 PM)
i've just installed GENERIC#113, is it the one you're using ?

what about compiling pidgin for us ? wink.gif
*


Using #110, and it looks like pidgin was added to ports a few days after I'd done the initial install, so it's not onboard atm else I'd knock that out for you. After this "pass" (ending soon-ish), I'll probably run thru an upgrade and get to some of the new ports.

Package burning has reached a micro-industrial scale somewhat inadvertently here - might be time to start cross compiling (and I'd love to bring some stuff in from outside of the standard tree)...Can I get it rolling before job/work crushes my zaurus timelines? Maybe...Maybe!
*



ok smile.gif
i'm compiling right now some other packages you haven't yet : mc, fetchmail, procmail, and i'll try pidgin too on my #113
i think the question has yet been asked but can we mix all that or should we make separate named feeds ???
gen2
QUOTE(jpmatrix @ Jun 2 2007, 06:24 AM)
i think the question has yet been asked but can we mix all that or should we make separate named feeds ???
*


I haven't mixed packages yet, but I think if all the dependencies are available in the correct versions for a given package, shouldn't be a problem. Might be as simple as just going for it; if it runs, great, if not, delete it or dig into the requirements.
ZDevil
@gen2: Are your packages compiled with optimization flags? In fact I find firefox and abiword in the feed take much longer time to start than under pdaX. Firefox takes 8 to 9 minutes to launch (!) and abiword takes a minute or two, while under pdaX it's 2 minute and a few seconds respectively. rolleyes.gif
gen2
QUOTE(ZDevil @ Jun 2 2007, 10:30 AM)
@gen2: Are your packages compiled with optimization flags? In fact I find firefox and abiword in the feed take much longer time to start than under pdaX. Firefox takes 8 to 9 minutes to launch (!) and abiword takes a minute or two, while under pdaX it's 2 minute and a few seconds respectively.  rolleyes.gif
*


I used -mcpu=xscale (only) for the first 1/2 (or so) of it, then saw your post and added -pipe -mtune=xscale -O2 within a day or 2. Firefox and Abiword had already been done though. Is the difference in speed you're citing just the result of the additional flags, or also some other factors, I wonder?
Anecdotally I've heard pdaX is faster, especially regarding video, but never done any benchmarking here. I'd be happily surprised if the new flags were the only difference between 8 minute and 2 minute launch times for firefox.

FWIW, firefox opens here in 3:45, abiword in 48 seconds...siag 7 (!) seconds...siag is pretty cool, btw, if you haven't checked it out, it's got an abiword-like thing in there in addition to spreadsheets and other stuff.
jpmatrix
QUOTE(gen2 @ Jun 2 2007, 03:57 PM)
QUOTE(ZDevil @ Jun 2 2007, 10:30 AM)
@gen2: Are your packages compiled with optimization flags? In fact I find firefox and abiword in the feed take much longer time to start than under pdaX. Firefox takes 8 to 9 minutes to launch (!) and abiword takes a minute or two, while under pdaX it's 2 minute and a few seconds respectively.  rolleyes.gif
*


IFWIW, firefox opens here in 3:45, abiword in 48 seconds...siag 7 (!) seconds...siag is pretty cool, btw, if you haven't checked it out, it's got an abiword-like thing in there in addition to spreadsheets and other stuff.
*



i reinstalled openbsd from scratch and haven't yet reinstalled firefox .. however i remember it was taking more 3 than 8 minutes to load... i'll try asap.

anyway, i've compiled pidgin (and dependances) with optimizations listed and it seems to work great!
uploading all that to my repository right now!

next to compile : scrot ! thanks wink.gif
mathemajikian
QUOTE(jpmatrix @ Jun 2 2007, 04:19 PM)
anyway, i've compiled pidgin (and dependances) with optimizations listed and it seems to work great!
uploading all that to my repository right now!

Going to have to try out pidgin. This could be a replacement for the pork application I'm currently using:
QUOTE
Finch is the text-based version of Pidgin. It supports the same IM networks, but you can run it in a console window. You can use it on Linux, BSD, and other Unixes.
jpmatrix
QUOTE(mathemajikian @ Jun 2 2007, 06:40 PM)
QUOTE(jpmatrix @ Jun 2 2007, 04:19 PM)
anyway, i've compiled pidgin (and dependances) with optimizations listed and it seems to work great!
uploading all that to my repository right now!

Going to have to try out pidgin. This could be a replacement for the pork application I'm currently using:
QUOTE
Finch is the text-based version of Pidgin. It supports the same IM networks, but you can run it in a console window. You can use it on Linux, BSD, and other Unixes.

*



finch doesn't seem to be in the ports...
mathemajikian
QUOTE(jpmatrix @ Jun 2 2007, 06:11 PM)
finch doesn't seem to be in the ports...

It's built by default when you build net/pidgin. Look at pidgins pkg/PLIST and you'll see bin/finch.
jpmatrix
QUOTE(mathemajikian @ Jun 2 2007, 08:23 PM)
QUOTE(jpmatrix @ Jun 2 2007, 06:11 PM)
finch doesn't seem to be in the ports...

It's built by default when you build net/pidgin. Look at pidgins pkg/PLIST and you'll see bin/finch.
*



whow ! you're right !
now i've to find the keyboard shorcuts wink.gif
gen2
QUOTE(ZDevil @ Jun 2 2007, 10:30 AM)
@gen2: Are your packages compiled with optimization flags? In fact I find firefox and abiword in the feed take much longer time to start than under pdaX. Firefox takes 8 to 9 minutes to launch (!) and abiword takes a minute or two, while under pdaX it's 2 minute and a few seconds respectively.  rolleyes.gif
*


Just re-compiled abiword so we can have a psuedo-official comparison of flags:

CODE
export CPPFLAGS="-mcpu=xscale"
    export CFLAGS="-mcpu=xscale"
    export CXXFLAGS="-mcpu=xscale"


Abiword took 48 seconds to open.

CODE
export CPPFLAGS="-mcpu=xscale"
    export CFLAGS="-mcpu=xscale -mtune=xscale -O2 -pipe"
    export CXXFLAGS="-mcpu=xscale -mtune=xscale -O2 -pipe"


Abiword took 47 seconds to open.

Too close to even say there's a difference in this case, far as I can tell.
ZDevil
Thanks, gen2.
I check again with the output in terminal, it seems both abiword and firefox are complaining about pango errors. Will reinstall the packages and try again.
Still 47 secs is way too slow compared with pdaXrom. There abiword always launches in about 10 secs.
Just a note on the flag: Despite CFLAGS (for C compiler) and CXXFLAGS (for C++ compliler), CPPFLAGS seems never for optimization but simply for extra include paths.
Now I've got both my 16gb CF and Ambicom wifi CF working! Just started to play with the Port collections. Nice stuff! smile.gif
ZDevil
@jpmatrix: I've finally got everything set up (CF wifi + 16GB internal CF) and had access to the Port tree (really sweet wink.gif ). Along the way I've compiled and packaged new things based on gen2's newer library packages. What would be the best way to share them? If I upload them to your ftp, then they won't get along with the packages in your feed because of library issues. What do you think? smile.gif
jpmatrix
QUOTE(ZDevil @ Jun 4 2007, 07:43 PM)
@jpmatrix: I've finally got everything set up (CF wifi + 16GB internal CF) and had access  to the Port tree (really sweet wink.gif ). Along the way I've compiled and packaged new things based on gen2's newer library packages. What would be the best way to share them? If I upload them to your ftp, then they won't get along with the packages in your feed because of library issues. What do you think?  smile.gif
*


just upload them, and i'll make a separate directory for you on matrixmen.free.fr
then one could choose to mix or not to mix
if you start tonight i'll let my computer awaken
ZDevil
Thanks. Now I think of an issue: even if I upload the new packages to your server, how about the dependency tracking? Because my packages are using gen2's libraries, pkg_add pointing to the new location won't be able to pull the dependency packages at the same time, or setting multiple ULRs in PKG_PATH will do (but how)?
ZDevil
QUOTE(ZDevil @ Jun 3 2007, 02:02 AM)
Thanks, gen2.
I check again with the output in terminal, it seems both abiword and firefox are complaining about pango errors. Will reinstall the packages and try again.
Still 47 secs is way too slow compared with pdaXrom. There abiword always launches in about 10 secs.
Just a note on the flag: Despite CFLAGS (for C compiler) and CXXFLAGS (for C++ compliler), CPPFLAGS seems never for optimization but simply for extra include paths.
Now I've got both my 16gb CF and Ambicom wifi CF working! Just started to play with the Port collections. Nice stuff! smile.gif
*


An update:
After reinstalling the packages, both firefox and abiword load faster and run, without complaining about pango errors.
Abiword startup time between 30~40 secs. Typing fast or typing a long word will result in repetition of the same key strokes.
Firefox about 4 minutes. And response not very fast.
Anyone can confirm this?
Still double the time under pdaXrom. Any explanation?
gen2
QUOTE(ZDevil @ Jun 4 2007, 09:04 PM)
Still double the time under pdaXrom. Any explanation?


Possibly the biggest factors there are Theo's development priorities, although I'm sure there's much more to the details than I'm able to illuminate. FWIW, those priorities are what keep this user interested...(well, that and: I have no doubt pdaXrom is ideal for many users, but my experience there led me to believe management was ad-hoc at best, developer shortages chronic, long-term outlook shaky, communication to user-base very not good. Just my personal opinion, not trying to scare anyone away from a speedy rom that works for them!)

I'm thinking the OpenBSD team is handling the distro, Uwe and others handle the Z port (much smaller relative effort), and that's what we're using...contrasted with other roms which are trying to maintain an entire distro/port...I don't know if that approach can scale over time vs. developer-base, especially as the Z is overtaken by new hardwares and interest wanes.

QUOTE
OpenBSD's performance and usability is occasionally criticised. Felix von Leitner's performance and scalability tests,[44] indicated that OpenBSD lagged behind other operating systems. In response, OpenBSD users and developers criticised von Leitner's objectivity and methodology, and asserted that although performance is given consideration, security and correct design are prioritised, with developer Nick Holland commenting: "It all boils down to what you consider important."[45] OpenBSD is also a relatively small project, particularly when compared with FreeBSD and Linux, and developer time is sometimes seen as better spent on security enhancements than performance optimisations. Critics of usability often point out the lack of user-friendly configuration tools, the bare default installation,[46] and "spartan" and "intimidating" installer.[47] These see much the same rebuttals as performance: a preference for simplicity, reliability and security; as one reviewer admits, "running an ultra-secure operating system can be a bit of work."[48]


http://en.wikipedia.org/wiki/OpenBSD
ZDevil
A short note on my porting:

I am now building a whole new bunch of ports under 4.2 via NFS@macbook, using a new user on Zaurus matching the gid and uid of the Mac user.
But then when I use this account to build stuff, the optimization flags are simply ignored, despite the fact that i have already put them in .profile, .kshrc (using ksh now) and even exported them explicitly.

But there is one solution, after reading the official FAQ section 15.3.3. smile.gif

#1 Simply create /etc/mk.conf (need root privilege of course)

#2 Drop these lines in the file:
CODE
CFLAGS+=-mcpu=xscale -mtune=xscale
CXXFLAGS+=-mcpu=xscale -mtune=xscale

(It seems there is no need for -O2 and -pipe flags, as i notice generally the ports have these included in the makefiles.)

#3 Save and go ahead to port stuff. Now you get systemwide make optimization settings.

And a good thing is you don't need to reboot the system. The new settings take effect immediately.
ZDevil
A minor qualification:
Both the -O2 and the -pipe flags can be safely put together with the architecture optimization flags, because -pipe is simply to smooth the channeling during build and make can only see one (= the last) -Ox flag and ignore the others.

And a question (which is kinda obvious, but i am not absolutely sure):
Is Xenocara just the X stuff we find among the distribution sets?
If that's the case then there seems to be no need to (re)complie Xenocara, right?
Thanks.

And a call:
Is there someone being be so kind as to offer a small space to host my optimized packages for the current 4.2 beta? My 3200 now keeps running day and night rebuilding. The ready-made packages will save other users lots of time and troubles to go through the pain of builing themselves. Thanks in advance!
mathemajikian
QUOTE(ZDevil @ Aug 13 2007, 09:45 AM)
And a question (which is kinda obvious, but i am not absolutely sure): Is Xenocara just the X stuff we find among the distribution sets?
If that's the case then there seems to be no need to (re)complie Xenocara, right?


If you've updated via the snapshots then you shouldn't have to.
ZDevil
Now I am heading to building the big guys, such as Evolution.
Earlier on mathemajikian mentioned cross-compilation. Any tutorial or quick how-to?
Thanks in advance!
Wildherb
QUOTE(ZDevil @ Sep 17 2007, 07:41 AM)
Now I am heading to building the big guys, such as Evolution.
Earlier on mathemajikian mentioned cross-compilation. Any tutorial or quick how-to?
Thanks in advance!
*



Nice work ZDevil
I have re-done a few packages too, as the ones I posted earlier seem to be useless (did I screw up with not setting FTP to 'bin' mode or something?) I have also been setting the optimising environment variables prior to compiling.

I did some WMs including Enlightenment and have just got XFCE4 running which looks quite nice. At least it offers the chance to dynamically alter font sizes which is a must on such a tiny screen.
zogs
who start with 4.2 packages?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.