Re: Problem using Portmaster to upgrade installed ports via packages only
First, Thanks Doug for responding to my mails. > > 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 thought that PM_SU_VERBOSE will explain the errors about my sudo problem. I can use portmaster with sudo only with the command : #sudo portmaster <-options> but not with .portmasterrc, or /etc/portmaster.rc > > 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. I think I have misunderstood the using of PM_SU_VERBOSE. I thought that PM_SU_VERBOSE was the verbose mode of PM_SU_CMD. As you describe in your mail, the using of this option is not applied for my case. > 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. I have apply your advice, and I haven't got problem. Now I can install ports from packages (if available) or from sources. Really, thanks again Doug for your help, and advices. Alexandre. ___ 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
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"
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: 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"
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"