imagemagick, bump version (#4642)

* imagemagick, bump version
This commit is contained in:
Schrijvers Luc
2020-05-31 12:10:19 +02:00
committed by GitHub
parent 8d4ce87f08
commit d94d75ef98
4 changed files with 118 additions and 64 deletions

View File

@@ -8,11 +8,11 @@ draw text, lines, polygons, ellipses and Bézier curves."
HOMEPAGE="https://www.imagemagick.org/"
COPYRIGHT="1999-2017 ImageMagick Studio LLC"
LICENSE="IMAGEMAGICK"
REVISION="2"
REVISION="1"
imageMagickVersion="${portVersion%.*}-${portVersion##*.}"
SOURCE_URI="https://www.imagemagick.org/download/releases/ImageMagick-$imageMagickVersion.tar.xz
https://mirror.sobukus.de/files/src/imagemagick/ImageMagick-$imageMagickVersion.tar.xz"
CHECKSUM_SHA256="f2e63d43b8e249aa7edd54cd2f841035d3223c5fdbbc812f13420b270c9687d6"
CHECKSUM_SHA256="7afcef9ea45ca5a9bf799278284579653d308e3ef8b7f8ab81cd63b448cb1cc1"
SOURCE_DIR="ImageMagick-$imageMagickVersion"
PATCHES="imagemagick-$portVersion.patchset"
@@ -37,6 +37,13 @@ GLOBAL_WRITABLE_FILES="
settings/ImageMagick-6/type-urw-base35.xml keep-old
"
libMagickVersion="8.0.0"
libMagickCoreVersion="6.0.0"
libMagickWandVersion="6.0.0"
libMagickVersionCompat="$libMagickVersion compat >= ${libMagickVersion%%.*}"
libMagickCoreVersionCompat="$libMagickCoreVersion compat >= ${libMagickCoreVersion%%.*}"
libMagickWandVersionCompat="$libMagickWandVersion compat >= ${libMagickWandVersion%%.*}"
PROVIDES="
imagemagick$secondaryArchSuffix = $portVersion
cmd:animate$secondaryArchSuffix
@@ -50,9 +57,9 @@ PROVIDES="
cmd:mogrify$secondaryArchSuffix
cmd:montage$secondaryArchSuffix
cmd:stream$secondaryArchSuffix
lib:libMagick++_6.Q16$secondaryArchSuffix = 7.0.0 compat >= 7
lib:libMagickCore_6.Q16$secondaryArchSuffix = 4.0.0 compat >= 4
lib:libMagickWand_6.Q16$secondaryArchSuffix = 4.0.0 compat >= 4
lib:libMagick++_6.Q16$secondaryArchSuffix = $libMagickVersionCompat
lib:libMagickCore_6.Q16$secondaryArchSuffix = $libMagickCoreVersionCompat
lib:libMagickWand_6.Q16$secondaryArchSuffix = $libMagickWandVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -79,9 +86,9 @@ PROVIDES_devel="
cmd:MagickCore_config$secondaryArchSuffix
cmd:MagickWand_config$secondaryArchSuffix
cmd:Wand_config$secondaryArchSuffix
devel:libMagick++_6.Q16$secondaryArchSuffix = 7.0.0 compat >= 7
devel:libMagickCore_6.Q16$secondaryArchSuffix = 4.0.0 compat >= 4
devel:libMagickWand_6.Q16$secondaryArchSuffix = 4.0.0 compat >= 4
devel:libMagick++_6.Q16$secondaryArchSuffix = $libMagickVersionCompat
devel:libMagickCore_6.Q16$secondaryArchSuffix = $libMagickCoreVersionCompat
devel:libMagickWand_6.Q16$secondaryArchSuffix = $libMagickWandVersionCompat
"
REQUIRES_devel="
imagemagick$secondaryArchSuffix == $portVersion base
@@ -111,6 +118,22 @@ BUILD_PREREQUIRES="
cmd:sed
"
defineDebugInfoPackage imagemagick$secondaryArchSuffix \
$binDir/animate \
$binDir/compare \
$binDir/composite \
$binDir/conjure \
$binDir/convert \
$binDir/display \
$binDir/identify \
$binDir/import \
$binDir/mogrify \
$binDir/montage \
$binDir/stream \
$libDir/libMagick++-6.Q16.so.$libMagickVersion \
$libDir/libMagickCore-6.Q16.so.$libMagickCoreVersion \
$libDir/libMagickWand-6.Q16.so.$libMagickWandVersion
BUILD()
{
export LDFLAGS="-lnetwork"

View File

@@ -5,14 +5,16 @@ convert bitmap images. It can read and write images in a variety of formats \
SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear \
and transform images, adjust image colors, apply various special effects, or \
draw text, lines, polygons, ellipses and Bézier curves."
HOMEPAGE="https://www.imagemagick.org/"
COPYRIGHT="1999-2019 ImageMagick Studio LLC"
HOMEPAGE="https://www.imagemagick.org/
https://github.com/ImageMagick/ImageMagick/"
COPYRIGHT="1999-2020 ImageMagick Studio LLC"
LICENSE="IMAGEMAGICK"
REVISION="2"
REVISION="1"
imageMagickVersion="${portVersion%.*}-${portVersion##*.}"
SOURCE_URI="https://www.imagemagick.org/download/releases/ImageMagick-$imageMagickVersion.tar.xz
https://mirror.sobukus.de/files/src/imagemagick/ImageMagick-$imageMagickVersion.tar.xz"
CHECKSUM_SHA256="a5b77766d5b9a78957ddfff04737adc0c80c682ac55d9d8f8b1f2937e94b7ffd"
https://mirror.sobukus.de/files/src/imagemagick/ImageMagick-$imageMagickVersion.tar.xz
https://github.com/ImageMagick/ImageMagick/archive/$imageMagickVersion.tar.gz"
CHECKSUM_SHA256="f7abbc65cce01caa314ef4cc9acf8adfa7b633689901a52f29d681230a997c59"
SOURCE_DIR="ImageMagick-$imageMagickVersion"
PATCHES="imagemagick-$portVersion.patchset"
@@ -36,8 +38,8 @@ GLOBAL_WRITABLE_FILES="
"
libMagickVersion="4.0.0"
libMagickCoreVersion="6.0.0"
libMagickWandVersion="6.0.0"
libMagickCoreVersion="7.0.0"
libMagickWandVersion="7.0.0"
libMagickVersionCompat="$libMagickVersion compat >= ${libMagickVersion%%.*}"
libMagickCoreVersionCompat="$libMagickCoreVersion compat >= ${libMagickCoreVersion%%.*}"
libMagickWandVersionCompat="$libMagickWandVersion compat >= ${libMagickWandVersion%%.*}"
@@ -118,9 +120,10 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:git
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:perl
@@ -149,9 +152,7 @@ defineDebugInfoPackage imagemagick7$secondaryArchSuffix \
BUILD()
{
export LDFLAGS="-lnetwork"
aclocal
autoconf
automake
autoreconf -vfi
runConfigure ./configure \
--enable-shared \
--without-modules
@@ -165,7 +166,8 @@ INSTALL()
# remove libtool files
rm -f $libDir/libMagick*.la
prepareInstalledDevelLibs libMagick++-7.Q16HDRI libMagickCore-7.Q16HDRI \
prepareInstalledDevelLibs libMagick++-7.Q16HDRI \
libMagickCore-7.Q16HDRI \
libMagickWand-7.Q16HDRI
fixPkgconfig

View File

@@ -1,4 +1,4 @@
From b1edb6af5836e72c2bf0f32461f699c85f3539dd Mon Sep 17 00:00:00 2001
From 5e594a88fc6f18cc98b0ecdabe3ad636af97aec1 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Sun, 26 Oct 2014 17:46:46 +0100
Subject: Make gcc2 happy.
@@ -40,7 +40,7 @@ index 5289c62..b4029d5 100644
Magick::ImageMoments::ImageMoments(const Image &image_)
diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp
index 3e42e0b..b060db1 100644
index 021d171..089cb54 100644
--- a/Magick++/lib/Image.cpp
+++ b/Magick++/lib/Image.cpp
@@ -509,9 +509,9 @@ Magick::Image Magick::Image::clipMask(void) const
@@ -85,7 +85,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::debug(const bool flag_)
@@ -693,7 +693,7 @@ std::string Magick::Image::directory(void) const
@@ -687,7 +687,7 @@ std::string Magick::Image::directory(void) const
throwExceptionExplicit(CorruptImageWarning,
"Image does not contain a directory");
@@ -94,7 +94,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::endian(const Magick::EndianType endian_)
@@ -705,7 +705,7 @@ void Magick::Image::endian(const Magick::EndianType endian_)
@@ -699,7 +699,7 @@ void Magick::Image::endian(const Magick::EndianType endian_)
Magick::EndianType Magick::Image::endian(void) const
{
@@ -103,7 +103,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::exifProfile(const Magick::Blob &exifProfile_)
@@ -730,10 +730,10 @@ Magick::Blob Magick::Image::exifProfile(void) const
@@ -724,10 +724,10 @@ Magick::Blob Magick::Image::exifProfile(void) const
exif_profile=GetImageProfile(constImage(),"exif");
if (exif_profile == (StringInfo *) NULL)
@@ -117,7 +117,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::fileName(const std::string &fileName_)
@@ -748,12 +748,12 @@ void Magick::Image::fileName(const std::string &fileName_)
@@ -749,12 +749,12 @@ void Magick::Image::fileName(const std::string &fileName_)
std::string Magick::Image::fileName(void) const
{
@@ -132,7 +132,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::fillColor(const Magick::Color &fillColor_)
@@ -764,7 +764,7 @@ void Magick::Image::fillColor(const Magick::Color &fillColor_)
@@ -765,7 +765,7 @@ void Magick::Image::fillColor(const Magick::Color &fillColor_)
Magick::Color Magick::Image::fillColor(void) const
{
@@ -141,7 +141,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::fillRule(const Magick::FillRule &fillRule_)
@@ -775,7 +775,7 @@ void Magick::Image::fillRule(const Magick::FillRule &fillRule_)
@@ -776,7 +776,7 @@ void Magick::Image::fillRule(const Magick::FillRule &fillRule_)
Magick::FillRule Magick::Image::fillRule(void) const
{
@@ -150,7 +150,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::fillPattern(const Image &fillPattern_)
@@ -809,7 +809,7 @@ Magick::Image Magick::Image::fillPattern(void) const
@@ -810,7 +810,7 @@ Magick::Image Magick::Image::fillPattern(void) const
ThrowImageException;
}
@@ -159,7 +159,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::filterType(const Magick::FilterTypes filterType_)
@@ -820,7 +820,7 @@ void Magick::Image::filterType(const Magick::FilterTypes filterType_)
@@ -821,7 +821,7 @@ void Magick::Image::filterType(const Magick::FilterTypes filterType_)
Magick::FilterTypes Magick::Image::filterType(void) const
{
@@ -168,7 +168,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::font(const std::string &font_)
@@ -831,7 +831,7 @@ void Magick::Image::font(const std::string &font_)
@@ -832,7 +832,7 @@ void Magick::Image::font(const std::string &font_)
std::string Magick::Image::font(void) const
{
@@ -177,7 +177,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::fontFamily(const std::string &family_)
@@ -867,10 +867,10 @@ std::string Magick::Image::format(void) const
@@ -868,10 +868,10 @@ std::string Magick::Image::format(void) const
ThrowImageException;
if ((magick_info != 0) && (*magick_info->description != '\0'))
@@ -190,7 +190,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::fontStyle(const StyleType pointSize_)
@@ -892,7 +892,7 @@ void Magick::Image::fontWeight(const size_t weight_)
@@ -893,7 +893,7 @@ void Magick::Image::fontWeight(const size_t weight_)
size_t Magick::Image::fontWeight(void) const
{
@@ -199,7 +199,7 @@ index 3e42e0b..b060db1 100644
}
@@ -912,12 +912,12 @@ std::string Magick::Image::formatExpression(const std::string expression)
@@ -913,12 +913,12 @@ std::string Magick::Image::formatExpression(const std::string expression)
text=DestroyString(text);
}
throwImageException();
@@ -214,7 +214,7 @@ index 3e42e0b..b060db1 100644
}
Magick::Geometry Magick::Image::geometry(void) const
@@ -927,7 +927,7 @@ Magick::Geometry Magick::Image::geometry(void) const
@@ -928,7 +928,7 @@ Magick::Geometry Magick::Image::geometry(void) const
throwExceptionExplicit(OptionWarning,"Image does not contain a geometry");
@@ -223,7 +223,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::gifDisposeMethod(const size_t disposeMethod_)
@@ -939,7 +939,7 @@ void Magick::Image::gifDisposeMethod(const size_t disposeMethod_)
@@ -940,7 +940,7 @@ void Magick::Image::gifDisposeMethod(const size_t disposeMethod_)
size_t Magick::Image::gifDisposeMethod(void) const
{
// FIXME: It would be better to return an enumeration
@@ -232,7 +232,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::highlightColor(const Color color_)
@@ -1014,9 +1014,9 @@ Magick::Blob Magick::Image::iptcProfile(void) const
@@ -1015,9 +1015,9 @@ Magick::Blob Magick::Image::iptcProfile(void) const
iptc_profile=GetImageProfile(constImage(),"iptc");
if (iptc_profile == (StringInfo *) NULL)
@@ -245,7 +245,7 @@ index 3e42e0b..b060db1 100644
}
bool Magick::Image::isOpaque(void) const
@@ -1048,7 +1048,7 @@ void Magick::Image::isValid(const bool isValid_)
@@ -1049,7 +1049,7 @@ void Magick::Image::isValid(const bool isValid_)
bool Magick::Image::isValid(void) const
{
@@ -254,7 +254,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::label(const std::string &label_)
@@ -1068,9 +1068,9 @@ std::string Magick::Image::label(void) const
@@ -1069,9 +1069,9 @@ std::string Magick::Image::label(void) const
value=GetImageProperty(constImage(),"Label");
if (value)
@@ -266,7 +266,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::lowlightColor(const Color color_)
@@ -1103,9 +1103,9 @@ void Magick::Image::magick(const std::string &magick_)
@@ -1104,9 +1104,9 @@ void Magick::Image::magick(const std::string &magick_)
std::string Magick::Image::magick(void) const
{
if (*(constImage()->magick) != '\0')
@@ -278,7 +278,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::mask(const Magick::Image &mask_)
@@ -1128,9 +1128,9 @@ Magick::Image Magick::Image::mask(void) const
@@ -1129,9 +1129,9 @@ Magick::Image Magick::Image::mask(void) const
ThrowImageException;
if (image == (MagickCore::Image *) NULL)
@@ -872,7 +872,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::unsharpmask(const double radius_,const double sigma_,
@@ -5031,42 +5031,42 @@ Magick::Image::Image(MagickCore::Image *image_)
@@ -5037,42 +5037,42 @@ Magick::Image::Image(MagickCore::Image *image_)
MagickCore::Image *&Magick::Image::image(void)
{
@@ -923,7 +923,7 @@ index 3e42e0b..b060db1 100644
}
void Magick::Image::modifyImage(void)
@@ -5109,7 +5109,7 @@ MagickCore::Image *Magick::Image::replaceImage(MagickCore::Image *replacement_)
@@ -5115,7 +5115,7 @@ MagickCore::Image *Magick::Image::replaceImage(MagickCore::Image *replacement_)
}
}
@@ -933,7 +933,7 @@ index 3e42e0b..b060db1 100644
void Magick::Image::throwImageException(void) const
diff --git a/Magick++/lib/Options.cpp b/Magick++/lib/Options.cpp
index d72535a..be07b26 100644
index 3d943e4..9b5bda5 100644
--- a/Magick++/lib/Options.cpp
+++ b/Magick++/lib/Options.cpp
@@ -105,9 +105,9 @@ void Magick::Options::backgroundTexture(const std::string &backgroundTexture_)
@@ -957,7 +957,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::depth(size_t depth_)
@@ -301,7 +301,7 @@ std::string Magick::Options::font(void) const
@@ -305,7 +305,7 @@ std::string Magick::Options::font(void) const
if (_imageInfo->font)
return(std::string(_imageInfo->font));
@@ -966,7 +966,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::fontFamily(const std::string &family_)
@@ -323,7 +323,7 @@ std::string Magick::Options::fontFamily(void) const
@@ -327,7 +327,7 @@ std::string Magick::Options::fontFamily(void) const
if (_drawInfo->family)
return(std::string(_drawInfo->family));
@@ -975,7 +975,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::fontPointsize(double pointSize_)
@@ -374,7 +374,7 @@ std::string Magick::Options::format(void) const
@@ -378,7 +378,7 @@ std::string Magick::Options::format(void) const
if ((magick_info != 0) && (*magick_info->description != '\0'))
return(std::string(magick_info->description));
@@ -984,7 +984,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::interlaceType(Magick::InterlaceType interlace_)
@@ -410,7 +410,7 @@ std::string Magick::Options::magick(void) const
@@ -414,7 +414,7 @@ std::string Magick::Options::magick(void) const
if ( _imageInfo->magick[0] != '\0' )
return(std::string(_imageInfo->magick));
@@ -993,7 +993,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::matteColor(const Magick::Color &matteColor_)
@@ -446,7 +446,7 @@ Magick::Geometry Magick::Options::page(void) const
@@ -450,7 +450,7 @@ Magick::Geometry Magick::Options::page(void) const
if (_imageInfo->page)
return(Geometry(_imageInfo->page));
@@ -1002,7 +1002,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::quality(size_t quality_)
@@ -544,7 +544,7 @@ std::string Magick::Options::samplingFactor(void) const
@@ -548,7 +548,7 @@ std::string Magick::Options::samplingFactor(void) const
if (_imageInfo->sampling_factor)
return(std::string(_imageInfo->sampling_factor));
@@ -1011,7 +1011,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::size(const Geometry &geometry_)
@@ -560,7 +560,7 @@ Magick::Geometry Magick::Options::size(void) const
@@ -564,7 +564,7 @@ Magick::Geometry Magick::Options::size(void) const
if (_imageInfo->size)
return(Geometry(_imageInfo->size));
@@ -1020,7 +1020,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::strokeAntiAlias(bool flag_)
@@ -725,7 +725,7 @@ std::string Magick::Options::textEncoding(void) const
@@ -732,7 +732,7 @@ std::string Magick::Options::textEncoding(void) const
if (_drawInfo->encoding && *_drawInfo->encoding)
return(std::string(_drawInfo->encoding));
@@ -1029,7 +1029,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::textGravity(GravityType gravity_)
@@ -797,7 +797,7 @@ std::string Magick::Options::tileName(void) const
@@ -804,7 +804,7 @@ std::string Magick::Options::tileName(void) const
{
if (_imageInfo->tile)
return(std::string(_imageInfo->tile));
@@ -1038,7 +1038,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::transformOrigin(double tx_,double ty_)
@@ -979,7 +979,7 @@ std::string Magick::Options::view(void) const
@@ -986,7 +986,7 @@ std::string Magick::Options::view(void) const
if (_imageInfo->view)
return(std::string(_imageInfo->view));
@@ -1047,7 +1047,7 @@ index d72535a..be07b26 100644
}
void Magick::Options::x11Display(const std::string &display_)
@@ -996,7 +996,7 @@ std::string Magick::Options::x11Display(void) const
@@ -1003,7 +1003,7 @@ std::string Magick::Options::x11Display(void) const
if (_imageInfo->server_name)
return(std::string(_imageInfo->server_name));
@@ -1079,10 +1079,10 @@ index 08ae27f..5428bc9 100644
MagickCore::ImageInfo *Magick::ReadOptions::imageInfo(void)
--
2.10.2
2.24.1
From 2e2dd08b3fdbb7e899eae8ee072b894e96ffa246 Mon Sep 17 00:00:00 2001
From 1927fcb2d7c21414408969d7bdeb89cc246de56f Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Sun, 26 Oct 2014 17:47:29 +0100
Subject: Don't reset LIBRARY_PATH.
@@ -1091,10 +1091,10 @@ Using a variable named LIBRARY_PATH is not a good idea on Haiku. Just
rename it.
diff --git a/configure.ac b/configure.ac
index d8fc51b..5def208 100644
index f0c4775..35ac81c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2885,15 +2885,15 @@ AC_DEFINE_UNQUOTED(EXECUTABLE_PATH,"$DEFINE_EXECUTABLE_PATH",[Directory where ex
@@ -2945,15 +2945,15 @@ AC_DEFINE_UNQUOTED(EXECUTABLE_PATH,"$DEFINE_EXECUTABLE_PATH",[Directory where ex
AC_SUBST(EXECUTABLE_PATH)
# Path to ImageMagick lib
@@ -1115,7 +1115,7 @@ index d8fc51b..5def208 100644
#
# path to local binaries
@@ -2910,7 +2910,7 @@ AC_SUBST(LIB_BIN_DIR)
@@ -2970,7 +2970,7 @@ AC_SUBST(LIB_BIN_DIR)
LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
AC_SUBST(LIB_BIN_DIR_RELATIVE_PATH)
@@ -1124,7 +1124,7 @@ index d8fc51b..5def208 100644
AC_SUBST(LIB_BIN_DIR_PATH)
#
@@ -2930,7 +2930,7 @@ AC_SUBST(MODULES_DIRNAME)
@@ -2990,7 +2990,7 @@ AC_SUBST(MODULES_DIRNAME)
MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
AC_SUBST(MODULES_RELATIVE_PATH)
@@ -1133,7 +1133,7 @@ index d8fc51b..5def208 100644
AC_SUBST(MODULES_PATH)
#
@@ -3023,7 +3023,7 @@ AC_SUBST(SHAREARCH_DIRNAME)
@@ -3083,7 +3083,7 @@ AC_SUBST(SHAREARCH_DIRNAME)
SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
AC_SUBST(SHAREARCH_RELATIVE_PATH)
@@ -1143,5 +1143,34 @@ index d8fc51b..5def208 100644
#
--
2.10.2
2.24.1
From 597cbf7ca9ed713e0786d1d8d260803404269f2d Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 8 Mar 2020 15:07:33 +0000
Subject: Make gcc2 happy
diff --git a/magick/utility.c b/magick/utility.c
index 05b84d5..c3c469f 100644
--- a/magick/utility.c
+++ b/magick/utility.c
@@ -665,12 +665,14 @@ MagickExport void ExpandFilename(char *path)
#if !defined(MAGICKCORE_HAVE_GETPWNAM_R)
entry=getpwnam(username);
#else
+ {
struct passwd
pwd;
entry=(struct passwd *) NULL;
if (getpwnam_r(username,&pwd,buffer,sizeof(buffer),&entry) < 0)
return;
+ }
#endif
if (entry == (struct passwd *) NULL)
return;
--
2.24.1