Skip to content

configure: Fix linker flags for Haiku.#1799

Merged
Dead2 merged 1 commit intozlib-ng:developfrom
mtl1979:haiku-configure
Oct 10, 2024
Merged

configure: Fix linker flags for Haiku.#1799
Dead2 merged 1 commit intozlib-ng:developfrom
mtl1979:haiku-configure

Conversation

@mtl1979
Copy link
Copy Markdown
Collaborator

@mtl1979 mtl1979 commented Sep 27, 2024

Separated from #1798

This makes output of configure build match CMake build.

Summary by CodeRabbit

  • New Features
    • Expanded compatibility to include the Haiku operating system in the configuration script.

This enhancement allows users on Haiku to utilize the application seamlessly alongside other supported operating systems.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Sep 27, 2024

Walkthrough

The pull request introduces an update to the configure script, specifically modifying the case statement that identifies the operating system type. The change adds "Haiku" as a recognized operating system alongside existing options such as "Linux", "GNU", "solaris", and various BSD types. This adjustment influences how the LDSHARED and LDSHAREDFLAGS variables are assigned, thereby enhancing the script's compatibility with the Haiku operating system.

Changes

Files Change Summary
configure Updated the case statement to include "Haiku" as an operating system option.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ConfigureScript
    participant OS

    User->>ConfigureScript: Run configuration
    ConfigureScript->>OS: Determine OS type
    alt OS is Haiku
        ConfigureScript->>ConfigureScript: Set LDSHARED and LDSHAREDFLAGS for Haiku
    else OS is Linux
        ConfigureScript->>ConfigureScript: Set LDSHARED and LDSHAREDFLAGS for Linux
    else OS is GNU
        ConfigureScript->>ConfigureScript: Set LDSHARED and LDSHAREDFLAGS for GNU
    else OS is solaris
        ConfigureScript->>ConfigureScript: Set LDSHARED and LDSHAREDFLAGS for solaris
    else OS is BSD
        ConfigureScript->>ConfigureScript: Set LDSHARED and LDSHAREDFLAGS for BSD
    end
    ConfigureScript->>User: Configuration complete
Loading

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
configure (1)

Line range hint 1-3880: Consider comprehensive testing for Haiku OS support

While the addition of Haiku to the list of supported operating systems is a good step, it's important to ensure that this change is part of a broader effort to support Haiku throughout the entire build and configuration process.

Here are some suggestions:

  1. Conduct thorough testing on Haiku systems to ensure that the configuration script works as expected.
  2. Review the entire script for any Haiku-specific requirements that might not be covered by the current configuration options.
  3. Update documentation to reflect the addition of Haiku support.
  4. Consider adding Haiku-specific test cases to the project's test suite.

To ensure robust support for Haiku, it might be beneficial to create a separate function or section in the script dedicated to Haiku-specific configurations, similar to how other operating systems are handled in more complex cases.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between b80eb4c and 638fc18.

📒 Files selected for processing (1)
  • configure (1 hunks)
🔇 Additional comments (1)
configure (1)

366-367: Addition of Haiku OS support looks good, but consider potential side effects.

The change adds "Haiku" to the list of operating systems that use specific shared library flags. This is a positive addition for supporting the Haiku operating system. However, there are a few points to consider:

  1. The change seems to treat Haiku the same as Linux, GNU, and Solaris. Verify that this is the correct behavior for Haiku.
  2. Ensure that the LDSHARED and LDSHAREDFLAGS variables are appropriate for Haiku.
  3. Consider if any other parts of the configuration script need to be updated to fully support Haiku (e.g., specific compiler flags, library paths, etc.).

To verify the completeness of Haiku support, please run the following script:

This will help identify if there are other places in the script where Haiku-specific configurations might be needed.

✅ Verification successful

Haiku OS support is correctly implemented with no additional configurations needed.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for other potential Haiku-specific configurations
grep -n "Haiku" configure

Length of output: 81

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.16%. Comparing base (b80eb4c) to head (638fc18).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1799      +/-   ##
===========================================
+ Coverage    33.09%   33.16%   +0.07%     
===========================================
  Files           66       66              
  Lines         5490     5490              
  Branches      1225     1225              
===========================================
+ Hits          1817     1821       +4     
- Misses        3408     3416       +8     
+ Partials       265      253      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Dead2 Dead2 merged commit 22a4cbb into zlib-ng:develop Oct 10, 2024
@Dead2 Dead2 mentioned this pull request Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants