Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - I've been working with the HEAD branch : Page 1 of 2 (11 Items)
   
I've been working with the HEAD branch  
Well I think pkgsrc is wonderful.   I have some questions and
some problems with packages to report.

1) How can I setup my system so that /usr/pkg/bin and
/usr/pkg/sbin are always in my PATH.4, and specifically before
/usr/local/bin?  I know this is pretty basic.  I appologize.

2) How can I setup my system so that /usr/pkg/lib is always
checked for the pkgsrc libraries?  When compiling a pkgsrc package this
seems to happen automatically, but what if I'm compiling
my own programs?

3) Does anyone know what package mkisofs is buried in?

4) Doesn't It seems very odd that svn does not seem to be part of pkgsrc?   I was hoping to compile the server side so 
as to use svn locally for my own work in the future.

5) I noticed that aclocal was not created with devel/automake.
I don't really know what aclocal does, but it was created when
I built automake myself.

6) Some Problems I had with packages

www/lynx 
    During "bmake install" the script looks for gzip in
    /usr/bin/gzip, not /bin/gzip so if fails.  I fixed this
    on my system by linking /bin/gzip to /usr/bin/gzip.

devel/gettext 0.14.6
    When doing "make install" I get the error
        msc: illegal option -g"
        My msc is version 1

www/fcgi 2.4.0 
    This requires -lm to compile,
    One program gets the error
   "undefined reference to 'frexp'"

devel/glib2  2.14.1
    In the middle of the bmake, the script started downloading
    gcc3.3.6, eek! I stopped it.  What happened here?
    This brings up a more general question.   The default
    compiler on my system is the 2.+ one.  Is that what it
    should be?   Are there problems with linking objects
    from different compilers?   How about when there are
    shared libraries involved?

graphics/jasper
    The script stops in bmake with message:
        checking for C compiler default output file name... 
        configure: error: C compiler cannot create executables
        See 'config.log' for more details
        I didn't find config.log helpful.
        I don't know what jasper does, but two packages
        I want have it as a prerequisite.
        This is actually quite curious as I didn't
        need it for the older versions I compiled myself.

6) I noticed that there were newer versions of the packages
devel/apr and security/openssl available on-line.   The
newer openssl version has been around a long time, at
least a year.

7) In case you are interested, all of the following packages
were built successfully.

    apr-1.2.9
    autoconf-2.61
    automake-1.10
    bash-3.2.25
    bison-2.3
    bzip2-1.0.4
    db4-4.5.20.2
    fastjar-0.93nb3
    freetype2-2.3.5
    gd-2.0.35
    gdbm-1.8.3nb1
    gettext-asprintf-0.14.6
    gettext-lib-0.14.6
    gettext-m4-0.14.6
    gettext-tools-0.14.6
    gmake-3.81
    gtexinfo-4.8nb7
    jpeg-6bnb4
    libgcrypt-1.2.4
    libgpg-error-1.4nb2
    libiconv-1.11
    libtool-base-1.5.24nb4
    libxml2-2.6.30
    libxslt-1.1.22
    lynx-2.8.6.5nb1
    m4-1.4.10nb2
    openssl-0.9.7inb4
    perl-5.8.8nb4
    pkg-config-0.21nb1
    pkg_install-info-4.5nb3
    png-1.2.20
    popt-1.10.7
    readline-5.2
    tcl-8.4.15
    unzip-5.52nb3
    xmlcatmgr-2.2nb1
    zlib-1.2.3

Thanks for any help.

Mitchell
Re: I've been working with the HEAD branch  
> Well I think pkgsrc is wonderful.   I have some questions and
> some problems with packages to report.
> 
> 1) How can I setup my system so that /usr/pkg/bin and
> /usr/pkg/sbin are always in my PATH.4, and specifically before
> /usr/local/bin?  I know this is pretty basic.  I appologize.

You can put it in your $HOME/.profile, or $HOME/.kshrc if you have it setup.

If you want it global, you can modify /etc/profile. Or, in your /etc/rc.d/rc.local, you can set the CS_PATH

setconf CS_PATH $(getconf CS_PATH):/usr/pkg/bin

> 2) How can I setup my system so that /usr/pkg/lib is always
> checked for the pkgsrc libraries?  When compiling a pkgsrc package this
> seems to happen automatically, but what if I'm compiling
> my own programs?

This is explained in bootstrap, set it in /etc/rc.d/rc.local as:

setconf CS_LIBPATH $(getconf CS_LIBPATH):/usr/pkg/lib 

>3) Does anyone know what package mkisofs is buried in?

Maybe sysutils/cdrtools?

> 4) Doesn't It seems very odd that svn does not seem to be part of pkgsrc?   I 
> was hoping to compile the server side so as to use svn locally for my own work
>  in the future.

