[MacPorts] #71216: LyX: checksums mismatch

MacPorts noreply at macports.org
Sat Nov 2 00:37:49 UTC 2024


#71216: LyX: checksums mismatch
---------------------------+----------------------------
  Reporter:  barracuda156  |      Owner:  kurthindenburg
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.3
Resolution:                |   Keywords:
      Port:  LyX           |
---------------------------+----------------------------

Comment (by ryandesign):

 This specific problem, the checksum mismatch, is solvable:

 {{{#!diff
 diff --git a/aqua/LyX/Portfile b/aqua/LyX/Portfile
 index 5d45fe0c357..2deaff87802 100644
 --- a/aqua/LyX/Portfile
 +++ b/aqua/LyX/Portfile
 @@ -8,7 +8,8 @@ name                LyX
  conflicts           LyX1
  version             2.4.2
  revision            0
 -set branch          [join [lrange [split ${version} .] 0 1] .]
 +options branch
 +default branch      {[join [lrange [split ${version} .] 0 1] .]}
  categories          aqua
  license             GPL-2+
  maintainers         {khindenburg @kurthindenburg} openmaintainer
 @@ -29,13 +30,13 @@ depends_lib-append      port:enchant \
                          port:aspell

  use_xz              yes
 -distname            lyx-${version}
 -worksrcdir          lyx-${version}
 +default distname    {lyx-${version}}
 +default worksrcdir  {lyx-${version}}

 -master_sites        http://lyx.cybermirror.org/stable/${branch}.x/ \
 +default master_sites {http://lyx.cybermirror.org/stable/${branch}.x/ \
 http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${branch}.x/ \
                      ftp://ftp.ntua.gr/pub/X11/LyX/stable/${branch}.x/ \
 -                    ftp://ftp.lyx.org/pub/lyx/stable/${branch}.x/
 +                    ftp://ftp.lyx.org/pub/lyx/stable/${branch}.x/}

  checksums           rmd160  686630c5fe6d98bb29625e0818d9ad027bdb3814 \
                      sha256
 0d5a75dec9a169ab23bfa47da53ec65c62432de57014de315023d620ebccfe68 \
 }}}

 However the general problem with switching versions in a variant is not
 solvable by a port because MacPorts wasn't designed to accommodate it.
 There is only one entry for a port in the portindex. One set of
 information, including the port's version. Let's say that the portindex
 records the port's information with no variants selected, so the version
 of this port in the index is 2.4.2. But the user installs the port with
 the +qt4 variant, so the version that's actually installed is 2.3.8. Every
 time the user runs `port outdated`, MacPorts will tell the user that
 version 2.4.2 is available, even though it isn't. The user will try to run
 `sudo port upgrade LyX` which will do nothing.

-- 
Ticket URL: <https://trac.macports.org/ticket/71216#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list