public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pcl] f44: Add patch for vtk 6 support
Date: Thu, 25 Jun 2026 05:49:12 GMT [thread overview]
Message-ID: <178236655253.1.13317853362835096139.rpms-pcl-361e7d56976c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pcl
Branch : f44
Commit : 361e7d56976c6493520b6738b02b88971858e099
Author : Orion Poplawski <orion@nwra.com>
Date : 2013-07-12T16:25:03-06:00
Stats : +16/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pcl/c/361e7d56976c6493520b6738b02b88971858e099?branch=f44
Log:
Add patch for vtk 6 support
---
diff --git a/pcl-vtk6.patch b/pcl-vtk6.patch
new file mode 100644
index 0000000..afafd3b
--- /dev/null
+++ b/pcl-vtk6.patch
@@ -0,0 +1,12 @@
+diff -up PCL-1.6.0-Source/io/src/vtk_lib_io.cpp.vtk6 PCL-1.6.0-Source/io/src/vtk_lib_io.cpp
+--- PCL-1.6.0-Source/io/src/vtk_lib_io.cpp.vtk6 2012-07-17 17:11:32.000000000 -0600
++++ PCL-1.6.0-Source/io/src/vtk_lib_io.cpp 2013-07-12 16:21:59.025435299 -0600
+@@ -420,7 +420,7 @@ pcl::io::saveRangeImagePlanarFilePNG (
+
+ vtkSmartPointer<vtkImageShiftScale> shiftScaleFilter = vtkSmartPointer<vtkImageShiftScale>::New();
+ shiftScaleFilter->SetOutputScalarTypeToUnsignedChar();
+- shiftScaleFilter->SetInputConnection(image->GetProducerPort());
++ shiftScaleFilter->SetInputData(image);
+ shiftScaleFilter->SetShift(-1.0f * image->GetScalarRange()[0]); // brings the lower bound to 0
+ shiftScaleFilter->SetScale(newRange/oldRange);
+ shiftScaleFilter->Update();
diff --git a/pcl.spec b/pcl.spec
index d205132..0846394 100644
--- a/pcl.spec
+++ b/pcl.spec
@@ -10,6 +10,8 @@ Source0: http://www.pointclouds.org/assets/files/1.6.0/PCL-1.6.0-Source.t
Patch0: PCL-1.4.0-Source-fedora.patch
Patch1: pcl-1.6.0-boost153.patch
Patch2: pcl-1.6.0-arm.patch
+# Patch to compile against vtk 6.0.0
+Patch3: pcl-vtk6.patch
# For plain building
BuildRequires: cmake, gcc-c++, boost-devel
@@ -79,6 +81,7 @@ Library.
%patch0 -p2 -b .fedora
%patch1 -p0 -b .boost153
%patch2 -p0 -b .arm
+%patch3 -p1 -b .vtk6
# Just to make it obvious we're not using any of these
rm -rf 3rdparty
@@ -187,6 +190,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-1.6
%changelog
* Fri Jul 12 2013 Orion Poplawski <orion@cora.nwra.com> - 1.6.0-6
- Rebuild for vtk 6.0.0
+- Add patch for vtk 6 support
* Sat Jun 29 2013 Rich Mattes <richmattes@gmail.com> - 1.6.0-5
- Rebuild for new eigen3
reply other threads:[~2026-06-25 5:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178236655253.1.13317853362835096139.rpms-pcl-361e7d56976c@fedoraproject.org \
--to=orion@nwra.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox