diff options
author | Romain Tartière <romain@FreeBSD.org> | 2011-06-12 19:06:25 +0000 |
---|---|---|
committer | Romain Tartière <romain@FreeBSD.org> | 2011-06-12 19:06:25 +0000 |
commit | e62990bc203f17dc309d9ee4aeaa6b56a23a2fe0 (patch) | |
tree | c51cf11179114c316bacd488d1b0fa34059d925b /misc | |
parent | f884f9fa5ee7ab8faeb6cba2670939473825bfd0 (diff) | |
download | ports-e62990bc203f17dc309d9ee4aeaa6b56a23a2fe0.tar.gz ports-e62990bc203f17dc309d9ee4aeaa6b56a23a2fe0.zip |
Notes
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cdcollect/Makefile | 8 | ||||
-rw-r--r-- | misc/cdcollect/files/patch-src_DBsql.cs | 19 |
2 files changed, 27 insertions, 0 deletions
diff --git a/misc/cdcollect/Makefile b/misc/cdcollect/Makefile index d3d4f1623799..d689757819b2 100644 --- a/misc/cdcollect/Makefile +++ b/misc/cdcollect/Makefile @@ -25,4 +25,12 @@ GCONF_SCHEMAS= cdcollect.schemas USE_GETTEXT= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +post-extract: + ${REINPLACE_CMD} -e 's,SqliteClient,Sqlite,' \ + ${WRKSRC}/src/Makefile.in \ + ${WRKSRC}/src/CDIcon.cs \ + ${WRKSRC}/src/CDItem.cs \ + ${WRKSRC}/src/CompPluginWindow.cs \ + ${WRKSRC}/src/DBsql.cs + .include <bsd.port.mk> diff --git a/misc/cdcollect/files/patch-src_DBsql.cs b/misc/cdcollect/files/patch-src_DBsql.cs new file mode 100644 index 000000000000..8fb253b77e7d --- /dev/null +++ b/misc/cdcollect/files/patch-src_DBsql.cs @@ -0,0 +1,19 @@ + +$FreeBSD$ + +--- src/DBsql.cs.orig ++++ src/DBsql.cs +@@ -958,10 +958,10 @@ + private int sql_command_id (string comm) + { + IDbCommand command = sqlite_connection.CreateCommand (); +- command.CommandText = comm; +- command.ExecuteScalar (); ++ command.CommandText = comm + "; SELECT last_insert_rowid() AS [ID]"; ++ string s = command.ExecuteScalar ().ToString (); + command.Dispose (); +- return (((SqliteConnection)sqlite_connection).LastInsertRowId); ++ return Int32.Parse (s); + } + + private void sql_command (string comm) |