pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/archivers/rar



Module Name:    pkgsrc
Committed By:   vins
Date:           Sun May 25 06:08:30 UTC 2025

Modified Files:
        pkgsrc/archivers/rar: Makefile PLIST distinfo

Log Message:
archivers/rar: update to 7.11

# pkgsrc changes
* install provided man (ascii) in man/man1
* install provided file database in egdir

# upstream changes (since release 6.23)

   Version 7.11

  1. If "Add to archive..." Explorer context menu command is applied to
     multiple archives in the disk root, for example, d:\arc1.rar
     and d:\arc2.rar, WinRAR will propose arc1_rar.rar default name
     for a new archive. Previous version proposed arc1.rar, updating one
     of selected archives instead of creating a new one.

  2. Bugs fixed:

     a) WinRAR 7.10 failed to update solid archives containing a folder
        record placed before a file record. It issued the checksum error
        message and aborted processing.

        As a result of this fix, this version preserves the original position
        of such folders after updating and doesn't move them to the end
        of archive as WinRAR 7.10 did;

     b) when extracting a file from CAB archive over an existing file,
        existing files were overwritten, but not truncated.
        So if existing file was larger than extracted, existing file data
        had been left at the end of the extracted file;

     c) if SFX module from "Advanced SFX options" dialog was stored
        in the compression profile, it was applied as is, even if archive
        format was changed after selecting the profile. It could result
        in SFX module mismatching the archive format;

     d) choosing a value in bytes from drop down list associated
        with archive dialog "Split to volumes, size" field didn't set
        units to bytes automatically;

     e) if SFX "TextDone" command was used together with "Silent"
        and "TempMode" commands, the completion message was sometimes
        displayed behind other opened windows;

     f) if symlink pointing at an executable was started from WinRAR shell,
        the executable Mark of the Web data was ignored. We are thankful
        to Shimamine Taihei of Mitsui Bussan Secure Directions, Inc
        for reporting this issue.

   Version 7.10

   1. "Settings/General" dialog page is split to "Settings/Interface"
      and "Settings/System" pages. Dialog navigation uses vertical tabs
      instead of horizontal.

   2. WinRAR sets the dark interface mode if "Color mode" option
      in "Settings/Interface" is set to "Dark". This option can enable
      dark and light modes unconditionally or use Windows color mode settings.

   3. "Large memory pages" option in "Settings/System" dialog and -mlp
      command line switch enable using 2 MB memory pages instead of
      default 4 KB, when allocating large memory areas in RAR archive
      format compression and extraction routines.

      It allows to improve archiving and, in some cases, extraction speed.
      Typically the performance gain is more significant for bigger
      compression dictionaries and slower compression methods.

      This feature requires "Lock pages in memory" privilege
      and if it is missing, WinRAR proposes to assign it to the current
      user account, making it available for other software too.
      Windows restart is necessary to activate the newly assigned privilege.

   4. "Zone value only" option in "Settings/Security" dialog controls
      if archive Mark of the Web propagation includes only the security zone
      value or all available fields.

      While additional fields, such as a download location or IP address,
      might help to identify a file source, they can be a privacy concern
      if file is shared with other persons.

   5. Switch -om[-|1][=list] controls Mark of the Web propagation
      in WinRAR and console RAR command line mode.

   6. Windows Vista and 32-bit Windows are not supported anymore.
      WinRAR requires Windows 7 x64 or later.

      Unlike WinRAR, 32-bit self-extracting modules are still provided
      as a part of 64-bit installation package.

   7. "Auto", "Always on" and "Disable" choices are now available
      for "Delta compression" and "Executable compression" options
      in "Advanced compression parameters" dialog.

      To improve the compression speed, "Auto" applies these options
      depending on the compression method, such as disabling them
      for "Fastest" and "Fast" methods. Use "Always on" to enable them
      for all methods.

   8. Name of environment variable to store the default set of RAR switches
      is changed from "RAR" to "RARINISWITCHES". It is rather typical
      for batch scripts to use "RAR" environment variable name to store
      RAR executable pathname, which led to the name conflict previously.

   9. "Completion message title" and "Completion message text" options
      on "Text" page of "Advanced SFX options" dialog allow to define
      a custom message displayed on the successful completion of SFX archive
      extraction.

      This message can also be added with "TextDone" script command.

      SFX logo and icon options are moved to the new "Logo and icon" page
      of "Advanced SFX options" dialog. Dialog navigation uses vertical tabs
      instead of horizontal.

  10. Windows 11 context menu:

      a) compression profiles in the new context menu are placed above
         extraction commands, similarly to the legacy context menu;

      b) separator lines are inserted between archive open, extraction
         and archiving command groups.

  11. When extracting a file with NTFS "Compressed" attribute,
      this attribute is assigned in the beginning of file extraction.
      Typically it reduces the extraction time compared to assigning it
      after writing the file data.

  12. When adding files to existing RAR archive, folders previously stored
      in such archive are moved to a position after newly added files.
      So folder timestamps are set after extracting all files and are not
      modified when creating files inside of these folders.

  13. Temporary file isn't created anymore for "rar ch -tl" command if other
      switches or archive parameters do not imply the archive modification.
      Modification time of newest archived file is set directly to original
      archive file, without copying the archive data. It reduces disk write
      and processing time.

  14. If archive is truncated at recovery record or quick open information
      service blocks, the additional message with truncated block type
      is displayed after the standard "Unexpected end of archive".

  15. RAR compression algorithm can use multiple Windows processor groups
      to utilize up to maximum supported 64 logical processors.
      It can improve RAR compression speed on systems with logical
      processors number exceeding 64 and not multiple of 64.

      Previously the maximum number of logical processors was limited
      to a single processor group size, such as 36 for 72 processors.

  16. Additionally to size, a percent of archive size is also displayed
      for recovery record in "Show information" command.

      For RAR 5.0 archives it is the exact value specified when creating
      the recovery record. For older RAR formats it is the approximate value
      calculated from the available data.

  17. When opening a nested archive from another archive opened in WinRAR,
      Mark of the Web data will be assigned to nested archive unless
      "Propagate Mark of the Web" option in WinRAR "Settings/Security"
      is set to "Never". Previously it was assigned only if this option
      was set to "For all files" or to "For user defined types" and list
      of user defined types included the archive extension.

      Also "For office files" and "For executable and office files" lists
      now include popular archive extensions supported by WinRAR.

      Assigning Mark of the Web data to nested archives allows to propagate
      it to files extracted from such archives, which wasn't done by default
      in previous versions.

      We are thankful to Qize Wang (ADLab of VenusTech) for bringing this
      issue to our attention.

  18. Bugs fixed:

      a) if new files have been added to existing semi-solid RAR archive
         created with -se or -s switches, such files could be damaged.
         This issue doesn't affect usual solid archives created with -s,
         also as non-solid archives;

      b) even though the long range search isn't used with -m1 "fastest"
         compression method, switches -m1 -mcl+ or -m1 -mcl with 256MB
         or larger compression dictionary still allocated memory required
         for long range search algorithm;

      c) if "Remove redundant folders from extraction path" option was on
         when extracting a file from archive subfolder, clicking on ".."
         in the file list afterwards displayed the folder with the archive
         file instead of parent folder inside of archive;

      d) if application was started from archive and created multiple files
         with monotonically growing date, WinRAR could issue archive update
         prompts for every created file instead of a single prompt.

   Version 7.01

   1. Bugs fixed:

      a) updating an encrypted file in a solid RAR archive produced
         a corrupt archive if updated file was the first in archive,
         no password was specified when starting updating and file name
         encryption in the updated archive wasn't enabled;

      b) WinRAR 7.00 crashed after switching to "Flat folders view" mode
         from archive subfolder;

      c) switch -ep4 duplicated the specified path instead of excluding it
         when extracting;

      d) if archive created by Unix RAR version contained symlinks with
         path separator characters in target paths, these characters could be
         broken when modifying such archive with Windows RAR;

      e) invalid file name was displayed in file rename and file execute
         WinRAR error messages;

      f) SFX "Shortcut" command failed to recognize empty parameters
         defined like "Shortcut=D,"",folder", while correctly recognizing
         such parameters without quote marks like "Shortcut=D,,folder";

      g) volume reconstruction didn't work in WinRAR.exe if "rc" command
         was specified with .rev file, such as "WinRAR rc arc.part1.rev".
         Unlike RAR, WinRAR required to use only .rar file name here.

   Version 7.00

   1. Compression dictionary sizes larger than 1 GB are supported
      for RAR archive format. Depending on the amount of physically
      available memory, dictionary up to 64 GB can be selected.

      Not power of 2 dictionary sizes can be specified for dictionaries
      exceeding 4 GB. So we are not limited to 4, 8, 16, 32, 64 series
      and can use values like 5 GB or 22 GB.

      Archives with dictionaries exceeding 4 GB can be unpacked only
      by WinRAR 7.0 or newer. 64-bit WinRAR version is needed to unpack
      archives with dictionaries exceeding 1 GB.

      Increasing the dictionary size can improve the compression ratio
      for large files with distant repeated blocks, like virtual machine
      disk images. It also can be efficient for sets of large similar files
      in a solid archive, such as a collection of software ISO images
      differing by version or localization.

   2. WinRAR issues a prompt allowing to cancel or continue if dictionary
      size in extracted RAR archive exceeds "Maximum dictionary size
      allowed to extract" parameter in "Settings/Compression".
      It is done to prevent the unexpected excessive memory allocation.

      In the command line mode by default WinRAR refuses to unpack archives
      with dictionary exceeding 4 GB. Use -md or -mdx to allow
      unpacking dictionaries up to and including the specified size.
      Unlike -md, -mdx is applied to extraction only and can be
      added to RAR environment variable, not affecting archiving commands.

   3. "Define dictionary sizes" dialog in "Settings/Compression" can be used
      to customize dictionary sizes proposed in the drop down list associated
      with "Dictionary size" field in "Archive name and parameters" dialog.

   4. Alternate search algorithm, optimized to locate longer and more distant
      repeated data blocks, can be used when creating RAR archives.
      It helps to improve the compression ratio and sometimes speed
      for redundant data like big text files.

      It increases memory usage and might reduce the compression speed
      for some types of data. It can be turned on or off with
      "Long range search" options in "Advanced compression parameters" dialog
      or with -mcl[+|-] switch. If "Auto" option is selected, WinRAR applies
      the long range search depending on the compression method, dictionary
      size and other parameters.

      This algorithm is required for dictionaries exceeding 4 GB
      and turning it off is ignored for such dictionaries.

   5. Much slower and more exhaustive repeated data search and compression
      algorithm can be enabled with "Exhaustive search" option
      in "Advanced compression parameters" dialog or with -mcx switch.
      It might provide the additional compression gain for some types of
      redundant data, but at much lower compression speed.

      Long range search is needed to implement this mode efficiently,
      so the exhaustive search option activates it automatically.

      Both long range and exhaustive search option do not affect
      the compatibility of created archives. So if dictionary size
      is in 128 KB - 4 GB range, archives created with these search options
      can be unpacked by all WinRAR versions beginning from 5.0.

   6. Maximum path length limit is increased from 2047 to 65535 characters.

   7. Creating archives in RAR 4.x format isn't supported anymore.
      Options and switches specific for this format are removed.
      It doesn't affect RAR 4.x archives decompression, which is included
      into WinRAR.

   8. "Propagate Mark of the Web" option in "Settings/Security" dialog
      controls assigning the archive Mark of the Web to extracted files.
      It is possible to prohibit propagating, allow it for several
      predefined file groups, for all files or for files matching user
      defined file masks.

      Mark of the Web is the security zone information added by Internet
      browsers to downloaded files. It can be used by various software
      for security purposes.

      It is supported only by GUI WinRAR. Console RAR doesn't propagate
      Mark of the Web regardless of this option.

   9. "Attributes" column can be enabled in "Settings/File list/Columns".
      It displays file attribute abbreviations, such as 'A' for "Archive"
      and 'D' for directory.

      If file attribute isn't among those recognized by WinRAR,
      the numeric value of file attributes is also displayed.
      This value uses hexadecimal format for Windows attributes
      or octal format for Unix attributes.

  10. "Benchmark" command allows to specify the exact number of threads
      and copy results to clipboard. Information about WinRAR and Windows
      versions, CPU and memory is added to benchmark window.

  11. "Remove redundant folders from extraction path" option
      in "Settings/Paths" is now applicable also to extraction commands
      invoked from WinRAR user interface and to multiple archives
      unpacked to separate folders. It removes a destination path
      component, only if its name matches both the archive name and root
      archived folder name, provided that there are no other folders
      or files in archive root.

      For example, it will remove one of "Pictures" in the destination path
      if we unpack Pictures.rar containing the root "Pictures" folder
      to "Pictures\" destination.

      Previously it worked only for a single archive extracted from
      context menu and didn't check if archived folder name matches
      the last destination path component.

  12. "Word wrap in comment" option in "Interface" options group
      in "Settings/General" toggles the word wrap mode in archive comment
      window.

  13. Dictionary size data in archive information dialog is now available
      for .bz2, .lz, .tar.bz2, .tar.gz, .tar.lz, .tar.zst archives.

  14. Switch -ol- prohibits archiving and extracting symbolic links.

  15. Switches -sl[u] and -sm[u] recognize [k|K|m|M|g|G|t|T]
      size units for kilobytes, thousands of bytes, megabytes, millions
      of bytes, gigabytes, billions of bytes, terabytes, trillions of bytes.
      If unit character is 'b', 'B' or not present, bytes are assumed.

      Previously these switches accepted bytes only.

  16. SFX TempMode command accepts the optional @set:user parameter
      allowing to modify temporary folder permissions, so only the current
      user can access it. It prohibits a local user to replace files
      in a temporary folder if SFX is started under another account.

      It also can be enabled with "Restrict folder access" option
      in "Advanced SFX options/Modes" dialog.

      Some installers might fail to start in a folder created with
      @set:user parameter.

  17. File permissions and NTFS alternate streams are not saved for
      hard link entries. They are saved only for the source file these
      entries refer to. It allows to reduce the archive size, because
      such file properties are automatically propagated to hard links
      copies when extracting.

  18. Keyboard shortcuts, such as Ctrl+A to select all files or Alt+E to
      unpack found archives, are now functional in "Search results" window
      also while search is still in progress. Previously they were available
      only after completing search.

  19. Switch -v[unit] recognizes 't' and 'T' as terabytes and
      trillions of bytes for volume size units.

  20. Warning is issued if leading '-' character is missing in a parameter
      specified in "Additional switches" field of WinRAR archiving
      and extraction dialogs. Also it is issued for parameters lacking '-'
      in RAR environment variable and rar.ini file.

      Previously such malformed parameters were ignored silently.

  21. "Convert archives" command displays the smooth total operation progress.
      Previously the total progress was updated abruptly after converting
      an archive and was visible only when processing multiple archives.

  22. Proper progress is displayed when compressing symbolic link targets.

  23. "Integrate WinRAR into shell" option in WinRAR "Settings/Integration"
      is grayed out if "Global\Integration=0" is present in winrar.ini file.

  24. 64-bit WinRAR version uses 64-bit SFX modules by default.
      64-bit SFX modules are needed to unpack archives with dictionaries
      exceeding 1 GB.

      32-bit modules are renamed to Default32.SFX, Zip32.SFX, WinCon32.SFX.

  25. Maximum allowed dictionary size for archiving and extraction
      can be specified in gigabytes in MaxDictA and MaxDictE variables
      in "HKEY_CURRENT_USER\Software\WinRAR\Policy" Registry key.
      If these variables are smaller than corresponding values defined
      in WinRAR interface, they override interface values.

  26. Console RAR filters out character 27 from screen output. It is done
      for security reasons, because this character can be used to declare
      ANSI escape control sequences in some terminal applications.

      We are thankful to Siddharth Dushantha for bringing this issue
      to our attention.

  27. Bugs fixed:

      a) it was possible to overwrite Mark of the Web, propagated from
         archive to extracted files, and modify its security zone information
         utilizing a specially crafted .rar archive.

         We are thankful to Orange Tsai and NiNi from DEVCORE Research Team
         working with Trend Micro Zero Day Initiative for letting us know
         about this security issue.

         Unlike WinRAR, unrar.dll library doesn't propagate the archive
         Mark of the Web and leaves it to a caller application to assign it
         to extracted files. So unrar.dll isn't affected by this issue;

      b) "User defined archive extensions" field in "Settings/Integration"
         was not saved if winrar.ini was used to store settings
         and WinRAR was started under non-administrator user account.

   Version 6.24

   1. Bugs fixed:

      a) WinRAR and UnRAR.dll extraction command dereferenced a null pointer
         and crashed when processing a zero length archive name
         in the archive metadata stored with -am switch.

         We are thankful to Radoslaw Madej from Check Point software
         for reporting this issue;

      b) WinRAR and UnRAR.dll extraction command overwrote extracted file
         data with contents of ::$DATA NTFS alternate data stream,
         if such stream was present in the archive. In this case
         unpacked data size and checksum could mismatch file size
         and checksum displayed in WinRAR file list. It didn't affect
         file name and type, which were displayed properly.

         We are thankful to Ata Hakcil for reporting this issue.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 pkgsrc/archivers/rar/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/archivers/rar/PLIST
