Commit bbb7fa7
committed
Fix postgresql-musl: merge dev into out to eliminate dev↔lib cycle
The postgresql musl cross-build fails with:
error: cycle detected in build of '...-postgresql-musl-17.7.drv'
in the references of output 'dev' from output 'lib'
The lib output (shared libraries) contains baked-in references to
the dev output path, while dev naturally references lib. The
remove-references-to approach didn't resolve it (references may be
in ELF sections or .rodata that survive stripping).
Instead, merge dev into out by removing "dev" from outputs. When
"dev" is absent from outputs, $dev defaults to $out, so headers and
pkgconfig files end up in $out. Downstream packages using
postgresql.dev get postgresql.out (default output for missing output
names). This eliminates the cycle entirely.1 parent b02056a commit bbb7fa7
1 file changed
+6
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
173 | 179 | | |
174 | 180 | | |
175 | 181 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 182 | | |
200 | 183 | | |
201 | 184 | | |
| |||
0 commit comments