Commit Graph

78 Commits

Author SHA1 Message Date
Piotr Kubaj
66bf6e9e00 archivers/p7zip: fix build on powerpc64
lld 10 reports the following error:
ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol MatchFinder_GetNumAvailableBytes; recompile with -fPIC
>>> defined in LzFind.o
>>> referenced by LzFind.c
>>>               LzFind.o:(MatchFinder_CreateVTable)
2020-03-14 21:04:01 +00:00
Baptiste Daroussin
e9421faa0b First pass at moving manpages to share/man for category a* 2020-01-16 09:34:42 +00:00
Ed Maste
635e6cc2e3 Hoist LDFLAGS_${ARCH} logic into bsd.port.mk
Approved by:	portmgr (bapt)
Sponsored by:	The FreeBSD Foundation
2018-09-18 14:48:48 +00:00
Mahdi Mokhtari
e57258d54e archivers/p7zip: Fix build with lld as /usr/bin/ld on i386
PR:		230210
Reported by:	emaste
Reviewed by:	mat, rakuco, tobik
Approved by:	rakuco (maintainer)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D16813
2018-08-26 11:11:02 +00:00
Raphael Kubo da Costa
fdb73bb664 Add patch for CVE-2018-5996
Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code
of 7-Zip before 18.00 and p7zip can lead to multiple memory corruptions within
the PPMd code, allows remote attackers to cause a denial of service
(segmentation fault) or execute arbitrary code via a crafted RAR archive.

Obtained from:	Debian (link in the patch file)
MFH:		2018Q1
Security:	7a2e0063-0e4e-11e8-94c0-5453ed2e2b49
2018-02-10 11:00:26 +00:00
Raphael Kubo da Costa
79b7e05712 Add patch from CVE-2017-17969
Heap-based buffer overflow in 7zip/Compress/ShrinkDecoder.cpp.

Obtained from:	Debian (link in the actual patch)
MFH:		2018Q1
Security:	6d337396-0e4a-11e8-94c0-5453ed2e2b49
2018-02-10 10:59:11 +00:00
Raphael Kubo da Costa
191e95b340 Add a patch to fix the build with Clang 6.0.
../../../../CPP/Windows/ErrorMsg.cpp:24:10: error: case value evaluates to -2147024809, which cannot be narrowed to type 'DWORD' (aka 'unsigned int') [-Wc++11-narrowing]
        case E_INVALIDARG          : txt = "E_INVALIDARG"; break ;
             ^
    ../../../../CPP/Common/MyWindows.h:89:22: note: expanded from macro 'E_INVALIDARG'
    #define E_INVALIDARG ((HRESULT)0x80070057L)
                         ^

HRESULT causes the macro to be parsed as a signed long, so we need to force it
to be checked as an unsigned long instead.

PR:		224930
2018-01-05 21:45:13 +00:00
Raphael Kubo da Costa
00d638f1e7 Also pass -fPIC for arm and armv6.
Submitted by:	imp
2017-10-07 19:23:17 +00:00
Raphael Kubo da Costa
c0915380f7 Pass -fPIC on armv7 as well.
This fixes the following build error:

