Opened 8 years ago

Closed 5 years ago

#912 closed bug (fixed)

Build system is missing various dependencies

Reported by: simonmar Owned by:
Priority: high Milestone: 6.12.1
Component: Build System Version: 6.5
Keywords: Cc: claus.reinke@…, sorear
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: N/A Blocked By:
Blocking: Related Tickets:

Description

The build system is missing dependencies, which means that if you change something and recompile, you don't always get a working build. The most common problem is to issue a darcs-all pull followed by make, which may well result in a broken build depending on what changes were pulled.

I'm creating this ticket to keep track of the dependencies that we know are missing, so that maybe one day they could be fixed.

  • re-configuring with a new --prefix will not cause the various tools and scripts that depend on prefix to be rebuilt.
  • package dependencies are not mirrored in the build system: rebuilding base doesn't cause all the other packages to be rebuilt, for example.

The following are probably not feasible/desirable to fix:

  • stage 2 doesn't have a dependency on the packages.
  • the packages don't have a dependency on the .hi file format

Change History (12)

comment:1 Changed 8 years ago by simonmar

  • Priority changed from normal to low

comment:2 Changed 8 years ago by simonmar

  • Milestone set to _|_

comment:3 Changed 7 years ago by igloo

  • Test Case set to N/A

comment:4 Changed 7 years ago by claus.reinke@…

  • Cc claus.reinke@… added

i don't understand how build system issues like this can be set to 'low'? the residues left by 'make distclean' have a similar negative effect. if it was easier to get reliable rebuilds ('make' rather than 'make distclean; make' rather than 'rm *; fresh checkout; fresh configure; make'), there might be less breakage for new commits?

comment:5 Changed 7 years ago by simonmar

It's set to low because solving the problem in general is not realistic, at least with the current build system/tools. However, we'd like to identify specific scenarios that go wrong and fix them, when it's feasible to do so.

comment:6 Changed 7 years ago by sorear

  • Cc sorear added

comment:7 Changed 7 years ago by igloo

In case it isn't clear, the issues this bug is about have been around forever.

distclean residues sound like much simpler things that should be easily fixable.

Incidentally, I've fixed much of the first bullet point ("re-configuring with a new --prefix will not cause the various tools and scripts that depend on prefix to be rebuilt."). I don't know what, if any, remains to be fixed.

comment:8 Changed 7 years ago by claus

i guess i thought of this as a general "recompile might not work" ticket, with a high priority, but a low probability of being fixed completely in a near future milestone. it seems to be the only general build system ticket, so perhaps it would be the right place to collect issues like distclean residues, or anything else that hinders rebuilds? having a limited number of permanent general build-related tickets seems preferable to having large numbers of very specialized tickets?

btw, it took me a moment to figure out how to get all tickets related to "build system". perhaps there could be a preconfigured "by component" list of tickets?

comment:9 Changed 6 years ago by simonmar

  • Architecture changed from Multiple to Unknown/Multiple

comment:10 Changed 6 years ago by simonmar

  • Operating System changed from Multiple to Unknown/Multiple

comment:11 Changed 5 years ago by simonmar

  • Milestone changed from _|_ to 6.12.1
  • Priority changed from low to high

I believe most, if not all, of these issues are fixed in the new build system.

comment:12 Changed 5 years ago by igloo

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

The new build system is now in the HEAD. Please open tickets for any specific problems you find that still exist.

Note: See TracTickets for help on using tickets.