You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xuxin930 (via GitHub)" <gi...@apache.org> on 2023/08/23 12:41:00 UTC

[GitHub] [nuttx] xuxin930 opened a new pull request, #10379: cmake:replace custom_patch_target with PATCH_COMMAND

xuxin930 opened a new pull request, #10379:
URL: https://github.com/apache/nuttx/pull/10379

   ## Summary
   > this patch is a part of this  issue https://github.com/apache/nuttx/issues/10241
   - delete the .git condition that cause duplication of fetching stage.
   - replace custom_patch_target with PATCH_COMMAND.
   - remove custom_patch_target dependencies.
   ## Impact
   
   ## Testing
   fetch for the first time and compile repeated
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] anchao commented on a diff in pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on code in PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#discussion_r1303745607


##########
libs/libxx/libcxx.cmake:
##########
@@ -18,10 +18,28 @@
 #
 # ##############################################################################
 
-if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx/.git)
+if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx)
 
   set(LIBCXX_VERSION 12.0.0)
 
+  set(LIBCXX_PATCH_COMMAND
+      patch -p0 -d ${CMAKE_CURRENT_LIST_DIR} <
+      ${CMAKE_CURRENT_LIST_DIR}/0001-Remove-the-locale-fallback-for-NuttX.patch

Review Comment:
   You can locally disable and enable code formatting by using the special comments
   
   ```
   # cmake-format: off
   code block
   # cmake-format: on
   ```
   
   https://cmake-format.readthedocs.io/en/latest/format-features.html



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xuxin930 commented on pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xuxin930 (via GitHub)" <gi...@apache.org>.
xuxin930 commented on PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#issuecomment-1690865371

   > @xuxin930 please rebase your patch.
   
   DONE


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xuxin930 commented on a diff in pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xuxin930 (via GitHub)" <gi...@apache.org>.
xuxin930 commented on code in PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#discussion_r1303763835


##########
libs/libxx/libcxx.cmake:
##########
@@ -18,10 +18,28 @@
 #
 # ##############################################################################
 
-if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx/.git)
+if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx)
 
   set(LIBCXX_VERSION 12.0.0)
 
+  set(LIBCXX_PATCH_COMMAND
+      patch -p0 -d ${CMAKE_CURRENT_LIST_DIR} <
+      ${CMAKE_CURRENT_LIST_DIR}/0001-Remove-the-locale-fallback-for-NuttX.patch

Review Comment:
   > can we merge into one line?
   
   i don't think it's good, if so, this line will be very long.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xuxin930 commented on a diff in pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xuxin930 (via GitHub)" <gi...@apache.org>.
xuxin930 commented on code in PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#discussion_r1303764474


##########
libs/libxx/libcxx.cmake:
##########
@@ -18,10 +18,28 @@
 #
 # ##############################################################################
 
-if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx/.git)
+if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx)
 
   set(LIBCXX_VERSION 12.0.0)
 
+  set(LIBCXX_PATCH_COMMAND
+      patch -p0 -d ${CMAKE_CURRENT_LIST_DIR} <
+      ${CMAKE_CURRENT_LIST_DIR}/0001-Remove-the-locale-fallback-for-NuttX.patch

Review Comment:
   > https://cmake-format.readthedocs.io/en/latest/format-features.html
   
   thanks a lot, this is very useful



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#issuecomment-1691931775

   @raiden00pl does this patch work for you?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#issuecomment-1690235664

   @xuxin930 please rebase your patch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#discussion_r1303739206


##########
libs/libxx/libcxx.cmake:
##########
@@ -18,10 +18,28 @@
 #
 # ##############################################################################
 
-if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx/.git)
+if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx)
 
   set(LIBCXX_VERSION 12.0.0)
 
+  set(LIBCXX_PATCH_COMMAND
+      patch -p0 -d ${CMAKE_CURRENT_LIST_DIR} <
+      ${CMAKE_CURRENT_LIST_DIR}/0001-Remove-the-locale-fallback-for-NuttX.patch

Review Comment:
   can we merge into one line?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xuxin930 commented on a diff in pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "xuxin930 (via GitHub)" <gi...@apache.org>.
xuxin930 commented on code in PR #10379:
URL: https://github.com/apache/nuttx/pull/10379#discussion_r1302976311


##########
libs/libxx/libcxx.cmake:
##########
@@ -18,10 +18,28 @@
 #
 # ##############################################################################
 
-if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx/.git)
+if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/libcxx)
 
   set(LIBCXX_VERSION 12.0.0)
 
+  set(LIBCXX_PATCH_COMMAND
+      patch -p0 -d ${CMAKE_CURRENT_LIST_DIR} <
+      ${CMAKE_CURRENT_LIST_DIR}/0001-Remove-the-locale-fallback-for-NuttX.patch

Review Comment:
   @anchao 
   there is a code-style problem here.
   if cmake-format is used, the statement will be modified to :
   ```cmake
   set(LIBCXX_PATCH_COMMAND
       patch
       -p0
       -d
       ${CMAKE_CURRENT_LIST_DIR}
       <
       ....
   )
   ``` 
   readability gets worse.
   should we also use whitelist for cmake files?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] raiden00pl merged pull request #10379: cmake:replace custom_patch_target with PATCH_COMMAND

Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl merged PR #10379:
URL: https://github.com/apache/nuttx/pull/10379


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org