/usr/bin/ld: 7zEncode.o(.text+0x2d04): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `_ZTIi@@CXXABI_1.3'
/usr/bin/ld: final link failed: Nonrepresentable section on output
c++: error: linker command failed with exit code 1 (use -v to see invocation)

PR:		222852
Submitted by:	guyyur@gmail.com
2017-10-07 19:10:45 +00:00
Mark Linimon
45cb752a04 Begin deorbit burn of ia64. We have not attempted to build packages for
it for many years.

While here, alphabetize ARCHs, pet portlint, and modernize usages.

Approved by:	portmgr (tier-2 blanket)
2017-06-25 00:29:09 +00:00
Raphael Kubo da Costa
ea69a2179c Update to 16.02.
Remove patches for CVE-2016-2334 and CVE-2016-2335 that were integrated
upstream.
2016-11-30 12:44:03 +00:00
Raphael Kubo da Costa
1428a0fe80 Import upstream patch to fix CVE-2016-9296
Null pointer dereference can cause 7z to crash.

PR:		214940
Reported by:	Sevan Janiyan <venture37@geeklan.co.uk>
MFH:		2016Q4
Security:	48e83187-b6e9-11e6-b6cf-5453ed2e2b49
Security:	CVE-2016-9296
2016-11-30 10:50:13 +00:00
Mathieu Arnold
9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00
Raphael Kubo da Costa
f8420dd1b4 Add patches for CVE-2016-2334 and CVE-2016-2335.
While here, use PORTREVISION?= instead of PORTREVISION= to avoid needlessly
bumping PORTREVISION in archivers/p7zip-codec-rar.

PR:		211114
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
MFH:		2016Q3
Security:	a9bcaf57-4a7b-11e6-97f7-5453ed2e2b49
Security:	d706a3a3-4a7c-11e6-97f7-5453ed2e2b49
2016-07-15 11:25:07 +00:00
Raphael Kubo da Costa
cfb1fe0ede Update to 15.14. 2016-03-14 11:41:38 +00:00
Sunpoet Po-Chuan Hsieh
2a3c3501f5 - Update to 15.09
- Convert to new options target helper
- Use PORTDOCS
- Update patch files

Changes:	http://sourceforge.net/projects/p7zip/files/p7zip/15.09/README/view
PR:		204865
Submitted by:	sunpoet (myself)
Approved by:	rakuco (maintainer)
2015-12-04 14:16:13 +00:00
Mark Felder
302ed8d6de Apply patch to fix directory traversal vulnerability
Submitted by:	ohauer
MFH:		2015Q3
Security:	CVE-2015-1038
Security:	8f5c9dd6-5cac-11e5-9ad8-14dae9d210b8
2015-09-16 20:23:24 +00:00
Alexey Dokuchaev
1f7ed1eed7 It turned out -fPIC is required on sparc64 as well: it dumps core without
it on extraction, which turn breaks e.g. `sysutils/namefix' port.  Do not
bump port revision again as it was bumped just couple of hours ago, which
is just too small in Tier-2 land for which we do not produce any packages
anyways.

Tested on:	flame
2015-09-09 10:56:41 +00:00
Alexey Dokuchaev
e416123292 Compile with -fPIC on PowerPC, otherwise resulting binaries are broken:
Can't load '/usr/local/bin/../libexec/p7zip/7z.dll'
  (/usr/local/bin/../libexec/p7zip/7z.so: Unsupported relocation type 10
  in non-PLT relocations)
2015-09-09 08:38:06 +00:00
Andrew Turner
605de447c0 Adds -fPIC to CFLAGS_aarch64 to a number of ports that already have it
in the amd64 CFLAGS and are failing to build.

Approved by:	bapt
Differential Revision:	https://reviews.freebsd.org/D3321
2015-08-09 22:24:04 +00:00
Dmitry Marakasov
a66dad44b2 - Add CPE info
Approved by:	portmgr blanket
2015-04-24 18:29:27 +00:00
Raphael Kubo da Costa
7ddffbeb41 Update to 9.38.1. 2015-03-08 13:16:25 +00:00
Baptiste Daroussin
161b92dff7 Clean up plist 2014-10-19 23:12:06 +00:00
Antoine Brodin
7720d773f5 Unbreak 2014-07-04 05:35:34 +00:00
Adam Weinberger
fddc18c980 Correct the SLAVE_PORT check. 2014-07-03 19:09:35 +00:00
Adam Weinberger
41fcfb64f9 Reduce unnecessary bsd.port.options.mk inclusions by using OPTIONS helpers.
For liborange, reverse the logic, as I'm pretty sure the OPTIONS were being
used to disable the selected options.

Approved by:	portmgr (blanket)
2014-07-03 19:06:07 +00:00
Olli Hauer
73969bbf79 - fix sanity in CAT archivers
- USE_BZIP2   -> USES=tar:bzip2
 - LICENSE=BSD -> BSD[n]CLAUSE
2014-06-01 07:59:15 +00:00
Raphael Kubo da Costa
c9ea4026d8 Install 7z.so, needed for manipulating all archive formats but RAR.
It was missed during the update in r338410 and basically made p7zip stop
handling any archive type.

Reported by:	Green Dog <fiziologus@gmail.com>
Pointy hat to:	rakuco
2014-01-03 04:21:55 +00:00
Raphael Kubo da Costa
6e99c40ba8 - Modernize and simplify the archivers/p7zip port's Makefile by getting rid
of some sed calls, supporting staging.
- Set LICENSE for the port. [1]
- Get rid of the MINIMAL and MODULES options. They were not very useful and
  its handling was needlessly complicating the Makefile logic. We now always
  build as if MINIMAL was unset.
