Merge lp:~shkn/bake/remove-pkg-config-autogeneration into lp:bake

Proposed by shuerhaaken
Status: Merged
Merged at revision: 476
Proposed branch: lp:~shkn/bake/remove-pkg-config-autogeneration
Merge into: lp:bake
Diff against target: 150 lines (+0/-34)
6 files modified
src/module-vala.vala (+0/-17)
tests/vala-library-complex/expected (+0/-4)
tests/vala-library-install-directory/expected (+0/-4)
tests/vala-library-no-install/expected (+0/-1)
tests/vala-library-override-names/expected (+0/-4)
tests/vala-library-simple/expected (+0/-4)
To merge this branch: bzr merge lp:~shkn/bake/remove-pkg-config-autogeneration
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+157527@code.launchpad.net

Description of the change

Fixes Bug #1162704 - Remove pkg-config autogeneration

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Thanks, I committed this along with a similar commit to remove the autogeneration from the C/C++ library support. Note if you do:
bzr commit -m "Remove pkg-config autogeneration" --fixes lp:1162704
it will automatically link this commit to the bug.

review: Approve
Revision history for this message
shuerhaaken (shkn) wrote :

Ok, next time with --fixes arg.

I'd be glad if you could use --author arg for my contributions next time ;)

I'm sorry I overlooked the pkg-config stuff in gcc module.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Ah, sorry. I thought bzr merge would just set me as the merge contributor, but checking with bzr blame shows it considers the merged branches to be my work. I'll set author from now on.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/module-vala.vala'
2--- src/module-vala.vala 2013-04-05 23:48:29 +0000
3+++ src/module-vala.vala 2013-04-06 21:40:26 +0000
4@@ -48,27 +48,10 @@
5 }
6
7 /* Generate pkg-config file */
8- var filename = "%s-%s.pc".printf (library.name, major_version);
9 var name = library.name;
10- var description = library.get_variable ("description", "");
11- var requires = library.get_variable ("requires", "");
12
13 var include_directory = Path.build_filename (recipe.include_directory, "%s-%s".printf (library.name, major_version));
14
15- rule = recipe.add_rule ();
16- recipe.build_rule.add_input (filename);
17- rule.add_output (filename);
18- rule.add_status_command ("PKG-CONFIG %s".printf (filename));
19- rule.add_command ("@echo \"Name: %s\" > %s".printf (name, filename));
20- rule.add_command ("@echo \"Description: %s\" >> %s".printf (description, filename));
21- rule.add_command ("@echo \"Version: %s\" >> %s".printf (version, filename));
22- rule.add_command ("@echo \"Requires: %s\" >> %s".printf (requires, filename));
23- rule.add_command ("@echo \"Libs: -L%s -l%s\" >> %s".printf (library.install_directory, library.name, filename));
24- rule.add_command ("@echo \"Cflags: -I%s\" >> %s".printf (include_directory, filename));
25-
26- if (library.install)
27- recipe.add_install_rule (filename, Path.build_filename (library.install_directory, "pkgconfig"));
28-
29 var h_filename = library.get_variable ("vala-header-name");
30 if (h_filename == null)
31 h_filename = "%s.h".printf (name);
32
33=== modified file 'tests/vala-library-complex/expected'
34--- tests/vala-library-complex/expected 2013-04-05 23:56:49 +0000
35+++ tests/vala-library-complex/expected 2013-04-06 21:40:26 +0000
36@@ -28,8 +28,6 @@
37 cp libtest.so /usr/lib/libtest.so
38 cp libtest.so.0 /usr/lib/libtest.so.0
39 cp libtest.a /usr/lib/libtest.a
40-mkdir -p /usr/lib/pkgconfig
41-cp test-0.pc /usr/lib/pkgconfig/test-0.pc
42 mkdir -p /usr/include/test-0
43 cp test.h /usr/include/test-0/test.h
44 mkdir -p /usr/share/vala/vapi
45@@ -39,7 +37,6 @@
46 rm -f /usr/lib/libtest.so
47 rm -f /usr/lib/libtest.so.0
48 rm -f /usr/lib/libtest.a
49-rm -f /usr/lib/pkgconfig/test-0.pc
50 rm -f /usr/include/test-0/test.h
51 rm -f /usr/share/vala/vapi/test-0.vapi
52 (exit SUCCESS)
53@@ -50,6 +47,5 @@
54 rm -f test-0.vapi
55 rm -rf .built/
56 rm -f libtest.so
57-rm -f test-0.pc
58 rm -f test.pot
59 (exit SUCCESS)
60
61=== modified file 'tests/vala-library-install-directory/expected'
62--- tests/vala-library-install-directory/expected 2013-04-05 23:35:39 +0000
63+++ tests/vala-library-install-directory/expected 2013-04-06 21:40:26 +0000
64@@ -14,8 +14,6 @@
65 cp libtest.so /usr/lib/test/libtest.so
66 cp libtest.so.0 /usr/lib/test/libtest.so.0
67 cp libtest.a /usr/lib/test/libtest.a
68-mkdir -p /usr/lib/test/pkgconfig
69-cp test-0.pc /usr/lib/test/pkgconfig/test-0.pc
70 mkdir -p /usr/include/test-0
71 cp test.h /usr/include/test-0/test.h
72 mkdir -p /usr/share/vala/vapi
73@@ -25,7 +23,6 @@
74 rm -f /usr/lib/test/libtest.so
75 rm -f /usr/lib/test/libtest.so.0
76 rm -f /usr/lib/test/libtest.a
77-rm -f /usr/lib/test/pkgconfig/test-0.pc
78 rm -f /usr/include/test-0/test.h
79 rm -f /usr/share/vala/vapi/test-0.vapi
80 (exit SUCCESS)
81@@ -36,5 +33,4 @@
82 rm -f test-0.vapi
83 rm -rf .built/
84 rm -f libtest.so
85-rm -f test-0.pc
86 (exit SUCCESS)
87
88=== modified file 'tests/vala-library-no-install/expected'
89--- tests/vala-library-no-install/expected 2013-04-05 23:35:39 +0000
90+++ tests/vala-library-no-install/expected 2013-04-06 21:40:26 +0000
91@@ -20,5 +20,4 @@
92 rm -f test-0.vapi
93 rm -rf .built/
94 rm -f libtest.so
95-rm -f test-0.pc
96 (exit SUCCESS)
97
98=== modified file 'tests/vala-library-override-names/expected'
99--- tests/vala-library-override-names/expected 2013-04-05 23:53:21 +0000
100+++ tests/vala-library-override-names/expected 2013-04-06 21:40:26 +0000
101@@ -14,8 +14,6 @@
102 cp libtest.so /usr/lib/libtest.so
103 cp libtest.so.0 /usr/lib/libtest.so.0
104 cp libtest.a /usr/lib/libtest.a
105-mkdir -p /usr/lib/pkgconfig
106-cp test-0.pc /usr/lib/pkgconfig/test-0.pc
107 mkdir -p /usr/include/test-0
108 cp foo.h /usr/include/test-0/foo.h
109 mkdir -p /usr/share/vala/vapi
110@@ -25,7 +23,6 @@
111 rm -f /usr/lib/libtest.so
112 rm -f /usr/lib/libtest.so.0
113 rm -f /usr/lib/libtest.a
114-rm -f /usr/lib/pkgconfig/test-0.pc
115 rm -f /usr/include/test-0/foo.h
116 rm -f /usr/share/vala/vapi/foo.vapi
117 (exit SUCCESS)
118@@ -36,5 +33,4 @@
119 rm -f foo.vapi
120 rm -rf .built/
121 rm -f libtest.so
122-rm -f test-0.pc
123 (exit SUCCESS)
124
125=== modified file 'tests/vala-library-simple/expected'
126--- tests/vala-library-simple/expected 2013-04-05 23:35:39 +0000
127+++ tests/vala-library-simple/expected 2013-04-06 21:40:26 +0000
128@@ -14,8 +14,6 @@
129 cp libtest.so /usr/lib/libtest.so
130 cp libtest.so.0 /usr/lib/libtest.so.0
131 cp libtest.a /usr/lib/libtest.a
132-mkdir -p /usr/lib/pkgconfig
133-cp test-0.pc /usr/lib/pkgconfig/test-0.pc
134 mkdir -p /usr/include/test-0
135 cp test.h /usr/include/test-0/test.h
136 mkdir -p /usr/share/vala/vapi
137@@ -25,7 +23,6 @@
138 rm -f /usr/lib/libtest.so
139 rm -f /usr/lib/libtest.so.0
140 rm -f /usr/lib/libtest.a
141-rm -f /usr/lib/pkgconfig/test-0.pc
142 rm -f /usr/include/test-0/test.h
143 rm -f /usr/share/vala/vapi/test-0.vapi
144 (exit SUCCESS)
145@@ -36,5 +33,4 @@
146 rm -f test-0.vapi
147 rm -rf .built/
148 rm -f libtest.so
149-rm -f test-0.pc
150 (exit SUCCESS)

Subscribers

People subscribed via source and target branches