Package Details: miktex 26.5-1

Git Clone URL: https://aur.archlinux.org/miktex.git (read-only, click to copy)
Package Base: miktex
Description: a distribution of the TeX/LaTeX typesetting system
Upstream URL: https://miktex.org
Licenses: custom:MiKTeX license
Submitter: heavysink
Maintainer: heavysink (lilac)
Last Packager: lilac
Votes: 13
Popularity: 0.056604
First Submitted: 2020-06-14 02:01 (UTC)
Last Updated: 2026-05-14 12:54 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

airaqi commented on 2026-07-05 08:35 (UTC) (edited on 2026-07-05 08:38 (UTC) by airaqi)

During build I got two errors:


CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

it has been fixed by adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the make command in PKGBUILD.

cmake -DCMAKE_BUILD_TYPE='None' -DCMAKE_INSTALL_PREFIX=/opt/miktex -DWITH_UI_QT=ON -DUSE_SYSTEM_POPPLER=TRUE -DUSE_SYSTEM_POPPLER_QT=TRUE -DUSE_SYSTEM_HARFBUZZ=FALSE -DUSE_SYSTEM_HARFBUZZ_ICU=FALSE -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..

Then:


error: target not found: libjpeg
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> libjpeg
==> ERROR: Could not resolve all dependencies.

and it has been fixed by replacing 'libjpeg-turbo' instread of 'libjpeg' thanks to @cuysaurus.

I hope that helps.

pqatsi commented on 2026-07-03 15:20 (UTC)

diff --git a/.SRCINFO b/.SRCINFO
index c283028..1138f6b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = miktex
    pkgdesc = a distribution of the TeX/LaTeX typesetting system
    pkgver = 26.5
-   pkgrel = 1
+   pkgrel = 2
    url = https://miktex.org
    arch = x86_64
    license = custom:MiKTeX License
@@ -26,7 +26,7 @@ pkgbase = miktex
    depends = graphite
    depends = hunspell
    depends = icu
-   depends = libjpeg
+   depends = libjpeg-turbo
    depends = log4cxx
    depends = xz
    depends = mpfr
diff --git a/PKGBUILD b/PKGBUILD
index b330b19..69a8288 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,14 @@

 pkgname=miktex
 pkgver=26.5
-pkgrel=1
+pkgrel=2
 pkgdesc="a distribution of the TeX/LaTeX typesetting system"
 arch=('x86_64')
 url="https://miktex.org"
 license=('custom:MiKTeX License')
 depends=('apr' 'boost-libs' 'apr-util' 'bzip2' 'cairo' 'expat' 'fontconfig' 'freetype2'
          'fribidi' 'gd' 'gmp' 'graphite' 'hunspell' 'icu'
-         'libjpeg' 'log4cxx' 'xz' 'mpfr' 'libmspack' 'openssl' 'pixman' 'libpng'
+         'libjpeg-turbo' 'log4cxx' 'xz' 'mpfr' 'libmspack' 'openssl' 'pixman' 'libpng'
          'poppler' 'popt' 'potrace' 'uriparser' 'hicolor-icon-theme' 'zziplib' 'poppler-qt6'
          'qt6-declarative' 'qt6-5compat' 'mpfi')
 makedepends=('cmake' 'coreutils' 'fop' 'sed' 'libxslt' 'qt6-tools' 'boost')

Can @heavysink apply this patch?

cuysaurus commented on 2026-07-03 00:31 (UTC)

==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> libjpeg
==> ERROR: Could not resolve all dependencies.

Seems like " the virtual package libjpeg was intentionally removed from Arch Linux's official libjpeg-turbo update. Official repository packages now depend on libjpeg.so or libjpeg-turbo "

attilatiti commented on 2025-08-21 13:26 (UTC)

Hi! Thanks for maintaining this package.

While installing I that the following packages were missing in the build-dependencies: - bison - flex

Before installing these 2, the installation failed on my system. Afterwards it worked!

mundi commented on 2025-05-22 18:26 (UTC) (edited on 2025-05-22 18:27 (UTC) by mundi)

Thank you for maintaining this package I'm not sure what version exactly this started to happen but I'm unable to install the package, it gives diffrent error every time. I don'understand why

here some of them

n file included from /home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/src/woff2_out.cc:9:
/home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/include/woff2/output.h:73:25: error: expected ‘)’ before ‘*’ token
   73 |   WOFF2MemoryOut(uint8_t* buf, size_t buf_size);
      |                 ~       ^
      |                         )
