build2-packaging / glfw

build2 package for glfw
0 stars 1 forks source link

Unable to build with latest build2 snapshot (build2 0.14.0-a.0.8a7f0c22be9a) #4

Closed Wmbat closed 3 years ago

Wmbat commented 3 years ago

Hello,

I've updated to the latest snapshot of build2 and it seems like this package no longer builds. I get this error

trace: search_existing_file: no existing file for prerequisite /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/:h{glfw3native.?}
trace: search_existing_file: no existing file for prerequisite /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/:h{glfw3native.?}
trace: search_existing_file: no existing file for prerequisite /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/:h{glfw3.?}
trace: search_existing_file: no existing file for prerequisite /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/:h{glfw3.?}
trace: file_rule::match: no existing file for target /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/h{glfw3.h}
error: no rule to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/h{glfw3.h}
  info: target /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/h{glfw3.h} is not declared in any buildfile
  info: perhaps it is a missing source file?
  info: while applying rule c.link to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/libs{glfw.so}
  info: while applying rule bin.lib to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/lib{glfw}
  info: while applying rule alias to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/dir{src/}
  info: while applying rule alias to update /home/wmbat/projects/build2_ports/glfw/glfw/dir{glfw/}
trace: file_rule::match: no existing file for target /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/h{glfw3native.h}
error: no rule to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/h{glfw3native.h}
  info: target /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/h{glfw3native.h} is not declared in any buildfile
  info: perhaps it is a missing source file?
  info: while applying rule c.link to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/libs{glfw.so}
  info: while applying rule bin.lib to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/src/lib{glfw}
  info: while applying rule alias to update /home/wmbat/projects/build2_ports/glfw/glfw/glfw/dir{src/}
  info: while applying rule alias to update /home/wmbat/projects/build2_ports/glfw/glfw/dir{glfw/}

I'm not quite sure what the problem is as I haven't been able to take a proper look at what is causing it. But build2 doesn't seem to find the main header files.

Swat-SomeBug commented 3 years ago

Hi @Wmbat thank you for reporting this. I narrowed it down to the bug in the way the GLFW/h{*} are included. I'm currently doing some tests before pushing in the changes.

Swat-SomeBug commented 3 years ago

Hi @Wmbat I just released 3.3.4+1. Could you please check if version works.

boris-kolpackov commented 3 years ago

The fix works for me and looks correct, so I've pushed 3.3.4+1 from queue to public.

Swat-SomeBug commented 3 years ago

If everything works I will close this issue! Please open a new one in case of problems