forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding easyconfigs: PBZIP2-1.1.13-GCCcore-12.3.0.eb and patches: PBZI…
…P2-1.1.13_makefile-hardening.patch
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
easybuild/easyconfigs/p/PBZIP2/PBZIP2-1.1.13-GCCcore-12.3.0.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Author: Jasper Grimm (UoY) | ||
easyblock = 'ConfigureMake' | ||
|
||
name = 'PBZIP2' | ||
version = '1.1.13' | ||
|
||
homepage = 'http://compression.great-site.net/pbzip2' | ||
description = """PBZIP2 is a parallel implementation of the bzip2 block-sorting | ||
file compressor that uses pthreads and achieves near-linear speedup on SMP | ||
machines. The output of this version is fully compatible with bzip2 v1.0.2 or | ||
newer (ie: anything compressed with pbzip2 can be decompressed with bzip2). | ||
PBZIP2 should work on any system that has a pthreads compatible C++ compiler | ||
(such as gcc). It has been tested on: Linux, Windows (cygwin & MinGW), Solaris, | ||
Tru64/OSF1, HP-UX, OS/2, OSX, and Irix. | ||
""" | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '12.3.0'} | ||
|
||
source_urls = ['https://launchpad.net/pbzip2/1.1/1.1.13/+download'] | ||
sources = [SOURCELOWER_TAR_GZ] | ||
patches = ['%(name)s-%(version)s_makefile-hardening.patch'] | ||
checksums = [ | ||
{'pbzip2-1.1.13.tar.gz': '8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6'}, | ||
{'PBZIP2-1.1.13_makefile-hardening.patch': 'd493c0757c445f91960c62f735b90f83951b2e26f0b7359aa5898a95024dbcef'}, | ||
] | ||
|
||
builddependencies = [('binutils', '2.40')] | ||
|
||
dependencies = [('bzip2', '1.0.8')] | ||
|
||
skipsteps = ['configure'] | ||
|
||
installopts = 'PREFIX=%(installdir)s' | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/pbzip2', 'share/man/man1/pbzip2.1'], | ||
'dirs': [], | ||
} | ||
|
||
moduleclass = 'tools' |
29 changes: 29 additions & 0 deletions
29
easybuild/easyconfigs/p/PBZIP2/PBZIP2-1.1.13_makefile-hardening.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Author: William Grzybowski <[email protected]> | ||
Subject: Fix build for debug and hardening, do not install symlinks. | ||
Last-Update: 2019-07-10 | ||
--- pbzip2.orig/Makefile 2019-07-08 18:46:10.382725910 -0300 | ||
+++ pbzip2/Makefile 2019-07-08 18:46:24.886865907 -0300 | ||
@@ -19,3 +19,3 @@ | ||
# Optimization flags | ||
-CXXFLAGS = -O2 | ||
+CXXFLAGS += $(CPPFLAGS) | ||
|
||
@@ -49,9 +49,6 @@ | ||
CXXFLAGS += $(CXXFLAGS_PTHREAD) | ||
|
||
|
||
-# Linker flags | ||
-LDFLAGS = | ||
- | ||
|
||
# External libraries | ||
LDLIBS = -lbz2 | ||
@@ -81,8 +81,6 @@ | ||
if ( test ! -d $(DESTDIR)$(PREFIX)/share/man/man1 ) ; then mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 ; fi | ||
cp -f pbzip2 $(DESTDIR)$(PREFIX)/bin/pbzip2 | ||
chmod a+x $(DESTDIR)$(PREFIX)/bin/pbzip2 | ||
- ln -s -f pbzip2 $(DESTDIR)$(PREFIX)/bin/pbunzip2 | ||
- ln -s -f pbzip2 $(DESTDIR)$(PREFIX)/bin/pbzcat | ||
cp -f pbzip2.1 $(DESTDIR)$(PREFIX)/share/man/man1 | ||
chmod a+r $(DESTDIR)$(PREFIX)/share/man/man1/pbzip2.1 | ||
|