Package Details: 7-zip 21.07-6

Git Clone URL: https://aur.archlinux.org/7-zip.git (read-only, click to copy)
Package Base: 7-zip
Description: File archiver with a high compression ratio
Upstream URL: https://www.7-zip.org
Keywords: 7-zip 7z 7zip archiver compressor p7zip
Licenses: BSD, LGPL, custom:unRAR
Submitter: post-factum
Maintainer: post-factum
Last Packager: post-factum
Votes: 43
Popularity: 2.28
First Submitted: 2021-03-11 21:16 (UTC)
Last Updated: 2022-05-15 21:20 (UTC)

Dependencies (2)

Required by (1)

Sources (3)

Latest Comments

post-factum commented on 2022-05-15 21:19 (UTC)

Added -Wp,-U_FORTIFY_SOURCE to make RELRO work.

katt commented on 2022-05-15 15:36 (UTC)

Can confirm it still compiles and successfully extracts files.

post-factum commented on 2022-05-15 13:39 (UTC)

As an experiment, I've made an attempt to build 7-zip using meson in -5.

Let me know if it works for you all.

post-factum commented on 2022-05-12 21:35 (UTC)

Applied more hardening, but noticed that there's no RELRO:

RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      Symbols         FORTIFY Fortified       Fortifiable     FILE
No RELRO        Canary found      NX enabled    PIE enabled     No RPATH   No RUNPATH   No Symbols        Yes   6               16              /usr/bin/7zz

No idea what else it needs other than -z relro -z now.

katt commented on 2022-05-12 21:01 (UTC)

@post-factum Seems to work great, thanks for the fast fix!

post-factum commented on 2022-05-12 19:18 (UTC)

I've also added extra hardening, please let me know if it breaks anything.

post-factum commented on 2022-05-12 19:02 (UTC)

@katt should be fixed in -2.

katt commented on 2022-05-12 15:30 (UTC)

Unable to build, probably due to GCC 12:

../../../../C/LzmaEnc.c: In function 'LzmaEnc_CodeOneMemBlock':
../../../../C/LzmaEnc.c:2996:19: error: storing the address of local variable 'outStream' in '*p.rc.outStream' [-Werror=dangling-pointer=]
 2996 |   p->rc.outStream = &outStream.vt;
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../../../../C/LzmaEnc.c:2979:28: note: 'outStream' declared here
 2979 |   CLzmaEnc_SeqOutStreamBuf outStream;
      |                            ^~~~~~~~~
../../../../C/LzmaEnc.c:2979:28: note: 'pp' declared here
cc1: all warnings being treated as errors
make: *** [../../7zip_gcc.mak:1077: b/g_x64/LzmaEnc.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...

Hanabishi commented on 2022-01-07 09:58 (UTC) (edited on 2022-03-25 22:09 (UTC) by Hanabishi)

I created 7-zip-full package, attempting to actually replace p7zip.

post-factum commented on 2021-11-21 21:34 (UTC)

Okay…

Vaporeon commented on 2021-11-21 20:37 (UTC)

Can you please drop the link to 7z so this can be installed alongside p7zip? Since it does not provide p7zip while also conflicting, this package can not be installed at all if you have anything that depends on p7zip.

post-factum commented on 2021-11-21 12:49 (UTC)

@FadeMind the same applies to you as well: no source code is available for v21.05, hence consider marking this package out of date once the source code is available.

crondrift commented on 2021-11-21 12:10 (UTC)

@post-factum Sorry - I was too quick after updating my Windows. Lesson learned :)

post-factum commented on 2021-11-21 11:39 (UTC)

@crondrift no source code is available for v21.05, hence consider marking this package out of date once the source code is available.

post-factum commented on 2021-11-13 18:55 (UTC)

@usrmusicman regarding provides, I did that from the very beginning and got my unfair share of hatred because p7zip and 7-zip are not compatible, hence 7-zip is not supposed to provide p7zip. Also, I cannot guarantee that other AUR apps would behave just fine and do not want to take that responsibility. So, other apps have to indicate that they are fine with using 7-zip explicitly instead, and it is up to their maintainers to do so.

commented on 2021-11-13 17:24 (UTC)

Please consider adding provides=(p7zip) to the PKGBUILD so that apps in the AUR and repos don't break dependencies when installing

post-factum commented on 2021-08-19 06:15 (UTC)

This one is for the official 7-zip. extra/p7zip is an unofficial port.

frealgagu commented on 2021-08-18 21:54 (UTC)

What is the difference between this package and the one in extra/p7zip ?

post-factum commented on 2021-08-15 16:17 (UTC)

OK, pushed here, lets see how it goes.

I've left non-x86_64 arches behind. If there's some interest in how to work those out while keeping the ability for this PKGBUILD to be built in OBS, let me know.

MBK commented on 2021-08-05 21:13 (UTC)

The uasm build (7-zip 21.03-4) works perfectly. Thanks !

post-factum commented on 2021-07-21 17:26 (UTC)

Please check https://build.opensuse.org/package/show/home:post-factum/7-zip for a build with uasm fix and let me know if it works for you correctly.

post-factum commented on 2021-07-21 17:16 (UTC)

Ack, thanks for the hint, will take a look.

justdan96 commented on 2021-07-21 17:00 (UTC)

It looks like a small change is required to get 21.03 alpha to build correctly with UASM: https://github.com/justdan96/7zip_static/blob/main/Dockerfile#L27

post-factum commented on 2021-07-21 08:18 (UTC)

Yes, I know, that'd be something to improve. I already use download_files in some packages.

ugjdgdto commented on 2021-07-21 08:16 (UTC)

I see.

