Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#17192 closed defect (worksforme)

mysql-5.0.67_1 Error upgrading from 5.0.51a_0

Reported by: jeff@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: upgrade Cc:
Port: mysql5

Description

Trying to upgrade from 5.0.51a_0 has repeatedly failed for me for the last few months.

I'm running OS X 10.5.5 on an Intel MBP.

$ port outdated
The following installed ports are outdated:
mysql5                         5.0.51a_0 < 5.0.67_1      
$ sudo port upgrade outdated
--->  Building mysql5 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql5/work/mysql-5.0.67" && make all " returned error 2
Command output: Making all in Docs
make[2]: Nothing to be done for `all'.
Making all in cmd-line-utils
Making all in libedit
sh ./makelist -h ./vi.c > vi.h.tmp && \
        mv vi.h.tmp vi.h
./makelist: line 81: 
        BEGIN {
            printf("/* Automatically generated file, do not edit */\n");
            printf("#ifndef %s\n#define %s\n", "_h_vi_c", "_h_vi_c");
        }
        /\(\):/ {
            pr = substr($2, 1, 2);
            if (pr == "vi" || pr == "em" || pr == "ed") {
                name = substr($2, 1, index($2,"(") - 1);
#
# XXX:  need a space between name and prototype so that -fc and -fh
#       parsing is much easier
#
                printf("protected el_action_t\t%s (EditLine *, int);\n", name);
            }
        }
        END {
            printf("#endif /* %s */\n", "_h_vi_c");
        }: No such file or directory
cat: stdout: Broken pipe
make[3]: *** [vi.h] Error 127
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Unable to upgrade port: 1

Attachments (1)

mysql5.txt.bz2 (49.9 KB) - added by jeff@… 15 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 15 years ago by jeff@…

Cc: jeff@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: jeff@… removed
Owner: changed from macports-tickets@… to ryandesign@…

Assigning to maintainer. Reporter is automatically Cc'ed.

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Hmm. I can't exactly tell what its complaint is. Can you clean mysql5 and try again, this time with debug output, and attach it here? I can compare that with my system and see what's different.

sudo port clean mysql5
sudo port -d upgrade mysql5 2>&1 | tee ~/Desktop/mysql5.txt
bzip2 ~/Desktop/mysql5.txt

Then attach mysql5.txt.bz2 from your desktop to this ticket. Thanks.

Changed 15 years ago by jeff@…

Attachment: mysql5.txt.bz2 added

comment:4 Changed 15 years ago by jeff@…

Well, I wish I had thought about running 'clean' before. It seems to have fixed whatever issue I was having. I anyway attached the debug log in case it is of interest.

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

I'm glad you got it to work!

Looking back at your original error message, it looks like it was failing in the command sh ./makelist -h ./vi.c > vi.h.tmp && mv vi.h.tmp vi.h which is trying to make vi.h out of vi.c, and it's complaining that vi.c doesn't exist. Perhaps this is because there was not enough disk space to extract the file at the time you originally extracted the port months ago, or maybe something earlier in the build process deleted or moved that file. Whatever the cause, since it corrected itself when you cleaned and tried again, I'll close the ticket.

comment:6 Changed 15 years ago by jeff@…

I do frequently run low on disk space, so your theory could very well be true. Anyway, thanks for your help!

comment:7 Changed 15 years ago by blb@…

This is actually an instance of the Tcl env bug, if you look at the makelist script, just before the output given by port, is a variable $AWK, then the error message "No such file or directory". See, eg, this -users post.

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.