cvs rdiff -u -r1.10 -r1.11 pkgsrc/archivers/rar/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/rar/Makefile
diff -u pkgsrc/archivers/rar/Makefile:1.58 pkgsrc/archivers/rar/Makefile:1.59
--- pkgsrc/archivers/rar/Makefile:1.58  Wed Sep 20 20:15:52 2023
+++ pkgsrc/archivers/rar/Makefile       Sun May 25 06:08:30 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.58 2023/09/20 20:15:52 vins Exp $
+# $NetBSD: Makefile,v 1.59 2025/05/25 06:08:30 vins Exp $
 
-DISTNAME=      rarlinux${EMUL_PLATFORM:S|linux-x86_64|-x64|:S|linux-i386|-x32|}-${PKGVER:S/.//}
-PKGNAME=       rar-${PKGVER}
-PKGVER=                6.23
+DISTNAME=      rarlinux${EMUL_PLATFORM:S|linux-x86_64|-x64|:S|linux-i386|-x32|}-${PKGVERSION_NOREV:S/.//}
+PKGNAME=       rar-7.11
 CATEGORIES=    archivers
 MASTER_SITES=  http://www.rarlabs.com/rar/
 
@@ -18,19 +17,25 @@ NO_BIN_ON_FTP=              ${RESTRICTED}
 EMUL_PLATFORMS=                linux-x86_64
 EMUL_MODULES.linux=    base
 
-NO_BUILD=      yes
-WRKSRC=                ${WRKDIR}/rar
 USE_LANGUAGES= # none
 
-DOCSDIR=               share/doc/rar
+DOCDIR=                share/doc/${PKGBASE}
+EGDIR=         share/examples/${PKGBASE}
+CONF_FILES+=   ${EGDIR}/rarfiles.lst ${PKG_SYSCONFDIR}/rarfiles.lst
+
+PKG_DOCS=      acknow.txt readme.txt whatsnew.txt
+
+NO_BUILD=      yes
+WRKSRC=                ${WRKDIR}/rar
 
-INSTALLATION_DIRS=     bin etc lib ${DOCSDIR}
+INSTALLATION_DIRS=     bin etc lib ${DOCDIR} ${EGDIR} ${PKGMANDIR}/man1
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/rar ${DESTDIR}${PREFIX}/bin/rar
-
        ${INSTALL_LIB} ${WRKSRC}/default.sfx ${DESTDIR}${PREFIX}/lib
-
-       ${INSTALL_DATA} ${WRKSRC}/rarfiles.lst ${DESTDIR}${PREFIX}/${DOCSDIR}
-       ${INSTALL_DATA} ${WRKSRC}/*txt ${DESTDIR}${PREFIX}/${DOCSDIR}
+       ${INSTALL_MAN} ${WRKSRC}/rar.txt                \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rar.1
+       ${INSTALL_DATA} ${PKG_DOCS:S|^|${WRKSRC}/|}     \
+               ${DESTDIR}${PREFIX}/${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/rarfiles.lst ${DESTDIR}${PREFIX}/${EGDIR}
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/archivers/rar/PLIST
diff -u pkgsrc/archivers/rar/PLIST:1.5 pkgsrc/archivers/rar/PLIST:1.6
--- pkgsrc/archivers/rar/PLIST:1.5      Wed Jan 25 16:59:31 2023
+++ pkgsrc/archivers/rar/PLIST  Sun May 25 06:08:30 2025
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.5 2023/01/25 16:59:31 vins Exp $
+@comment $NetBSD: PLIST,v 1.6 2025/05/25 06:08:30 vins Exp $
 bin/rar
 lib/default.sfx
+man/man1/rar.1
 share/doc/rar/acknow.txt
-share/doc/rar/license.txt
-share/doc/rar/rar.txt
-share/doc/rar/rarfiles.lst
 share/doc/rar/readme.txt
 share/doc/rar/whatsnew.txt
+share/examples/rar/rarfiles.lst
+@pkgdir etc

Index: pkgsrc/archivers/rar/distinfo
diff -u pkgsrc/archivers/rar/distinfo:1.10 pkgsrc/archivers/rar/distinfo:1.11
--- pkgsrc/archivers/rar/distinfo:1.10  Wed Sep 20 20:15:52 2023
+++ pkgsrc/archivers/rar/distinfo       Sun May 25 06:08:30 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2023/09/20 20:15:52 vins Exp $
+$NetBSD: distinfo,v 1.11 2025/05/25 06:08:30 vins Exp $
 
-BLAKE2s (rarlinux-x64-623.tar.gz) = 9a34812a0a78ce4b5ba059b8d5caf4c2a8aa346aaa722d7e5d7e4d532ec74764
-SHA512 (rarlinux-x64-623.tar.gz) = 0aa3e9c6b08e12343b1637929a3ce807196205ecfc5f6c98c464f8d8f40c544ec594a3be514a02d0e3a86c0a5d5e68208c993ab9d94d847249547fbb713fcfe2
-Size (rarlinux-x64-623.tar.gz) = 614350 bytes
+BLAKE2s (rarlinux-x64-711.tar.gz) = ded7f4d4f8ef875a7fd1a60f06711344016e6fc81d42a228b154a7f3866d6343
+SHA512 (rarlinux-x64-711.tar.gz) = f779c16649d3d8767c9615c27a3f476dc6ad54fcffa875cf73a18c0e8a3e2796da8f7c61209d641c28123dbef97bdb87004ca9918fc407ea84bf9b86c0f82164
+Size (rarlinux-x64-711.tar.gz) = 738065 bytes



Home | Main Index | Thread Index | Old Index