Re: Installing make
... That didn't give much feedback... Upon inspecting the TMP directory I find the variable: MAKE=make, which I'd think should be changed, when I've defined that gmake should be used as make... Anyone? On Thu, Mar 18, 2004 at 01:53:59PM +0100, Mark Gjøl wrote: I'm installing openpkg on a SUN ultraSPARC running Solaris 9. I've bootstrapped the system with: sh openpkg-2.0.0-2.0.0.src.sh --prefix=/opt/openpkg/2.0/ sh openpkg-2.0.0-2.0.0.sparc64-solaris9-oo2.sh Then I ran the eval script: eval `/opt/openpkg/2.0/etc/rc --eval all env` So all should be fine. Now... I thought it would probably be a good idea to install gcc and make and such basic packages, so I ran: openpkg rpm --define use_cc /opt/sfw/gcc-3.2/bin/gcc --define use_make /opt/sfw/bin/gmake --rebuild ftp://ftp.openpkg.org/release/2.0/SRC/make-3.80-2.0.0.src.rpm And this is where the story comes to a grinding halt... After a bunch of configure lines I get: config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile + /opt/sfw/bin/gmake --no-print-directory -j4 make all-recursive /bin/bash: make: command not found gmake: *** [all] Error 127 error: Bad exit status from /opt/openpkg/2.0/RPM/TMP/rpm-tmp.5915 (%build) I know gmake is where I said it was. I've told openpkg to use that gmake, but even if it chooses not to I have a handy SUN make located cozilly in /usr/xpg4/bin/make... What's wrong? -- // Mark Gjøl I find the whole business of religion profoundly interesting. But it does mystify me that otherwise intelligent people take it seriously. - Douglas Adams -- http://b0rken.dk __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- // Mark Gjøl I find the whole business of religion profoundly interesting. But it does mystify me that otherwise intelligent people take it seriously. - Douglas Adams -- http://b0rken.dk __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: rpm hangs while building some packages under solaris
the first two commands also hang. the last command hangs after the sed (last) command. I have attached my console output. On Fri, 2004-03-19 at 03:21, Ralf S. Engelschall wrote: On Thu, Mar 18, 2004, Doug Henry wrote: Has anyone experienced a problem under solaris (I'm using 8) where rpm will hang when doing a rpm --rebuild package? If I remove the lines that use {platform_t} from the spec file I can build it. The first package in the build sequence that I experience this is binutils. It happens using openpkg versions 1.3 and 2.0. Any info on debugging/fixing this problem would be appreciated. If %{l_platform -t} hangs, what does also hang the following commands? $ prefix/bin/openpkg rpm --eval '%{l_platform -t}' $ prefix/lib/openpkg/shtool platform -n -L -S -C + -F %at-%st And if yes, try to execute $ sh -x prefix/lib/openpkg/shtool platform -n -L -S -C + -F %at-%st and tell us the output, please. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] Script started on Fri 19 Mar 2004 07:53:50 AM EST $ openpkg rpm --eval '%{l_platform -t}' ^C$ $ /home/losradar/tools/SunOS-5.8/lib/openpkg/shtool platform -n -L -S -C + -F %at-%st ^C $ $ sh -x /home/losradar/tools/SunOS-5.8/lib/openpkg/shtool platform -n -L -S -C + -F %at-%st + [ 9 -eq 0 ] + [ .platform = .-h ] + [ .platform = .--help ] + [ .platform = .-v ] + [ .platform = .--version ] + [ .platform = .-r ] + [ .platform = .--recreate ] + [ .platform = .-d ] + [ .platform = .--debug ] + echo /home/losradar/tools/SunOS-5.8/lib/openpkg/shtool + sed -e s;.*/\([^/]*\)$;\1; -e s;-sh$;; -e s;\.sh$;; name=shtool tool=platform + shift arg_spec= opt_spec= gen_tmpfile=no str_tool=platform str_usage=[-F|--format format] [-S|--sep string] [-C|--conc string] [-L|--lower] [-U|--upper] [-v|--verbose] [-c|--concise] [-n|--no-newline] [-t|--type type] [-V|--version] [-h|--help] arg_spec=0= opt_spec=F:S:C:L.U.v.c.n.t:d.V.h. opt_alias=F:format,S:sep,C:conc,L:lower,U:upper,v:verbose,c:consise,t:type,n:no-newline,V:version,h:help opt_F=%{sp} (%{ap}) opt_S= opt_C=/ opt_L=no opt_U=no opt_t= opt_v=no opt_c=no opt_n=no opt_V=no opt_h=no ASC_TAB= ASC_NL= + [ .platform != . ] toolcmd=/home/losradar/tools/SunOS-5.8/lib/openpkg/shtool platform toolcmdhelp=shtool platform msgprefix=shtool:platform + echo 0= + sed -e s/^\([0-9]*\)\([+=]\)/arg_NUMS=\1; arg_MODE=\2/ + eval arg_NUMS=0; arg_MODE== arg_NUMS=0 arg_MODE== + echo h.F:S:C:L.U.v.c.n.t:d.V.h. + sed -e s/\([a-zA-Z0-9]\)\([.:+]\)/opt_MODE_\1=\2;/g + eval opt_MODE_h=.;opt_MODE_F=:;opt_MODE_S=:;opt_MODE_C=:;opt_MODE_L=.;opt_MODE_U=.;opt_MODE_v=.;opt_MODE_c=.;opt_MODE_n=.;opt_MODE_t=:;opt_MODE_d=.;opt_MODE_V=.;opt_MODE_h=.; opt_MODE_h=. opt_MODE_F=: opt_MODE_S=: opt_MODE_C=: opt_MODE_L=. opt_MODE_U=. opt_MODE_v=. opt_MODE_c=. opt_MODE_n=. opt_MODE_t=: opt_MODE_d=. opt_MODE_V=. opt_MODE_h=. + echo h:help,F:format,S:sep,C:conc,L:lower,U:upper,v:verbose,c:consise,t:type,n:no-newline,V:version,h:help + tr x- x_ + sed -e s/\([a-zA-Z0-9]\):\([^,]*\),*/opt_ALIAS_\2=\1;/g ^C $ $ exit script done on Fri 19 Mar 2004 07:55:05 AM EST
Re: rpm hangs while building some packages under solaris
Forgot to mention in my other message that it seems to be a more general problem than just l_platform. The same thing happens when I try to build ncurses and I don't think there are any platform commands in that spec file. Thanks On Fri, 2004-03-19 at 03:21, Ralf S. Engelschall wrote: On Thu, Mar 18, 2004, Doug Henry wrote: Has anyone experienced a problem under solaris (I'm using 8) where rpm will hang when doing a rpm --rebuild package? If I remove the lines that use {platform_t} from the spec file I can build it. The first package in the build sequence that I experience this is binutils. It happens using openpkg versions 1.3 and 2.0. Any info on debugging/fixing this problem would be appreciated. If %{l_platform -t} hangs, what does also hang the following commands? $ prefix/bin/openpkg rpm --eval '%{l_platform -t}' $ prefix/lib/openpkg/shtool platform -n -L -S -C + -F %at-%st And if yes, try to execute $ sh -x prefix/lib/openpkg/shtool platform -n -L -S -C + -F %at-%st and tell us the output, please. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Installing make
On Fri, Mar 19, 2004, Mark Gjøl wrote: ... That didn't give much feedback... Upon inspecting the TMP directory I find the variable: MAKE=make, which I'd think should be changed, when I've defined that gmake should be used as make... Anyone? Where exactly do you see this ? Yesterday i tried the command: openpkg rpm --define use_cc /opkg/bin/gcc --define use_make /usr/ccs/bin/make --rebuild /pub/openpkg/release/SRC/make-3.80-2.0.0.src.rpm and it worked for me: .. config.status: creating po/POTFILES config.status: creating po/Makefile + /usr/ccs/bin/make /usr/ccs/bin/make all-recursive Making all in glob .. Though, i tried it under Solaris-8/x86. So i gave up. Oh, where do the parameters --no-print-directory -j4 come from in your case ? Or why are they missing in my case ? I just retried with use_make /opkg/bin/gmake: .. config.status: creating po/POTFILES config.status: creating po/Makefile + /opkg/bin/gmake --no-print-directory -j4 /opkg/bin/gmake all-recursive Making all in glob .. So there seems to be some black magic that recognizes gmake. It still works for me, though. I looked into $prefix/etc/openpkg/rpmmacros. %{l_make} is defined as rpmmacros:%l_make %{l_tool_locate make make} .. and when i saw l_tool_locate, i broke together. Do you have something in your $HOME/.rpmmacros ? (mk) On Thu, Mar 18, 2004 at 01:53:59PM +0100, Mark Gjøl wrote: I'm installing openpkg on a SUN ultraSPARC running Solaris 9. I've bootstrapped the system with: sh openpkg-2.0.0-2.0.0.src.sh --prefix=/opt/openpkg/2.0/ sh openpkg-2.0.0-2.0.0.sparc64-solaris9-oo2.sh Then I ran the eval script: eval `/opt/openpkg/2.0/etc/rc --eval all env` So all should be fine. Now... I thought it would probably be a good idea to install gcc and make and such basic packages, so I ran: openpkg rpm --define use_cc /opt/sfw/gcc-3.2/bin/gcc --define use_make /opt/sfw/bin/gmake --rebuild ftp://ftp.openpkg.org/release/2.0/SRC/make-3.80-2.0.0.src.rpm And this is where the story comes to a grinding halt... After a bunch of configure lines I get: config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile + /opt/sfw/bin/gmake --no-print-directory -j4 make all-recursive /bin/bash: make: command not found gmake: *** [all] Error 127 error: Bad exit status from /opt/openpkg/2.0/RPM/TMP/rpm-tmp.5915 (%build) I know gmake is where I said it was. I've told openpkg to use that gmake, but even if it chooses not to I have a handy SUN make located cozilly in /usr/xpg4/bin/make... What's wrong? -- Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47 Im prämotorischen Cortex kann jeder ein Held sein. (bdw) __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Installing make
On Fri, Mar 19, 2004, Mark Gjøl wrote: On Fri, Mar 19, 2004 at 02:48:32PM +0100, Matthias Kurz wrote: On Fri, Mar 19, 2004, Mark Gjøl wrote: ... That didn't give much feedback... Upon inspecting the TMP directory I find the variable: MAKE=make, which I'd think should be changed, when I've defined that gmake should be used as make... Anyone? Where exactly do you see this ? Yesterday i tried the command: openpkg rpm --define use_cc /opkg/bin/gcc --define use_make /usr/ccs/bin/make --rebuild /pub/openpkg/release/SRC/make-3.80-2.0.0.src.rpm and it worked for me: Though, i tried it under Solaris-8/x86. So i gave up. Oh, I've moved /usr/ccs/bin because I needed to use the GNU ld, rather than the SUN ld, and this was the only obvious way to move it out of the way... It works now, (YAY) thanks! What do you mean with it works now ? Does it use the make that you specified with use_make or does it work because /usr/ccs/bin is in the PATH and it finds the make there ? How does the line with all-recursive look like ? (mk) -- Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47 Im prämotorischen Cortex kann jeder ein Held sein. (bdw) __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Installing make
On Fri, Mar 19, 2004, Matthias Kurz wrote: [...] Though, i tried it under Solaris-8/x86. So i gave up. Oh, where do the parameters --no-print-directory -j4 come from in your case ? Or why are they missing in my case ? The make argument -j4 causes make to fork four times. OpenPKG will supply this argument only on multiple CPU systems, because it is the only case which makes sense. Basically -ji where i = 2 x CPUs. Mark must have 2 CPUs on his system hence -j4. You must have only one CPU. Sorry, unlucky guy. The piece responsible for figuring this all out is the rpmtool, under your prefix/lib/openpkg directory: mich$ /opkg/lib/openpkg/rpmtool mflags make --no-print-directory -j24 mich$ The rpmtool uses some other logic to add in --no-print-directory. Basically, if the GNU make is being used then the above argument is used. The rpmtool is just a bourne shell script that Ralf wrote. You can read it yourself to see what else it does. -- [EMAIL PROTECTED] Development Team, Operations Northern Europe Cable Wireless Telecommunications Services pgp0.pgp Description: PGP signature
How to Enable Software to start on boot
What is the proper way to enable various pieces of software installed under OpenPKG? I know you use the $root/etc/rc command and the $root/etc/rc.conf is what configures it, but what exactly would you place into the rc.conf file? Do I simply put $root/etc/rc apache start on one line and then another service on the next line, etc? Or do you use the `rc --config` command to make the changes? My confusion is that in the rc.conf it states all services are disabled by default, but when I execute `rc --config` it shows me that the default is to have the services enabled and the effective value is also enabled, however they do not startup on boot. Do I need to disable then re-enable the software I want to add which then in turn modifies the rc.conf appropriately? Please advise or point me to documentation that explains this, I couldn't seem to find anything that directly speaks to this matter. Thank you. -- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: rpm hangs while building some packages under solaris
On Fri, 19 Mar 2004, Doug Henry wrote: I believe I found the problem. If I move /usr/bin before /usr/ucb in my path everything seems to work. Different set of tools (tr, sed, etc.). Not sure how they are different, but they definitely are. /usr/ucb is deprecated in Solaris 9, it's mainly for backwards compatibility with older Solaris version (SunOS/BSDish). You should put /usr/ucb towards the very end in your PATH statement. ucb = university california berkeley (if I'm not mistaken). - Mike On Fri, 2004-03-19 at 11:37, Ralf S. Engelschall wrote: On Fri, Mar 19, 2004, Doug Henry wrote: the first two commands also hang. the last command hangs after the sed (last) command. I have attached my console output. [...] + [ .platform != . ] toolcmd=/home/losradar/tools/SunOS-5.8/lib/openpkg/shtool platform toolcmdhelp=shtool platform msgprefix=shtool:platform + echo 0= + sed -e s/^\([0-9]*\)\([+=]\)/arg_NUMS=\1; arg_MODE=\2/ + eval arg_NUMS=0; arg_MODE== arg_NUMS=0 arg_MODE== + echo h.F:S:C:L.U.v.c.n.t:d.V.h. + sed -e s/\([a-zA-Z0-9]\)\([.:+]\)/opt_MODE_\1=\2;/g + eval opt_MODE_h=.;opt_MODE_F=:;opt_MODE_S=:;opt_MODE_C=:;opt_MODE_L=.;opt_MODE_U=.;opt_MODE_v=.;opt_MODE_c=.;opt_MODE_n=.;opt_MODE_t=:;opt_MODE_d=.;opt_MODE_V=.;opt_MODE_h=.; opt_MODE_h=. opt_MODE_F=: opt_MODE_S=: opt_MODE_C=: opt_MODE_L=. opt_MODE_U=. opt_MODE_v=. opt_MODE_c=. opt_MODE_n=. opt_MODE_t=: opt_MODE_d=. opt_MODE_V=. opt_MODE_h=. + echo h:help,F:format,S:sep,C:conc,L:lower,U:upper,v:verbose,c:consise,t:type,n:no-newline,V:version,h:help + tr x- x_ + sed -e s/\([a-zA-Z0-9]\):\([^,]*\),*/opt_ALIAS_\2=\1;/g ^C $ $ exit Err... then something is broken on your platform. Why should this hang at all? Try the following commands: $ echo echo h:help,F:format,S:sep,C:conc,L:lower,U:upper,v:verbose,c:consise,t:type,n:no-newline,V:version,h:help | tr x- x_ | sed -e 's/\([a-zA-Z0-9]\):\([^,]*\),*/opt_ALIAS_\2=\1;/g' and give me the output of these commands so I can try to reproduce it on a similar machine: $ which echo $ which tr $ which sed $ uname -a Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- You know it is summer in Ireland when the rain gets warmer. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: How to Enable Software to start on boot
On Fri, Mar 19, 2004, Matthias Kurz wrote: David! On Fri, Mar 19, 2004, David M. Fetter wrote: What is the proper way to enable various pieces of software installed under OpenPKG? Whether the services are enabled or disabled by default is controlled by $openpkg_rc_def [...] Matthias already explained a lot. You find three paragraphs regarding this topic in http://cvs.openpkg.org/openpkg-re/upgrade.txt when searching for openpkg_rc_all. -- [EMAIL PROTECTED], Cable Wireless __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: rebuild php / definition
On Fri, Mar 19, 2004, Mike's List wrote: Now that I know how to build apache with php/mysql enabled, I need to add imap to apache and build php with gettext support... This is how apache was built, openpkg rpm --rebuild --define 'with_mod_php yes' --define \ 'with_mod_php_mysql yes' ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm ...w/additional support for imap w/in apache, do I just add the below? --define 'with_mod_php_mysql_imap yes' You remember how to find the valid options ? - http://marc.theaimsgroup.com/?l=openpkg-usersm=107950470830001w=2 rpm -qip is for querying rpm archives (e.g. to find the defaults). You can also list the options of installed packages (and the current settings) with rpm -qi pkg or with rpm -q --provides pkg (e.g. rpm -qi apache see man rpm). So, with_mod_php_mysql_imap does not look like a valid option. openpkg rpm --rebuild --define 'with_mod_php yes' --define \ 'with_mod_php_mysql yes' --define 'with_mod_php_mysql_imap yes' \ ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm ...to build PHP with gettext enable do I just do the below? openpkg rpm --rebuild --define 'with_mod_gettext yes' \ ~mike/openpkg/src/php-4.3.4-2.0.0.src.rpm The key part is --define 'with_mod_module yes' and if there's additional module you added onto the second definition and third and so on? (like the apache example above?) I'm not quite sure, whether i understand this question. When you have built e.g. apache with two options and you want another option then you have to specify all three options in the new build, not only the additional one. Generally, you have to specify _all_ options that are different from the defaults in each build. Also, you have to use rpm --force -Uvh to install the modified binary package. Did someone already mention openpkg-tool ? ;-) (mk) -- Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47 Im prämotorischen Cortex kann jeder ein Held sein. (bdw) __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: How to Enable Software to start on boot
On Fri, Mar 19, 2004, Matthias Kurz wrote: On Fri, Mar 19, 2004, David M. Fetter wrote: [...] ... Please advise or point me to documentation that explains this, I couldn't seem to find anything that directly speaks to this matter. Thank you. Oh, well. And there is at least documentation in form of a man page (man rc). And since OpenPKG 2.0 and CURRENT since 200402xx, use have to use openpkg man rc. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
SUMMARY: Rebuild Apache with options
Thanks to: Michael Schloh von Bennewitz and Matthias Kurz for their unwavering support. Michael mentioned something about openpkg being perl based and *wham* I recalled perl's permission. One of the program/software I installed and ran on the server changed permission of /openpkg/bin/perl to 4555 I changed it back to 755 and everything starts to compile like normal again. # ls -al perl -r-sr-xr-x 1 openpkg openpkg 858896 Feb 18 19:07 perl [EMAIL PROTECTED] /openpkg/bin# chmod 755 perl [EMAIL PROTECTED] /openpkg/bin# ls -al perl -rwxr-xr-x 1 openpkg openpkg 858896 Feb 18 19:07 perl The effect of wrong perl permission is weird UID/GID created during compilation, and the file files not being created properly. Regards, - Mike -- original message -- I've remove the apache binary package that was installed, reboot the server, make certain /openpkg/RPM/TMP has enough disk space (4+Gig). The error message still appears, it seems like apache doesn't want to compile and something about %files file...no such file or directory. Where do I get the openpkg build --supposedly in the tools? but I don't see it at ftp.openpkg.org or do I need to get it someplace else? Thanks. - Mike On Wed, 17 Mar 2004, Mike's List wrote: Rebuild was going along just fine, until the errors (below). This happens to me when I attempted to do proftpd earlier but thought it might be just proftp specific (as the binary package keeps dumping core on me). Do I need to reboot the server to correct this or something more sinister? # openpkg rpm --rebuild --define 'with_mod_php yes' --define 'wi th_mod_php_mysql yes' ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm compiling stuff here rpmtool:files: pass 1 (preparation and syntactical expansions) rpmtool:files: pass 2 (filesystem-based expansions) rpmtool:files: pass 3 (duplication removal and cleanup) + exit 0 Processing files: apache-1.3.29-2.0.0 error: Could not open %files file /openpkg/RPM/TMP/apache-1.3.29/files: No such file or directory RPM build errors: Could not open %files file /openpkg/RPM/TMP/apache-1.3.29/files: No such file or directory As you can see the directories are there. [EMAIL PROTECTED] /openpkg/RPM/TMP# ls -l total 4 drwxr-xr-x 5 root other512 Mar 17 06:36 apache-1.3.29 drwxr-xr-x 3 root other512 Mar 17 06:36 apache-1.3.29-root __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] __ The OpenPKG Projectwww.openpkg.org Developer Communication List [EMAIL PROTECTED] __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
rebuild php / definition
Now that I know how to build apache with php/mysql enabled, I need to add imap to apache and build php with gettext support... This is how apache was built, openpkg rpm --rebuild --define 'with_mod_php yes' --define \ 'with_mod_php_mysql yes' ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm ...w/additional support for imap w/in apache, do I just add the below? --define 'with_mod_php_mysql_imap yes' openpkg rpm --rebuild --define 'with_mod_php yes' --define \ 'with_mod_php_mysql yes' --define 'with_mod_php_mysql_imap yes' \ ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm ...to build PHP with gettext enable do I just do the below? openpkg rpm --rebuild --define 'with_mod_gettext yes' \ ~mike/openpkg/src/php-4.3.4-2.0.0.src.rpm The key part is --define 'with_mod_module yes' and if there's additional module you added onto the second definition and third and so on? (like the apache example above?) Regards, - Mike __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]