<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>503112</bug_id>
          
          <creation_ts>2025-04-21 14:15:15 +0000</creation_ts>
          <short_desc>macOS supports universal binaries, this would be preferable to having separate x68_64 and arm64 binaries</short_desc>
          <delta_ts>2025-08-10 07:49:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Bundle-MacOS</component>
          <version>8.6.0</version>
          <rep_platform>macOS (DMG)</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="rcfa">rcfa+kde.org</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2417559</commentid>
    <comment_count>0</comment_count>
    <who name="rcfa">rcfa+kde.org</who>
    <bug_when>2025-04-21 14:15:15 +0000</bug_when>
    <thetext>Compiling the product as universal binary would simplify distribution (only one download) and installation/migration in a mixed system setup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2417662</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-04-21 18:02:45 +0000</bug_when>
    <thetext>Well, we don&apos;t turn on the universal build for multiple reason :

- Dependencies can be broken.
- PKG size explode.
- Binary compatibility with older MacOS version is lost.

Best regards

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422480</commentid>
    <comment_count>2</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-05-09 15:28:35 +0000</bug_when>
    <thetext>I enabled universal compilation in Macports for testing. arm64 pass, Intel Pass, but not universal in the harfbuzz port :

:debug:build system:  cd &quot;/opt/digikam.org.arm64/var/macports/build/_opt_digikam.org.arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/build-arm64&quot; &amp;&amp; /opt/digikam.org.arm64/bin/ninja -j10 CFLAGS+=&quot;-arch arm64&quot; LDFLAGS+=&quot;-arch arm64&quot; -v 
:info:build ninja: error: unknown target &apos;CFLAGS+=-arch arm64&apos;
:info:build Command failed:  cd &quot;/opt/digikam.org.arm64/var/macports/build/_opt_digikam.org.arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/build-arm64&quot; &amp;&amp; /opt/digikam.org.arm64/bin/ninja -j10 CFLAGS+=&quot;-arch arm64&quot; LDFLAGS+=&quot;-arch arm64&quot; -v 
:info:build Exit code: 1 

Do not ask me why. Universal compatibility with all ports is not yet guaranty.

Best regards

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422481</commentid>
    <comment_count>3</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-05-09 15:42:43 +0000</bug_when>
    <thetext>Downstream bug : https://trac.macports.org/ticket/71699</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422683</commentid>
    <comment_count>4</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-05-10 07:09:42 +0000</bug_when>
    <thetext>Git commit df5f5f9cb11ab0d213767e1782575cdc3f4ec612 by Gilles Caulier.
Committed on 10/05/2025 at 07:08.
Pushed by cgilles into branch &apos;master&apos;.

add Main option to build universal bundle

M  +1    -1    project/bundles/macports/01-build-macports.sh
M  +3    -0    project/bundles/macports/config.sh

https://invent.kde.org/graphics/digikam/-/commit/df5f5f9cb11ab0d213767e1782575cdc3f4ec612</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2445987</commentid>
    <comment_count>5</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-08-08 11:24:58 +0000</bug_when>
    <thetext>A new entry from Macports which is broken using universal target :

https://trac.macports.org/ticket/72800</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2446312</commentid>
    <comment_count>6</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2025-08-10 07:49:46 +0000</bug_when>
    <thetext>Git commit 401fa00fca4b69cef224dd55a44f0fa82e7f85ec by Gilles Caulier.
Committed on 10/08/2025 at 07:48.
Pushed by cgilles into branch &apos;master&apos;.

handle properly the universal configuration everywhere, eg. all cmake build target, install dir, and log file prefix.

M  +4    -4    project/bundles/macports/01-build-macports.sh
M  +1    -1    project/bundles/macports/02-build-extralibs.sh
M  +3    -3    project/bundles/macports/03-build-digikam.sh
M  +2    -2    project/bundles/macports/04-build-installer.sh
M  +21   -9    project/bundles/macports/config.sh
M  +4    -4    project/bundles/macports/makeall.sh
M  +5    -5    project/bundles/macports/update.sh

https://invent.kde.org/graphics/digikam/-/commit/401fa00fca4b69cef224dd55a44f0fa82e7f85ec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>