139ef [Solved] portmaster hints - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old July 24th, 2010, 01:15
bigearsbilly bigearsbilly is offline
Member
 
Join Date: May 2009
Location: England
Posts: 134
Thanks: 2
Thanked 5 Times in 5 Posts
Default portmaster hints

Does anyone have any hints for using portmaster.
Is it actually any good for anything?

Every time I use it, like tonight, I spend 8 hours trying to get my system to
work again.
I have currently resorted to using the twm window manager trying to fix all the things
portmaster breaks. At least it didn't break X windows.

Nearly everything I touch after using portmaster requests an earlier library/port.
So now I'm writing /etc/libmap.conf files.


It's a real pain.

Last edited by bigearsbilly; July 26th, 2010 at 14:07.
Reply With Quote
  #2  
Old July 24th, 2010, 01:21
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

It's actually a great tool. Can't even remember the last time I broke anything.

Did you read /usr/ports/UPDATING before updating?
Reply With Quote
  #3  
Old July 24th, 2010, 03:08
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,140
Thanks: 43
Thanked 700 Times in 578 Posts
Default

Search the forums. Most issues with the ports tree arise from people blindly using -a and/or -f, not reading /usr/ports/UPDATING before beginning, not doing things in small batches, and not reading relevant man pages (ports(7), portmaster(8) for starters).

For example, using the following portmaster options is highly recommended: -b -d -w
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.

Last edited by phoenix; July 26th, 2010 at 19:43.
Reply With Quote
  #4  
Old July 26th, 2010, 09:59
bigearsbilly bigearsbilly is offline
Member
 
Join Date: May 2009
Location: England
Posts: 134
Thanks: 2
Thanked 5 Times in 5 Posts
Default

well I guess all tools are good if you know how to use 'em!

Having a powercut mid stream probably didn't help.
I've read all the docs, I even have the book, Absolute FreeBSD.
Monday morning still at it.

phew!
Reply With Quote
  #5  
Old July 26th, 2010, 10:46
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Quote:
Originally Posted by bigearsbilly View Post
Nearly everything I touch after using portmaster requests an earlier library/port.
You're doing it wrong.

Quote:
So now I'm writing /etc/libmap.conf files.
Don't. Fix the problem, don't try to circumvent it.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #6  
Old July 26th, 2010, 13:14
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,816
Thanks: 29
Thanked 1,883 Times in 1,329 Posts
Default

I would really suggest you wipe your current ports and start over again. Read:

man portmaster | less +/" Using portmaster to do a complete reinstallation of all your ports"

You could consider using a /usr/loca/etc/portmaster.rcfile to speed things up. It is described here:

man portmaster | less +/^FILES

I use this one (stripped):

Code:
           # Always save the backup packages of the old port (-b)
BACKUP=bopt

           # Always delete stale distfiles without prompting (-d)
ALWAYS_SCRUB_DISTFILES=dopt

           # Arguments to pass to make (-m)
PM_MAKE_ARGS='-DFORCE_PKG_REGISTER'

           # Save copies of old shared libraries (recommended) (-w)
SAVE_SHARED=wopt

           # Install a package if available (-P or packages)
PM_PACKAGES=first

           # Suppress the build confirmation message (no-confirm)
PM_NO_CONFIRM=pm_no_confirm
Especially the PM_PACKAGES=first is advised, as it will get you up and running really quickly. Make sure you set a sensible PACKAGESITE variable if you're on a -RELEASE.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following 3 Users Say Thank You to DutchDaemon For This Useful Post:
bigearsbilly (July 26th, 2010), biniar (February 1st, 2011), carlton_draught (October 31st, 2010)
  #7  
Old July 26th, 2010, 13:45
bigearsbilly bigearsbilly is offline
Member
 
Join Date: May 2009
Location: England
Posts: 134
Thanks: 2
Thanked 5 Times in 5 Posts
Default [solved]

thanks chaps, most helpful.
yes I started building a .rc file for portmaster but thanks DutchDaemon for the hints
I will try them.

I guess there's no substitute for hard work.
Thanks guys I'll get on with it.

I like the --list-origins. I guess that would be a way
of loading a consistent set of ports after a fresh install.

edit: I can't figure out how to mark as [solved].

Last edited by bigearsbilly; July 26th, 2010 at 14:06.
Reply With Quote
  #8  
Old July 26th, 2010, 13:54
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Quote:
Originally Posted by bigearsbilly View Post
edit: I can't figure out how to mark as [solved].
Edit your first post in this thread. Go to "advanced".
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #9  
Old July 26th, 2010, 14:08
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,816
Thanks: 29
Thanked 1,883 Times in 1,329 Posts
Default

Quote:
Originally Posted by bigearsbilly View Post
I like the --list-origins. I guess that would be a way
of loading a consistent set of ports after a fresh install.
Yes, I have this in all of my crontabs everywhere:

Code:
0 22 * * *	/usr/local/sbin/portmaster --list-origins > /root/ports_today
Of course, that /root/ports_today is also backed up every day.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
carlton_draught (November 18th, 2010)
  #10  
Old July 27th, 2010, 12:18
bigearsbilly bigearsbilly is offline
Member
 
Join Date: May 2009
Location: England
Posts: 134
Thanks: 2
Thanked 5 Times in 5 Posts
Default

you are a lucky man DutchDaemon.
I've never found a working environment here in england that
uses FreeBSD. Always linux now, occasional solaris.

BTW I managed to get myself out of the hole without reinstalling all
the ports.
thanks chaps.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd-updates and linker.hints WildChild Installing & Upgrading 3 February 8th, 2013 01:29
milter-greylist config hints qsecofr Web & Network Services 1 June 15th, 2010 06:26
OSNEWS: Google Hints at HTML5 Video Version of YouTube graudeejs Multimedia 48 May 20th, 2010 00:55
what I must do portmaster do not ask me yes or no mfaridi Installation and Maintenance of FreeBSD Ports or Packages 1 May 12th, 2009 10:05
Making sense of snd_hda device.hints Brandybuck System Hardware 1 February 18th, 2009 07:31


All times are GMT +1. The time now is 16:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0