For OBS, download_url is inconvenient. A better alternative is download_files:

<services>
  <service name="download_files" />
</services>

OBS will be able to automatically download the files listed in source=() in PKGBUILD, and you don't have to modify _service file every time when a new version is released.

post-factum commented on 2021-07-21 07:18 (UTC)

Nope, I keep pkgrel in line with my OBS build, and I had to bump it there one more time because of some build server glitch.

ugjdgdto commented on 2021-07-21 07:07 (UTC)

Forgotten to reset pkgrel to 1 when updating the PKGBUILD to 21.03?

post-factum commented on 2021-07-20 12:54 (UTC)

Please check this:

https://build.opensuse.org/package/view_file/home:post-factum/7-zip/PKGBUILD?expand=1

I'm not sure how I should preserve other arches though.

post-factum commented on 2021-07-20 12:04 (UTC)

I'll have a look, thanks.

justdan96 commented on 2021-07-20 11:59 (UTC)

UASM should now be usable from the AUR: https://aur.archlinux.org/packages/uasm/

post-factum commented on 2021-05-07 13:34 (UTC)

Oh well of course I can jump around different branches and repos, but this is not my intention :).

commented on 2021-05-07 13:25 (UTC)

[deleted]

post-factum commented on 2021-05-07 13:18 (UTC)

I don't know how to compile asmc on Linux either. It seems it needs a precompiled asmc binary to bootstrap itself, which is a questionable approach for sustained maintenance.

For UASM, the story is somewhat different. I just cannot build it:

dbgcv.c:20:10: fatal error: 'direct.h' file not found

and similarly I'm not comfortable with using a precompiled binary.

Any tips on having UASM built would be helpful. There's an an outdated package here: https://aur.archlinux.org/packages/uasm/ so either let me know how to fix it or adopt it yourself.

commented on 2021-05-07 13:08 (UTC)

[deleted]

post-factum commented on 2021-05-07 10:14 (UTC)

I'd like to preserve 7z symlink.

Hanabishi commented on 2021-05-07 10:12 (UTC)

Maybe remove p7zip conflict and 7z link? It doesn't compatible anyway and just 7zz is fine, imho.

post-factum commented on 2021-05-07 08:08 (UTC) (edited on 2021-05-07 08:09 (UTC) by post-factum)

Updated based on latest comment here and https://sourceforge.net/p/sevenzip/discussion/45797/thread/7fe6c21efa/.

ATM, the build is without asmc. Also, I have no idea if this works for arches, different from x86_64.

commented on 2021-05-07 06:55 (UTC)

[deleted]

post-factum commented on 2021-05-07 06:23 (UTC)

Good to know, thanks.

yochananmarqos commented on 2021-05-07 01:03 (UTC)

@post-factum @amatwkgs: You neither need p7zip nor need to do anything manually with bsdtar as makepkg will extract it automatically:

==> Retrieving sources...
  -> Found 7z2102-src.7z
==> Validating source files with sha256sums...
    7z2102-src.7z ... Passed
==> Extracting sources...
  -> Extracting 7z2102-src.7z with bsdtar
==> Sources are ready.

commented on 2021-05-07 00:52 (UTC)

[deleted]

Vaporeon commented on 2021-05-06 21:26 (UTC)

Ha! someone should comment about that on there, I don't have an account.

post-factum commented on 2021-05-06 21:23 (UTC)

It is fancy to have source code in .7z :D. If there's no other source, I'll have to use p7zip as a makedep.

post-factum commented on 2021-05-06 21:20 (UTC)

Great, thanks for the heads up. I'll look into it ASAP.

Vaporeon commented on 2021-05-06 21:19 (UTC)

New build is up, this time with source code. https://sourceforge.net/p/sevenzip/discussion/45797/thread/7fe6c21efa/

jpegxguy commented on 2021-03-22 21:38 (UTC)

Just want to mention that there are 2 packages on this:

https://aur.archlinux.org/packages/7-zip/ https://aur.archlinux.org/packages/7zip-bin/

One of them handles different architectures better, but I like the dash in the name :P

commented on 2021-03-14 01:50 (UTC)

[deleted]

simona commented on 2021-03-13 17:49 (UTC)

i think it should be made possible to install this package together with p7zip as this does not fully replace it.

post-factum commented on 2021-03-13 12:43 (UTC) (edited on 2021-03-13 12:44 (UTC) by post-factum)

@leapofazzam Not sure I did other arches correctly. Please check.

FabioLolix commented on 2021-03-13 10:58 (UTC)

@leapofazzam your 7-zip-bin was legit and well made, there was no need to delete it

leapofazzam commented on 2021-03-13 10:51 (UTC)

Please add i686 and arm: https://www.7-zip.org/a/7z2101-linux-x86.tar.xz https://www.7-zip.org/a/7z2101-linux-arm.tar.xz https://www.7-zip.org/a/7z2101-linux-arm64.tar.xz

yochananmarqos commented on 2021-03-12 08:05 (UTC)

@amatwkgs: That's a good point. It should only conflict with p7zip, not provide it.

commented on 2021-03-12 07:35 (UTC)

[deleted]

yochananmarqos commented on 2021-03-11 22:13 (UTC)

This should NOT replace p7zip as it is not an obsolete package. See PKGBUILD: replaces.

somini commented on 2021-03-11 21:32 (UTC)

Once source code is published, this package will build the binary instead of downloading it.

This should be renamed "7-zip-bin" then, if it's installing a binary.

post-factum commented on 2021-03-11 21:18 (UTC)

Announcement: https://sourceforge.net/p/sevenzip/discussion/45797/thread/cec5e63147/

Once source code is published, this package will build the binary instead of downloading it.