How can i install PRODSECBUG-2233 patch in Magento 2.2.3? - magento2

I have download two PRODSECBUG-2233 patch for different Magento version from magento official site.
1) Magento 2.3.0 (PRODSECBUG-2233-2.3.x-2019-07-26-08-35-12.patch)
2) Magento 2.2.3 (PRODSECBUG-2233-2.2.x-2019-07-26-08-35-48.patch)
I have installed PRODSECBUG-2233 patch in Magento 2.3.0 version successfully using below command.
patch -p1 < PRODSECBUG-2233-2.3.x-2019-07-26-08-35-12.patch
But when i have try to use same command in Magento 2.2.3, it's not working and show me FAILED in terminal. Please check below.
patch -p1 < PRODSECBUG-2233-2.2.x-2019-07-26-08-35-48.patch
...
....
File to patch: vendor/magento/module-sales/Helper/Admin.php
patching file vendor/magento/module-sales/Helper/Admin.php
Hunk #1 FAILED at 6 (different line endings).
Hunk #2 FAILED at 31 (different line endings).
Hunk #3 FAILED at 149 (different line endings).
Hunk #4 FAILED at 186 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file vendor/magento/module-sales/Helper/Admin.php.rej
How can i solve this ? Is this problem in magento .patch file ?
Please help me.
Thanks

Related

pkg load sockets with octave

I have installed octave on Ubuntu 16.04 originally without the ppa (version 4.0.0), but the problem remains with the ppa (version 4.0.2).
To install it, I have runned : sudo apt install octave octave-sockets and it went fine.
But when I am in octave-cli and I run this command: pkg load sockets. I have the following error:
error: __which__: /usr/lib/x86_64-linux-gnu/octave/packages/sockets-1.2.0/x86_64-pc-linux-gnu-api-v50+/socket.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/packages/sockets-1.2.0/x86_64-pc-linux-gnu-api-v50+/socket.oct: undefined symbol: _ZNK5ArrayISsE17resize_fill_valueEv
error: called from
which at line 31 column 7
/usr/lib/x86_64-linux-gnu/octave/packages/sockets-1.2.0/x86_64-pc-linux-gnu-api-v50+/PKG_ADD at line 2 column 1
load_packages_and_dependencies at line 47 column 5
load_packages at line 60 column 3
pkg at line 422 column 7
error: evaluating argument list element number 2
error: called from
/usr/lib/x86_64-linux-gnu/octave/packages/sockets-1.2.0/x86_64-pc-linux-gnu-api-v50+/PKG_ADD at line 2 column 1
load_packages_and_dependencies at line 47 column 5
load_packages at line 60 column 3
pkg at line 422 column 7
So I am supposing that the package octave-sockets is missing a dependency but I don't find which one. If you can help me with that... Thank you very much!
Rather than using Ubuntu's packaged octave-sockets package, you're likely to have a better experience if you install the package directly from Octave instead
pkg install -forge sockets

Update package version (openocd) in buildroot

I'm working in a project that uses buildroot-2012.11 to generate a Linux image for an embedded system.
I need to configure openocd for a JTAG debugger that uses an FTDI chip (FT2232D).
I realized that this buildroot version integrate openocd-0.5.0 and the latest openocd release is 0.9.0. I'm interested in updating to this version since I want to use ftdi interface driver instead of ft2232 (deprecated).
I tried to accomplish that by modifying /package/openocd/openocd.mk on the lines:
OPENOCD_VERSION:=0.9.0
OPENOCD_CONF_OPT += --enable-ftdi
The new openocd files where downloaded successfully but when it tries to install it and apply openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch I got:
Applying openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch using patch:
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 3728c4af7f6303ccedab56ec220797f8f290580e Mon Sep 17 00:00:00 2001
|From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj#jcrosoft.com>
|Date: Wed, 10 Aug 2011 00:17:29 +0800
|Subject: [PATCH] fix cross compilation: host libsub was used before
|
|tested in buildroot
|
|Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj#jcrosoft.com>
|---
| configure.in | 7 +++++--
| 1 files changed, 5 insertions(+), 2 deletions(-)
|
|diff --git a/configure.in b/configure.in
|index dfa1e8f..cfe2218 100644
|--- a/configure.in
|+++ b/configure.in
--------------------------
File to patch: configure.in
configure.in: No such file or directory
If I skipped the patch the building process stop and I'm not able to generate the images.
I've doing some research on the internet and I couldn't find how to do this correctly.
Maybe one obvious solution could be updating the buildroot version but since there is a lot of other people development with the current version I'm not in a position of taking that decision right now.
I'll do appreciate any help.
Upgrade your Buildroot release. 2015.08 already has OpenOCD 0.8.0 and it should be trivial to update to 0.9.0. Plus you will benefit from the numerous improvements and updates that have been made between 2012.11 and 2015.08.

how do I interpret patch output?

