#65716 closed defect (fixed)
gramps: Failed to destroot gramps: app.executable gramps does not exist
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | dbevans (David B. Evans) | |
Port: | gramps |
Description
gramps doesn't destroot:
Error: Failed to destroot gramps: app.executable gramps does not exist
Change History (5)
comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)
Cc: | dbevans added; mascguy removed |
---|---|
Owner: | changed from dbevans to mascguy |
comment:2 follow-up: 3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
The question is: does that symlink exist when the app portgroup is looking for it? I think it does not. What creates the symlink? I think it's the post-destroot block created by the python portgroup. The problem is that post-destroot blocks run in the order in which they're created. The app portgroup's post-destroot block is created the moment the app portgroup is included, so it runs first. The python portgroup's post-destroot block is created the moment python.versions
is set, which is after the app portgroup is included.
You could tell the app portgroup that the executable is wherever that symlink would point to.
comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)
Replying to ryandesign:
The question is: does that symlink exist when the app portgroup is looking for it? I think it does not. What creates the symlink? I think it's the post-destroot block created by the python portgroup. The problem is that post-destroot blocks run in the order in which they're created. The app portgroup's post-destroot block is created the moment the app portgroup is included, so it runs first. The python portgroup's post-destroot block is created the moment
python.versions
is set, which is after the app portgroup is included.
Ideally the app pg should use a callback, to delay such setup until after previous inclusions. Are you aware of any ports/scenarios that might be problematic, if we were to go that route?
comment:4 Changed 2 years ago by Christopher Nielsen <mascguy@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Weird, a symlink should be created in
${prefix}/bin
, to the python script. And indeed, that's occurring for me locally, when installing. (Tested both with and without trace mode, and it's properly created in both cases.)Worst-case, I'll update the portfile to create the symlink, if needed. But first I'll take a look at the python build, to see if we're missing something.