Example make.conf's problem.

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

Example make.conf's problem.

Postby fender0107401 » 01 Sep 2010, 15:45

From [file]/usr/share/examples/etc/make.conf[/file]:

Code: Select all
#SUP_UPDATE=
#
#SUP=            /usr/bin/csup
[color="Red"]#SUPFLAGS=       -g -L 2[/color]
#SUPHOST=        cvsup.uk.FreeBSD.org
#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile


I think "-g" is redundant.

csup(1) do not support this option.

Why it is still listed in the example make.conf file?

Code: Select all
> csup -g
Usage: csup [options] supfile
  Options:
    -1           Don't retry automatically on failure (same as "-r 0")
    -4           Force usage of IPv4 addresses
    -6           Force usage of IPv6 addresses
    -A addr      Bind local socket to a specific address
    -b base      Override supfile's "base" directory
    -c collDir   Subdirectory of "base" for collections (default "sup")
    -d delLimit  Allow at most "delLimit" file deletions (default unlimited)
    -h host      Override supfile's "host" name
    -i pattern   Include only files/directories matching pattern.
                   May be repeated for an OR operation.  Default is
                   to include each entire collection.
    -k           Keep bad temporary files when fixups are required
    -l lockfile  Lock file during update; fail if already locked
    -L n         Verbosity level (0..2, default 1)
    -p port      Alternate server port (default 5999)
    -r n         Maximum retries on transient errors (default unlimited)
    -s           Don't stat client files; trust the checkouts file
    -v           Print version and exit
    -z           Enable compression for all collections
    -Z           Disable compression for all collections


Someone told me that csup(1) supported this option before, but abandon it now(I am not sure about this).

Since I still run FreeBSD 8.0 release, I don't know whether 8.1 or current branch's example make.conf file still contains "-g" option.

I think maybe the corresponding developer forgot to update this example file.
Just be yourself.
User avatar
fender0107401
Member
 
Posts: 300
Joined: 17 Nov 2008, 03:57
Location: China, Beijing.

Postby SirDice » 01 Sep 2010, 15:50

fender0107401 wrote:I think "-g" is redundant.

csup(1) do not support this option.

Why it is still listed in the example make.conf file?

Because cvsup does have that option. And cvsup was the way to do it before csup was added to the base.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16149
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby DutchDaemon » 01 Sep 2010, 16:26

In other words, the -g flag is in there for compatibility between cvsup and csup. It is silently ignored by csup.
User avatar
DutchDaemon
Old Fart
 
Posts: 10461
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby phoenix » 01 Sep 2010, 19:40

On the flip side, now that csup has been added to the base for more than 1 major version, perhaps it's time to update the includes docs and examples to remove historical cruft?

Submitting doc PRs for this may be desirable, if for no other reason than starting the discussion. :)
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby fender0107401 » 02 Sep 2010, 04:53

I sent a report through http://www.freebsd.org/send-pr.html.

Seems the web page is more easy to use than send-pr(1).
Just be yourself.
User avatar
fender0107401
Member
 
Posts: 300
Joined: 17 Nov 2008, 03:57
Location: China, Beijing.


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 3 guests