7zip: Should DISABLE_RAR condition check be added in 7zip_gcc.mak

Open
#283 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
57/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
build-system

Research direction

Read 7zip_gcc.mak and compare its RAR compile rules with the existing conditional checks in Arc_gcc.mak. Check how DISABLE_RAR and DISABLE_RAR_COMPRESS are used in the GCC build; done means the RAR handlers and crypto objects follow DISABLE_RAR, while decoder and codec-registration objects follow DISABLE_RAR_COMPRESS, including the requested default when DISABLE_RAR is set.

Written by the indexing model from the issue text.

Description

I’m preparing a small build-system change for the GCC Makefile. In 7zip_gcc.mak, the RAR-related compile rules appear to be unconditional, so setting DISABLE_RAR does not prevent those rules from compiling the RAR handlers and crypto objects.

These changes are referenced from Arc_gcc.mak, where this conditional check is already present.

The proposed patch would:

  • Guard the RAR archive handlers and crypto objects with DISABLE_RAR.
  • Guard the RAR decoder and codec-registration objects with DISABLE_RAR_COMPRESS.
  • Set DISABLE_RAR_COMPRESS=1 when DISABLE_RAR is set, while still allowing DISABLE_RAR_COMPRESS to be set independently.

Is this the intended behavior for the GCC build, and is 7zip_gcc.mak the right place to implement it? If so, I can submit the patch as a pull request.

I have checked that the patch applies to this source tree.

Dominant language
C++
Stars
4.6k
Forks
519
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ip7z/7zip

All issues in ip7z/7zip

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.