Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Getting svn for bootstrapping: (17 Items)
   
Getting svn for bootstrapping  
Hi,

I'm trying to get pkgsrc bootstrapped. I've installed QNX Momentics 6.3.2 and then followed the instructions on the Wiki
 page.

But I'm failing in the section Bootstrap

    * Download pkgsrc with QNX diffs. ...

with the command

svn checkout --username <username> http://community.qnx.com/svn/repos/pkgsrc/HEAD

It fails obviously because of the missing svn. It is not part of QNX and not installable from the web repository621 
using qnxinstaller.

Therefore I've downloaded the subversion-base-1.4.4nb1.tgz and extracted the tar in /usr/pkg. Now svn fails because of 
missing libaprutil-0.so.0:

$ svn -h
Could not find library libaprutil-0.so.0

But this lib seems not available from the binary downloads section. I have not found any archive name containing apr. 

(btw.: Is it possible to search for a specific name?)


svn depends on other libs, too:
REQUIRES=/usr/pkg/lib/libapr-0.so.0
REQUIRES=/usr/pkg/lib/libaprutil-0.so.0
REQUIRES=/usr/pkg/lib/libcrypto.so.0.9.7
REQUIRES=/usr/pkg/lib/libexpat.so.1
REQUIRES=/usr/pkg/lib/libiconv.so.2
REQUIRES=/usr/pkg/lib/libintl.so.3
REQUIRES=/usr/pkg/lib/libneon.so.26
REQUIRES=/usr/pkg/lib/libssl.so.0.9.7
REQUIRES=/usr/pkg/lib/libz.so.1

Perhaps it is easier for bootstrapping to provide a statically linked svn?

TiA
Christian
Re: Getting svn for bootstrapping  
> I've installed QNX Momentics 6.3.2

I'm confused with the version numbers 8-( The right numbers are
  QNX Momentics 6.3.0 SP 3 with QNX Neutrino Core OS 6.3.2A

I've found a remark that states that 6.3.2 already has a svn incorporated. But that does not solve my problem 8-(
Re: Getting svn for bootstrapping  
svn is included if you install 6.3.2 from scratch, I would think the same would be true via upgrade but I haven't tried 
it personally.

We'll look into making a separate bootstrap tar archive (not a package proper) available via the download section.  Stay
 tuned.

-seanb
Re: Getting svn for bootstrapping  
That would be nice. But in the meantime, would it be possible to add the missing libs to the binary download section?

TiA
Christian
Re: Getting svn for bootstrapping  
On Tue, Oct 09, 2007 at 04:46:54AM -0400, Christian Leutloff wrote:
> That would be nice. But in the meantime, would it be possible to add the
> missing libs to the binary download section?

Everything should be there.  I'd wait for the bootstrap
archive and hopefully pkg_add will take care of it
for you.

-seanb
Re: Getting svn for bootstrapping  
> On Tue, Oct 09, 2007 at 04:46:54AM -0400, Christian Leutloff wrote:
> > That would be nice. But in the meantime, would it be possible to add the
> > missing libs to the binary download section?
> 
> Everything should be there.  I'd wait for the bootstrap
> archive and hopefully pkg_add will take care of it
> for you.
> 
> -seanb


Thank you so much for the post. It's really informative!



__________________
[url=http://moviesonlineworld.com]watch free movies online[/url]
Re: Getting svn for bootstrapping  
> On Tue, Oct 09, 2007 at 04:46:54AM -0400, Christian Leutloff wrote:
> > That would be nice. But in the meantime, would it be possible to add the
> > missing libs to the binary download section?
> 
> Everything should be there.  I'd wait for the bootstrap
> archive and hopefully pkg_add will take care of it
> for you.
> 
> -seanb


Thank you so much for the post. It's really informative!



__________________
http://moviesonlineworld.com
RE: Getting svn for bootstrapping  
 

> -----Original Message-----
> From: Sean Boudreau [mailto:seanb@qnx.com] 
> Sent: October 8, 2007 6:36 PM
> To: general-pkgsrc
> Subject: Re: Getting svn for bootstrapping
> 
> svn is included if you install 6.3.2 from scratch, I would 
> think the same would be true via upgrade but I haven't tried 
> it personally.

It turns out there was a bit of a glitch in the packaging.  The
svn client _should_ be included in 6.3.2 by default, but it wasn't
for all hosts (ie Windows).  

The upgrade(s) won't include it because it was a new binary added
in after all of those patches were vetted and tested since we (QNX)
switched to subversion as our source repository internally a few
months ago.
 
> We'll look into making a separate bootstrap tar archive (not 
> a package proper) available via the download section.  Stay tuned.

This is likely the best course for now if we want the pkgsrc bits to
work on systems prior to the 6.3.2 Momentics distribution.  

Incidentally the build instructions for the OS project require a 6.3.2 
Momentics installation and not _just_ the piecemeal upgrade that includes 
the 6.3.2 kernel and the 6.3.0 SP3 service pack.  This is because in 
addition to adding the svn client, we also added some adjustments to the
build infrastructure for QNX makefiles.

Thanks,
 Thomas
Re: RE: Getting svn for bootstrapping  
>  we also added some adjustments to the build infrastructure for QNX makefiles

That means that even if I manage to get the source, I will face unexpected troubles when compiling packages from pkgsrc?
 

I'm willing to give an untested bootstrap tar a try to help testing it.

Thanks
Christian
Re: RE: Getting svn for bootstrapping  
argh, I apologize for my last post. I've noticed that the bootstrap tar is already made available for download.

Many Thanks
Christian 
Re: Getting svn for bootstrapping  

Thomas Fletcher wrote:
> [snip]
>
> ior to the 6.3.2 Momentics distribution. 
>
> Incidentally the build instructions for the OS project require a 6.3.2
> Momentics installation and not _just_ the piecemeal upgrade that includes
> the 6.3.2 kernel and the 6.3.0 SP3 service pack.  This is because in
> addition to adding the svn client, we also added some adjustments to the
> build infrastructure for QNX makefiles.
>
Don't forget that 6.3.2 contains the filesystems patch 
(http://www.qnx.com/download/feature.html?programid=16961) which is 
recommended if you are using svn!

Colin

-- 
cburgess@qnx.com

SOLVED Re: Getting svn for bootstrapping  
The hint with the file system patch lead me to the download patch site. There I've found the svn as a patch for 6.3.0 
SP3, too. That is working perfectly and I've gotten all the source from the repository!

Many thanks!


bootstrap works only in parts. E.g. bmake is succesfully build, but pkd_admin failed:

gcc -L../libnbcompat -L../../libnbcompat -L../lib -o pkg_admin main.o -linstall -ltermcap -lnbcompat
main.o: In function `main':
/usr/pkg/HEAD/pkgsrc/bootstrap/work/pkg_install/admin/main.c:700: undefined reference to `fchdir'
/usr/pkg/HEAD/pkgsrc/bootstrap/work/pkg_install/admin/main.c:740: undefined reference to `fchdir'
collect2: ld returned 1 exit status
*** Error code 1

The mysterious thing is, that I was not able to find the used prototype of the fchdir function. Therefore the 
compilation of main.c to main.o should have been failed.

In /usr/include/unistd.h a prototype of fchdir is defined, but commented out with the define __NYI.

Thanks
Christian
Re: SOLVED Re: Getting svn for bootstrapping  
On Thu, Oct 11, 2007 at 12:47:11PM -0400, Christian Leutloff wrote:
> 
> The hint with the file system patch lead me to the download patch site.
> There I've found the svn as a patch for 6.3.0 SP3, too. That is working
> perfectly and I've gotten all the source from the repository!
> 
> Many thanks!
> 
> 
> bootstrap works only in parts. E.g. bmake is succesfully build, but
> pkd_admin failed:
> 
> gcc -L../libnbcompat -L../../libnbcompat -L../lib -o pkg_admin main.o
> -linstall -ltermcap -lnbcompat
> main.o: In function `main':
> /usr/pkg/HEAD/pkgsrc/bootstrap/work/pkg_install/admin/main.c:700:
> undefined reference to `fchdir'
> /usr/pkg/HEAD/pkgsrc/bootstrap/work/pkg_install/admin/main.c:740:
> undefined reference to `fchdir'
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> The mysterious thing is, that I was not able to find the used prototype
> of the fchdir function. Therefore the compilation of main.c to main.o
> should have been failed.
> 
> In /usr/include/unistd.h a prototype of fchdir is defined, but commented
> out with the define __NYI.
> 
> Thanks
> Christian

fchdir() is in the 6.3.2 libc.

-seanb
Re: SOLVED Re: Getting svn for bootstrapping  
> fchdir() is in the 6.3.2 libc.

is the libc available as an update for 6.3.0 or must I reinstall the whole system? I have not found an update for the 
libc in the download center.

Thanks
Christian
Re: SOLVED Re: Getting svn for bootstrapping  
On Thu, Oct 11, 2007 at 02:21:26PM -0400, Christian Leutloff wrote:
> > fchdir() is in the 6.3.2 libc.
> 
> is the libc available as an update for 6.3.0 or must I reinstall the
> whole system? I have not found an update for the libc in the download
> center.
> 

I really don't know.  Most of the pkgsrc development
is going on against 6.3.2 so it's suggested you use
that as the base.

-seanb
Re: SOLVED Re: Getting svn for bootstrapping  
okay, I've deleted the 6.3.0 SP3 partition and now I'm installing Momentics 6.3.2 ...
Re: SOLVED Re: Getting svn for bootstrapping  
bootstrapping has worked now perfectly!

I even got openssh up and running - I'll post a very little patch separately. And in this moment vim without a patch. 
I'm REALLY impressed how smooth pkgsrc works!!! Thanks to all the people involved!