Opened 18 years ago

Closed 18 years ago

#5986 closed defect (fixed)

BUG: port 1.2 doesn't understand gnome-vfs Portfile

Reported by: yaseppochi (Stephen J. Turnbull) Owned by: gnome-darwinports@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: rhwood@…
Port:

Description

port version => 1.200 port info gnome-vfs => 2.12.2

Portfiles and base updated ca. 2005-12-07 03:00 UTC base rebuilt and reinstalled

port upgrade gnome-vfs complains immediately:

Error: Error executing darwin_7: invalid command name "post-patch-append" Error: Unable to upgrade port: 1

Moving the post-patch-append code into the post-patch target allowed the build to start.

The build succeeded, but the install failed with

papa% port -u upgrade gnome-vfs Error: Checking installed version failed: list must have an even number of elements

Change History (9)

comment:1 Changed 18 years ago by mww@…

Cc: rhwood@… added
Owner: changed from darwinports-bugs@… to gnome-darwinports@…
Summary: port 1.2 doesn't understand gnome-vfs PortfileBUG: port 1.2 doesn't understand gnome-vfs Portfile

comment:2 Changed 18 years ago by rhwood@…

I just commited a changed portfile with minor syntax change that may help. Please test.

comment:3 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

(In reply to comment #1)

I just commited a changed portfile with minor syntax change that may help.

Please test.

No such luck. It seems that (a) the install corrupted the registry, so I can no longer do _any_ operations (such as installed and upgrade) that require checking the installed version,

papa% port -d installed gnome-vfs DEBUG: list must have an even number of elements

while executing

"array set receipt_$ref $receipt_contents"

(procedure "receipt_flat::open_entry" line 85) invoked from within

"${darwinports::registry.format}::open_entry $name $version $revision $variants"

(procedure "open_entry" line 4) invoked from within

"open_entry $iname $iversion $irevision $ivariants"

(procedure "registry::installed" line 13) invoked from within

"registry::installed $portname $composite_version" Error: /opt/local/bin/port: port installed failed: list must have an even number of elements

and (b) if I use "port install" I get the same error about post-patch-append not being a valid command:

papa% port install gnome-vfs Error: Error executing darwin_7: invalid command name "post-patch-append" Error: /opt/local/bin/port: Status 1 encountered during processing.

I've also tried several variations on the theme of specifying the version, and none of them help.

comment:4 Changed 18 years ago by rhwood@…

New syntax change that needs testing.

In CVS as of 140952ZDEC2005.

The sections that used to be post-patch-append are now covered by variant_isset tests in the post-patch section.

comment:5 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

(In reply to comment #2)

(In reply to comment #1)

I just commited a changed portfile with minor syntax change that may help.

Please test.

No such luck. It seems that (a) the install corrupted the registry, so I can no longer do _any_ operations (such as installed and upgrade) that require checking the installed version,

papa% port -d installed gnome-vfs DEBUG: list must have an even number of elements

while executing

I got port to recognize gnome-vfs by editing the receipt files and adding a trailing newline. However, it was unable to uninstall either 2.12.2_0+darwin_7 or 2.11.1.1_0, although it could deactivate them. This left me wedged again, as now it thought that both were installed, and it would not activate either nor would it upgrade or install 2.12.2_0, getting this error:

Error: Target com.apple.install returned: Registry error: gnome-vfs 2.12.2_0+darwin_7 already registered as installed. Please uninstall it first. Error: Status 1 encountered during processing.

OK, we don't respond to kindness, let's try nuclear weapons. I'm just going to remove everything under /opt/local/var/db that looks like it belongs to gnome-vfs.

(In reply to comment #3)

New syntax change that needs testing.

In CVS as of 140952ZDEC2005.

The sections that used to be post-patch-append are now covered by

variant_isset tests in the post-patch

section.

Uh-oh. Since you didn't bump the revision, port doesn't think anything has changed, and instead of rebuilding, it just unpacked the existing tarball. So let's add a revision number. Nope, that doesn't help, not even with port -f. OK, we're back to blasting the obstacles: port -f uninstall gnome-vfs; port clean --all gnome-vfs. ... oh, *now* I get a syntax error for the misspelling "revison". Not triggered by upgrade or uninstall, only by clean. Hm. Let's fix the typo, bump the revision to 42 for good luck, and do the clean anyway.

Finally! Everything worked.

comment:6 Changed 18 years ago by blb@…

Since the 'post-patch-append' bug was fixed and the receipt issue is covered by bug 6085 can this be closed?

comment:7 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

(In reply to comment #5)

Since the 'post-patch-append' bug was fixed and the receipt issue is covered

by bug 6085 can this be

closed?

From my point of view, yes. I have no remaining issues that are specific to gnome-vfs.

comment:8 Changed 18 years ago by rhwood@…

I see no need to keep this bug open.

Stephen J Turnbull: please close this bug, marking it resolved.

Thank you.

comment:9 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.