It is. I got confused the other day, it is not called "svn" but "subversion",
under devel :)

Re: I've been working with the HEAD branch  
> > Well I think pkgsrc is wonderful.   I have some questions and
> > some problems with packages to report.
> > 
> > 1) How can I setup my system so that /usr/pkg/bin and
> > /usr/pkg/sbin are always in my PATH.4, and specifically before
> > /usr/local/bin?  I know this is pretty basic.  I appologize.
> 
> You can put it in your $HOME/.profile, or $HOME/.kshrc if you have it setup.
> 
> If you want it global, you can modify /etc/profile. Or, in your /etc/rc.d/rc.
> local, you can set the CS_PATH
> 
> setconf CS_PATH $(getconf CS_PATH):/usr/pkg/bin
> 
> > 2) How can I setup my system so that /usr/pkg/lib is always
> > checked for the pkgsrc libraries?  When compiling a pkgsrc package this
> > seems to happen automatically, but what if I'm compiling
> > my own programs?
> 
> This is explained in bootstrap, set it in /etc/rc.d/rc.local as:
> 
> setconf CS_LIBPATH $(getconf CS_LIBPATH):/usr/pkg/lib 
> 
> >3) Does anyone know what package mkisofs is buried in?
> 
> Maybe sysutils/cdrtools?
> 
> > 4) Doesn't It seems very odd that svn does not seem to be part of pkgsrc?   
> I 
> > was hoping to compile the server side so as to use svn locally for my own 
> work
> >  in the future.
> 
> It is. I got confused the other day, it is not called "svn" but "subversion",
> under devel :)
> 
Well, great work! You have helped me to improve my knowledge about this field. Thank you so much for sharing.



__________________
http://moviesonlineworld.com
Re: I've been working with the HEAD branch  
On Mon, Oct 01, 2007 at 01:44:58AM -0400, Mitchell Schoenbrun wrote:
> Well I think pkgsrc is wonderful.   I have some questions and
> some problems with packages to report.
> 
> 1) How can I setup my system so that /usr/pkg/bin and
> /usr/pkg/sbin are always in my PATH.4, and specifically before
> /usr/local/bin?  I know this is pretty basic.  I appologize.

I just set up my PATH in my .profile:

	PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/bin:\
/usr/pkg/sbin:/opt/bin:/usr/local/bin
# Where the following is as set up in /etc/profile.d/qnxsdk.sh
	PATH=${PATH}:${QNX_HOST}/usr/bin:\
${QNX_HOST}/usr/sbin:${QNX_HOST}/sbin:\
${QNX_HOST}/bin:${QNX_HOST}/usr/photon/appbuilder
	export PATH

> 
> 2) How can I setup my system so that /usr/pkg/lib is always
> checked for the pkgsrc libraries?  When compiling a pkgsrc package this
> seems to happen automatically, but what if I'm compiling
> my own programs?

Not sure about automatically.  These are usually the -l, -L
options to ld.

> 
> 3) Does anyone know what package mkisofs is buried in?

sysutils/cdrtools.  I suspect this may be a difficult one to
get going but I'm sure you're up to it :).

> 
> 4) Doesn't It seems very odd that svn does not seem to be part of
> pkgsrc?   I was hoping to compile the server side so as to use svn
> locally for my own work in the future.

svn is in devel/subversion-base

> 
> 5) I noticed that aclocal was not created with devel/automake.
> I don't really know what aclocal does, but it was created when
> I built automake myself.
> 
> 6) Some Problems I had with packages
> 
> www/lynx 
>     During "bmake install" the script looks for gzip in
>     /usr/bin/gzip, not /bin/gzip so if fails.  I fixed this
>     on my system by linking /bin/gzip to /usr/bin/gzip.

I'll look at this one.

> 
> devel/gettext 0.14.6
>     When doing "make install" I get the error
>         msc: illegal option -g"
>         My msc is version 1o
Does it succeed though?  I've noticed that some
configure scripts incorrectly assume mcs is a C#
compiler.
> 
> www/fcgi 2.4.0 
>     This requires -lm to compile,
>     One program gets the error
>    "undefined reference to 'frexp'"

This should be easy to fix.  I'll look into it.

> 
> devel/glib2  2.14.1
>     In the middle of the bmake, the script started downloading
>     gcc3.3.6, eek! I stopped it.  What happened here?
>     This brings up a more general question.   The default
>     compiler on my system is the 2.+ one.  Is that what it
>     should be?   Are there problems with linking objects
>     from different compilers?   How about when there are
>     shared libraries involved?
> 
> graphics/jasper
>     The script stops in bmake with message:
>         checking for C compiler default output file name... 
>         configure: error: C compiler cannot create executables
>         See 'config.log' for more details
>         I didn't find config.log helpful.
>         I don't know what jasper does, but two packages
>         I want have it as a prerequisite.
>         This is actually quite curious as I didn't
>         need it for the older versions I compiled myself.

The above two sound like you're not using 3.3.5.  Make sure
you set it as your default compiler as per the bootstrap page:
# qcc -V 3.3.5,gcc_ntox86 -set-default

> 
> 6) I noticed that there were newer versions of the packages
> devel/apr and security/openssl available on-line.   The
> newer openssl version has been around a long time, at
> least a year.

I'm sure they'll appear eventually :)  This may be
a compatibility, stability issue with other packages.

> 
> 7) In case you are interested, all of the following packages
> were built...
View Full Message
Re: I've been working with the HEAD branch  
Thank you Sean and Xiaodan for the quick responses.   I hope I'm being helpful here. I have a few more questions, and a 
few more easy fixes for you, I think.

First I want to revisit the PATH and LD_LIBRARY_PATH issue.
I don't want to use $HOME/.profile or $HOME/.kshrc because I use a number of logins based on what project I'm working on
.   I just want to have /usr/pkg/bin and /usr/pkg/sbin always in PATH, and
/usr/pkg/lib always in LD_LIBRARY_PATH.   Both suggestions, modifying /etc/profile or local.rc seem to have a flaw.   
When I'm in Photon, if I right click a terminal into being, then I do
get the right paths.   But if I then do a login in a terminal, PATH and LD_LIBRARY_PATH revert to not having the /usr/
pkg included.   I know that $HOME/.profile would fix this, but I would need to
put it in every login home directory, something I'd like to avoid if possible.

Sean mentioned updating fcgi, but do I have to re-download the tree to
get this update?   If so, is there a way to download just www/fcgi with svn?
I appologize for my ignorance of svn, I'm just getting started with it.

If I have a development machine, and a separate server, can I reasonably just copy /usr/pkg to the development machine, 
set up the PATH right and expect all my packages to run, or do I need to do an install on the server from a compiled 
pkgsrc tree?  I've already find a minor exception to this with sendmail.   The install script requires you
to update /etc/group and /etc/pass with smmsg:smmsg  for security reasons, which would need to be manually propogated if
 /usr/pkg was just copied.

Most of my problems were solved by setting up the right default compiler.  I did see the note in bootstrap, but I 
foolishly assumed that since I'm working with a fresh install of  the latest QNX 6.3.2, that this would be done 
automatically.   I'd suggest you change the
text to something like "You must change the default compiler if you want all packages to compile.".

the devel/gettext problem with msc (mysteriously) went away with the new  gcc compiler.

devel/glib2 got past its original problem, but now a new one has surfaced. The code gmain.c chokes on a define 
SA_RESTART that is missing. This comes from signal.h.   signal.h has SA_RESTART with the
comment, (not supported yet).   I blindly put SA_RESTART back in
in and achieved a completed make and install, but you may want to 
look at this closely.

devel/glib gets a compile error in gerror.c  The problem is that should
define SELECT_MASK to fd_set, but it doesn't.

lang/ruby gets a segmentation fault almost immediately after "bmake" starts. This is version 1.8.6.  I previously 
downloaded 1.8.5 and installed it without pkgsrc without any problems that I recall.

editors/emacs fails almost immediately because the configure script does
not recognize i386-pc-nto-qnx6.3.2.

sysutils/cdrtools is an interesting case.   The bmake works fine.  When I tried  to "bmake install" I got a lot of 
errors indicating that certain files under an OBJ directory weren't there.   I looked and they did seem to be there.

My next step is to try to make mysql, php, and apache in that order.
I'll get back to you if I find anything interesting.

Mitchell
apache22 fix  
I've found only one small problem that prevents apache22 from compiling.   In the source mod_mime_magic.c a routine 
named mcheck() has a name conflict with a routine mcheck() defined in malloc.h.

I'm not sure what the orthodox way to fix this, but just changing all references to mcheck() in this file to something 
else allows it to compile.

Tomorrow I'm going to play with creating apache with some configuration options, so there may be more for this package.
Re: apache22 fix  
> I've found only one small problem that prevents apache22 from compiling.   In 
> the source mod_mime_magic.c a routine named mcheck() has a name conflict with 
> a routine mcheck() defined in malloc.h.
> 
> I'm not sure what the orthodox way to fix this, but just changing all 
> references to mcheck() in this file to something else allows it to compile.
> 
> Tomorrow I'm going to play with creating apache with some configuration 
> options, so there may be more for this package.

My vote, is to change the function name and create a patch. (I have similar case in other project).

If it's local to that file, rename it to say "mime_magic_mcheck()"; if it is global, maybe rename it to "apache_mcheck()
".

Hopfully, the auther would then take back the modification?
Re: apache22 fix  
> My vote, is to change the function name and create a patch. (I have similar 
> case in other project).
> 
> If it's local to that file, rename it to say "mime_magic_mcheck()"; if it is 
> global, maybe rename it to "apache_mcheck()".
> 
> Hopfully, the auther would then take back the modification?

Is there some way that I can participate in this?  Can I make the patch
and send it on to you?   How does one make a patch?   Is this documented
somewhere?


Re: apache22 fix  
> > My vote, is to change the function name and create a patch. (I have similar 
> 
> > case in other project).
> > 
> > If it's local to that file, rename it to say "mime_magic_mcheck()"; if it is
>  
> > global, maybe rename it to "apache_mcheck()".
> > 
> > Hopfully, the auther would then take back the modification?
> 
> Is there some way that I can participate in this?  Can I make the patch
> and send it on to you?   How does one make a patch?   Is this documented
> somewhere?

You are welcome to build  a patch and submit it to us.

Check the document here for how.

http://www.netbsd.org/docs/pkgsrc/components.html#components.patches

Re: I've been working with the HEAD branch  
On Mon, Oct 01, 2007 at 02:47:10PM -0400, Mitchell Schoenbrun wrote:
> Thank you Sean and Xiaodan for the quick responses.   I hope I'm being
> helpful here. I have a few more questions, and a few more easy fixes for
> you, I think.
> 
> First I want to revisit the PATH and LD_LIBRARY_PATH issue.
> I don't want to use $HOME/.profile or $HOME/.kshrc because I use a
> number of logins based on what project I'm working on.   I just want to
> have /usr/pkg/bin and /usr/pkg/sbin always in PATH, and
> /usr/pkg/lib always in LD_LIBRARY_PATH.   Both suggestions, modifying
> /etc/profile or local.rc seem to have a flaw.   When I'm in Photon, if I
> right click a terminal into being, then I do
> get the right paths.   But if I then do a login in a terminal, PATH and
> LD_LIBRARY_PATH revert to not having the /usr/pkg included.   I know
> that $HOME/.profile would fix this, but I would need to
> put it in every login home directory, something I'd like to avoid if
> possible.


LD_LIBRARY_PATH is an environmental variable affecting the
run time linker.  I inferred from your initial post that you
were interested in the initial program link phase.  If
you're interested in the run time linker, specify the
CS_LIBPATH confstr as per the bootstrap page which is system
wide.

AFIAK, /etc/profile is the correct place to set up the
initial path system wide.  Make sure you aren't overriding
the path set up there in a per user manner (~/.profile?).
Also root is treated differently in /etc/profile.
> 
> Sean mentioned updating fcgi, but do I have to re-download the tree to
> get this update?   If so, is there a way to download just www/fcgi with
> svn?
> I appologize for my ignorance of svn, I'm just getting started with it.

An 'svn up' is much faster than the initial checkout.  You
can update the whole tree or just the parts you're
interested in (it's advisable to update the whole thing once
in a while).

# svn up www/fcgi

I've updated www/fcgi and devel/gettext to work around
the issues you reported.  I couldn't build
devel/gettext-asprintf due to a <stdlib.h> bug.  This
is now fixed and an updated version is in pkgsrc_qnxutil
archive in the download section.  PR 51606.

> 
> If I have a development machine, and a separate server, can I reasonably
> just copy /usr/pkg to the development machine, set up the PATH right and
> expect all my packages to run, or do I need to do an install on the
> server from a compiled pkgsrc tree?  I've already find a minor exception
> to this with sendmail.   The install script requires you
> to update /etc/group and /etc/pass with smmsg:smmsg  for security
> reasons, which would need to be manually propogated if /usr/pkg was just
> copied.

You also need /var/db/pkg*.  I think that's it.

> 
> Most of my problems were solved by setting up the right default
> compiler.  I did see the note in bootstrap, but I foolishly assumed that
> since I'm working with a fresh install of  the latest QNX 6.3.2, that
> this would be done automatically.   I'd suggest you change the
> text to something like "You must change the default compiler if you want
> all packages to compile.".
> 
> the devel/gettext problem with msc (mysteriously) went away with the new
> gcc compiler.

I could still reproduce this as mentioned above (it's
actually the mcs utility).

> 
> devel/glib2 got past its original problem, but now a new one has
> surfaced. The code gmain.c chokes on a define SA_RESTART that is
> missing. This comes from signal.h.   signal.h has SA_RESTART with the
> comment, (not supported yet).   I blindly put SA_RESTART back in
> in and achieved a completed make and install, but you may want to 
> look at this closely.

This is probably a tricky one.  I suspect subtle issues may
arise.

> 
>...
View Full Message