Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (1bc9da5e47c2f58abcc4a8272bc1a7bec5fe31cf)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (1bc9da5e47c2f58abcc4a8272bc1a7bec5fe31cf)
  • Date: Wed, 12 Aug 2020 19:04:51 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 3
devel/cutter/BUILD | 2
devel/cutter/DEPENDS | 3
devel/cutter/DETAILS | 21 +++
devel/cutter/HISTORY | 2
devel/cutter/PRE_BUILD | 5
devel/llvm/0001-fix-compile-error-clang.patch | 178
--------------------------
devel/llvm/BUILD | 2
devel/llvm/HISTORY | 4
devel/llvm/PRE_BUILD | 9 -
graphics/mesademos/DETAILS | 3
graphics/mesademos/HISTORY | 4
12 files changed, 49 insertions(+), 187 deletions(-)

New commits:
commit 1bc9da5e47c2f58abcc4a8272bc1a7bec5fe31cf
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

llvm: Replace clang patch by removal of -DPIC

commit f11478cd4113f6bd74f183696826e0141fecd3ec
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

mesademos: Fix SOURCE_URL[0]

commit 97d0e006b520755877c2d8bf75dc1ad5130531b0
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

cutter: new spell, RE Platform powered by radare2

diff --git a/ChangeLog b/ChangeLog
index 4fe746d..f8f15cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2020-08-12 Ismael Luceno <ismael AT sourcemage.org>
+ * devel/cutter: new spell, RE Platform powered by radare2
+
2020-08-11 Ismael Luceno <ismael AT sourcemage.org>
* smgl/runit: new spell, A UNIX init scheme with service supervision
* net/openfortivpn: new spell, Fortinet-compatible VPN client
diff --git a/devel/cutter/BUILD b/devel/cutter/BUILD
new file mode 100755
index 0000000..947171d
--- /dev/null
+++ b/devel/cutter/BUILD
@@ -0,0 +1,2 @@
+cd "$SOURCE_DIRECTORY"/src &&
+cmake_build
diff --git a/devel/cutter/DEPENDS b/devel/cutter/DEPENDS
new file mode 100755
index 0000000..e90d223
--- /dev/null
+++ b/devel/cutter/DEPENDS
@@ -0,0 +1,3 @@
+depends cmake &&
+depends qtbase &&
+depends radare2
diff --git a/devel/cutter/DETAILS b/devel/cutter/DETAILS
new file mode 100755
index 0000000..9ae69aa
--- /dev/null
+++ b/devel/cutter/DETAILS
@@ -0,0 +1,21 @@
+ SPELL=cutter
+ VERSION=1.11.0
+ TRANSL_REF=d576ccc6bf929f69b079e1cca0cd37b444b78314
+ SOURCE="$SPELL-$VERSION.tar.gz"
+ SOURCE2="$SPELL-translations-$VERSION.tar.gz"
+
SOURCE_URL=(https://github.com/radareorg/$SPELL/archive/v$VERSION.tar.gz)
+
SOURCE2_URL=(https://github.com/radareorg/cutter-translations/archive/$TRANSL_REF.tar.gz)
+
SOURCE_HASH=sha512:a69efee672fb0e142ac6c1fae287c463ec1e777a2ec6b604f412fd0c21b0614d2f05a289beb4602af70d6446f0a6263b353dcbd38d41a6466ae2cdbd14e0bea3
+
SOURCE2_HASH=sha512:0ee035af3f3740ae1595b19f738e3b4109f55807d7f6ac0f89bbb22fb62864b4fbd4e1afa67d84bcc231dc872668dd9a69d112f78b1c07e92a1210e2807ffe0d
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="https://cutter.re/";
+ LICENSE[0]="GPL-3.0-only"
+ ENTERED=20200812
+ KEYWORDS=""
+ SHORT="RE Platform powered by radare2"
+cat << EOF
+Cutter is a free and open-source reverse engineering framework powered
+by radare2. Its goal is making an advanced, customizable and FOSS
+reverse-engineering platform while keeping the user experience at mind.
+Cutter is created by reverse engineers for reverse engineers.
+EOF
diff --git a/devel/cutter/HISTORY b/devel/cutter/HISTORY
new file mode 100644
index 0000000..fa617af
--- /dev/null
+++ b/devel/cutter/HISTORY
@@ -0,0 +1,2 @@
+2020-08-12 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PRE_BUILD: spell created
diff --git a/devel/cutter/PRE_BUILD b/devel/cutter/PRE_BUILD
new file mode 100755
index 0000000..c96e59d
--- /dev/null
+++ b/devel/cutter/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+unpack_file 2 &&
+rmdir "src/translations" &&
+ln -s "../cutter-translations-$TRANSL_REF" "src/translations"
diff --git a/devel/llvm/0001-fix-compile-error-clang.patch
b/devel/llvm/0001-fix-compile-error-clang.patch
deleted file mode 100644
index 86184c8..0000000
--- a/devel/llvm/0001-fix-compile-error-clang.patch
+++ /dev/null
@@ -1,178 +0,0 @@
-diff -Naupr a/tools/clang/lib/Analysis/PathDiagnostic.cpp
b/tools/clang/lib/Analysis/PathDiagnostic.cpp
---- a/tools/clang/lib/Analysis/PathDiagnostic.cpp 2020-03-23
16:01:02.000000000 +0100
-+++ b/tools/clang/lib/Analysis/PathDiagnostic.cpp 2020-03-29
12:33:03.894903142 +0200
-@@ -676,8 +676,8 @@ PathDiagnosticLocation::create(const Pro
- } else if (Optional<PostInitializer> PIP = P.getAs<PostInitializer>()) {
- return
PathDiagnosticLocation(PIP->getInitializer()->getSourceLocation(),
- SMng);
-- } else if (Optional<PreImplicitCall> PIC = P.getAs<PreImplicitCall>()) {
-- return PathDiagnosticLocation(PIC->getLocation(), SMng);
-+ } else if (Optional<PreImplicitCall> pic = P.getAs<PreImplicitCall>()) {
-+ return PathDiagnosticLocation(pic->getLocation(), SMng);
- } else if (Optional<PostImplicitCall> PIE = P.getAs<PostImplicitCall>()) {
- return PathDiagnosticLocation(PIE->getLocation(), SMng);
- } else if (Optional<CallEnter> CE = P.getAs<CallEnter>()) {
-diff -Naupr a/tools/clang/lib/CodeGen/BackendUtil.cpp
b/tools/clang/lib/CodeGen/BackendUtil.cpp
---- a/tools/clang/lib/CodeGen/BackendUtil.cpp 2020-03-23 16:01:02.000000000
+0100
-+++ b/tools/clang/lib/CodeGen/BackendUtil.cpp 2020-03-29 12:34:16.034905411
+0200
-@@ -1066,10 +1066,10 @@ void EmitAssemblyHelper::EmitAssemblyWit
- PTO.LoopVectorization = CodeGenOpts.VectorizeLoop;
- PTO.SLPVectorization = CodeGenOpts.VectorizeSLP;
-
-- PassInstrumentationCallbacks PIC;
-+ PassInstrumentationCallbacks pic;
- StandardInstrumentations SI;
-- SI.registerCallbacks(PIC);
-- PassBuilder PB(TM.get(), PTO, PGOOpt, &PIC);
-+ SI.registerCallbacks(pic);
-+ PassBuilder PB(TM.get(), PTO, PGOOpt, &pic);
-
- // Attempt to load pass plugins and register their callbacks with PB.
- for (auto &PluginFN : CodeGenOpts.PassPlugins) {
-diff -Naupr a/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
b/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
---- a/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 2020-03-23
16:01:02.000000000 +0100
-+++ b/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 2020-03-29
12:32:15.198234939 +0200
-@@ -890,11 +890,11 @@ tools::ParsePICArgs(const ToolChain &Too
- const llvm::Triple &Triple = ToolChain.getTriple();
-
- bool PIE = ToolChain.isPIEDefault();
-- bool PIC = PIE || ToolChain.isPICDefault();
-+ bool pic = PIE || ToolChain.isPICDefault();
- // The Darwin/MachO default to use PIC does not apply when using -static.
- if (Triple.isOSBinFormatMachO() && Args.hasArg(options::OPT_static))
-- PIE = PIC = false;
-- bool IsPICLevelTwo = PIC;
-+ PIE = pic = false;
-+ bool IsPICLevelTwo = pic;
-
- bool KernelOrKext =
- Args.hasArg(options::OPT_mkernel, options::OPT_fapple_kext);
-@@ -911,12 +911,12 @@ tools::ParsePICArgs(const ToolChain &Too
- case llvm::Triple::mipsel:
- case llvm::Triple::mips64:
- case llvm::Triple::mips64el:
-- PIC = true; // "-fpic"
-+ pic = true; // "-fpic"
- break;
-
- case llvm::Triple::x86:
- case llvm::Triple::x86_64:
-- PIC = true; // "-fPIC"
-+ pic = true; // "-fPIC"
- IsPICLevelTwo = true;
- break;
-
-@@ -951,7 +951,7 @@ tools::ParsePICArgs(const ToolChain &Too
-
- // AMDGPU-specific defaults for PIC.
- if (Triple.getArch() == llvm::Triple::amdgcn)
-- PIC = true;
-+ pic = true;
-
- // The last argument relating to either PIC or PIE wins, and no
- // other argument is used. If the last argument is any flavor of the
-@@ -980,17 +980,17 @@ tools::ParsePICArgs(const ToolChain &Too
- if (O.matches(options::OPT_fPIC) || O.matches(options::OPT_fpic) ||
- O.matches(options::OPT_fPIE) || O.matches(options::OPT_fpie)) {
- PIE = O.matches(options::OPT_fPIE) || O.matches(options::OPT_fpie);
-- PIC =
-+ pic =
- PIE || O.matches(options::OPT_fPIC) ||
O.matches(options::OPT_fpic);
- IsPICLevelTwo =
- O.matches(options::OPT_fPIE) || O.matches(options::OPT_fPIC);
- } else {
-- PIE = PIC = false;
-+ PIE = pic = false;
- if (EffectiveTriple.isPS4CPU()) {
- Arg *ModelArg = Args.getLastArg(options::OPT_mcmodel_EQ);
- StringRef Model = ModelArg ? ModelArg->getValue() : "";
- if (Model != "kernel") {
-- PIC = true;
-+ pic = true;
- ToolChain.getDriver().Diag(diag::warn_drv_ps4_force_pic)
- << LastPICArg->getSpelling();
- }
-@@ -1002,7 +1002,7 @@ tools::ParsePICArgs(const ToolChain &Too
- // Introduce a Darwin and PS4-specific hack. If the default is PIC, but
the
- // PIC level would've been set to level 1, force it back to level 2 PIC
- // instead.
-- if (PIC && (Triple.isOSDarwin() || EffectiveTriple.isPS4CPU()))
-+ if (pic && (Triple.isOSDarwin() || EffectiveTriple.isPS4CPU()))
- IsPICLevelTwo |= ToolChain.isPICDefault();
-
- // This kernel flags are a trump-card: they will disable PIC/PIE
-@@ -1010,7 +1010,7 @@ tools::ParsePICArgs(const ToolChain &Too
- if (KernelOrKext &&
- ((!EffectiveTriple.isiOS() || EffectiveTriple.isOSVersionLT(6)) &&
- !EffectiveTriple.isWatchOS()))
-- PIC = PIE = false;
-+ pic = PIE = false;
-
- if (Arg *A = Args.getLastArg(options::OPT_mdynamic_no_pic)) {
- // This is a very special mode. It trumps the other modes, almost no one
-@@ -1024,9 +1024,9 @@ tools::ParsePICArgs(const ToolChain &Too
- // Only a forced PIC mode can cause the actual compile to have PIC
defines
- // etc., no flags are sufficient. This behavior was selected to closely
- // match that of llvm-gcc and Apple GCC before that.
-- PIC = ToolChain.isPICDefault() && ToolChain.isPICDefaultForced();
-+ pic = ToolChain.isPICDefault() && ToolChain.isPICDefaultForced();
-
-- return std::make_tuple(llvm::Reloc::DynamicNoPIC, PIC ? 2U : 0U, false);
-+ return std::make_tuple(llvm::Reloc::DynamicNoPIC, pic ? 2U : 0U, false);
- }
-
- bool EmbeddedPISupported;
-@@ -1059,7 +1059,7 @@ tools::ParsePICArgs(const ToolChain &Too
- }
-
- // ROPI and RWPI are not compatible with PIC or PIE.
-- if ((ROPI || RWPI) && (PIC || PIE))
-+ if ((ROPI || RWPI) && (pic || PIE))
-
ToolChain.getDriver().Diag(diag::err_drv_ropi_rwpi_incompatible_with_pic);
-
- if (Triple.isMIPS()) {
-@@ -1070,7 +1070,7 @@ tools::ParsePICArgs(const ToolChain &Too
- // when the -mno-abicalls option is used. In that case we exit
- // at next check regardless of PIC being set below.
- if (ABIName == "n64")
-- PIC = true;
-+ pic = true;
- // When targettng MIPS with -mno-abicalls, it's always static.
- if(Args.hasArg(options::OPT_mno_abicalls))
- return std::make_tuple(llvm::Reloc::Static, 0U, false);
-@@ -1079,7 +1079,7 @@ tools::ParsePICArgs(const ToolChain &Too
- IsPICLevelTwo = false;
- }
-
-- if (PIC)
-+ if (pic)
- return std::make_tuple(llvm::Reloc::PIC_, IsPICLevelTwo ? 2U : 1U, PIE);
-
- llvm::Reloc::Model RelocM = llvm::Reloc::Static;
-diff -Naupr a/tools/clang/tools/driver/cc1as_main.cpp
b/tools/clang/tools/driver/cc1as_main.cpp
---- a/tools/clang/tools/driver/cc1as_main.cpp 2020-03-23 16:01:02.000000000
+0100
-+++ b/tools/clang/tools/driver/cc1as_main.cpp 2020-03-29 12:35:09.151573754
+0200
-@@ -382,18 +382,18 @@ static bool ExecuteAssembler(AssemblerIn
-
- MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr, &MCOptions);
-
-- bool PIC = false;
-+ bool pic = false;
- if (Opts.RelocationModel == "static") {
-- PIC = false;
-+ pic = false;
- } else if (Opts.RelocationModel == "pic") {
-- PIC = true;
-+ pic = true;
- } else {
- assert(Opts.RelocationModel == "dynamic-no-pic" &&
- "Invalid PIC model!");
-- PIC = false;
-+ pic = false;
- }
-
-- MOFI->InitMCObjectFileInfo(Triple(Opts.Triple), PIC, Ctx);
-+ MOFI->InitMCObjectFileInfo(Triple(Opts.Triple), pic, Ctx);
- if (Opts.SaveTemporaryLabels)
- Ctx.setAllowTemporaryLabels(false);
- if (Opts.GenDwarfForAssembly)
diff --git a/devel/llvm/BUILD b/devel/llvm/BUILD
index fec8268..487a21b 100755
--- a/devel/llvm/BUILD
+++ b/devel/llvm/BUILD
@@ -1,3 +1,5 @@
+# Remove -DPIC from compiler flags, produces build errors
+CXXFLAGS="${CXXFLAGS//-DPIC}" &&
# Default target, not detected correctly
OPTS+=" -DLLVM_DEFAULT_TARGET_TRIPLE=$HOST" &&
# LLVM_TARGETS
diff --git a/devel/llvm/HISTORY b/devel/llvm/HISTORY
index e1e97c1..47a0a2b 100644
--- a/devel/llvm/HISTORY
+++ b/devel/llvm/HISTORY
@@ -1,3 +1,7 @@
+2020-08-12 Ismael Luceno <ismael AT sourcemage.org>
+ * PRE_BUILD, BUILD: Replaced clang patch by -DPIC removal from
CXXFLAGS
+ * 0001-fix-compile-error-clang.patch: removed, no longer needed
+
2020-07-22 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 10.0.1

diff --git a/devel/llvm/PRE_BUILD b/devel/llvm/PRE_BUILD
index 7160a7f..6b42fd7 100755
--- a/devel/llvm/PRE_BUILD
+++ b/devel/llvm/PRE_BUILD
@@ -12,14 +12,7 @@ if [[ "$LLVM_WITH_CLANG" == y ]]; then
sedit '/^ *set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE/s/TRUE/FALSE/' \
projects/compiler-rt/cmake/config-ix.cmake
;;
- esac &&
- patch -p1 < "${SPELL_DIRECTORY}/0001-fix-compile-error-clang.patch"
-# cd ${SOURCE_DIRECTORY}/tools/clang &&
-# patch -p1 <
$SPELL_DIRECTORY/0001-fix-scan-view-s-module-search-path.patch &&
-# sedit '
-# s:$RealBin/sorttable.js:/usr/share/llvm/scan-build/sorttable.js:
-# s:$RealBin/scanview.css:/usr/share/llvm/scan-build/scanview.css:
-# ' tools/scan-build/scan-build
+ esac
fi &&

if [[ "$LLVM_WITH_LLDB" == y ]]; then
diff --git a/graphics/mesademos/DETAILS b/graphics/mesademos/DETAILS
index 5d3a624..94b5b6a 100755
--- a/graphics/mesademos/DETAILS
+++ b/graphics/mesademos/DETAILS
@@ -2,7 +2,8 @@
VERSION=8.4.0
SOURCE=mesa-demos-${VERSION}.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/mesa-demos-$VERSION
- SOURCE_URL[0]=ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$SOURCE
+ SOURCE_URL[0]=ftp://ftp.freedesktop.org/pub/mesa/demos/$SOURCE
+ SOURCE_URL[1]=ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$SOURCE

SOURCE_HASH=sha512:b72d03cad36e0535ff18dcfb222ec4200064b9264f6da51a6e5f03b0dd912abe188bc1d600b6698de3ce6f63b28d2ce01565886ca8e7079edc4967fbf2fb0957
LICENSE[0]=GPL
WEB_SITE=http://www.mesa3d.org
diff --git a/graphics/mesademos/HISTORY b/graphics/mesademos/HISTORY
index cac61dd..d7f13f8 100644
--- a/graphics/mesademos/HISTORY
+++ b/graphics/mesademos/HISTORY
@@ -1,3 +1,7 @@
+2020-08-12 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: Fixed SOURCE_URL[0]
+ Added SOURCE_URL[1]
+
2019-12-15 Treeve Jelbert <treeve AT sourcemage.org>
* clear.patch: deleted
* PRE_BUILD: adjust



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (1bc9da5e47c2f58abcc4a8272bc1a7bec5fe31cf), Ismael Luceno, 08/12/2020

Archive powered by MHonArc 2.6.24.

Top of Page