8000 fix #1557: no QR code by aleflm · Pull Request #1609 · firoorg/firo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix #1557: no QR code #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aleflm
Copy link
Contributor
@aleflm aleflm commented May 15, 2025

PR intention

QREncode library does not compile whether we want it or not. This fixes the issue.

#1557

Copy link
coderabbitai bot commented May 15, 2025

"""

Walkthrough

A new package group variable qrencode_packages was added to depends/packages/packages.mk. The qrencode package build was migrated from an autoconf-based system to a CMake-based system with updated source URL, patch application, build options, and post-install cleanup. A patch was introduced to update CMakeLists.txt minimum version and fix package name casing.

Changes

File(s) Change Summary
depends/packages/packages.mk Added qrencode_packages=qrencode variable declaration.
depends/packages/qrencode.mk Switched download URL from GitHub to official site; replaced autoconf build with CMake build; added patch application; updated build flags and configuration commands; added post-install cleanup removing share directory.
depends/patches/qrencode/cmake_fixups.patch Raised minimum CMake version from 3.1.0 to 3.5; corrected find_package(Iconv) to find_package(ICONV) in CMakeLists.txt.

Poem

🐇 In fields of code where changes bloom,
A new package group finds room.
From autoconf's old winding trail,
To CMake's path, swift as a gale.
Patch in paw, the build's refined,
QR codes now neatly aligned! 🌸✨
"""

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

@aleflm aleflm changed the title fix 1557: no QR code fix #1557: no QR code May 15, 2025
Copy link
@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

🧹 Nitpick comments (1)
depends/packages/packages.mk (1)

13-13: Add QRencode package group—verify inclusion in build.

The new qrencode_packages=qrencode entry follows existing naming patterns. Please confirm that this group is actually pulled into your default build or the appropriate platform-specific targets. If you intend QRencode as a default dependency, consider updating the main packages list:

-packages:=boost openssl libevent gmp zlib backtrace tor bls-dash
+packages:=boost openssl libevent gmp zlib backtrace tor bls-dash qrencode
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between efe9940 and 7283eab.

📒 Files selected for processing (1)
  • depends/packages/packages.mk (1 hunks)

@reubenyap reubenyap requested a review from psolstice May 19, 2025 09:39
@aleflm aleflm force-pushed the dev/aleflm/fix-1557 branch 2 times, most recently from cd799cb to aa0820c Compare May 19, 2025 13:59
@aleflm aleflm force-pushed the dev/aleflm/fix-1557 branch from aa0820c to a1bfbd0 Compare May 19, 2025 14:06
Copy link
@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

🧹 Nitpick comments (1)
depends/packages/qrencode.mk (1)

12-12: Warning suppression for compilation

Compiler flags have been added to suppress specific warnings that might otherwise halt the build. While this allows the compilation to proceed, it would be ideal to address the root causes of these warnings in a future update if possible.

Consider investigating and fixing the underlying causes of these warnings in the future rather than suppressing them, especially the implicit function declarations which can lead to runtime issues on different architectures.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aa0820c and a1bfbd0.

📒 Files selected for processing (3)
  • depends/packages/packages.mk (1 hunks)
  • depends/packages/qrencode.mk (2 hunks)
  • depends/patches/qrencode/cmake_fixups.patch (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • depends/patches/qrencode/cmake_fixups.patch
🚧 Files skipped from review as they are similar to previous changes (1)
  • depends/packages/packages.mk
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Build for Windows (CMake)
  • GitHub Check: Build for Linux (CMake)
  • GitHub Check: Build for macOS (CMake)
  • GitHub Check: Create Source Distribution
🔇 Additional comments (7)
depends/packages/qrencode.mk (7)

3-5: Source URL and package identification updated correctly

The changes update the download path to the official source, update the file name pattern, and provide the correct SHA256 hash for verification. These changes are essential for the package to be downloaded and verified correctly.


9-11: CMake build configuration properly set up

The configuration has been migrated from autoconf to CMake with appropriate options:

  • Disabling unnecessary components (tools, tests, profiling, coverage)
  • Explicitly disabling PNG support
  • Disabling iconv dependency

These options help streamline the build and reduce unnecessary dependencies.


16-16: Updated preprocessing to apply the new patch

The preprocessing step now applies the new patch instead of using the previous method. This is consistent with the migration to CMake-based building.


21-21: CMake configuration command

The configuration command has been replaced with a CMake invocation specifying both source and build directories as the current directory. This is standard practice for CMake projects.


32-34: Post-installation cleanup added

A post-processing step has been added to remove the share directory after installation. This is good practice to eliminate unnecessary files that won't be used.


1-34:

✅ Verification successful

Overall transition to CMake build system is well-executed

The migration from autoconf to CMake has been implemented thoroughly with appropriate configuration options and build steps. The changes address the compilation issues mentioned in the PR objectives while maintaining a clean build process.

One thing to note: The AI summary mentions a new package group variable qrencode_packages=qrencode was added to depends/packages/packages.mk, but this change is not visible in the current file under review. Please ensure that change was properly implemented in the other file.


🏁 Script executed:

#!/bin/bash
# Check if the packages.mk file contains the new package group variable
if [ -f "depends/packages/packages.mk" ]; then
  echo "Checking for qrencode_packages in packages.mk"
  grep -n "qrencode_packages" depends/packages/packages.mk
else
  echo "packages.mk file not found at expected location"
fi

Length of output: 229


qrencode_packages variable confirmed

The entry qrencode_packages=qrencode is present in depends/packages/packages.mk:13. The CMake migration in depends/packages/qrencode.mk is well-configured, and no further changes are needed. Approving the code changes.


6-6:

✅ Verification successful

New patch file introduced

A new patch file cmake_fixups.patch is now being referenced. According to the summary, this patch updates the CMakeLists.txt to fix the minimum required CMake version and corrects casing issues.


🏁 Script executed:

#!/bin/bash
# Check if the patch file exists and examine its contents
if [ -f "depends/patches/qrencode/cmake_fixups.patch" ]; then
  echo "Patch file exists"
  cat depends/patches/qrencode/cmake_fixups.patch
else
  echo "Patch file does not exist at expected location"
fi

Length of output: 757


Patch Verification Complete – No Issues Found

The new patch file depends/patches/qrencode/cmake_fixups.patch is present and correctly applied. It updates CMakeLists.txt to:

  • Bump cmake_minimum_required from 3.1.0 to 3.5
  • Correct the casing of find_package(ICONV)
  • Fix various developer warning messages

All changes match the intended fix. Approving these updates.

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.

3 participants
0