OpenQNX :: The QNX Community Portal

Oct 12, 2008 - 05:47 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 21 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
maschoen
Post subject: Open Source Difficulties  PostPosted: Sep 27, 2007 - 07:13 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

I always am surprised when I dig into open source. Today my project was to download and get svn working. I thought this might be a good idea for looking at the source available at QNX, and maybe I aught to think about using it for my own work. I downloaded it and ran ./configure. This reported that my version of apr (0.9.6) was too old.

No big problem, I downloaded the latest apr and tried to create it. A note in the README.dev file indicated that for SVN, I should first run buildconf. I ran this, and tried ./configure, which did not work. I got suspicious, so I downloaded and installed the latest autoconf and libtools.

Now when I ran ./configure for apr, it worked. I started make and waited. In the last step that runs, sh runs libtool. During this step, sh gets a segmentation violation. At least that's what make reports.

Oh dear, well can someone direct me to where I can download at least the client part of svn for QNX 6?
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
kwschumm
Post subject: RE: Open Source Difficulties  PostPosted: Sep 27, 2007 - 07:21 PM
Senior Member


Joined: Sep 17, 2004
Posts: 252

That's a good question. I've been holding off because I'm fearful of installing subversion alongside cvs within the IDE and haven't found a simple how-to guide.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Open Source Difficulties  PostPosted: Sep 27, 2007 - 08:03 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2917

Mitch if you get the 6.3.2 CD ( not 6.3.0 + update ) svn is included ( and you need install CD to be able to build the OS)

I have build the lastest version of svn ( at first I didn't know it was included in 6.3.2 ) I could send you the binary if you prefer that.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
xtang
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 01:36 PM
QNX Master


Joined: Jul 18, 2002
Posts: 293

Or get pkgsrc Smile
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 03:49 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

Well I do think I will get pkgsrc. I'd also like to know from Mario what version of APR you have installed. Oh, and I see that I have 6.3.0 SP3, not 6.3.2.

Mitchell
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
kwschumm
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 05:33 PM
Senior Member


Joined: Sep 17, 2004
Posts: 252

The windows hosted 6.3.2 iso does not seem to have a svn client. Is that included only on the neutrino hosted version?

The IDE also seems to be SVN oblivious.

It is not clear to me how pkgsrc can help navigate the QNX repositories.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 06:48 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2917

pkgsrc has nothing to do with QNX repositories. It's a package of source ( with LOTS of various program). QSS is working on getting these program to build under QNX6.

Mitchell. I got the apr from the file subversion-deps-1.4.5.tar.bz2 that you can download from subversion site.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 07:47 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

How does pkgsrc work? It seems that lots of packages are maintained and updated by separate groups, and then posted on their websites. Are these updates automatically sent to pksrc? If so, what does it mean for QSS to be working to get them to build under QNX6? That would mean either any changes would need to be made repeatedly as new packages come out, or that the changes would be fed back to the controlling group. If the latter is the case, other than convience, is there any advantage to pkgsrc? I've been wondering about this for a while.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
mario
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 08:44 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2917

I'm new to this pkgsrc stuff, here is my understanding:

pkgsrc stuff officially supports 11 OSes/Compilesr. Typically all packages making up pkgsrc should build on all 11 systems. Some packages can be set to build on certain OS. QSS and various member of the community, are working on making each packages work. Then they want to have these changes commited to the main pkgsrc tree (hence the project originator) and get official QNX6 support.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Open Source Difficulties  PostPosted: Sep 28, 2007 - 10:56 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

Mario,

That is helpful, but do you know what happens when a new version of a package comes out? Do the supporters of pkgsrc have to go in and make fixes to the new source again, or are they sending the fixes back to the originators?

Mitchell
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
seanb
Post subject:   PostPosted: Sep 28, 2007 - 11:03 PM
QNX Master


Joined: Jul 28, 2006
Posts: 72

I'm (fairly) new to pkgsrc too Smile

I doubt all packages build on all platforms. There's two main advantages to pkgsrc from the QNX POV as I see it:
1 It's maintained
2 It provides an integrated build environment

Number 2 is important under QNX at this stage: a lot more things will build under pkgsrc than outside it.

pkgsrc also provides the usual tools for managing binary packages (dependency resolution etc). This in itself isn't a big improvement over say the old qnx installer but again, without 2 you don't have up to date packages to manage.

The goal of the project is to get some more people testing / building. We also want to send patches back to both the pkgsrc maintainers and the maintainers of various distributions. We've just started but if anyone has spare cycles, even if it's just to pester distributions to bring in QNX diffs, you're more than welcome.

-seanb
 
 View user's profile Send private message  
Reply with quote Back to top
seanb
Post subject:   PostPosted: Sep 28, 2007 - 11:13 PM
QNX Master


Joined: Jul 28, 2006
Posts: 72

WRT Mitchell's ques:

The goal eventually is to do continuous bulk builds. pkgsrc generally has quarterly releases. As distributions make new releases they're tested as they appear (sometimes they even have betas) and pkgsrc tries to stabilize prior to each release. A case in point is the devel/m4 package under QNX. It built without issue under their 1.4.9 release which went out with pkgsrc-2007Q2 but 1.4.10 which is out now didn't. We have it building under the project so it shouldn't be an issue when pkgsrc-2007Q3 comes out but we still have to engage the m4 maintainers so that 1.4.11 (or whatever they call it) builds again without patches.

-seanb
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject:   PostPosted: Sep 28, 2007 - 11:20 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

Ah ha! So what you are at least trying to do with pkgsrc is to take away all the pain and suffering that a user like me might go through to get this all working.

Another question comes immediately to mind. Some open source software, eg. Apache, have many options. Is there any attempt to deal with this, or is pkgsrc staying away from such distributions?
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
seanb
Post subject:   PostPosted: Sep 28, 2007 - 11:32 PM
QNX Master


Joined: Jul 28, 2006
Posts: 72

If you're just installing binary packages you get the defaults.

If you're building yourself you can specify options at build time. For example with sendmail (yes I'm I thorn in IS's side).

svn/community/pkgsrc/HEAD/pkgsrc/mail/sendmail >bmake
=> Bootstrap dependency digest>=20010302: digest-20070803 found
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `download-vulnerability-list'.
=> Checksum SHA1 OK for sendmail.8.14.1.tar.gz
=> Checksum RMD160 OK for sendmail.8.14.1.tar.gz
===> Installing dependencies for sendmail-8.14.1
==========================================================================
The supported build options for sendmail are:

db2 db4 inet6 ldap sasl tcpwrappers tls

The currently selected options are:

inet6 tcpwrappers

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable. Its current value is shown:

PKG_OPTIONS.sendmail (not defined)

Deprecated variable USE_INET6 set to YES, use PKG_DEFAULT_OPTIONS+=inet6 instead.

==========================================================================

Come on over and give it a try Smile

-seanb
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject:   PostPosted: Sep 29, 2007 - 03:19 AM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

You think this should be easy right?

Well I downloaded pkgsrc and de-archived it, and after a while I figured out that I needed bmake.
Clearly I can't use pkgsrc to install bmake, unless I already have bmake Wink.
So I went to the source for bmake. I compiled it and then found I needed an additional archive mk.tar.gz.
I de-archived this in the right place, and I was able to make bmake.
The "bootstrap" make procedure gave me some commands to execute to install bmake, which I followed.

So now, ready to test on devel/zlib, I find that bmake is looking in the wrong place for some of the mk files????
Oh dear, I'm back in dependency hell.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.