- Stop installing the p7zip and Client7z wrappers.
- Move the installation of the RAR decompression codec to
  archivers/p7zip-codec-rar, as its source code uses a more restrictive
  license than the LGPL21 used for the rest of the code base.

PR:		ports/185238 [1]
Submitted by:	Hardy Schumacher <hardy.schumacher@gmx.de> [1]
2014-01-02 00:20:19 +00:00
Baptiste Daroussin
b80ec3e204 Add NO_STAGE all over the place in preparation for the staging support (cat: archivers) 2013-09-20 13:11:20 +00:00
Pietro Cerutti
0fb0d4a3b7 - Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category: archivers)
Approved by:	portmgr
2013-02-07 13:04:29 +00:00
Raphael Kubo da Costa
ec8ff07771 Convert to OptionsNG.
PR:		ports/173813
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
Feature safe:	yes
2012-11-25 22:49:35 +00:00
Raphael Kubo da Costa
d047dd4f98 Clean up the headers of the ports I maintain. 2012-10-07 13:59:39 +00:00
Raphael Kubo da Costa
3e00b12630 Update my mail address in the ports I maintain.
Approved by:	avilla
2011-08-28 18:04:48 +00:00
Juergen Lock
31fd162a17 Pass maintainership to submitter.
PR:		ports/155700
Submitted by:	Raphael Kubo da Costa <kubito@gmail.com>
2011-03-19 19:04:15 +00:00
Juergen Lock
b0e9b6ff3a Update to 9.20.1
PR:		ports/155623
Submitted by:	Raphael Kubo da Costa <kubito@gmail.com>
2011-03-17 19:56:29 +00:00
Juergen Lock
cc1e7bda65 - Fix manpage {SHARE_DOC_DIR} ${DOCDIR} as this confuses people.
- Bump PORTREVISION.

PR:		ports/153592
Submitted by:	chris petrik <c.petrik.sosa@gmail.com>
2011-01-01 17:31:57 +00:00
Juergen Lock
c18777fcab Update to 9.13.
PR:		ports/148132
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Feature safe:	yes
2010-06-26 15:06:28 +00:00
Juergen Lock
664dabf887 Add option to build minimal possible executable supporting only 7zip archives.
PR:		ports/140903
Submitted by:	Eugene Perevyazko <john@dnepro.net>
2009-11-26 21:02:41 +00:00
Juergen Lock
230bcf14c6 Update to 9.04.
PR:		ports/139246
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2009-09-30 20:35:33 +00:00
Juergen Lock
5d144dea81 Mark MAKE_JOBS_UNSAFE 2009-03-23 20:56:43 +00:00
Juergen Lock
4daf206329 Update to 4.65
PR:		ports/131697
Submitted by:	Wen Heping <wenheping@gmail.com>
2009-02-15 20:01:30 +00:00
Juergen Lock
709918d9ac Update to 4.61 2008-12-19 18:22:09 +00:00
Juergen Lock
24d75a9944 Update to 4.58
PR:		ports/127159
Submitted by:	chinsan
2008-09-07 11:16:48 +00:00
Andrew Pantyukhin
f1c984112d - Update to 4.57
Approved by:	nox (maintainer, implicit)
2007-12-15 20:01:49 +00:00
Andrew Pantyukhin
ebdcb4a11a - Update to 4.55
Approved by:	nox (maintainer, implicit)
2007-09-15 09:06:38 +00:00
Juergen Lock
ab109ef747 - hw.ncpu seems to be an int, certainly not a size_t...
(This should fix issues on 64 bit big-endian archs, i.e. sparc64.)
- bump PORTREVISION

Noticed by:	naddy
2007-09-04 21:44:23 +00:00
Andrew Pantyukhin
877148c55b - Update to 4.53
Approved by:	nox (maintainer, implicit)
2007-09-01 11:54:27 +00:00
Andrew Pantyukhin
a686be490b - Update to 4.51
Approved by:	nox (maintainer, implicit)
2007-07-26 20:36:09 +00:00
Andrew Pantyukhin
6996164ec0 - Update to 4.49
Approved by:	nox (maintainer, implicit)
2007-07-17 07:10:19 +00:00