I am trying to manually apply some patches, and wonder if I am interpreting the last few lines correctly. Here they are:
patching file frameworks/opt/telephony/tests/telephonytests/src/com/android/internal /telephony/gsm/UsimDataDownloadCommands.java
Hunk #1 succeeded at 651 with fuzz 2 (offset 21 lines).
can't find file to patch at input line 404
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java b/packages/apps/Phone/src/com/android/phone/PhoneInterfaceMan
ager.java
|index 6600ae5..2ae6739 100644
|--- a/packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java
|+++ b/packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java
--------------------------
File to patch: smartcard-api.patch
was UsimDataDownloadCommands.java file patched ok? Fuzz means, the patch utility found the match for target string, but it was at a different line. Right?
What about PhoneInterfaceManager.java file? I do have this file in my directory. But I am not sure what to do with it as there is not associated reject file for me to use? What is the reference to line 404? Is that the line number in my patch?
Thanks

WHM/cPanel Copy Multiple Accounts/Packages From Another Server failing for each account?

Just bought a new server that runs WHM/cPanel, same as the old. Trying to use the built in tool to migrate multiple accounts / packages over. I'm able to connect to the other server, it lists out all the packages & accounts, I select all and start the process.
Then it goes through each package and account and fails to copy anything over. This is the error given for a sample account:
Command failed with exit status 255
...etc...
Copying Suspension Info (if needed)...Done
Copying SSL certificates, CSRs, and keys...Privilege de-escalation before loading datastore either failed or was omitted. at /usr/local/cpanel/Cpanel/SSLStorage.pm line 1159
Cpanel::SSLStorage::_load_datastore('Cpanel::SSLStorage::Installed=HASH(0x3c72300)', 'lock', 1) called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 1244
Cpanel::SSLStorage::_load_datastore_rw('Cpanel::SSLStorage::Installed=HASH(0x3c72300)') called at /usr/local/cpanel/Cpanel/SSLStorage/Installed.pm line 634
Cpanel::SSLStorage::Installed::_rebuild_records('Cpanel::SSLStorage::Installed=HASH(0x3c7230 0)') called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 308
Cpanel::SSLStorage::__ANON__() called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 1330
Cpanel::SSLStorage::_execute_coderef('Cpanel::SSLStorage::Installed=HASH(0x3c72300)', 'CODE(0x49ee958)') called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 310
Cpanel::SSLStorage::rebuild_records('Cpanel::SSLStorage::Installed=HASH(0x3c72300)') called at /usr/local/cpanel/scripts/pkgacct line 2888
Script::Pkgacct::__ANON__('Cpanel::SSLStorage::Installed=HASH(0x3c72300)') called at /usr/local/cpanel/scripts/pkgacct line 2913
Script::Pkgacct::backup_ssl_for_user('jshea89', '/home/webwizard/cpmove-jshea89') called at /usr/local/cpanel/scripts/pkgacct line 532
Script::Pkgacct::script('Script::Pkgacct', '--use_backups', '--skiphomedir', 'jshea89', '/home/webwizard', '--split', '--compressed', '--mysql', 5.5, ...) called at /usr/local/cpanel/scripts/pkgacct line 111
==sshcontroloutput==
sh-4.1# exit $RET
exit
sh-4.1$ exit $RET
exit
sshcommandfailed=255`
A bit of a hack, but I went to /usr/local/cpanel/Cpanel/SSLStorage.pm line 1244 and commented out the Carp.
Accounts from my old dead server are now archiving :)
After some researching, I was able to determine that this was caused by incorrect ownership on the /home/user/ssl directory and its subdirectories. Someone had set the owner and group to root:root, when infact it should have been user:user.
Hopefully this helps some of you solve the problem!

Error messages trying to build Julia language with make

This is the first time I have every used make. I am trying to install the Julia language. So I cloned from GitHub
git clone git://github.com/JuliaLang/julia.git
The instructions then say enter in the Julia directory and type make. It ran for a very long time - I ate a pizza.
When I got back, typing Julia did not work. Towards the end of the installation, I got a long error message:
/usr/bin/install -c -m 644 libpcre.pc libpcreposix.pc libpcrecpp.pc '/home/john/Downloads/julia/usr/lib/pkgconfig'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 130 100 130 0 0 243 0 --:--:-- --:--:-- --:--:-- 337
0 0 0 8773k 0 0 310k 0 --:--:-- 0:00:28 --:--:-- 0
curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 15 seconds
curl: (6) name lookup timed out
make[2]: *** [openblas-v0.2.8.tar.gz] Error 6
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
I tried sudo make - putting sudo in front seems to solve everything but not this:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
make[2]: *** [openblas-v0.2.8/config.status] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
What steps can I take to makes sure Julia installs properly?
I need version 2.0 so I can use iJulia with my iPython notebook. If there is an easier way without compiling directly, I would just do that.
The problem is that the makefile is trying to download a file (curl is a command line program that acts like a web browser, and is often used to download files from websites).
However, for whatever reason (maybe the internet was tired) the download failed and timed out.
The reason it fails now with the unexpected end of file error is that (a) the download gave you part of a file before it failed, and (b) the makefile you're using is badly written so it didn't clean up the partly-downloaded file on failure.
So, that file exists and thus make won't try to download it, but it's only partial so when you try to uncompress it, it fails.
You should delete the file it tried to download by hand (with something like rm -f openblas-v0.2.8.tar.gz) then re-run make. Maybe the internet has woken up, or drunk some coffee, and the download will work this time.