Opened 16 years ago

Closed 16 years ago

#18460 closed defect (fixed)

macports.conf and archive mode strangeness

Reported by: admin@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.7.1
Component: base Version: 1.7.0
Keywords: archive Cc:
Port:

Description

Hello, on MacPorts version 1.6 and 1.7 one has to set

portarchivemode=yes

in order for the option to work.

This is inconsistent with all other options in macports.conf. It should be

portarchivemode yes

Attachments (1)

macports.conf (2.9 KB) - added by admin@… 16 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 16 years ago by blb@…

Keywords: archive added
Milestone: Port Bugs

Using

portarchivemode yes

works for me, both on MacPorts 1.7 and trunk. When you set it this way, do you see any error messages? Try a small port, and use -d to get full debug output.

comment:2 Changed 16 years ago by admin@…

Well, debug output does not give more information than I already have:

  • uncommenting "portarchivemode yes" works (I guess that is the same as setting it to "portarchivemode=yes", since that can not be parsed or so)
  • Debug output yields:
 port -d archive agrep 2>&1 >port.out
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/agrep
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/agrep
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: not using configure, so not adding the default universal variant
DEBUG: Requested variant powerpc is not provided by port agrep.
DEBUG: Requested variant darwin is not provided by port agrep.
DEBUG: Requested variant macosx is not provided by port agrep.
DEBUG: Executing org.macports.main (agrep)
DEBUG: Executing org.macports.fetch (agrep)
DEBUG: Executing org.macports.checksum (agrep)
DEBUG: Correct (md5) checksum for agrep-2.04.tar.Z
DEBUG: Executing org.macports.extract (agrep)
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/agrep/agrep-2.04.tar.Z
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_agrep/work" && gzip -dc /opt/local/var/macports/distfiles/agrep/agrep-2.04.tar.Z | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (agrep)
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (agrep)
DEBUG: Executing org.macports.build (agrep)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_agrep/work/agrep-2.04" && bsdmake '
DEBUG: Executing org.macports.destroot (agrep)
DEBUG: Executing destroot_finish
DEBUG: Scanning man1
DEBUG: checking for mtree violations
Error: Target org.macports.archive returned: Archive mode is not enabled!
Error: Status 1 encountered during processing.

So, nothing new here.

comment:3 Changed 16 years ago by blb@…

Can you attach your /opt/local/etc/macports/macports.conf file? Also, do you have anything in ~/.macports?

Changed 16 years ago by admin@…

Attachment: macports.conf added

comment:4 Changed 16 years ago by admin@…

in ~/.macports a file called "history" exists.

comment:5 Changed 16 years ago by blb@…

Ah, I see what's confusing it, there is a tab character after yes on your portarchivemode line; if you remove that, it should be okay. I'll track down why this confuses port as it should be ignoring such whitespace.

comment:6 Changed 16 years ago by admin@…

yes, that solved the problem. thanks.

comment:7 Changed 16 years ago by blb@…

Milestone: MacPorts 1.7.1
Resolution: fixed
Status: newclosed

Fixed on trunk in r47034, merged to 1.7 branch in r47035.

Note: See TracTickets for help on using tickets.