New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14579 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

p5-dbd-mysql: add mysql5-devel support

Reported by: ebgssth@… Owned by: narf_tm@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: mysql perl Cc:
Port:

Description

p5-dbd-mysql currently doesn't work with mysql5-devel. Please change this to use mysql5-devel when it's installed on the machine.

Attachments

mysql5.diff (3.4 KB) - added by ebgssth@… 5 years ago.

Change History

comment:1 Changed 5 years ago by ebgssth@…

This was not as easy as I thought. I tried building DBD::mysql with MySQL 5.1.23, current mysql-devel version but it failed with these error

dbdimp.c: In function 'mysql_st_next_results':
dbdimp.c:2763: error: 'NET' has no member named 'last_errno'
dbdimp.c: In function 'mysql_st_fetch':
dbdimp.c:3365: error: 'NET' has no member named 'last_errno'
make: *** [dbdimp.o] Error 1

dbdimp.c: In function 'mysql_st_next_results':
dbdimp.c:2763: error: 'NET' has no member named 'last_errno'
dbdimp.c: In function 'mysql_st_fetch':
dbdimp.c:3365: error: 'NET' has no member named 'last_errno'
make: *** [dbdimp.o] Error 1

This is because MySQL5.1.23 has renamed et->last_err* to net->client_last_err*. See http://bugs.mysql.com/bug.php?id=34655

This problem is already fixed and will be in 5.1.24-rc. Until it released, we need a patch to revert the variable names.

http://mysql.bkbits.net:8080/mysql-5.1/?PAGE=cset&REV=47c6f5a2BwqDa9RrRzHtmo9cSUYwgw

Changed 5 years ago by ebgssth@…

comment:2 Changed 5 years ago by ebgssth@…

Backported MySQL5.1 Changeset 1.2551 to mysql5-devel/Portfile.

And changed p5-dbd-mysql to use mysql5-devel when it is installed

comment:3 Changed 5 years ago by jmr@…

  • Owner changed from macports-tickets@… to narf_tm@…
  • Cc narf_tm@… removed

comment:4 Changed 5 years ago by ryandesign@…

  • Summary changed from Please add mysql5-devel support to p5-dbd-mysql to p5-dbd-mysql: add mysql5-devel support

I will apply a patch to mysql5-devel 5.1.23-rc to fix this. See #14387 for progress on this issue.

comment:5 Changed 5 years ago by ebgssth@…

No answer from the maintainer more than a week. Could someone with commit right checkin this for me? I really need this patch to be commited for using another requested port, innotop

comment:6 Changed 5 years ago by narf_tm@…

  • Status changed from new to closed
  • Resolution set to fixed

Applied patch file in changeset [35113].

comment:7 Changed 4 years ago by anonymous

  • Milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.