FreeBSD Bugzilla – Attachment 243160 Details for
Bug 272311
graphics/exiv2: upgrade to v0.28
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
make graphics/lux compat w/ exiv2 0.28, take #2 - turn REINPLACE_CMD into patch file.
0001-graphics-lux-make-compatible-with-exiv2-0.28.patch (text/plain), 7.15 KB, created by
Matthias Andree
on 2023-07-02 22:25:16 UTC
(
hide
)
Description:
make graphics/lux compat w/ exiv2 0.28, take #2 - turn REINPLACE_CMD into patch file.
Filename:
MIME Type:
Creator:
Matthias Andree
Created:
2023-07-02 22:25:16 UTC
Size:
7.15 KB
patch
obsolete
>From 5393435bdcd21d5f66f883ea9003f3766eb29519 Mon Sep 17 00:00:00 2001 >From: Matthias Andree <mandree@FreeBSD.org> >Date: Sun, 2 Jul 2023 15:39:42 +0200 >Subject: [PATCH] graphics/lux: make compatible with exiv2 0.28 > >PR: 282311 >--- > graphics/lux/Makefile | 2 +- > graphics/lux/files/patch-pv__metadata.h | 141 ++++++++++++++++++ > graphics/lux/files/patch-pv__no__rendering.cc | 11 ++ > 3 files changed, 153 insertions(+), 1 deletion(-) > create mode 100644 graphics/lux/files/patch-pv__metadata.h > create mode 100644 graphics/lux/files/patch-pv__no__rendering.cc > >diff --git a/graphics/lux/Makefile b/graphics/lux/Makefile >index ced6efe19ce9..884cc0591d6c 100644 >--- a/graphics/lux/Makefile >+++ b/graphics/lux/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= lux > PORTVERSION= 1.1.6 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= graphics > MASTER_SITES= https://bitbucket.org/kfj/pv/get/ > PKGNAMESUFFIX= -pv # distinguish from www/lux >diff --git a/graphics/lux/files/patch-pv__metadata.h b/graphics/lux/files/patch-pv__metadata.h >new file mode 100644 >index 000000000000..2ecb3de3a524 >--- /dev/null >+++ b/graphics/lux/files/patch-pv__metadata.h >@@ -0,0 +1,141 @@ >+--- pv_metadata.h.orig 2023-03-27 07:19:09 UTC >++++ pv_metadata.h >+@@ -234,7 +234,7 @@ struct metadata_type >+ std::cout << result->key() << ": " >+ << result->value() << std::endl ; >+ >+- _result = result->value().toLong() ; >++ _result = result->value().toInt64() ; >+ return true ; >+ } >+ return false ; >+@@ -665,7 +665,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_uncropped_width = result->value().toLong() ; >++ lux_uncropped_width = result->value().toInt64() ; >+ } >+ >+ lux_uncropped_height = -1 ; >+@@ -673,7 +673,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_uncropped_height = result->value().toLong() ; >++ lux_uncropped_height = result->value().toInt64() ; >+ } >+ >+ lux_cropping_active = false ; >+@@ -681,7 +681,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_cropping_active = result->value().toLong() ; >++ lux_cropping_active = result->value().toInt64() ; >+ } >+ >+ lux_cropped_width = -1 ; >+@@ -689,7 +689,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_cropped_width = result->value().toLong() ; >++ lux_cropped_width = result->value().toInt64() ; >+ } >+ >+ lux_cropped_height = -1 ; >+@@ -697,7 +697,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_cropped_height = result->value().toLong() ; >++ lux_cropped_height = result->value().toInt64() ; >+ } >+ >+ lux_crop_x0 = -1 ; >+@@ -705,7 +705,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_crop_x0 = result->value().toLong() ; >++ lux_crop_x0 = result->value().toInt64() ; >+ } >+ >+ lux_crop_y0 = -1 ; >+@@ -713,7 +713,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_crop_y0 = result->value().toLong() ; >++ lux_crop_y0 = result->value().toInt64() ; >+ } >+ >+ lux_crop_x1 = -1 ; >+@@ -721,7 +721,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_crop_x1 = result->value().toLong() ; >++ lux_crop_x1 = result->value().toInt64() ; >+ } >+ >+ lux_crop_y1 = -1 ; >+@@ -729,7 +729,7 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- lux_crop_y1 = result->value().toLong() ; >++ lux_crop_y1 = result->value().toInt64() ; >+ } >+ >+ if ( lux_cropping_active ) >+@@ -790,42 +790,42 @@ struct metadata_type >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- FullPanoHeightPixels = result->value().toLong() ; >++ FullPanoHeightPixels = result->value().toInt64() ; >+ } >+ >+ key = Exiv2::XmpKey ( std::string ( "Xmp.GPano.FullPanoWidthPixels" ) ) ; >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- FullPanoWidthPixels = result->value().toLong() ; >++ FullPanoWidthPixels = result->value().toInt64() ; >+ } >+ >+ key = Exiv2::XmpKey ( std::string ( "Xmp.GPano.CroppedAreaImageHeightPixels" ) ) ; >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- CroppedAreaImageHeightPixels = result->value().toLong() ; >++ CroppedAreaImageHeightPixels = result->value().toInt64() ; >+ } >+ >+ key = Exiv2::XmpKey ( std::string ( "Xmp.GPano.CroppedAreaImageWidthPixels" ) ) ; >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- CroppedAreaImageWidthPixels = result->value().toLong() ; >++ CroppedAreaImageWidthPixels = result->value().toInt64() ; >+ } >+ >+ key = Exiv2::XmpKey ( std::string ( "Xmp.GPano.CroppedAreaLeftPixels" ) ) ; >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- CroppedAreaLeftPixels = result->value().toLong() ; >++ CroppedAreaLeftPixels = result->value().toInt64() ; >+ } >+ >+ key = Exiv2::XmpKey ( std::string ( "Xmp.GPano.CroppedAreaTopPixels" ) ) ; >+ result = xmpData.findKey ( key ) ; >+ if ( result != xmpData.end() ) >+ { >+- CroppedAreaTopPixels = result->value().toLong() ; >++ CroppedAreaTopPixels = result->value().toInt64() ; >+ } >+ >+ // currently we only process GPano data if projection is equirectangular >diff --git a/graphics/lux/files/patch-pv__no__rendering.cc b/graphics/lux/files/patch-pv__no__rendering.cc >new file mode 100644 >index 000000000000..b372aa3e64fa >--- /dev/null >+++ b/graphics/lux/files/patch-pv__no__rendering.cc >@@ -0,0 +1,11 @@ >+--- pv_no_rendering.cc.orig 2023-03-27 07:19:09 UTC >++++ pv_no_rendering.cc >+@@ -8828,7 +8828,7 @@ void store_rendered_image ( const job_type * p_job , >+ >+ image->writeMetadata(); >+ } >+- catch ( Exiv2::AnyError& e ) >++ catch ( Exiv2::Error& e ) >+ { >+ std::cerr << "Caught Exiv2 exception '" >+ << e << "'\n" ; >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 272311
:
243098
|
243100
|
243103
|
243104
|
243106
|
243111
|
243124
|
243125
|
243135
|
243136
|
243137
|
243138
|
243139
|
243140
|
243141
|
243142
|
243143
|
243144
|
243145
|
243146
|
243147
|
243148
|
243154
|
243155
|
243156
|
243157
|
243158
|
243159
| 243160 |
243166
|
243167
|
243168
|
243169
|
243170
|
243171
|
243172
|
243175
|
243176