Re: Problem using Portmaster to upgrade installed ports via packages only
Apologies for not answering sooner ... On 06/29/10 13:37, Alexandre L. wrote: I have done tests last days, and now I can set PACKAGESITE correctly in user's .cshrc (I have unset the parameter in root's .cshrc). Else, I have set /usr/local/etc/portmaster.rc, as described in the portmaster's manpage. Here my /usr/local/etc/portmaster.rc PM_SU_VERBOSE= It's not necessary in shell scripting to set empty variables like this. That's particularly true for the flag variables in portmaster rc files. If the variable isn't actually set to something then what you have here is exactly the same (to portmaster) as if you had not included it at all. PM_SU_CMD=/usr/local/bin/sudo This is fine, assuming that you want to be able to type 'portmaster ...' as a non-root user and have it be able to do things that usually require root privileges. However, there are a lot of other things that need to be done to set that up. They are not difficult, but the details matter. Please look closely at the section about this in the portmaster man page for more details. I don't know (or understand) if I have to set a value to PM_SU_VERBOSE That depends on your goal. Why are you setting this? I have tried to set PM_SU_VERBOSE=/usr/local/bin/sudo without success If you can help me here, I have read the manpage hundred times, but haven't found where I am wrong. Please copy and paste the parts of the man page that are confusing. That will help me improve it. Then I have tried without the line PM_SU_VERBOSE, just with PM_SU_CMD=/usr/local/bin/sudo I can install without problem packages with $ portmaster -P -a -x openoffice But if there is no package available for the port, I got the message (it is an example) : = libpng-1.4.3.tar.xz doesn't seem to exist in /usr/ports/distfiles//. = /usr/ports/distfiles/ is not writable by you; cannot fetch. That tells me that you haven't followed the instructions in the man page for setting up your environment for sudo. So once again, if there are specific parts of the man page that you find confusing, let me know what they are so that I can improve it. Meanwhile, you might also consider simply running portmaster as root. There is nothing preferable about running it with sudo, it is a feature that I added because users so often requested it. hope this helps, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover!http://SupersetSolutions.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem using Portmaster to upgrade installed ports via packages only
I have done tests last days, and now I can set PACKAGESITE correctly in user's .cshrc (I have unset the parameter in root's .cshrc). Else, I have set /usr/local/etc/portmaster.rc, as described in the portmaster's manpage. Here my /usr/local/etc/portmaster.rc PM_SU_VERBOSE= PM_SU_CMD=/usr/local/bin/sudo I don't know (or understand) if I have to set a value to PM_SU_VERBOSE I have tried to set PM_SU_VERBOSE=/usr/local/bin/sudo without success If you can help me here, I have read the manpage hundred times, but haven't found where I am wrong. Then I have tried without the line PM_SU_VERBOSE, just with PM_SU_CMD=/usr/local/bin/sudo I can install without problem packages with $ portmaster -P -a -x openoffice But if there is no package available for the port, I got the message (it is an example) : = libpng-1.4.3.tar.xz doesn't seem to exist in /usr/ports/distfiles//. = /usr/ports/distfiles/ is not writable by you; cannot fetch. *** Error code 1 Stop in /usr/ports/graphics/png. *** Error code 1 Stop in /usr/ports/graphics/png. === make failed for graphics/png === Aborting update === Update for png-1.4.1_1 failed === Aborting update === There are messages from installed ports to display, but first take a moment to review the error messages above. Then press Enter when ready to proceed. In the 2 cases, my user's password has been asked, and I have typed it. My portmaster version is 2.32. I haven't got problem if I do $ sudo portmaster -P -a -x openoffice I think my problem come from the parameter for sudo in portmaster.rc but I don't know how to set it. I have really read the manpage a lot. Thanks for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problem using Portmaster to upgrade installed ports via packages only
Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Then I typed this linde into a console : % sudo portmaster -PP -a -x openoffice I past the output : === The following actions will be taken if you choose to proceed: Upgrade automounter-1.4.2 to automounter-1.4.3 Upgrade liveMedia-2010.05.29,1 to liveMedia-2010.06.11,1 Upgrade portmaster-2.29 to portmaster-2.32 Upgrade bash-4.1.5_2 to bash-4.1.7 Upgrade iso-codes-3.16_1 to iso-codes-3.17 Upgrade p5-libwww-5.834 to p5-libwww-5.836 Upgrade tiff-3.9.3 to tiff-3.9.4 Upgrade filezilla-3.3.2.1_2 to filezilla-3.3.3 Upgrade gnupg-2.0.14_2 to gnupg-2.0.15 Upgrade libassuan-1.0.5 to libassuan-2.0.0 Upgrade wine-1.2.r3,1 to wine-1.2.r4,1 === Proceed? y/n [y] === Starting install for for ports that need updating === === Launching child to update automounter-1.4.2 === Port directory: /usr/ports/sysutils/automounter === Checking package repository for latest available version === The newest available package (automounter-1.3.4) is older than the version in ports (automounter-1.4.3) === Try --packages-if-newer, or do not use -PP/--packages-only === Aborting update === Update for automounter-1.4.2 failed === Aborting update The strange thing is the 'automounter-1.4.3' package is available on the FTP repository configured for PACKAGESITE. Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) without success : ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Thanks in advance for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem using Portmaster to upgrade installed ports via packages only
Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Then I typed this linde into a console : % sudo portmaster -PP -a -x openoffice I past the output : === The following actions will be taken if you choose to proceed: Upgrade automounter-1.4.2 to automounter-1.4.3 Upgrade liveMedia-2010.05.29,1 to liveMedia-2010.06.11,1 Upgrade portmaster-2.29 to portmaster-2.32 Upgrade bash-4.1.5_2 to bash-4.1.7 Upgrade iso-codes-3.16_1 to iso-codes-3.17 Upgrade p5-libwww-5.834 to p5-libwww-5.836 Upgrade tiff-3.9.3 to tiff-3.9.4 Upgrade filezilla-3.3.2.1_2 to filezilla-3.3.3 Upgrade gnupg-2.0.14_2 to gnupg-2.0.15 Upgrade libassuan-1.0.5 to libassuan-2.0.0 Upgrade wine-1.2.r3,1 to wine-1.2.r4,1 === Proceed? y/n [y] === Starting install for for ports that need updating === === Launching child to update automounter-1.4.2 === Port directory: /usr/ports/sysutils/automounter === Checking package repository for latest available version === The newest available package (automounter-1.3.4) is older than the version in ports (automounter-1.4.3) === Try --packages-if-newer, or do not use -PP/--packages-only === Aborting update === Update for automounter-1.4.2 failed === Aborting update The strange thing is the 'automounter-1.4.3' package is available on the FTP repository configured for PACKAGESITE. Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) without success : ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Thanks in advance for your help. You should be able to use: ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable portmaster will trim trailing /, /Latest, /All. But be aware that as 8-STABLE gets farther away from 8.0-RELEASE, some of the packages there may not work with your 8.0-RELEASE-pX version, because your version only incorporates critical fixes to 8.0-RELEASE, and not all of the changes in 8-STABLE. Do you have any old packages for automounter in your local package directory? If so, remove them and then re-try the update. It's possible that an old local package may confuse portmaster into thinking that the local package is the latest available package. If the problem still occurs, send a verbose output to the list, using portmaster -v b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem using Portmaster to upgrade installed ports via packages only
On 06/24/10 06:10, b. f. wrote: Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Then I typed this linde into a console : % sudo portmaster -PP -a -x openoffice There is a procedure for using sudo with portmaster described in the man page. That procedure is preferable because it uses your user environment for everything except where root privileges are actually necessary. What I suspect is happening here is that sudo is stripping your environment which means that portmaster never sees the PACKAGESITE variable. I tried it just now with csh, setting the environment variable as you did, but using portmaster with sudo in the way described in the man page and it worked fine. If you would prefer to continue using 'sudo portmaster' that's fine, but you'll need to place the relevant information (such as PACKAGESITE) in ~/.portmasterrc or /usr/local/etc/portmaster.rc. BTW, if you're going to go this route, you're probably better off with PACKAGEROOT, but either way should work. See the man page for more information. Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) without success : ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ Spelling counts. :) hth, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover!http://SupersetSolutions.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's the difference between portupgrade and portmaster ?
On Tue, Jun 1, 2010 at 3:37 AM, zaxis z_a...@163.com wrote: Why do we need two tools ? Its three. Add portmanager. The answer is personal choice and we number of bikesheds. Also portmaster used to not be able to work with packages when portupgrade could. -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's the difference between portupgrade and portmaster ?
2010/6/1 Eitan Adler li...@eitanadler.com: On Tue, Jun 1, 2010 at 3:37 AM, zaxis z_a...@163.com wrote: Why do we need two tools ? Its three. Add portmanager. The answer is personal choice and we number of bikesheds. Also portmaster used to not be able to work with packages when portupgrade could. portmaster can! See portmaster manpage. -P[P] options. The differences are that portupgrade use a database, it's written in ruby while portmaster is only one shell script. That's why I really prefere portmaster that also have zsh completion and is faster. -- Demelier David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's the difference between portupgrade and portmaster ?
On Tue, Jun 1, 2010 at 10:46 AM, David DEMELIER demelier.da...@gmail.com wrote: 2010/6/1 Eitan Adler li...@eitanadler.com: On Tue, Jun 1, 2010 at 3:37 AM, zaxis z_a...@163.com wrote: Why do we need two tools ? Its three. Add portmanager. The answer is personal choice and we number of bikesheds. Also portmaster used to not be able to work with packages when portupgrade could. portmaster can! See portmaster manpage. -P[P] options. Also portmaster used to not be able to work with packages when portupgrade could. -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's the difference between portupgrade and portmaster ?
On Tue, 1 Jun 2010 10:26:18 +0300 Eitan Adler li...@eitanadler.com articulated: On Tue, Jun 1, 2010 at 3:37 AM, zaxis z_a...@163.com wrote: Why do we need two tools ? Its three. Add portmanager. The answer is personal choice and we number of bikesheds. Also portmaster used to not be able to work with packages when portupgrade could. I use portmanager with the '-p' flag for when I absolutely, positively have to insure that all dependencies are updated correctly. Neither of the other two utilities seem to get it correct 100% of the time. Plus, portmanmager is written in 'C' and IMHO is quicker than the other two. Just my 2¢. -- Jerry freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ INTOXICATED: When you feel sophisticated without being able to pronounce it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's the difference between portupgrade and portmaster ?
Jerry wrote: On Tue, 1 Jun 2010 10:26:18 +0300 Eitan Adler li...@eitanadler.com articulated: On Tue, Jun 1, 2010 at 3:37 AM, zaxis z_a...@163.com wrote: Why do we need two tools ? Its three. Add portmanager. The answer is personal choice and we number of bikesheds. Also portmaster used to not be able to work with packages when portupgrade could. I use portmanager with the '-p' flag for when I absolutely, positively have to insure that all dependencies are updated correctly. Neither of the other two utilities seem to get it correct 100% of the time. Plus, portmanmager is written in 'C' and IMHO is quicker than the other two. Just my 2¢. +1 for including portmanager in any list of port management tools, just doesn't get 'official' sanction for some reason. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster not replacing %var% in final pkg-msg
On Sun, 30 May 2010, Eitan Adler wrote: $cd lang/go portmaster . -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: ... GOOS=freebsd GOARCH=386 GOROOT=/usr/local/lib/go This works because of the following sed-fu in lang/go/Makefile: post-install: @${CAT} ${PKGMESSAGE} | ${SED} \ -e s|%%PREFIX%%|${PREFIX}|g \ -e s|%%ARCH%%|${GOARCH}|g \ -e s|%%GOOBJ%%|${GOOBJ}|g === pkg-message for go-20100413 [ .. ] GOARCH=%%ARCH%% GOROOT=%%PREFIX%%/lib/go It's probably preferable for lang/go to utilize SUB_FILES and SUB_LIST instead of using ${SED} to manually expand VAR=VALUE pairs in post-install. For context, see: http://www.freebsd.org/doc/en/books/porters-handbook/book.html#USING-SUB-FILES -- Sahil Tandon sa...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
What's the difference between portupgrade and portmaster ?
Why do we need two tools ? - e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/What%27s-the-difference-between-portupgrade-and-portmaster---tp28736514p28736514.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's the difference between portupgrade and portmaster ?
On Mon, 31 May 2010, zaxis wrote: Why do we need two tools ? Actually there are at least three. Add portmanager to the mix. Its the same reason there is more than one text editor. I use portmaster and portmanager depending on what I want to do. Its mostly personal choice. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster not replacing %var% in final pkg-msg
$cd lang/go portmaster . -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: ... GOOS=freebsd GOARCH=386 GOROOT=/usr/local/lib/go === Registering installation for go-20100413 === Cleaning for go-20100413 === pkg-message for go-20100413 -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: GOOS=freebsd GOARCH=%%ARCH%% GOROOT=%%PREFIX%%/lib/go To build Go programs, you may include %%PREFIX%%/share/go/Make.pkg or %%PREFIX%%/share/go/Make.cmd in your build infrastructure (note: this requires gmake). Your compiler is %%GOOBJ%%g and your linker is %%GOOBJ%%l. === Installation of lang/go (go-20100413) complete -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: using portsnap and portmaster on my ns1.thought.org server.
On Thu, May 27, 2010 at 10:46:24PM -0700, Gary Kline wrote: On Fri, May 28, 2010 at 07:41:33AM +0200, Roland Smith wrote: On Thu, May 27, 2010 at 03:59:56PM -0700, Gary Kline wrote: i just tried using portmaster -a -B -d on my server that has many fewer ports than anywhere else. both here [on tao] and on the server, portmaster Aborts suddenly after complaining about my have defined or set WITH_KDE_PHONON anybody know what i'm foing wrong? Do you have WITH_KDE_PHONON in your make.conf? Are you trying to upgrade to KDE/QT 4? If so, look at the port makefiles for multimedia/phonon and multimedia/qt4-phonon and you'll see why it aborts. i =did= comment out the .ifdef [qt4 stuff and still gott he complaint that WITH_KDE_PHONON was defined. --the only thing left is to reboot; but that is a bit drastic, :-) actually, i just realized this was for KDE4 only. altho the UPDATING mentioned kde 3.5.X to 4.4. anyhow, looks like i'm safe. still touching stuff. strangely, i was sending mail when tao did a sudden reboot. i lost every bit of mail... [[right now anm doing a portsnap extract.] Wait. i just remembered that i was on ethic, my server; i think i did try to build kde4 and must have setenv'd WITH_KDE_PHONON there. it's on my server where portmaster chokes. i cannot seen to unsetenv that qt4 stuff. well, anyhow, it's late: time for a kwik bath and get some sleep. i'm beat. gary Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
using portsnap and portmaster on my ns1.thought.org server.
i just tried using portmaster -a -B -d on my server that has many fewer ports than anywhere else. both here [on tao] and on the server, portmaster Aborts suddenly after complaining about my have defined or set WITH_KDE_PHONON anybody know what i'm foing wrong? tia, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: using portsnap and portmaster on my ns1.thought.org server.
On Thu, May 27, 2010 at 03:59:56PM -0700, Gary Kline wrote: i just tried using portmaster -a -B -d on my server that has many fewer ports than anywhere else. both here [on tao] and on the server, portmaster Aborts suddenly after complaining about my have defined or set WITH_KDE_PHONON anybody know what i'm foing wrong? Do you have WITH_KDE_PHONON in your make.conf? Are you trying to upgrade to KDE/QT 4? If so, look at the port makefiles for multimedia/phonon and multimedia/qt4-phonon and you'll see why it aborts. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpNrfwpp3QOU.pgp Description: PGP signature
Re: using portsnap and portmaster on my ns1.thought.org server.
On Fri, May 28, 2010 at 07:41:33AM +0200, Roland Smith wrote: On Thu, May 27, 2010 at 03:59:56PM -0700, Gary Kline wrote: i just tried using portmaster -a -B -d on my server that has many fewer ports than anywhere else. both here [on tao] and on the server, portmaster Aborts suddenly after complaining about my have defined or set WITH_KDE_PHONON anybody know what i'm foing wrong? Do you have WITH_KDE_PHONON in your make.conf? Are you trying to upgrade to KDE/QT 4? If so, look at the port makefiles for multimedia/phonon and multimedia/qt4-phonon and you'll see why it aborts. actually, i just realized this was for KDE4 only. altho the UPDATING mentioned kde 3.5.X to 4.4. anyhow, looks like i'm safe. still touching stuff. strangely, i was sending mail when tao did a sudden reboot. i lost every bit of mail... [[right now anm doing a portsnap extract.] gary Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster -a question
Hello all, Is it possible to run portmaster -a with other options to recompile all dependency without interactive? Of course accept default options for all modules. Thank you Kalpin E. Silaen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
doxygen 1.6.2: portmaster reports error: qt.prf:170: Unknown test function: qtAddLibrary
After performing updates via portmaster on a regular basis on a FreeBSD 8.0-STABLE/amd64 server, I got this following sticky error. I have no clue how to fix this. Any ideas? Regards, Oliver --- g++ -o ../bin/doxytag ../objects/doxytag.o ../objects/logos.o ../objects/version.o -L/usr/local/lib -L../lib -lqtools -liconv gmake[2]: Leaving directory `/usr/ports/devel/doxygen/work/doxygen-1.6.2/src' gmake[1]: Leaving directory `/usr/ports/devel/doxygen/work/doxygen-1.6.2/src' gmake -C addon/doxywizard gmake[1]: Entering directory `/usr/ports/devel/doxygen/work/doxygen-1.6.2/addon/doxywizard' qmake-qt4 doxywizard.pro -o Makefile.doxywizard qt.prf:170: Unknown test function: qtAddLibrary gmake -f Makefile.doxywizard gmake[2]: Entering directory `/usr/ports/devel/doxygen/work/doxygen-1.6.2/addon/doxywizard' c++ -c -pipe -O2 -pipe -march=nocona -fno-strict-aliasing -Wall -W -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -I/u r/local/share/qt/mkspecs/freebsd-g++ -I. -I/include -I. -Imoc -I/usr/local/include -o obj/doxywizard.o doxywizard.cpp doxywizard.cpp:1:17: error: QtGui: No such file or directory In file included from doxywizard.cpp:2: doxywizard.h:4:23: error: QMainWindow: No such file or directory doxywizard.h:5:21: error: QSettings: No such file or directory doxywizard.h:6:23: error: QStringList: No such file or directory In file included from doxywizard.cpp:4: expert.h:4:21: error: QSplitter: No such file or directory expert.h:5:23: error: QDomElement: No such file or directory expert.h:6:17: error: QHash: No such file or directory In file included from doxywizard.cpp:2: doxywizard.h:19: error: expected class-name before '{' token doxywizard.h:20: error: ISO C++ forbids declaration of 'Q_OBJECT' with no type doxywizard.h:22: error: expected ';' before 'public' doxywizard.h:24: error: expected ',' or '...' before '' token doxywizard.h:24: error: ISO C++ forbids declaration of 'QString' with no type doxywizard.h:27: error: 'QCloseEvent' has not been declared doxywizard.h:28: error: 'QString' does not name a type doxywizard.h:31: error: expected `:' before 'slots' doxywizard.h:32: error: expected primary-expression before 'void' doxywizard.h:32: error: ISO C++ forbids declaration of 'slots' with no type doxywizard.h:32: error: expected ';' before 'void' doxywizard.h:42: error: expected `:' before 'slots' doxywizard.h:43: error: expected primary-expression before 'void' doxywizard.h:43: error: ISO C++ forbids declaration of 'slots' with no type doxywizard.h:43: error: expected ';' before 'void' doxywizard.h:56: error: expected ',' or '...' before '' token doxywizard.h:56: error: ISO C++ forbids declaration of 'QString' with no type doxywizard.h:57: error: expected ',' or '...' before '' token doxywizard.h:57: error: ISO C++ forbids declaration of 'QString' with no type doxywizard.h:58: error: expected ',' or '...' before '' token doxywizard.h:58: error: ISO C++ forbids declaration of 'QString' with no type doxywizard.h:59: error: expected ',' or '...' before '' token doxywizard.h:59: error: ISO C++ forbids declaration of 'QString' with no type doxywizard.h:73: error: 'QString' does not name a type doxywizard.h:74: error: 'QSettings' does not name a type doxywizard.h:76: error: 'QStringList' does not name a type In file included from doxywizard.cpp:4: expert.h:18: error: expected class-name before '{' token expert.h:19: error: ISO C++ forbids declaration of 'Q_OBJECT' with no type expert.h:21: error: expected ';' before 'public' expert.h:26: error: expected ',' or '...' before '' token expert.h:26: error: ISO C++ forbids declaration of 'QString' with no type expert.h:27: error: 'QTextStream' has not been declared expert.h:28: error: 'QByteArray' does not name a type expert.h:29: error: expected ',' or '...' before '' token expert.h:29: error: ISO C++ forbids declaration of 'QByteArray' with no type expert.h:30: error: ISO C++ forbids declaration of 'QHash' with no type expert.h:30: error: expected ';' before '' token expert.h:31: error: expected `;' before 'void' expert.h:32: error: expected ',' or '...' before '' token expert.h:32: error: ISO C++ forbids declaration of 'QString' with no type expert.h:33: error: expected ',' or '...' before '' token expert.h:33: error: ISO C++ forbids declaration of 'QString' with no type expert.h:34: error: 'QString' does not name a type expert.h:36: error: expected `:' before 'slots' expert.h:37: error: expected primary-expression before 'void' expert.h:37: error: ISO C++ forbids declaration of 'slots' with no type expert.h:37: error: expected ';' before 'void' expert.h:38: error: ISO C++ forbids declaration of 'QWidget' with no type expert.h:38: error: expected ';' before '*' token expert.h:40: error: expected `:' before 'slots' expert.h:41: error: expected primary-expression before 'void' expert.h:41: error: ISO C++ forbids declaration of 'slots' with no type expert.h:41: error: expected ';' before 'void' expert.h
ports/print/cups-base: failed to update via portmaster since yesterday
portmaster -dav fails updating ports since yesterday, stopping at print/cups-base with the following error message: [...] client.o(.text+0x1c95): In function `encrypt_client': /usr/ports/print/cups-base/work/cups-1.4.2/scheduler/client.c:3217: undefined reference to `_httpReadGNUTLS' client.o(.text+0x1ca4):/usr/ports/print/cups-base/work/cups-1.4.2/scheduler/client.c:3218: undefined reference to `_httpWriteGNUTLS' gmake[1]: *** [cupsd] Error 1 gmake[1]: Leaving directory `/usr/ports/print/cups-base/work/cups-1.4.2/scheduler' gmake: *** [all] Error 1 *** Error code 1 Stop in /usr/ports/print/cups-base. *** Error code 1 Stop in /usr/ports/print/cups-base. === make failed for print/cups-base === Aborting update === Update for cups-base-1.3.10_4 failed === Aborting update Configuration of cups-base is with all but debugging options set, disabling all configurational options, especially GNU_TLS also fails updating the port. Is there any solution to fix this? What's wrong? Regards, Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster upgrade breaks cups-image
8.0R amd64 Part of the upgrade process from 7.2R requires reinstalling all third-party software, such as ports. I use portmaster for this, following the nine-step procedure described in the EXAMPLES section of the manpage. During the upgrade, cups-image fails with the error shown below. A temporary workaround is to disable CUPS support in ghostscript8 and samba3, but I might want to use this box as a print server in the future. Thanks in advance for clues on fixing this error. Also, I believe this is the same issue as in this message: http://is.gd/57iuU dn .. cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/usr/local/lib -Wl,-R/usr/local/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -o bannertops bannertops.o pstext.o common.o -lcupsimage \ -lcups -pthread -lm -lcrypt /usr/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/lib/crt1.o: could not read symbols: Bad value gmake[1]: *** [bannertops] Error 1 gmake[1]: Leaving directory `/usr/ports/print/cups-image/work/cups-1.4.2/filter' gmake: *** [all] Error 1 *** Error code 1 Stop in /usr/ports/print/cups-image. *** Error code 1 Stop in /usr/ports/print/cups-image. === make failed for print/cups-image ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster --check-depends
When I run portmaster --check-depends I got: Checking kde-3.5.10_2 === @pkgdep wavpack-4.50.1 is listed as a dependency === but there is no installed version === Delete this dependency data? [n] Checking kdegraphics-3.5.10_4 === @pkgdep portaudio-18.1_2 is listed as a dependency === but there is no installed version === Delete this dependency data? [n] Checking kmplayer-0.10.0c_3,2 === @pkgdep lirc-0.8.0_2 is listed as a dependency === but there is no installed version === Delete this dependency data? [n] Checking mencoder-0.99.11_4 === @pkgdep lirc-0.8.0_2 is listed as a dependency === but there is no installed version === Delete this dependency data? [n] mplayerplug-in-3.55_3 === @pkgdep lirc-0.8.0_2 is listed as a dependency === but there is no installed version === Delete this dependency data? [n] I have all three ports installed and I reinstalled them again but the problem is here still. What is wrong, please? Thanks. -- Mitja - http://starikarp.redbubble.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Install guide (Was: Re: Urgent help needed : portmaster dies on py-cairo)
On Wednesday 08 July 2009 19:45:05 Manish Jain wrote: == Part-1)Immediately after a fresh FreeBSD-7.2#RELEASE install : I assume you will at some stage or the other install a linux port, eg acroread8 or acroread9, linux-ymessenger, etc. Incidentally, unless you have specific needs, prefer acroread8 over acroread9. Adding to assumptions: one wants to use gnome as desktop. All following steps are to be executed as root. a)Make sure /etc/rc.conf has at least the following 5 lines. dbus_enable=YES hald_enable=YES polkitd_enable=YES gnome_enable=YES linux_enable=YES b)Make sure /boot/loader.conf has at least the following 3 lines. kern.maxdsiz=734003200 This is a) not needed and b) doesn't do anything useful, since the default will still be the compiled default, unless you also set kern.defdsiz. The only thing this does is allow the datasize limit to be raised to 700M, using limits(1), but since the default still is 512M an unaware application will still fail malloc(3) if allocating beyond 512M. linprocfs_load=YES linsysfs_load=YES Which ports you mention require linsysfs? c)Make sure /etc/fstab has at least the following 3 lines. proc/proc procfs rw00 linproc /usr/compat/linux/proclinprocfsrw00 linsys /usr/compat/linux/sys linsysfs rw0 0 Better to use /compat/linux/*. While by default it resides on /usr, it is convenient to be able to change the symlink, for example to test a new linux_base port without wiping the current one or to free up space on the /usr partition. d)Upgrage from python25 to python26 along with all dependent ports as follows : rm -rf /usr/ports 2/dev/null Or you can simply not install the ports distribution, since this is the first thing you do. I also don't understand why you install a boatload of packages from CD/DVD only to complicate things by upgrading by my estimate at least 70%. Why not just portsnap and build the leafs? mkdir -p /usr/ports/distfiles portsnap fetch extract cd /usr/ports/ports-mgmt/portupgrade make deinstall 2/dev/null make install clean portupgrade -C -r -o lang/python26 lang/python25 portupgrade -rfx python26 python26 pkgdb -F Before doing anything further, reboot. This needs a reason. I don't know any. Immediately after reboot, execute Part-2. Part-2) Steps to be followed whenever a significant number new ports/patches are available and you need to ensure your ports as well as your ports directory are up to date : thisdate=`date +%Y-%m-%n` I assume that's %d, since %n is a newline. rm /root/portupgrade-${thisdate}.log 2/dev/null portsnap fetch update portupgrade -ace -uRl /root/portupgrade-${thisdate}.log pkgdb -F Note : If you plan to install any linux ports, you should have said yes to 'Linux binary compatibility' at the time you installed FreeBSD. If you didn't, the very first port you need to build is emulators/linux_base-fc4 If you use net/skype you will need linux_base-fc6, so again using sysinstall can be a problem. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Urgent help needed : portmaster dies on py-cairo
b. f. wrote: On 7/6/09, manish jain invalid.poin...@gmail.com wrote: 2009/7/6 b. f. bf1...@googlemail.com After running pkgdb -F, I find that there hundreds of ports depending on python2.5. Most of these are probably indirectly dependent, and may not be seriously affected. Many, for example, may have been dragged in by xorg's silly dependency on python via libxcb. Looks to me it will be easier to backup my dstfiles and reinstall the whole system afresh a 3rd time rather than trying to fix the existing ports. This time I will install no packages from the installation media, and build directly from ports instead. The first 2 ports I will build this time will be lang/python26 followed by lang/python. Sounds good. I suppose this should set the systemwide default python version to 2.6. As the others have mentioned, you don't need to do this unless you wish to use a version of python other than 2.6, which is now the default. 1) How do I find or set PYTHON_DEFAULT_VERSION ? 2) What workaround would be needed in make.conf to get 2.5-hardwired ports to use 2.6 instead ? 1) See above. 2) I didn't mean, as Seaman seemed to think, and you may have, that you can use ports built against 2.5 with 2.6. That would only rarely work, and most likely lead to all sorts of problems. Instead you should proceed with your plan, and rebuild all dependent ports via: pkgdb -L pkgdb -F portupgrade -fvrx lang/python26 lang/python26 rm -r /usr/local/lib/python2.5 or rebuild just that subset of ports that are most likely to be broken by the change, via the upgrade-site-packages target in lang/python, as Seaman suggested. What I meant by my original comment was, that if you should happen to want to build a port against 2.6, but find that it is hardwired in the port Makefile via USE_PYTHON to another version or versions, and you don't want to go to the trouble of patching the port Makefile, and then preserving this local modification when you merge in updates to the port tree, you can add a workaround in /etc/make.conf. Say, for example, you see that mail/py-spambayes has: USE_PYTHON= -2.5 in the port Makefile, and you want to install spambayes, but you don't want to have to reinstall python 2.5 or an earlier version of python. If you add: .if${.CURDIR:M*/mail/py-spambayes*} PYTHON_VERSION=python2.6 NO_IGNORE=yes .endif to /etc/make.conf, you can override the spambayes port Makefile without patching it. Now, you are _not_ supposed to do this, and you will probably have to deal with any consequences of such a local change on your own. Many ports have these restrictions for a good reason, but such an override can be occasionally useful. b. Hi, After a marathon session spread over 2 days, I have managed to set up a new FreeBSD-7.2 installation with all ports (762) up to date. From the gleanings of this conversation and some reading I did myself, I have compiled a small document for what-to-do-after-installation. I would dearly appreciate your comments on the document, and would be extremely glad if my document could be of any help to somebody else too. Please note that portupgrade works much better on my system than portmaster. So the following document assumes/recommends using portupgrade. Here it is. == Part-1)Immediately after a fresh FreeBSD-7.2#RELEASE install : I assume you will at some stage or the other install a linux port, eg acroread8 or acroread9, linux-ymessenger, etc. Incidentally, unless you have specific needs, prefer acroread8 over acroread9. All following steps are to be executed as root. a)Make sure /etc/rc.conf has at least the following 5 lines. dbus_enable=YES hald_enable=YES polkitd_enable=YES gnome_enable=YES linux_enable=YES b)Make sure /boot/loader.conf has at least the following 3 lines. kern.maxdsiz=734003200 linprocfs_load=YES linsysfs_load=YES c)Make sure /etc/fstab has at least the following 3 lines. proc/proc procfs rw00 linproc /usr/compat/linux/proclinprocfsrw00 linsys /usr/compat/linux/sys linsysfs rw0 0 d)Upgrage from python25 to python26 along with all dependent ports as follows : rm -rf /usr/ports 2/dev/null mkdir -p /usr/ports/distfiles portsnap fetch extract cd /usr/ports/ports-mgmt/portupgrade make deinstall 2/dev/null make install clean portupgrade -C -r -o lang/python26 lang/python25 portupgrade -rfx python26 python26 pkgdb -F Before doing anything further, reboot. Immediately after reboot, execute Part-2. Part-2) Steps to be followed whenever a significant number new ports/patches are available and you need to ensure your ports as well as your ports directory are up to date : thisdate=`date +%Y-%m-%n` rm /root/portupgrade-${thisdate}.log 2/dev/null portsnap fetch update portupgrade
Re: Urgent help needed : portmaster dies on py-cairo
2009/7/6 b. f. bf1...@googlemail.com Manish Jain wrote: After 3-4 hours, portsnap died on graphics/py-cairo saying : cannot find python headers I'm guessing you meant portmaster died here ... /usr/ports/graphics/py-cairo/work/pycairo-1.8.4/config.log says : configure:4734: cc -E -I/usr/local/include conftest.c conftest.c:10:28: error: ac_nonexistent.h: No such file or directory configure:4741: $? = 1 cd /usr find . -name 'ac_nonexistent.h' #no results As the name suggests, this header doesn't really exist. It's just a dummy header used during a test in the configure script to see how the compiler reacts when a header isn't there, in preparation for testing for the presence of real headers. That shouldn't be the problem: are you sure the configure script really failed at that point? If so, something is probably wrong with your compiler or toolchain, and that's usually bad news. :( py-cairo-1.8.4 needs python2.6. My system has both python2.5 and python2.6 installed, with their headers under /usr/local/include/python2.5 and /usr/local/include/python2.6 respectively. Why do you have both versions installed? 2.6 is largely backwards-compatible with 2.5, so why not just rip out 2.5 and use 2.6 exclusively? You'll save some trouble and disk space. Make sure your ports tree is up-to-date, so that PYTHON_DEFAULT_VERSION defaults to python2.6. Then deinstall lang/python25 and reinstall lang/python26. In particular, check to see that /usr/local/bin/python is present is a link to /usr/local/bin/python2.6. If it isn't, then something is wrong -- perhaps you have PYTHON_VERSION or PYTHON_DEFAULT_VERSION defined to the wrong value, or your ports tree is corrupt. Then rebuild all of the ports that depend upon python, and remove any vestige of the old /usr/local/lib/python2.5 directory tree. If you've stale ports that are still wired to use python2.5 for no good reason, you can patch them or their port Makefiles, or put a workaround in make.conf. Any help on enabling py-cairo locate the python headers would be greatly appreciated. What is the output of: make -C /usr/ports/graphics/py-cairo -V CONFIGURE_ENV If PYTHON is in there, properly defined as the path to the python2.6 binary, and the binary actually exists, then the configure script should succeed. If not, something is wrong. The configure script uses: PYTHON_INCLUDES=`$PYTHON-config --includes 2/dev/null` to find the proper Python.h. Is /usr/local/bin/python2.6-config missing or broken on your system? What about /usr/local/include/python2.6/Python.h? b. Hello B, Thanks for your help. After running pkgdb -F, I find that there hundreds of ports depending on python2.5. Looks to me it will be easier to backup my dstfiles and reinstall the whole system afresh a 3rd time rather than trying to fix the existing ports. This time I will install no packages from the installation media, and build directly from ports instead. The first 2 ports I will build this time will be lang/python26 followed by lang/python. I suppose this should set the systemwide default python version to 2.6. Before I undertake this 3rd attempt, I request a few clarifications so that everything comes out fine this time around. something is wrong -- perhaps you have PYTHON_VERSION or PYTHON_DEFAULT_VERSION defined to the wrong value, or your ports tree is corrupt. Then rebuild all of the ports that depend upon python, and remove any vestige of the old /usr/local/lib/python2.5 directory tree. If you've stale ports that are still wired to use python2.5 for no good reason, you can patch them or their port Makefiles, or put a workaround in make.conf. 1) How do I find or set PYTHON_DEFAULT_VERSION ? 2) What workaround would be needed in make.conf to get 2.5-hardwired ports to use 2.6 instead ? Thanks for any help. Regards Manish Jain invalid.poin...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Urgent help needed : portmaster dies on py-cairo
On Mon, Jul 06, 2009 at 02:50:35PM +0530, manish jain wrote: 2009/7/6 b. f. bf1...@googlemail.com After running pkgdb -F, I find that there hundreds of ports depending on python2.5. You shouldn't have 2.5 installed at all. It should be upgraded to 2.6 and changes propagated to all dependent ports, see /usr/ports/UPDATE entry from 20090608. I've 99 ports depending on python 2.6, and my update was quite smooth, IIRC. 1) How do I find or set PYTHON_DEFAULT_VERSION ? 2) What workaround would be needed in make.conf to get 2.5-hardwired ports to use 2.6 instead ? I never had to mess with this, and I don't think it is a good idea. What I would probably do in your situation, is delete python2.5 forcefully, reinstall python2.6, and then reinstall any port which complains. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Urgent help needed : portmaster dies on py-cairo
manish jain wrote: 1) How do I find or set PYTHON_DEFAULT_VERSION ? It's defined in /usr/ports/Mk/bsd.python.mk -- the default is 'python2.6' since 2009-06-08. If you want to use a non-default value you can override the default by adding eg.: PYTHON_DEFAULT_VERSION= python2.5 to /etc/make.conf. You can see what actual value value is used by issuing the following command in any port that uses python: happy-idiot-talk:...ports/graphics/py-cairo:% make -V PYTHON_DEFAULT_VERSION python2.6 Note that 'PYTHON_DEFAULT_VERSION' is the python version any add-on modules will be compiled against. The similar 'PYTHON_VERSION' variable indicates which version of python you'ld get by running the command 'python'. Please read the descriptions at the top of bsd.python.mk for more detail. 2) What workaround would be needed in make.conf to get 2.5-hardwired ports to use 2.6 instead ? You can't do it that way. Previously installed ports have to be modified to use py26, as described in the 20090608 entry in /usr/ports/UPDATING: Once the installed Python has been updated to 2.6, by using the method above, it is required to run the upgrade-site-packages target in lang/python to assure that site-packages are made available to the new Python version. If using portupgrade: # cd /usr/ports/lang/python make upgrade-site-packages If using portmaster: # cd /usr/ports/lang/python make upgrade-site-packages -DUSE_PORTMASTER The portmaster case can take quite some time to complete due to the lack of cached information that the portupgrade suite uses (specifically pkg_which). This is not the fault of portmaster. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Urgent help needed : portmaster dies on py-cairo
On 7/6/09, manish jain invalid.poin...@gmail.com wrote: 2009/7/6 b. f. bf1...@googlemail.com After running pkgdb -F, I find that there hundreds of ports depending on python2.5. Most of these are probably indirectly dependent, and may not be seriously affected. Many, for example, may have been dragged in by xorg's silly dependency on python via libxcb. Looks to me it will be easier to backup my dstfiles and reinstall the whole system afresh a 3rd time rather than trying to fix the existing ports. This time I will install no packages from the installation media, and build directly from ports instead. The first 2 ports I will build this time will be lang/python26 followed by lang/python. Sounds good. I suppose this should set the systemwide default python version to 2.6. As the others have mentioned, you don't need to do this unless you wish to use a version of python other than 2.6, which is now the default. 1) How do I find or set PYTHON_DEFAULT_VERSION ? 2) What workaround would be needed in make.conf to get 2.5-hardwired ports to use 2.6 instead ? 1) See above. 2) I didn't mean, as Seaman seemed to think, and you may have, that you can use ports built against 2.5 with 2.6. That would only rarely work, and most likely lead to all sorts of problems. Instead you should proceed with your plan, and rebuild all dependent ports via: pkgdb -L pkgdb -F portupgrade -fvrx lang/python26 lang/python26 rm -r /usr/local/lib/python2.5 or rebuild just that subset of ports that are most likely to be broken by the change, via the upgrade-site-packages target in lang/python, as Seaman suggested. What I meant by my original comment was, that if you should happen to want to build a port against 2.6, but find that it is hardwired in the port Makefile via USE_PYTHON to another version or versions, and you don't want to go to the trouble of patching the port Makefile, and then preserving this local modification when you merge in updates to the port tree, you can add a workaround in /etc/make.conf. Say, for example, you see that mail/py-spambayes has: USE_PYTHON= -2.5 in the port Makefile, and you want to install spambayes, but you don't want to have to reinstall python 2.5 or an earlier version of python. If you add: .if${.CURDIR:M*/mail/py-spambayes*} PYTHON_VERSION=python2.6 NO_IGNORE=yes .endif to /etc/make.conf, you can override the spambayes port Makefile without patching it. Now, you are _not_ supposed to do this, and you will probably have to deal with any consequences of such a local change on your own. Many ports have these restrictions for a good reason, but such an override can be occasionally useful. b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Urgent help needed : portmaster dies on py-cairo
Hi, This is not a portmaster problem, but a problem of getting py-cairo to build following an update in the ports directory. 3 days back I ran 'portsnap fetch extract'. Then yesterday I ran 'portsnap fetch update' followed immediately by 'portmaster -a -B' After 3-4 hours, portsnap died on graphics/py-cairo saying : cannot find python headers /usr/ports/graphics/py-cairo/work/pycairo-1.8.4/config.log says : configure:4734: cc -E -I/usr/local/include conftest.c conftest.c:10:28: error: ac_nonexistent.h: No such file or directory configure:4741: $? = 1 cd /usr find . -name 'ac_nonexistent.h' #no results py-cairo-1.8.4 needs python2.6. My system has both python2.5 and python2.6 installed, with their headers under /usr/local/include/python2.5 and /usr/local/include/python2.6 respectively. Any help on enabling py-cairo locate the python headers would be greatly appreciated. My system is totally messed up, half of it updated by portmaster and the other half waiting for the update once py-cairo can locate the python headers. -- Regards Manish Jain invalid.poin...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Urgent help needed : portmaster dies on py-cairo
Manish Jain wrote: After 3-4 hours, portsnap died on graphics/py-cairo saying : cannot find python headers I'm guessing you meant portmaster died here ... /usr/ports/graphics/py-cairo/work/pycairo-1.8.4/config.log says : configure:4734: cc -E -I/usr/local/include conftest.c conftest.c:10:28: error: ac_nonexistent.h: No such file or directory configure:4741: $? = 1 cd /usr find . -name 'ac_nonexistent.h' #no results As the name suggests, this header doesn't really exist. It's just a dummy header used during a test in the configure script to see how the compiler reacts when a header isn't there, in preparation for testing for the presence of real headers. That shouldn't be the problem: are you sure the configure script really failed at that point? If so, something is probably wrong with your compiler or toolchain, and that's usually bad news. :( py-cairo-1.8.4 needs python2.6. My system has both python2.5 and python2.6 installed, with their headers under /usr/local/include/python2.5 and /usr/local/include/python2.6 respectively. Why do you have both versions installed? 2.6 is largely backwards-compatible with 2.5, so why not just rip out 2.5 and use 2.6 exclusively? You'll save some trouble and disk space. Make sure your ports tree is up-to-date, so that PYTHON_DEFAULT_VERSION defaults to python2.6. Then deinstall lang/python25 and reinstall lang/python26. In particular, check to see that /usr/local/bin/python is present is a link to /usr/local/bin/python2.6. If it isn't, then something is wrong -- perhaps you have PYTHON_VERSION or PYTHON_DEFAULT_VERSION defined to the wrong value, or your ports tree is corrupt. Then rebuild all of the ports that depend upon python, and remove any vestige of the old /usr/local/lib/python2.5 directory tree. If you've stale ports that are still wired to use python2.5 for no good reason, you can patch them or their port Makefiles, or put a workaround in make.conf. Any help on enabling py-cairo locate the python headers would be greatly appreciated. What is the output of: make -C /usr/ports/graphics/py-cairo -V CONFIGURE_ENV If PYTHON is in there, properly defined as the path to the python2.6 binary, and the binary actually exists, then the configure script should succeed. If not, something is wrong. The configure script uses: PYTHON_INCLUDES=`$PYTHON-config --includes 2/dev/null` to find the proper Python.h. Is /usr/local/bin/python2.6-config missing or broken on your system? What about /usr/local/include/python2.6/Python.h? b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Questions on portmaster
On 7/2/09, Manish Jain invalid.poin...@gmail.com wrote: b. f. wrote: Manish Jain wrote: Regarding the download speeds I was getting with portmaster fetches (0.7 kBps to 4.0 kBps), I immediately booted into Windows/Cygwin and did a wget from the same site portmaster was using. The speed I got from wget was ~ 35 kBps. This happened not just once but multiple times. Each time I did this, I had to interrupt portmaster. Finally I managed to get to install the wget port on FreeBSD itself. When I ran wget from FreeBSD, it reported comparable transfer rates (~ 35 kBps) from the same sites as portmaster was using. This has nothing to do with portmaster. Remember, portmaster is just a (sometimes) convenient shell script wrapper for the normal ports infrastructure. What you're probably seeing is either the usual fluctuations in network performance, or the difference between wget and FreeBSD fetch(1), which by default is used for getting distfiles and packages. This is set in bsd.port.mk, and you can override it if you prefer to use something else. See the comments concerning FETCH_BINARY, FETCH_ARGS, FETCH_CMD, FETCH_{BEFORE,AFTER}_ARGS, FETCH_ENV, and FETCH_REGET at the top of bsd.port.mk, or the relevant portion of that script. You can also try tuning your network settings, which can speed things up significantly in some cases. It respects IGNORE (it checks for it in the port Makefile, and also hands off to bsd.port.mk, which respects it). I got a curl port from portsnap marked IGNORE. portmaster did not ignore it anywhere near gracefully enough and finally killed off all child processes and itself. Uh, yeah -- but that's another matter. It did IGNORE it, but it just stopped entirely. This is another one of the things that need improvement. portupgrade, by contrast, will keep going, only ignoring the port in question and any ports that depend upon it, but updating the rest. You should be able to patch portmaster to mimic this behavior. Anyway, my system became so unpredictable that I had to reinstall FreeBSD. For the moment, I am avoiding portmaster till I can try it out on a dummy PC first. Well, something is awry if your system was damaged that badly, and it probably wasn't because of portmaster. In general, few ports ought to damage the base system. You're probably better off trying to remove and then reinstall all of your ports first (the instructions in the portmaster manpage are good in this regard), before reinstalling everything. BTW, I also tried portmanager and it segfaulted at the stage of generating a report. Oh, well. Sounds like a job for rnol...@freebsd.org. But wait -- who wants to bother him about some tiny piece of port management software when he is heroically staging a single-handed campaign to maintain X11 on FreeBSD? b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Questions on portmaster
Hi, I am using portmaster on FreeBSD-7.2 to keep my ports up to date. When there are multiple ports to be updated, portmaster will fork off child processes. Does each child start 'make fetch' in the background ? I ask this because the parent process attached to the console reports very low data transfer rates (in the range of 0.7 to 4.0 kBps, while normally I get 30 to 35 kBps). Further, how can portmaster be tuned to automatically ignore ports which are actually marked as IGNORE in the port directory ? This is not covered in the manpage. While doing portmaster -a, I have only managed to stop portmaster from building exactly one port specified with the -x option. Can I get to stop multiple ports from being built ? Is there regular expression support for the -x option ? Thanks for any help. -- Regards Manish Jain invalid.poin...@gmail.com +91-96500-10329 Laast year I kudn't spell Software Engineer. Now I are won. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Questions on portmaster
On Wednesday, 1 July 2009 02:02:47 Manish Jain wrote: Hi, I am using portmaster on FreeBSD-7.2 to keep my ports up to date. When there are multiple ports to be updated, portmaster will fork off child processes. Does each child start 'make fetch' in the background ? I ask this because the parent process attached to the console reports very low data transfer rates (in the range of 0.7 to 4.0 kBps, while normally I get 30 to 35 kBps). Further, how can portmaster be tuned to automatically ignore ports which are actually marked as IGNORE in the port directory ? This is not covered in the manpage. While doing portmaster -a, I have only managed to stop portmaster from building exactly one port specified with the -x option. Can I get to stop multiple ports from being built ? Is there regular expression support for the -x option ? Thanks for any help. Hello Manish, Regarding your last point about excluding particular ports I always thought that it would be convenient to have a section in /usr/local/etc/portmaster.rc and/or $HOME/.portmasterrc to identify these particular ports. I prefer to have all this information in one place rather than scattered over many subdirectories. I had the same problem with trying to have multiple instances of -x but gave up and used +IGNOREME instead. Some time ago I succeeded with a regular expression but it became overly complicated if more than two ports were to be excluded. Nevertheless, I use portmaster daily and am very pleased with it. With thanks to Doug Barton. Cheers... Marek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Questions on portmaster
On Wed, Jul 01, 2009 at 11:14:10AM -0400, mfv wrote: On Wednesday, 1 July 2009 02:02:47 Manish Jain wrote: excluded. Nevertheless, I use portmaster daily and am very pleased with it. With thanks to Doug Barton. portmaster rules, excellent tool, Doug is a star! -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Questions on portmaster
On Wed, Jul 01, 2009 at 11:32:47AM +0530, Manish Jain wrote: Hi, I am using portmaster on FreeBSD-7.2 to keep my ports up to date. When there are multiple ports to be updated, portmaster will fork off child processes. Does each child start 'make fetch' in the background ? The fetches are not done in parallel. I ask this because the parent process attached to the console reports very low data transfer rates (in the range of 0.7 to 4.0 kBps, while normally I get 30 to 35 kBps). This is not enough data to ascertain there is a problem with fetch. If you are fetching from a busy site, or via a busy upstream channel it can be slow. Further, how can portmaster be tuned to automatically ignore ports which are actually marked as IGNORE in the port directory ? touch /var/db/pkg/name_of_port/+IGNOREME This is not covered in the manpage. It is. Look in the FILES section of portmaster(8). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp4qK8UEAKmn.pgp Description: PGP signature
Re: Questions on portmaster
Manish Jain wrote: ...Does each child start 'make fetch' in the background ? make checksum, yes. Further, how can portmaster be tuned to automatically ignore ports which are actually marked as IGNORE in the port directory ? This is not covered in the manpage. It respects IGNORE (it checks for it in the port Makefile, and also hands off to bsd.port.mk, which respects it). If you mean +IGNOREME, the others have answered your question. While doing portmaster -a, I have only managed to stop portmaster from building exactly one port specified with the -x option. Can I get to stop multiple ports from being built ? Is there regular expression support for the -x option ? Not in the sense that you mean, at least that I'm aware of. This one of the things that needs improvement. It is a bit awkward, because it uses the shell's built-in POSIX getopts to parse options, and then calls itself recursively. One way you could fix it would be to apply a patch like: --- portmaster.orig 2009-07-01 12:36:14.0 -0400 +++ portmaster 2009-07-01 18:55:59.0 -0400 @@ -9,7 +9,7 @@ if [ -z $PARENT_PID ]; then PARENT_PID=$$ : ${TMPDIR:=/tmp} - UPGRADE_TOOL=portmaster + UPGRADE_TOOL=$0 # /usr/local is needed in the path for make PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin @@ -788,7 +788,11 @@ u) UNATTENDED=uopt; ARGS=-u $ARGS ;; v) PM_VERBOSE=vopt; ARGS=-v $ARGS ;; w) SAVE_SHARED=wopt; ARGS=-w $ARGS ;; - x) EXCL=$OPTARG ;; + x) if [ -z ${OPTARG%%-*} ]; then + fail 'The -x option requires an argument' + else + EXCL=-x $OPTARG $EXCL + fi ;; *) echo '' ; echo === Try ${0##*/} --help; exit 1 ;; esac done @@ -810,10 +814,7 @@ [ -n $FETCH_ONLY -a -n $NO_RECURSIVE_CONFIG ] fail The -F and -G options are mutually exclusive if [ -n $EXCL ]; then - case $EXCL in - -*) fail 'The -x option requires an argument' ;; - *) ARGS=-x $EXCL $ARGS ;; - esac + ARGS=$EXCL $ARGS fi #=== Begin functions for getopts features and main === @@ -1461,14 +1462,17 @@ check_exclude () { [ -n $EXCL ] || return 0 - case $1 in - *${EXCL}*) - if [ -n $PM_VERBOSE ]; then - echo === Skipping $1 - echobecause it matches the pattern: *${EXCL}* - fi - return 1 ;; - esac + for pkgglob in `echo $EXCL | sed -e 's#-x##g'` + do + case $1 in + *${pkgglob}*) + if [ -n $PM_VERBOSE ]; then + echo === Skipping $1 + echobecause it matches the pattern: *${pkgglob}* + fi + return 1 ;; + esac ; + done return 0 } (Mind the whitespace because of my MUA.) Then you could just use repeated -x flags, each with one and only one package glob that you wanted to exclude. I changed the definition of UPGRADE_TOOL so that you could put this script in your path under another name, say jainpmaster, and then call it independently of the original portmaster. As usual, I make no claim that this is the best, only, or most elegant way to do this. Regards, b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Questions on portmaster
b. f. wrote: Manish Jain wrote: ...Does each child start 'make fetch' in the background ? make checksum, yes. Further, how can portmaster be tuned to automatically ignore ports which are actually marked as IGNORE in the port directory ? This is not covered in the manpage. It respects IGNORE (it checks for it in the port Makefile, and also hands off to bsd.port.mk, which respects it). If you mean +IGNOREME, the others have answered your question. While doing portmaster -a, I have only managed to stop portmaster from building exactly one port specified with the -x option. Can I get to stop multiple ports from being built ? Is there regular expression support for the -x option ? Not in the sense that you mean, at least that I'm aware of. This one of the things that needs improvement. It is a bit awkward, because it uses the shell's built-in POSIX getopts to parse options, and then calls itself recursively. One way you could fix it would be to apply a patch like: --- portmaster.orig 2009-07-01 12:36:14.0 -0400 +++ portmaster 2009-07-01 18:55:59.0 -0400 @@ -9,7 +9,7 @@ if [ -z $PARENT_PID ]; then PARENT_PID=$$ : ${TMPDIR:=/tmp} - UPGRADE_TOOL=portmaster + UPGRADE_TOOL=$0 # /usr/local is needed in the path for make PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin @@ -788,7 +788,11 @@ u) UNATTENDED=uopt; ARGS=-u $ARGS ;; v) PM_VERBOSE=vopt; ARGS=-v $ARGS ;; w) SAVE_SHARED=wopt; ARGS=-w $ARGS ;; - x) EXCL=$OPTARG ;; + x) if [ -z ${OPTARG%%-*} ]; then + fail 'The -x option requires an argument' + else + EXCL=-x $OPTARG $EXCL + fi ;; *) echo '' ; echo === Try ${0##*/} --help; exit 1 ;; esac done @@ -810,10 +814,7 @@ [ -n $FETCH_ONLY -a -n $NO_RECURSIVE_CONFIG ] fail The -F and -G options are mutually exclusive if [ -n $EXCL ]; then - case $EXCL in - -*) fail 'The -x option requires an argument' ;; - *) ARGS=-x $EXCL $ARGS ;; - esac + ARGS=$EXCL $ARGS fi #=== Begin functions for getopts features and main === @@ -1461,14 +1462,17 @@ check_exclude () { [ -n $EXCL ] || return 0 - case $1 in - *${EXCL}*) - if [ -n $PM_VERBOSE ]; then - echo === Skipping $1 - echobecause it matches the pattern: *${EXCL}* - fi - return 1 ;; - esac + for pkgglob in `echo $EXCL | sed -e 's#-x##g'` + do + case $1 in + *${pkgglob}*) + if [ -n $PM_VERBOSE ]; then + echo === Skipping $1 + echobecause it matches the pattern: *${pkgglob}* + fi + return 1 ;; + esac ; + done return 0 } (Mind the whitespace because of my MUA.) Then you could just use repeated -x flags, each with one and only one package glob that you wanted to exclude. I changed the definition of UPGRADE_TOOL so that you could put this script in your path under another name, say jainpmaster, and then call it independently of the original portmaster. As usual, I make no claim that this is the best, only, or most elegant way to do this. Regards, b. Hello BF/Roland, Thanks for the clarifications. Regarding the download speeds I was getting with portmaster fetches (0.7 kBps to 4.0 kBps), I immediately booted into Windows/Cygwin and did a wget from the same site portmaster was using. The speed I got from wget was ~ 35 kBps. This happened not just once but multiple times. Each time I did this, I had to interrupt portmaster. Finally I managed to get to install the wget port on FreeBSD itself. When I ran wget from FreeBSD, it reported comparable transfer rates (~ 35 kBps) from the same sites as portmaster was using. It respects IGNORE (it checks for it in the port Makefile, and also hands off to bsd.port.mk, which respects it). I got a curl port from portsnap marked IGNORE. portmaster did not ignore it anywhere near gracefully enough and finally killed off all child processes and itself. The IGNOREME way is fine for me for avoiding multiple ports I know beforehand I do not want to build. But if a portsnap update creates an IGNORE port, portmaster should be skipping it entirely rather than having to kill all child processes and itself. In my experience, this did not happen. Or maybe my system was badly broken already by that time. Anyway, my system became so unpredictable that I had to reinstall FreeBSD. For the moment, I am avoiding portmaster till I can try it out on a dummy PC first. BTW, I also tried portmanager and it segfaulted at the stage of generating a report. Thanks for all the help. Manish Jain invalid.poin...@gmail.com
Re: upgrading openoffice.org with portmaster
On Wed, 24 Jun 2009 00:39:22 +0200 kenneth hatteland wrote: when I start upgrading openoffice.org it switches from my localized language build to standard us en. Anyone have an idea how to force upgrade to stick with my norwegian build with portmaster ?? Platform freebsd 7.2 stable (x86) I have at /etc/make.conf for russian language: - .if ${.CURDIR:M*/editors/openoffice.org-3} LOCALIZED_LANG=ru .endif - I'm not sure if Norwegian is nb or something else though. But you have an idea. WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: upgrading openoffice.org with portmaster
Boris Samorodov wrote: On Wed, 24 Jun 2009 00:39:22 +0200 kenneth hatteland wrote: when I start upgrading openoffice.org it switches from my localized language build to standard us en. Anyone have an idea how to force upgrade to stick with my norwegian build with portmaster ?? Platform freebsd 7.2 stable (x86) I have at /etc/make.conf for russian language: - .if ${.CURDIR:M*/editors/openoffice.org-3} LOCALIZED_LANG=ru .endif - I'm not sure if Norwegian is nb or something else though. But you have an idea. WBR Norwegian should be no if I'm not mistaken.If you install ports-mgmt/portconf, you get a means to configure default knobs for ports, that's not dependant on which portmanager you use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
upgrading openoffice.org with portmaster
when I start upgrading openoffice.org it switches from my localized language build to standard us en. Anyone have an idea how to force upgrade to stick with my norwegian build with portmaster ?? Platform freebsd 7.2 stable (x86) Blessed be ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster -a on a live server
On Sunday 26 April 2009 01:12:48 Tom Worster wrote: thanks for the tip, mel. i got rid of the ports involved and reinstalled with WITHOUT_X11=yes and the install was faster and things are a lot tidier. i had no idea that i ought to be configuring port builds with env vars. is there documentation anywhere so i find out about these options in gneral? /usr/ports/Mk/bsd.port.mk comments section and /usr/ports/Mk/bsd.*.mk for specific collections, like bsd.databases.mk lets you set a default version for various database engines, for which multiple versions exist in the port. It does not have to be env vars, make.conf works as well, but you will forget in 3 months you have set it, so be careful what you choose and where you put it. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster -a on a live server
On 4/23/09 12:54 AM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Wednesday 22 April 2009 17:37:06 Tom Worster wrote: by the by, on my test machine i ended up with python installed. seems to be because i needed php5-gd which now depends on python. all for some simple freetype2 calls. Wrong assumption. php-gd doesn't depend on python at all. devel/apr does, so you've built php with apache module and that pulls in python OR you didn't set WITHOUT_X11=yes when building, so libxcb is pulled in which uses python: % sudo /stable/root/bin/finddep.php graphics/php5-gd lang/python26 /usr/ports/x11/xcb-proto: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/x11/xcb-proto: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/x11/libxcb: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/x11/libxcb: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/devel/apr: /usr/local/bin/python2.6 = /usr/ports/lang/python26 % sudo env WITHOUT_X11=yes /stable/root/bin/finddep.php graphics/php5-gd lang/python26 /usr/ports/devel/apr: /usr/local/bin/python2.6 = /usr/ports/lang/python26 thanks for the tip, mel. i got rid of the ports involved and reinstalled with WITHOUT_X11=yes and the install was faster and things are a lot tidier. i had no idea that i ought to be configuring port builds with env vars. is there documentation anywhere so i find out about these options in gneral? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster -a on a live server
On Wednesday 22 April 2009 17:37:06 Tom Worster wrote: by the by, on my test machine i ended up with python installed. seems to be because i needed php5-gd which now depends on python. all for some simple freetype2 calls. Wrong assumption. php-gd doesn't depend on python at all. devel/apr does, so you've built php with apache module and that pulls in python OR you didn't set WITHOUT_X11=yes when building, so libxcb is pulled in which uses python: % sudo /stable/root/bin/finddep.php graphics/php5-gd lang/python26 /usr/ports/x11/xcb-proto: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/x11/xcb-proto: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/x11/libxcb: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/x11/libxcb: /usr/local/bin/python2.6 = /usr/ports/lang/python26 /usr/ports/devel/apr: /usr/local/bin/python2.6 = /usr/ports/lang/python26 % sudo env WITHOUT_X11=yes /stable/root/bin/finddep.php graphics/php5-gd lang/python26 /usr/ports/devel/apr: /usr/local/bin/python2.6 = /usr/ports/lang/python26 -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster -a on a live server
On Tuesday 21 April 2009 01:38:26 Tom Worster wrote: portmaster -a -x mysql-server portmaster mysql-server reboot No no no. /usr/local/etc/rc.d/mysql-server start. Reboot is for kernel upgrades. And never use reboot unless in single user mode, cause reboot is really fast reboot: it doesn't stop services nicely. Use shutdown -r now. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmaster -a on a live server
though all i really need is mysql/apache/php i have about 100 ports installed and portmaster -a takes a long time to complete (hour or two). so i'm wondering if i ought to be concerned about new binaries being installed over the old ones on the disk while the old images are loaded and running as daemons. instead of doing portmaster -a, is there any advantage to: portmaster -a -x mysql\-server -x apache portmaster mysql\-server apache reboot in order to minimize the time that the old servers are running while the new images are on the disk? tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster -a on a live server
Tom Worster wrote: though all i really need is mysql/apache/php i have about 100 ports installed and portmaster -a takes a long time to complete (hour or two). so i'm wondering if i ought to be concerned about new binaries being installed over the old ones on the disk while the old images are loaded and running as daemons. instead of doing portmaster -a, is there any advantage to: portmaster -a -x mysql\-server -x apache portmaster mysql\-server apache reboot in order to minimize the time that the old servers are running while the new images are on the disk? Many ports will shut down a running instance of themselves when upgraded like this specifically to avoid the sort of complications that can occur when the running image does not match what is on disk. mysql does, apache doesn't. So upgrade mysql-server last thing before you reboot. Although I know you're not using portupgrade, this snippet from pkgtools.conf has been a blessing in minimizing outage lengths during updates on live servers: AFTERINSTALL = { '*' = proc { |origin| cmd_start_rc(origin) }, } Of couse, the best course of action is to plan sufficient downtime that you can do the upgrades comfortably plus recover from any number of ways things might go wrong, but sometimes that simply isn't possible. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: portmaster -a on a live server
On Mon, Apr 20, 2009 at 12:47 PM, Tom Worster f...@thefsb.org wrote: though all i really need is mysql/apache/php i have about 100 ports installed and portmaster -a takes a long time to complete (hour or two). so i'm wondering if i ought to be concerned about new binaries being installed over the old ones on the disk while the old images are loaded and running as daemons. instead of doing portmaster -a, is there any advantage to: portmaster -a -x mysql\-server -x apache portmaster mysql\-server apache reboot in order to minimize the time that the old servers are running while the new images are on the disk? tom Matthew has reported that he's had success with ports automatically restarting themselves, whereas I've not seen that happen. I had started (abandoned now) a script that would dynamically ask the rc.d system if a package was running when it was time to install a new package, meaning that it needs to stop, install, and start the package during the upgrade process. Worked well, until I realized that lots of ports don't do much (if any) work until make install is called, then it will (of all things) download and install depenencies and itself. So while all the dependencies are being downloaded and installed, the original package that needed to be upgrade has not been running. On large upgrades for the sake of anything better to example, Xorg, KDE/Gnome, MySQL/PostgreSQL all were NOT running during the 'install' phase which should be quick. Instead due to the Makefile writing it was delaying the install and restart of the packages anywhere from minutes to hours (to days.. OpenOffice). I abandoned the project mostly because I found little things about the ports system that is invisible to most people, but when dealing with the ports system details, they were the sore thumb. Since then I've found portmanager/portmaster/portupgrade have improved so now it's time to improve their stuff in terms of patches and upgrades. YMMV, I just didn't see the success Matthew had. --Tim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmaster -a on a live server
On 4/20/09 3:06 PM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: Many ports will shut down a running instance of themselves when upgraded like this specifically to avoid the sort of complications that can occur when the running image does not match what is on disk. mysql does, apache doesn't. So upgrade mysql-server last thing before you reboot. so i'll try portmaster -a -x mysql-server portmaster mysql-server reboot which might work ok as mysql-server is a leaf node in my config Although I know you're not using portupgrade, this snippet from pkgtools.conf has been a blessing in minimizing outage lengths during updates on live servers: AFTERINSTALL = { '*' = proc { |origin| cmd_start_rc(origin) }, } Of couse, the best course of action is to plan sufficient downtime that you can do the upgrades comfortably plus recover from any number of ways things might go wrong, but sometimes that simply isn't possible. it's finding the optimum between minimizing downtime and having enough that i'm trying to think through. thanks for your remarks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to use portmanager/portmaster?
On Sat, 2009-02-28 at 23:33 +0100, Frank Wißmann wrote: Am Samstag 28 Februar 2009 22:39:26 schrieb Roland Smith: On Sat, Feb 28, 2009 at 10:08:45PM +0100, Frank Wißmann wrote: Am Samstag 28 Februar 2009 21:42:35 schrieb Roland Smith: On Sat, Feb 28, 2009 at 07:49:16PM +0100, Frank Wißmann wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. I get the message No manual entry for portmaster, but using your command I can read it. man man e. g. works perfectly. That sounds to me that the configuration for the man command is broken. If you give the 'manpath' command, does the output include /usr/local/man? If not, add the following lines to /etc/manpath.config: OPTIONAL_MANPATH/usr/local/man MANPATH_MAP /usr/local/bin /usr/local/man Roland manpath does show correct settings AFAIK meaning that the answer to your question is yes. Frank Try a rehash. $ rehash ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to use portmanager/portmaster?
Da Rock wrote: On Sat, 2009-02-28 at 23:33 +0100, Frank Wißmann wrote: Am Samstag 28 Februar 2009 22:39:26 schrieb Roland Smith: On Sat, Feb 28, 2009 at 10:08:45PM +0100, Frank Wißmann wrote: Am Samstag 28 Februar 2009 21:42:35 schrieb Roland Smith: On Sat, Feb 28, 2009 at 07:49:16PM +0100, Frank Wißmann wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. I get the message No manual entry for portmaster, but using your command I can read it. man man e. g. works perfectly. That sounds to me that the configuration for the man command is broken. If you give the 'manpath' command, does the output include /usr/local/man? If not, add the following lines to /etc/manpath.config: OPTIONAL_MANPATH/usr/local/man MANPATH_MAP /usr/local/bin /usr/local/man Roland manpath does show correct settings AFAIK meaning that the answer to your question is yes. Frank Try a rehash. $ rehash ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Do a Da Rock said. Do notice that both portmaster and portmanager are third party applications and need to be installed. cd /usr/ports/ports-mgmt/portmaster/; make install clean; rehash cd /usr/ports/ports-mgmt/portmanager/; make install clean; rehash ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
On Sunday 01 March 2009 14:02:19 per...@pluto.rain.com wrote: Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Saturday 28 February 2009 23:06:10 Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? Not (yet). Without /usr/ports it's impossible to find out what software needs updating, or you'd have to download and trust the INDEX-7 on the FreeBSD package servers. ... which may not be much of a stretch for those who are prepared to download and trust the packages themselves, from the same place. It is a stretch in practice. The INDEX is based on /usr/ports, which is ahead of the packages that are actually compiled on the buildservers. portupgrade -PP manages somehow. Not somehow, but because it works with /usr/ports. Try renaming your ports directory and see how that goes. Also, -PP wastes a lot of bandwidth. Just look at the ammount of packages that are downloaded which aren't actually installed, because the version is older or equal then installed. BTW, the OP may not realize that the package system is a subset of the port system, rather than an alternative. Packages are generated using the port system. It's an alternative way to install the same software. One can in fact use packages without having /usr/ports present at all. I'm using my own tools, using a custom INDEX format on the build server. But there's still too many raw edges that I'd like the tools released into the wild. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
On Tue, 3 Mar 2009 08:32:10 -0900 Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Sunday 01 March 2009 14:02:19 per...@pluto.rain.com wrote: Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Saturday 28 February 2009 23:06:10 Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? Not (yet). Without /usr/ports it's impossible to find out what software needs updating, or you'd have to download and trust the INDEX-7 on the FreeBSD package servers. ... which may not be much of a stretch for those who are prepared to download and trust the packages themselves, from the same place. It is a stretch in practice. The INDEX is based on /usr/ports, which is ahead of the packages that are actually compiled on the buildservers. Well, sometimes by a day or two, so I guess if you're portupgrading daily or whatever. For larger portupgrades after a while (as I tend :) I very rarely miss finding all the latest packages, ie as perryh said: portupgrade -PP manages somehow. Not somehow, but because it works with /usr/ports. Try renaming your ports directory and see how that goes. Also, -PP wastes a lot of bandwidth. Just look at the ammount of packages that are downloaded which aren't actually installed, because the version is older or equal then installed. I don't get your latter point, Mel. Assuming the ports tree is up to date (I can't comment on using just an INDEX without a ports tree) then the package versions obtained using -PP match those in the ports tree; I don't recall it ever downloading older packages than the ports versions? BTW, the OP may not realize that the package system is a subset of the port system, rather than an alternative. Packages are generated using the port system. It's an alternative way to install the same software. One can in fact use packages without having /usr/ports present at all. I'm using my own tools, using a custom INDEX format on the build server. But there's still too many raw edges that I'd like the tools released into the wild. Fair enough, but I think perryh's point stands; many people appear to believe that ports and packages are separate systems. We've even seen people say you shouldn't mix the two methods which is utter nonsense. For a large (likely overdue :) portupgrade session, after updating the tree I start with portupgrade -anPP which fetches all available packages to /usr/ports/packages, without updating anything yet. Sometimes some regional mirrors aren't quite up to date, so I might need to finish off with a visit to somewhere closer to (ultimately) ftp.freebsd.org. Then portupgrade -aP uses the (now local) packages, builds any ports for which there is no package for licence etc reasons, sometimes grabbing a few more dependent packages along the way, but my poor lil' ol' laptop doesn't need to spend days compiling Xorg, KDE, openoffice if you use it, and a bunch of other big ports; it only takes quite a few hours :) and a little extra bandwidth saving days of building is fine by me .. The only largish port that always needs (re)building here is PHP, where the default options and thus the built package - weirdly, in my view - doesn't include mod_php, though I bet most PHP users wanted it for that. cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portmanager/portmaster like application for packages?
I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org portupgrade has an option to install packages if current with the port version ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
Aryeh M. Friedman wrote: Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org portupgrade has an option to install packages if current with the port version ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I don't do ports if at all possible. I even do the package of the dependents of the ports I am forced to do. So portupgrade is useless to me. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
On Saturday 28 February 2009 23:06:10 Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? Not (yet). Without /usr/ports it's impossible to find out what software needs updating, or you'd have to download and trust the INDEX-7 on the FreeBSD package servers. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
Fbsd1 wrote: Aryeh M. Friedman wrote: Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org portupgrade has an option to install packages if current with the port version ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I don't do ports if at all possible. I even do the package of the dependents of the ports I am forced to do. So portupgrade is useless to me. Actually (I have not read the man page in detail) there seems to be a way to say to use packages only now there is good reasons for using ports not packages in that god knows when the package was compiled and under what conditions (i.e. it is rolling the dice to weither or not it will work) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portmanager/portmaster like application for packages?
Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Saturday 28 February 2009 23:06:10 Fbsd1 wrote: I am looking for software like portmanager/portmaster but works on the package system instead of the port system. Is there such am application available? Not (yet). Without /usr/ports it's impossible to find out what software needs updating, or you'd have to download and trust the INDEX-7 on the FreeBSD package servers. ... which may not be much of a stretch for those who are prepared to download and trust the packages themselves, from the same place. portupgrade -PP manages somehow. BTW, the OP may not realize that the package system is a subset of the port system, rather than an alternative. Packages are generated using the port system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How to use portmanager/portmaster?
Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? TIA Frank -- GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y? When pack meets pack in the jungle and no one will move from the trail wait till the leaders have spoken it may be fair words shall prevail (Rudyard Kipling) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to use portmanager/portmaster?
On Sat, 28 Feb 2009 20:49:16 +0200, Frank Wißmann frank.wissman...@web.de wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? TIA Frank http://www.google.ro/search?hl=roq=portmanagerbtnG=C%C4%83utare+Googlemeta= http://www.google.ro/search?hl=roq=portmasterbtnG=C%C4%83utaremeta= ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to use portmanager/portmaster?
On Sat, Feb 28, 2009 at 07:49:16PM +0100, Frank Wißmann wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. You can read the manpage with the following command sequence: gzip -cd /usr/local/man/man8/portmaster.8.gz | groff -Tascii -man | less Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpcdnZVQYknL.pgp Description: PGP signature
Re: How to use portmanager/portmaster?
Am Samstag 28 Februar 2009 21:42:35 schrieb Roland Smith: On Sat, Feb 28, 2009 at 07:49:16PM +0100, Frank Wißmann wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. I get the message No manual entry for portmaster, but using your command I can read it. man man e. g. works perfectly. But there comes up another question (or two): How can I use it with all ports/packages? And will it upgrade my packages too, or is there something special I have to look for, because I have mostly installed by pkg_add -r? TIA Frank You can read the manpage with the following command sequence: gzip -cd /usr/local/man/man8/portmaster.8.gz | groff -Tascii -man | less Roland -- GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y? When pack meets pack in the jungle and no one will move from the trail wait till the leaders have spoken it may be fair words shall prevail (Rudyard Kipling) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to use portmanager/portmaster?
On Sat, Feb 28, 2009 at 10:08:45PM +0100, Frank Wißmann wrote: Am Samstag 28 Februar 2009 21:42:35 schrieb Roland Smith: On Sat, Feb 28, 2009 at 07:49:16PM +0100, Frank Wißmann wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. I get the message No manual entry for portmaster, but using your command I can read it. man man e. g. works perfectly. That sounds to me that the configuration for the man command is broken. If you give the 'manpath' command, does the output include /usr/local/man? If not, add the following lines to /etc/manpath.config: OPTIONAL_MANPATH/usr/local/man MANPATH_MAP /usr/local/bin /usr/local/man Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp4a5Y5ztU1k.pgp Description: PGP signature
Re: How to use portmanager/portmaster?
Am Samstag 28 Februar 2009 22:39:26 schrieb Roland Smith: On Sat, Feb 28, 2009 at 10:08:45PM +0100, Frank Wißmann wrote: Am Samstag 28 Februar 2009 21:42:35 schrieb Roland Smith: On Sat, Feb 28, 2009 at 07:49:16PM +0100, Frank Wißmann wrote: Hi, list! I have a problem using the above mentioned programs because there doesn't seem to be a manpage installed. Can anybody give me a clue on how to get help? Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. I get the message No manual entry for portmaster, but using your command I can read it. man man e. g. works perfectly. That sounds to me that the configuration for the man command is broken. If you give the 'manpath' command, does the output include /usr/local/man? If not, add the following lines to /etc/manpath.config: OPTIONAL_MANPATH/usr/local/man MANPATH_MAP /usr/local/bin /usr/local/man Roland manpath does show correct settings AFAIK meaning that the answer to your question is yes. Frank -- GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y? When pack meets pack in the jungle and no one will move from the trail wait till the leaders have spoken it may be fair words shall prevail (Rudyard Kipling) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to use portmanager/portmaster?
On Sat, Feb 28, 2009 at 11:33:01PM +0100, Frank Wißmann wrote: Both do have manpages. What kind of error do you get when you try e.g. 'man portmaster'? It might be that your manual pages setup is broken. I get the message No manual entry for portmaster, but using your command I can read it. man man e. g. works perfectly. That sounds to me that the configuration for the man command is broken. If you give the 'manpath' command, does the output include /usr/local/man? manpath does show correct settings AFAIK meaning that the answer to your question is yes. Try running (in tcsh) 'man -d portmaster man-portmaster.txt'. This will tell you where man(1) is looking for the portmaster manual file. Among the text in man-portmaster.txt should be something like this: searching in /usr/local/man trying section 8 with globbing globbing /usr/local/man/man8/portmaster.8* found ultimate source file /usr/local/man/man8/portmaster.8.gz to_name in convert_name () is: /usr/local/man/cat8/portmaster.8.gz will try to write /usr/local/man/cat8/portmaster.8.gz if needed status from is_newer() = -2 using default preprocessor sequence found tbl(1) directive Couldn't open /usr/local/man/cat8/portmaster.8.gz.tmp5XCE4n for writing. using default preprocessor sequence found tbl(1) directive trying command: (cd /usr/local/man ; /usr/bin/zcat /usr/local/man/man8/portmaster.8.gz | /usr/bin/tbl | /usr/bin/groff -S -Wall -mtty-char -man -Tascii | /usr/bin/col | less) It should at least contain the first three lines. If not, man isn't searching the right directory. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp43RgphZNJz.pgp Description: PGP signature
Re: make -jN build with portmaster
On Monday 26 January 2009 09:14:21 cpghost wrote: On Sun, Jan 25, 2009 at 10:41:05PM -0900, Mel wrote: On Sunday 25 January 2009 20:48:22 Doug Barton wrote: Josh Carroll wrote: What I do is the following via make.conf, I think this is a good solution. Given that incredible foot-shooting power of the -j stuff I am not inclined to add something like this to portmaster, not even as an advanced option. Yes, I understand the problem with that. The make.conf solution is good enough for now. ;) Given the fact that the build target is presumably -j safe (as far as the ports system is concerned), it would be nice to have a BUILD_JOBS in Mk/bsd.port.mk similar to INDEX_JOBS that is already there. Port maintainers then can also set WITHOUT_PARALLEL (or USE_PARALLEL=NO etc) for ports that break by themselves (f.e. www/lynx, editors/vim). portmaster should then have no problem setting BUILD_JOBS on request. That would be absolutely perfect! At least, big ports (www/firefox3 etc...) that take a long time to compile could use USE_PARALLEL=YES right now (or the solution with make.conf) if they are safe with -jN. The gazillion smallish ports could come later when maintainers have some time to follow up, but they are not really all that critical. PR Filed: http://www.freebsd.org/cgi/query-pr.cgi?pr=131065 -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
On Sun, Jan 25, 2009 at 10:41:05PM -0900, Mel wrote: On Sunday 25 January 2009 20:48:22 Doug Barton wrote: Josh Carroll wrote: What I do is the following via make.conf, I think this is a good solution. Given that incredible foot-shooting power of the -j stuff I am not inclined to add something like this to portmaster, not even as an advanced option. Yes, I understand the problem with that. The make.conf solution is good enough for now. ;) Given the fact that the build target is presumably -j safe (as far as the ports system is concerned), it would be nice to have a BUILD_JOBS in Mk/bsd.port.mk similar to INDEX_JOBS that is already there. Port maintainers then can also set WITHOUT_PARALLEL (or USE_PARALLEL=NO etc) for ports that break by themselves (f.e. www/lynx, editors/vim). portmaster should then have no problem setting BUILD_JOBS on request. That would be absolutely perfect! At least, big ports (www/firefox3 etc...) that take a long time to compile could use USE_PARALLEL=YES right now (or the solution with make.conf) if they are safe with -jN. The gazillion smallish ports could come later when maintainers have some time to follow up, but they are not really all that critical. Memory may fail me, but wasn't there a GSoC project to parallelize the ports infrastructure? Or was that about building many different ports simultaneously instead of one port on multiple cores? -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
snip That would be absolutely perfect! +1 snip Memory may fail me, but wasn't there a GSoC project to parallelize the ports infrastructure? Or was that about building many different ports simultaneously instead of one port on multiple cores? -cpghost. http://wiki.freebsd.org/SummerOfCode2008#head-1abba39cb7f9d11ebef625f2287dbaebe6daf000 Ready to enter CVS: Probably not. -- Eitan Adler Security is increased by designing for the way humans actually behave. -Jakob Nielsen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
On Monday 26 January 2009 14:56:10 Eitan Adler wrote: snip That would be absolutely perfect! +1 snip Memory may fail me, but wasn't there a GSoC project to parallelize the ports infrastructure? Or was that about building many different ports simultaneously instead of one port on multiple cores? -cpghost. http://wiki.freebsd.org/SummerOfCode2008#head-1abba39cb7f9d11ebef625f2287db aebe6daf000 Ready to enter CVS: Probably not. This is different: it allows multiple ports to be built at the same time, not 1 port with multiple make processes. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
make -jN build with portmaster
To build ports in parallel on a 4 core machine, I usually do this manually: # cd /usr/ports/some/port # make configure make -j5 build make install clean because all steps except make build are not compatible with -jN (some ports don't work with -jN in the make build phase either, but they are quite rare). Now, is there a way to teach portmaster to build or rebuild ports this way? The only workaround for now is something like: # cd /usr/ports/some/port # make configure make -j5 build # portmaster -b -d -C name-of-some/port-in-pkg-var-db which doesn't clean up some/port/work before building, thus using the manual parallel step before. So, how can portmaster run 'make -jN build' instead of simple 'make build'? (I know about portmaster's -m option, but passing -jN to it won't work, as it would also try to apply this to other phases than make build). Thanks, -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
On Sun, Jan 25, 2009 at 4:44 PM, cpghost cpgh...@cordula.ws wrote: To build ports in parallel on a 4 core machine, I usually do this manually: # cd /usr/ports/some/port # make configure make -j5 build make install clean because all steps except make build are not compatible with -jN (some ports don't work with -jN in the make build phase either, but they are quite rare). Now, is there a way to teach portmaster to build or rebuild ports this way? The only workaround for now is something like: What I do is the following via make.conf, which will work for portmaster/portupgrade or manual builds: # set MAKE_ARGS for the build target(s) .if !(make(*install) || make(package)) MAKE_ARGS+=-j8 .endif Then as you find ports that don't build properly, add an entry like this: # some ports don't like -j8, so we can undo the MAKE_ARGS addition for those .if ${.CURDIR:M*/multimedia/mplayer} MAKE_ARGS:=${MAKE_ARGS:C/-j8//} .endif It's a bit of a hack, but I've had decent success with this. Enough ports fail to build with -jX, that I'd never do the above on a production machine, especially since it's possible for some sort of silent error that produces an unpredictable binary. But for my home machine, I've been pretty happy with it. Regards, Josh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
On Sun, Jan 25, 2009 at 05:22:04PM -0500, Josh Carroll wrote: On Sun, Jan 25, 2009 at 4:44 PM, cpghost cpgh...@cordula.ws wrote: To build ports in parallel on a 4 core machine, I usually do this manually: # cd /usr/ports/some/port # make configure make -j5 build make install clean because all steps except make build are not compatible with -jN (some ports don't work with -jN in the make build phase either, but they are quite rare). Now, is there a way to teach portmaster to build or rebuild ports this way? The only workaround for now is something like: What I do is the following via make.conf, which will work for portmaster/portupgrade or manual builds: # set MAKE_ARGS for the build target(s) .if !(make(*install) || make(package)) MAKE_ARGS+=-j8 .endif Then as you find ports that don't build properly, add an entry like this: # some ports don't like -j8, so we can undo the MAKE_ARGS addition for those .if ${.CURDIR:M*/multimedia/mplayer} MAKE_ARGS:=${MAKE_ARGS:C/-j8//} .endif That's a good hint indeed. I'll try it. Maybe I'll modify it a bit to include ONLY the build target, because -jN fails on nearly every other target, AFAICS. It's a bit of a hack, but I've had decent success with this. Enough ports fail to build with -jX, that I'd never do the above on a production machine, especially since it's possible for some sort of silent error that produces an unpredictable binary. But for my home machine, I've been pretty happy with it. Yes, that's true, and it could happen. But I don't remember having had a port compile, yet silently fail, yet. (*knocking-on-wood*). ;) Regards, Josh Thanks, -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
On Sun, 25 Jan 2009 23:46:54 +0100 cpghost cpgh...@cordula.ws wrote: That's a good hint indeed. I'll try it. Maybe I'll modify it a bit to include ONLY the build target, because -jN fails on nearly every other target, AFAICS. Don't forget that there are two different makes; BSD make does the ports infrastructure bit, and usually gmake (Gnu Make) does the actual build and install in the work directory. IIRC MAKE_ARGS only goes to the lower-level make (gmake), and aside from those ports that don't work with -j at all, the failure with other targets are caused by bsd make i.e. by trying to run the whole ports infrastructure with -j. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
Josh Carroll wrote: What I do is the following via make.conf, I think this is a good solution. Given that incredible foot-shooting power of the -j stuff I am not inclined to add something like this to portmaster, not even as an advanced option. Doug which will work for portmaster/portupgrade or manual builds: # set MAKE_ARGS for the build target(s) .if !(make(*install) || make(package)) MAKE_ARGS+=-j8 .endif Then as you find ports that don't build properly, add an entry like this: # some ports don't like -j8, so we can undo the MAKE_ARGS addition for those .if ${.CURDIR:M*/multimedia/mplayer} MAKE_ARGS:=${MAKE_ARGS:C/-j8//} .endif It's a bit of a hack, but I've had decent success with this. Enough ports fail to build with -jX, that I'd never do the above on a production machine, especially since it's possible for some sort of silent error that produces an unpredictable binary. But for my home machine, I've been pretty happy with it. Regards, Josh -- This .signature sanitized for your protection ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make -jN build with portmaster
On Sunday 25 January 2009 20:48:22 Doug Barton wrote: Josh Carroll wrote: What I do is the following via make.conf, I think this is a good solution. Given that incredible foot-shooting power of the -j stuff I am not inclined to add something like this to portmaster, not even as an advanced option. Given the fact that the build target is presumably -j safe (as far as the ports system is concerned), it would be nice to have a BUILD_JOBS in Mk/bsd.port.mk similar to INDEX_JOBS that is already there. Port maintainers then can also set WITHOUT_PARALLEL (or USE_PARALLEL=NO etc) for ports that break by themselves (f.e. www/lynx, editors/vim). portmaster should then have no problem setting BUILD_JOBS on request. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portupgrade - portmaster?
Ewald Jenisch wrote: Hi, Having used portupgrade for several years I'm thinking to make the switch to portmaster since both of them seem to be fully supported as far as upgrading ports is concerned. Anything to consider when going from portupgrade to portmaster? Caveats/pitfalls? Is there also a way back, i.e. from portmaster to portupgrade? What are your experiences with portmaster, esp. in terms of stability, handling, features? Thanks much in advance, -ewald I'll be honest -- I've tried portupgrade, then portmaster, then dabbled with porteasy. Then a buddy mentioned pkg_replace. I never tried pkg_replace but the documented and recommended way to upgrade ports were not followed (in my eyes) by any of those... so I made my own based from the borne shell only. It relies 100% on the ports subsystem to do it's work and it doesn't try to shortcut the process. So what my system does (which isn't released, won't be released in the forseeable future)... Forces a warning of the upgrading process may loose some package if you cancel out of it Forces a display of the UPGRADING file... then the MOVED file. Asks the user if it's OK to proceed, given the UPDATING and MOVED files may have given special instructions for something. Scans for the outdated ports, optionally using the INDEX file Re-calls itself to upgrade each port in turn found above Gives options to do stages, such as building without installing Logs the process in memory, and logs the final result in a logfile and prints it to the screen Most importantly, I love the concept that it has no external prerequisites. In the end, I think it works really well but since I don't feel confident that it's bugfree and ready for dedicated and production servers -- I am not releasing it to the public (yet?). /soapbox But if I were to recommend anything, go through the ports-mgmt category and find something that works for you, or roll your own. --Tim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
reinstall all p5 installed ports with portmaster
Hello, I was looking for an efficient way to reinstall (recompile due to an update in the perl port) all installed p5 ports… I have done that manually, but I am certain there is a better way to do that… I have tried: # portmaster -rdf p5- But that didn't work as I had to re-install all ports… Thanks for your help. Gregober --- PGP ID -- 0x1BA3C2FD bsd @at@ todoo.biz P Please consider your environmental responsibility before printing this e-mail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: reinstall all p5 installed ports with portmaster [solved]
Le 15 janv. 09 à 12:19, Herbert J. Skuhra a écrit : 2009/1/15 bsd b...@todoo.biz: Hello, I was looking for an efficient way to reinstall (recompile due to an update in the perl port) all installed p5 ports… Have you tried perl-after-upgrade? See UPDATING and man page. No… That's exactly what I was looking for… Works perfectly. I have done that manually, but I am certain there is a better way to do that… I have tried: # portmaster -rdf p5- But that didn't work as I had to re-install all ports… Have you tried portmaster without -rf ? Yes, but no success… - Herbert ___ Gregober --- PGP ID -- 0x1BA3C2FD bsd @at@ todoo.biz P Please consider your environmental responsibility before printing this e-mail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: reinstall all p5 installed ports with portmaster
2009/1/15 bsd b...@todoo.biz: Hello, I was looking for an efficient way to reinstall (recompile due to an update in the perl port) all installed p5 ports… Have you tried perl-after-upgrade? See UPDATING and man page. I have done that manually, but I am certain there is a better way to do that… I have tried: # portmaster -rdf p5- But that didn't work as I had to re-install all ports… Have you tried portmaster without -rf ? - Herbert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: reinstall all p5 installed ports with portmaster
On Thu, January 15, 2009 12:19, Herbert J. Skuhra wrote: 2009/1/15 bsd b...@todoo.biz: Hello, I was looking for an efficient way to reinstall (recompile due to an update in the perl port) all installed p5 ports⦠Have you tried perl-after-upgrade? See UPDATING and man page. I have done that manually, but I am certain there is a better way to do that⦠I have tried: # portmaster -rdf p5- But that didn't work as I had to re-install all ports⦠Have you tried portmaster without -rf ? try: portupgrade -f 'pkg_info | grep p5- | cut -d -f1' - Herbert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portupgrade - portmaster?
On 1/15/09 8:25 PM, Ewald Jenisch wrote: Anything to consider when going from portupgrade to portmaster? Portupgrade has the advantage that it can use binary packages to upgrade your system. portmaster can create them (by adding the -g option) - but not use them. This is the reason we use portupgrade at work where we have several FreeBSD servers which shares /usr/ports. Is there also a way back, i.e. from portmaster to portupgrade? No problem at all. You can even have both installed. If you upgrade your outdated port with portupgrade, portmaster will not try to upgrade it and vice versa, unless you force it to (which makes no sense). -- chs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portupgrade - portmaster?
On Thursday 15 January 2009 16:04:09 Christer Solskogen wrote: On 1/15/09 8:25 PM, Ewald Jenisch wrote: Anything to consider when going from portupgrade to portmaster? Portupgrade has the advantage that it can use binary packages to upgrade your system. portmaster can create them (by adding the -g option) - but not use them. This is the reason we use portupgrade at work where we have several FreeBSD servers which shares /usr/ports. Is there also a way back, i.e. from portmaster to portupgrade? No problem at all. You can even have both installed. If you upgrade your outdated port with portupgrade, portmaster will not try to upgrade it and vice versa, unless you force it to (which makes no sense). I am more than one year FreeBSD user :), started with 7.0 and I have to used portupgrade but later I did change to portmaster which I like it but few day ago I had a problem (on FreeBSD 7.1) with update. Here is a link to the FreeBSD forum where I asked about a problem. Today I installed portupgrade and update was without problem. Are there some problem with portmaster on 7.1? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: portupgrade - portmaster?
On Thu, Jan 15, 2009 at 7:22 PM, Mitja lum...@gmail.com wrote: On Thursday 15 January 2009 16:04:09 Christer Solskogen wrote: On 1/15/09 8:25 PM, Ewald Jenisch wrote: Anything to consider when going from portupgrade to portmaster? Portupgrade has the advantage that it can use binary packages to upgrade your system. portmaster can create them (by adding the -g option) - but not use them. This is the reason we use portupgrade at work where we have several FreeBSD servers which shares /usr/ports. Is there also a way back, i.e. from portmaster to portupgrade? No problem at all. You can even have both installed. If you upgrade your outdated port with portupgrade, portmaster will not try to upgrade it and vice versa, unless you force it to (which makes no sense). I am more than one year FreeBSD user :), started with 7.0 and I have to used portupgrade but later I did change to portmaster which I like it but few day ago I had a problem (on FreeBSD 7.1) with update. Here is a link to the FreeBSD forum where I asked about a problem. Today I installed portupgrade and update was without problem. Are there some problem with portmaster on 7.1? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org believe so since I remember seeing the author talk about patching portmaster. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ports-mgmt/portmaster question
Mel wrote: On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: B. Cook wrote: Is there a way to pass make args (other than -m) for each port? ... If you want options that only apply to specific ports, then you can use a construct like this: .if ${.CURDIR:M*/databases/mysql*} WITH_CHARSET=utf8 WITH_XCHARSET=none WITH_COLLATION=utf8_unicode_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_INNODB=yes WITH_ARCHIVE=yes WITH_FEDERATED=yes WITH_NDB=yes WITH_CSV=yes WITH_SPHINXSE=yes .endif Or, so you don't have one blobby make.conf that needs to be read for everything that uses FreeBSD's make, you can make a file called Makefile.local in the port's directory and set these. There are only a few special cases in which this won't work, because it is included at the bottom of the port's Makefile, but then you can resort to /etc/make.conf. Yep. That's true. Unfortunately though if you use freebsd-update to update your ports tree it will blow away any additional files like that. csup(1) users will not have that problem. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: ports-mgmt/portmaster question
Matthew Seaman wrote: Mel wrote: On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: B. Cook wrote: Is there a way to pass make args (other than -m) for each port? ... If you want options that only apply to specific ports, then you can use a construct like this: .if ${.CURDIR:M*/databases/mysql*} WITH_CHARSET=utf8 WITH_XCHARSET=none WITH_COLLATION=utf8_unicode_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_INNODB=yes WITH_ARCHIVE=yes WITH_FEDERATED=yes WITH_NDB=yes WITH_CSV=yes WITH_SPHINXSE=yes .endif Or, so you don't have one blobby make.conf that needs to be read for everything that uses FreeBSD's make, you can make a file called Makefile.local in the port's directory and set these. There are only a few special cases in which this won't work, because it is included at the bottom of the port's Makefile, but then you can resort to /etc/make.conf. Yep. That's true. Unfortunately though if you use freebsd-update to Ooops portsnap update your ports tree it will blow away any additional files like that. csup(1) users will not have that problem. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: ports-mgmt/portmaster question
Matthew Seaman wrote: Mel wrote: On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: B. Cook wrote: Is there a way to pass make args (other than -m) for each port? If you want options that only apply to specific ports, then you can use a construct like this: .if ${.CURDIR:M*/databases/mysql*} WITH_CHARSET=utf8 WITH_XCHARSET=none WITH_COLLATION=utf8_unicode_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_INNODB=yes WITH_ARCHIVE=yes WITH_FEDERATED=yes WITH_NDB=yes WITH_CSV=yes WITH_SPHINXSE=yes .endif Or, so you don't have one blobby make.conf that needs to be read for everything that uses FreeBSD's make, you can make a file called Makefile.local in the port's directory and set these. There are only a few special cases in which this won't work, because it is included at the bottom of the port's Makefile, but then you can resort to /etc/make.conf. Yep. That's true. Unfortunately though if you use freebsd-update to update your ports tree it will blow away any additional files like that. csup(1) users will not have that problem. There is also a nice port ports-mgmt/portconf which adds some snippet to /etc/make.conf which allows you to add your options in a neat way to /usr/local/etc/ports.conf. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ports-mgmt/portmaster question
On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: B. Cook wrote: Is there a way to pass make args (other than -m) for each port? ... If you want options that only apply to specific ports, then you can use a construct like this: .if ${.CURDIR:M*/databases/mysql*} WITH_CHARSET=utf8 WITH_XCHARSET=none WITH_COLLATION=utf8_unicode_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_INNODB=yes WITH_ARCHIVE=yes WITH_FEDERATED=yes WITH_NDB=yes WITH_CSV=yes WITH_SPHINXSE=yes .endif Or, so you don't have one blobby make.conf that needs to be read for everything that uses FreeBSD's make, you can make a file called Makefile.local in the port's directory and set these. There are only a few special cases in which this won't work, because it is included at the bottom of the port's Makefile, but then you can resort to /etc/make.conf. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ports-mgmt/portmaster question
Is there a way to pass make args (other than -m) for each port? For example if I use -m BUILD_STATIC=YES and -m BUILD_OPTIMIZED=YES for mysql50-server.. other than remembering that I did that.. is there someway to have portmaster read its portmaster.rc and get that information? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ports-mgmt/portmaster question
B. Cook wrote: Is there a way to pass make args (other than -m) for each port? For example if I use -m BUILD_STATIC=YES and -m BUILD_OPTIMIZED=YES for mysql50-server.. other than remembering that I did that.. is there someway to have portmaster read its portmaster.rc and get that information? Yes. Actually, it's not portmaster specific -- it works for any method of using ports. Just edit /etc/make.conf to include the options you want. eg. WITH_OPENSSL_PORT= yes WITH_BDB_VER= 46 WITH_MYSQL_VER= 50 WITH_OPENLDAP_VER= 24 WANT_OPENLDAP_SASL= yes WITH_APACHE2= yes APACHE_PORT=www/apache22 WITH_MODPERL2= yes If you want options that only apply to specific ports, then you can use a construct like this: .if ${.CURDIR:M*/databases/mysql*} WITH_CHARSET=utf8 WITH_XCHARSET=none WITH_COLLATION=utf8_unicode_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_INNODB=yes WITH_ARCHIVE=yes WITH_FEDERATED=yes WITH_NDB=yes WITH_CSV=yes WITH_SPHINXSE=yes .endif If editing /etc/make.conf gives you too much grief, then look at the ports-mgmt/portconf tool -- it works the same way (ie. by setting variables in the make system) but has a user interface that attempts to be a bit more friendly. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: More build problems: portmaster and portupgrade not properly working.
Am 10.09.2008 um 05:46 schrieb Desmond Chapman: ... install -o root -g wheel -m 555 /usr/ports/ports-mgmt/portmaster/ work/portmaster.sh /usr/local/sbin/portmaster install -o root -g wheel -m 444 /usr/ports/ports-mgmt/portmaster/ files/portmaster.8 /usr/local/man/man8 === Compressing manual pages for portmaster-1.25 === Registering installation for portmaster-1.25 # portmaster portmaster: Command not found. ... How can I have it installed and it doesn't work? Man pages are there, the binary doesn't seem to be. Also make sure that your PATH Variable contains /usr/local/sbin. Setting the PATH depends on your shell. Tip: echo $PATH shows the current content of this variable. Regards -- Henry Vogt [EMAIL PROTECTED] (Fon: ++49-7071-601-511, Fax: -826) Campus Max-Planck-Institute, Spemannstr. 32-41, Tübingen, Germany PGP.sig Description: This is a digitally signed message part
More build problems: portmaster and portupgrade not properly working.
Here are more problems === Cleaning for portupgrade-2.3.1,2 # cd / # portupgrade -a portupgrade: Command not found. # cd /usr/ports # portupgrade -a portupgrade: Command not found. # man portupgrade Formatting page, please wait...Done. PORTUPGRADE(1) FreeBSD General Commands Manual PORTUPGRADE(1) # cd ports-mgmt/portmaster # make depends # make config === No options to configure # make clean install clean === Cleaning for portmaster-1.25 === Vulnerability check disabled, database not found === Extracting for portmaster-1.25 === Patching for portmaster-1.25 === Configuring for portmaster-1.25 === Installing for portmaster-1.25 === Generating temporary packing list === Checking if ports-mgmt/portmaster already installed install -o root -g wheel -m 555 /usr/ports/ports-mgmt/portmaster/work/portmaster.sh /usr/local/sbin/portmaster install -o root -g wheel -m 444 /usr/ports/ports-mgmt/portmaster/files/portmaster.8 /usr/local/man/man8 === Compressing manual pages for portmaster-1.25 === Registering installation for portmaster-1.25 # portmaster portmaster: Command not found. # man portmaster Formatting page, please wait...Done. PORTMASTER(8) FreeBSD System Manager's Manual PORTMASTER(8) How can I have it installed and it doesn't work? Man pages are there, the binary doesn't seem to be. _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: More build problems: portmaster and portupgrade not properly working.
At 2008-09-10T03:46:52Z, Desmond Chapman wrote: === Registering installation for portmaster-1.25 # portmaster portmaster: Command not found. After installing a command, do # rehash before invoking the installed command. See tcsh(1). Raghavendra. -- N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portmaster argument question
Hi all, now I am taking a step back, instead of letting portmaster decides which to upgrade, I use the option -i to interactively update the ports. and I found out that -uBdir is different from -u -B -d -i -r, the latter one is the right way. I dont know how to use -R option, since I have tried -R -r but portmaster still upgrade every single port, With -i option, portmaster still re-upgrade gettext, but at least it's moving to new ports that have not been upgraded. this is just my two cents... thanks! TFC On Mon, Jun 9, 2008 at 6:05 PM, Kitche [EMAIL PROTECTED] wrote: Hi, just noticed that I need to update a whole bunch of ports due to gettext issue, I am used to portmaster and henceforth exec portmaster -uBdr gettext\* -x avifile to server this need. however, the update is interrupted and needed to restart, I noticed an option (-R) to allow skipping ports already up to date. so it becomes portmaster -uBdRr gettext\* -x avifile, but i noticed that portmaster still recompile/reinstall gettext and everything that needs it. how can I get this done right?? thank you!! TFC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Yes I would like to know this as well to make sure I m doing it correctly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portmaster argument question
On Mon, 9 Jun 2008 16:56:34 -0400 Tsu-Fan Cheng [EMAIL PROTECTED] wrote: Hi, just noticed that I need to update a whole bunch of ports due to gettext issue, I am used to portmaster and henceforth exec portmaster -uBdr gettext\* -x avifile to server this need. however, the update is interrupted and needed to restart, I noticed an option (-R) to allow skipping ports already up to date. AFAIK all the ports that depend on gettext were version-bumped, so it's not essential to force the upgrade. In other words you can just update those ports that are still out-of-date -just like any other update. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portmaster argument question
Hi, just noticed that I need to update a whole bunch of ports due to gettext issue, I am used to portmaster and henceforth exec portmaster -uBdr gettext\* -x avifile to server this need. however, the update is interrupted and needed to restart, I noticed an option (-R) to allow skipping ports already up to date. so it becomes portmaster -uBdRr gettext\* -x avifile, but i noticed that portmaster still recompile/reinstall gettext and everything that needs it. how can I get this done right?? thank you!! TFC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portmaster argument question
Hi, just noticed that I need to update a whole bunch of ports due to gettext issue, I am used to portmaster and henceforth exec portmaster -uBdr gettext\* -x avifile to server this need. however, the update is interrupted and needed to restart, I noticed an option (-R) to allow skipping ports already up to date. so it becomes portmaster -uBdRr gettext\* -x avifile, but i noticed that portmaster still recompile/reinstall gettext and everything that needs it. how can I get this done right?? thank you!! TFC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Yes I would like to know this as well to make sure I m doing it correctly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portmaster question
Hi, I recently did a binary upgrade from 6.2-RELEASE to 6.3-RELEASE and everything went smoothly. For good measure I decided to do an upgrade of all of my installed ports with the following command: sudo portmaster -Rfda It quit out when failing to build the ImageMagick port which is fine, one thing I am curious of is, the next time I go to run that command, will it still rebuild all of my ports or start off from where it left off the previous run? -- Regards, Terry Sposato [EMAIL PROTECTED] http://www.sucked-in.com GnuPG Key : 0xB7643BC8 Fingerprint: EE92 D9E1 C98E 759F 5991 DFF6 70CE 8936 B764 3BC8 signature.asc Description: OpenPGP digital signature
Re: portmaster question
Terry Sposato wrote: Hi, I recently did a binary upgrade from 6.2-RELEASE to 6.3-RELEASE and everything went smoothly. For good measure I decided to do an upgrade of all of my installed ports with the following command: sudo portmaster -Rfda It quit out when failing to build the ImageMagick port which is fine, one thing I am curious of is, the next time I go to run that command, will it still rebuild all of my ports or start off from where it left off the previous run? if the other ports were updated they wont be updated again. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dependencies in portmaster
[EMAIL PROTECTED] wrote: If you truly are just looking at the dependency list and do not wish to have make do anything, wouldn't this do the trick: http://portsmon.freebsd.org/portdependencytree.py Not quite, because it doesn't show which of the dependencies I have already got installed, and which of those would need to be updated. portmanager -s (ports-mgmt/portmanager) if I've understood your question right I don't know why people keep on ignoring this utility it is quite excellent and doesn't keep breaking things which portupgrade judging by posts to this list does. Perhaps I have something to learn here. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]