Opened 14 years ago

Closed 7 years ago

Last modified 7 years ago

#26486 closed defect (fixed)

Error attempting to install portfile with non-integer revision

Reported by: geychaner@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.4.4
Component: base Version: 1.9.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: ikiwiki

Description

I am trying to debug/modify an existing portfile, to fix some outstanding bugs. When I attempt to use the modified portfile, at the end of the install, I get:

--->  The following versions of ikiwiki are currently installed:
--->      ikiwiki @3.20100831_1.1+perl5_10
Error: Target org.macports.activate returned: Registry error: Invalid version specified. Please specify a version as recorded in the port registry.
Log for ikiwiki is at: /opt/local/var/macports/logs/_Users_eychaner_ports_www_ikiwiki/main.log
Error: Status 1 encountered during processing.

How do I update the port registry? I did a "portindex" on my ports directory. I couldn't find anything useful about this in the MacPorts guide.

Change History (10)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Summary: Error attempting to install modified portfileError attempting to install portfile with non-integer revision
Type: requestdefect

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

So you're saying you modified the ikiwiki portfile to include a noninteger revision, and MacPorts let you install it, but it won't let you uninstall it?

comment:3 Changed 14 years ago by geychaner@…

No, it wouldn't let me install (well, activate) it in the first place. At the activation stage, it gave the error. Once I changed the revision back to an integer, it worked fine. My mistake, really, though the error message is non-helpful (and the lack of validation of the value during portindex is annoying).

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, so you could install it, but not activate it. Could you uninstall it?

We should certainly add a lint warning for noninteger revisions. I'm not certain whether anything should be done at portindex time.

comment:5 Changed 14 years ago by geychaner@…

Actually, I don't know whether I could uninstall it. I was just testing, so I rsync'd from the backup copy. I wasn't actually sure what went wrong at the time.

comment:6 Changed 14 years ago by jmroot (Joshua Root)

There is a lint warning already. Would be nice to catch this at runtime well before the activation stage.

comment:7 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:8 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:9 Changed 7 years ago by jmroot (Joshua Root)

comment:10 Changed 7 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.4.4
Note: See TracTickets for help on using tickets.