Arvind Kandpal created CASSANDRA-21688:
------------------------------------------

             Summary: Fix update-netbeans-classpaths.sh script failing on Linux 
due to macOS sed syntax (5.0, 4.1, 4.0)
                 Key: CASSANDRA-21688
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21688
             Project: Apache Cassandra
          Issue Type: Bug
            Reporter: Arvind Kandpal
            Assignee: Arvind Kandpal


The ide/nbproject/update-netbeans-classpaths.sh script completely fails on 
Linux/Ubuntu environments. It currently uses the sed -i '' command, which is 
specific to macOS (BSD). On Linux (GNU sed), this syntax throws an error and 
breaks the script.

*Affected Branches:* cassandra-5.0, cassandra-4.1, cassandra-4.0

*Proposed Fix:* Replace the macOS-only sed -i '' syntax with a cross-platform 
temp-file approach (sed ... > tmp && mv tmp original). This issue is already 
resolved in trunk, so we can simply update this script in the older branches to 
match the logic used in trunk



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to