• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/mysql/0007-dont-install-in-mysql-directory.patch
Arnout VandecappelleArnout Vandecappelle committed 7b9c5d65e0d14 Dec 2015
Raw file
Source viewDiff to previous
diff -Nrup mysql-5.1.73.orig/storage/myisammrg/Makefile.am mysql-5.1.73/storage/myisammrg/Makefile.am
 
1
Don't install in mysql directory
2
​
3
Installing libraries in a subdirectory of /usr/lib leads to no end of
4
trouble. It requires either setting a RUN_PATH in the ELF files linked
5
with it or adding the path to ld.so.conf and calling ldconfig on the
6
target.
7
​
8
So to simplify things, put everything in /usr/lib instead of
9
/usr/lib/mysql
10
​
11
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
12
​
13
diff -Nrup mysql-5.1.73.orig/dbug/Makefile.am mysql-5.1.73/dbug/Makefile.am
14
--- mysql-5.1.73.orig/dbug/Makefile.am  2013-11-04 19:52:27.000000000 +0100
15
+++ mysql-5.1.73/dbug/Makefile.am   2015-12-14 00:34:58.567937603 +0100
16
@@ -17,7 +17,7 @@
17
 
18
 INCLUDES =              -I$(top_builddir)/include -I$(top_srcdir)/include
19
 LDADD =                 libdbug.a ../mysys/libmysys.a ../strings/libmystrings.a
20
-pkglib_LIBRARIES =      libdbug.a
21
+lib_LIBRARIES =      libdbug.a
22
 noinst_HEADERS =        dbug_long.h
23
 libdbug_a_SOURCES =     dbug.c sanity.c
24
 EXTRA_DIST =            CMakeLists.txt example1.c example2.c example3.c \
25
diff -Nrup mysql-5.1.73.orig/libmysql/Makefile.shared mysql-5.1.73/libmysql/Makefile.shared
26
--- mysql-5.1.73.orig/libmysql/Makefile.shared  2013-11-04 19:52:27.000000000 +0100
27
+++ mysql-5.1.73/libmysql/Makefile.shared   2015-12-14 00:34:58.567937603 +0100
28
@@ -25,7 +25,7 @@ MYSQLBASEdir=         $(prefix)
29
 ## We'll use CLIENT_EXTRA_LDFLAGS for threaded and non-threaded
30
 ## until someone complains that they need separate options.
31
 LDADD =                @CLIENT_EXTRA_LDFLAGS@ $(target)
32
-pkglib_LTLIBRARIES =       $(target)
33
+lib_LTLIBRARIES =      $(target)
34
 
35
 noinst_PROGRAMS = conf_to_src
36
 
37
diff -Nrup mysql-5.1.73.orig/libmysqld/Makefile.am mysql-5.1.73/libmysqld/Makefile.am
38
--- mysql-5.1.73.orig/libmysqld/Makefile.am 2013-11-04 19:52:27.000000000 +0100
39
+++ mysql-5.1.73/libmysqld/Makefile.am  2015-12-14 00:34:58.567937603 +0100
40
@@ -38,7 +38,7 @@ INCLUDES=     -I$(top_builddir)/include -I$
41
            @condition_dependent_plugin_includes@
42
 
43
 noinst_LIBRARIES = libmysqld_int.a
44
-pkglib_LIBRARIES = libmysqld.a
45
+lib_LIBRARIES =    libmysqld.a
46
 SUBDIRS =      . examples
47
 libmysqld_sources= libmysqld.c lib_sql.cc emb_qcache.cc
48
 libmysqlsources =  errmsg.c get_password.c libmysql.c client.c pack.c \
49
diff -Nrup mysql-5.1.73.orig/mysys/Makefile.am mysql-5.1.73/mysys/Makefile.am
50
--- mysql-5.1.73.orig/mysys/Makefile.am 2013-11-04 19:52:27.000000000 +0100
51
+++ mysql-5.1.73/mysys/Makefile.am  2015-12-14 00:34:58.567937603 +0100
52
@@ -18,7 +18,7 @@ MYSQLSHAREdir =       $(pkgdatadir)
53
 MYSQLBASEdir=      $(prefix)
54
 INCLUDES =     @ZLIB_INCLUDES@ -I$(top_builddir)/include \
55
            -I$(top_srcdir)/include -I$(srcdir)
56
-pkglib_LIBRARIES = libmysys.a
57
+lib_LIBRARIES =    libmysys.a
58
 LDADD =            libmysys.a $(top_builddir)/strings/libmystrings.a $(top_builddir)/dbug/libdbug.a
59
 noinst_HEADERS =   mysys_priv.h my_static.h my_handler_errors.h
60
 libmysys_a_SOURCES =    my_init.c my_getwd.c mf_getdate.c my_mmap.c \
61
diff -Nrup mysql-5.1.73.orig/storage/csv/Makefile.am mysql-5.1.73/storage/csv/Makefile.am
62
--- mysql-5.1.73.orig/storage/csv/Makefile.am   2013-11-04 19:52:27.000000000 +0100
63
+++ mysql-5.1.73/storage/csv/Makefile.am    2015-12-14 00:34:58.563937596 +0100
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.