/home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/include/woff2/output.h:79:3: error: ‘uint8_t’ does not name a type
   79 |   uint8_t* buf_;
      |   ^~~~~~~
/home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/include/woff2/output.h:16:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   15 | #include <string>
  +++ |+#include <cstdint>
   16 | 
/home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/src/woff2_out.cc:44:31: error: expected constructor, destructor, or type conversion before ‘(’ token
   44 | WOFF2MemoryOut::WOFF2MemoryOut(uint8_t* buf, size_t buf_size)
      |                               ^
/home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/src/woff2_out.cc: In member function ‘virtual bool woff2::WOFF2MemoryOut::Write(const void*, size_t, size_t)’:
/home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/Programs/DviWare/dvisvgm/source/libs/woff2/src/woff2_out.cc:57:15: error: ‘buf_’ was not declared in this scope; did you mean ‘buf’?
   57 |   std::memcpy(buf_ + offset, buf, n);
      |               ^~~~
      |               buf
make[2]: *** [Programs/DviWare/dvisvgm/CMakeFiles/miktex-dvisvgm.dir/build.make:2515: Programs/DviWare/dvisvgm/CMakeFiles/miktex-dvisvgm.dir/source/libs/woff2/src/woff2_out.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:6824: Programs/DviWare/dvisvgm/CMakeFiles/miktex-dvisvgm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 74%] Building CXX object Programs/TeXAndFriends/omega/omegaware/CMakeFiles/opl2ofm.dir/opl2ofmmain.cpp.o
[ 74%] Linking CXX static library ../../../../sandbox/miktex/bin/linux-x86_64/libopl2ofm.a
[ 74%] Built target opl2ofm
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'miktex-25.4-1': 
error: packages failed to build: miktex-25.4-1

another time it gave

``` | ^~ /home/abdou/.cache/paru/clone/miktex/src/miktex-25.4/build/Programs/TeXAndFriends/omega/omegaware/odvicopy.cc:4879:43: warning: unsigned conversion from ‘int’ to ‘odvicopyProgram::int16u’ {aka ‘short unsigned int’} changes value from ‘1000000’ to ‘16960’ [-Woverflow] 4879 | overflow (strbytes, maxbytes); | ^~ [ 74%] Linking CXX static library ../../../../sandbox/miktex/bin/linux-x86_64/libodvicopy.a [ 74%] Built target odvicopy make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'miktex-25.4-1': error: packages failed to build: miktex-25.4-1

```

vitaliikuzhdin commented on 2025-05-18 11:44 (UTC)

@Richardk2n, the patch is accessible via this link: https://github.com/MiKTeX/miktex/pull/1624.patch?full_index=1

The current state of the package includes options=('!buildflags') to avoid a build error. However, this also disables user-defined build flags, potentially compromising security and performance optimizations. This option should be removed, and a patch like the following should be applied: https://aur.archlinux.org/cgit/aur.git/tree/miktex_format_security.patch?h=miktex-git

Grzzlwmpf commented on 2025-05-18 10:06 (UTC) (edited on 2025-05-18 10:08 (UTC) by Grzzlwmpf)

@Richardk2n Never used patches either tbh, but a quick skim of the wiki page seems to suggest that for a single-line change like this sed is probably more useful:

sed -i '16i #include <cstdint>' Programs/DviWare/dvisvgm/source/libs/woff2/include/woff2/output.h

Including that into prepare() seemed to do the trick, at least for me locally

Richardk2n commented on 2025-05-18 09:52 (UTC) (edited on 2025-05-18 09:53 (UTC) by Richardk2n)

@Grzzlwmpf could you please make a patch for the include (I don't have enough experience with using patches this way to do it myself)?

@heavysink would you please include said patch?

As it stands now, the package does not build aka is broken, so I think this is warranted. Given the track record of the MikTeX maintainer, he will probably not fix it (in a timely manner).

PR for reference: https://github.com/MiKTeX/miktex/pull/1624

OSDVF commented on 2025-05-14 06:01 (UTC)

cmake --build should be used instead of make -j2 because user may have changed the default CMake generator.

Grzzlwmpf commented on 2025-05-04 15:55 (UTC) (edited on 2025-05-04 15:55 (UTC) by Grzzlwmpf)

Also just tested, and manually adding #include <cstdint> to Programs/DviWare/dvisvgm/source/libs/woff2/include/woff2/output.h seems to fully resolve the build issue @mapatrapa mentioned. I've submitted an issue on the GitHub already, but until upstream updates, maybe this could be manually patched in via the PKGBUILD?