Coder Social home page Coder Social logo

Comments (9)

gruelingpine185 avatar gruelingpine185 commented on June 4, 2024

From what I understand, this is only a 3 character fix. I understand that isn't a pressing issue like the others, but it is an issue nonetheless. So may I fix this?

from glfw.

dougbinks avatar dougbinks commented on June 4, 2024

I'm a bit busy at the moment so will just write up some quick info:

I do wish to make a contribution to fix this, but I'm not sure which branch I should base the PR on. Should I do base it off of 3.3-stable since this is the branch I encountered it on or is there a preferred branch for minute things like this?

All PRs should be based off master.

And would a minor fix something like this warrant a change log entry and credits? If so awesome!

Normally yes, unless we think someone is Github credit farming.

Oh, and which branch should be used and what's the difference (or intent) behind master, latest, and 3.3-stable? It's always confused me.

We intend to document this but haven't' gotten around to it yet, here's a short summary:

  • master (also called main which we may switch to in future) this is the primary development branch and should be used as the base for all PRs.
  • latest gets updated to the most recent major, minor or patch release after each release.
  • x.x-stable branched from its release tag on main, receives cherry-picked bug fixes for patch releases in parallel with the next minor or major release.

So may I fix this?

We welcome PRs but they do take time to get merged as there is a lot of outstanding work.

from glfw.

gruelingpine185 avatar gruelingpine185 commented on June 4, 2024

Thanks so much for your response. Sorry I was a little impatient. I'll make the PR and have it close this issue :)

from glfw.

dougbinks avatar dougbinks commented on June 4, 2024

No problem - however do leave this issue open until the PR is merged or this issue is otherwise resolved.

from glfw.

gruelingpine185 avatar gruelingpine185 commented on June 4, 2024

This turned out to be a little more than I can handle considering I do not know cmake very well. I have decided to let the the GLFW team (or anyone else) work on this issue. This is as far as I've gotten:

@@ -9,16 +9,16 @@ string(REGEX REPLACE "\n" ";" files "${files}")
 foreach (file ${files})
   message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
   if (EXISTS "$ENV{DESTDIR}${file}")
-    exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
-                 OUTPUT_VARIABLE rm_out
-                 RETURN_VALUE rm_retval)
+    execute_process(COMMAND CMAKE_COMMAND ARGS "-E rm \"$ENV{DESTDIR}${file}\""
+                    OUTPUT_VARIABLE rm_out
+                    RESULT_VARIABLE rm_retval)
     if (NOT "${rm_retval}" STREQUAL 0)
       MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
     endif()
   elseif (IS_SYMLINK "$ENV{DESTDIR}${file}")
-    EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
-                 OUTPUT_VARIABLE rm_out
-                 RETURN_VALUE rm_retval)
+    execute_process(COMMAND CMAKE_COMMAND ARGS "-E rm \"$ENV{DESTDIR}${file}\""
+                    OUTPUT_VARIABLE rm_out
+                    RESULT_VARIABLE rm_retval)
     if (NOT "${rm_retval}" STREQUAL 0)
       message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"")
     endif()

And it fails to delete the files, exiting with exit code 2: "No such file or directory" although it still exists.


Sources I looked at while trying to get this to work:

from glfw.

gruelingpine185 avatar gruelingpine185 commented on June 4, 2024

I no longer see who put the message up with code that solved the issue, but whoever it was, thank you :)

from glfw.

gruelingpine185 avatar gruelingpine185 commented on June 4, 2024

I just ran it and it got rid of the warnings, but the files remain.

from glfw.

ram-mohan avatar ram-mohan commented on June 4, 2024

I think this is the correct approach,

execute_process(COMMAND ${CMAKE_COMMAND} -E remove "$ENV{DESTDIR}${file}"
                OUTPUT_VARIABLE rm_out
                RESULT_VARIABLE rm_retval)

from glfw.

gruelingpine185 avatar gruelingpine185 commented on June 4, 2024

I can't try to figure it out right now, but I can try tomorrow and see if I have any success with it.

from glfw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.