aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/fontconfig-cache-ignore-mtime.patch
blob: b6e942ee102cc6a08766274146295e7134071cbb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Pretend that stat's mtime is broken, so that the fontconfig cache does not
depend upon modification time to determine if a cache is stale.

diff --git a/src/fcstat.c b/src/fcstat.c
index 5a2bd7c..d603a96 100644
--- a/src/fcstat.c
+++ b/src/fcstat.c
@@ -431,6 +431,7 @@ FcIsFsMmapSafe (int fd)
 FcBool
 FcIsFsMtimeBroken (const FcChar8 *dir)
 {
+    return FcTrue;
     int fd = FcOpen ((const char *) dir, O_RDONLY);
 
     if (fd != -1)
l-fetch) (uri (string-append "https://sources.debian.org/data/main/n/nqc/" "3.1.r6-7/debian/patches/" "writable-swap-inst-len.patch")) (sha256 (base32 "1kr7j057aa5i0kxmlfpbfcsif5yq2lrmjw4sljn400ijaq4mys3v")))))) (arguments '(#:tests? #f ;no tests #:make-flags (list (string-append "PREFIX=" %output)) #:phases (modify-phases %standard-phases (delete 'configure) (add-before 'build 'rm-generated ;; Regenerating compiler/lexer.cpp avoids an 'undefined ;; reference to `isatty(int)'' error. (lambda _ (for-each delete-file '("compiler/lexer.cpp" "compiler/parse.cpp")) #t)) (add-after 'unpack 'deal-with-tarbomb (lambda _ (chdir "..") ;tarbomb #t)) (add-after 'deal-with-tarbomb 'patch (lambda* (#:key inputs #:allow-other-keys) (for-each (lambda (patch) (invoke "patch" "-Np1" "-i" (assoc-ref inputs patch))) (list "add-usb-tcp-support.patch" "debian-writable-swap-inst-len.patch"))))))) (home-page "https://bricxcc.sourceforge.net/nqc/") (synopsis "C-like language for Lego's MINDSTORMS") (description "Not Quite C (NQC) is a simple language for programming several Lego MINDSTORMS products. The preprocessor and control structures of NQC are very similar to C. NQC is not a general purpose language -- there are many restrictions that stem from limitations of the standard RCX firmware.") (license license:mpl1.0))) (define-public leocad (package (name "leocad") (version "23.03") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/leozide/leocad") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0sihx2g06mxaahqdh361xfqf7fkzzyhlr58qlzyr4c8jd2pnd3r1")))) (build-system gnu-build-system) (native-inputs (list qttools-5)) ; for lrelease (inputs (list mesa qtbase-5 zlib)) (arguments '(#:tests? #f #:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs inputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (invoke "qmake" (string-append "INSTALL_PREFIX=" out) ;; Otherwise looks for lrelease-qt4. "QMAKE_LRELEASE=lrelease" ;; Don't pester users about updates. "DISABLE_UPDATE_CHECK=1") #t))) (add-after 'configure 'reset-resource-timestamps (lambda _ ;; The contents of build/release/.qrc/qrc_leocad.cpp generated by ;; qt's rcc tool depends on the timestamps in resources/*, in ;; particular the leocad_*.qm files that are created by qmake ;; above. So reset those timestamps for a reproducible build. (with-directory-excursion "resources" (for-each (lambda (file) (let* ((base (basename file ".qm")) (src (string-append base ".ts")) (st (stat src))) (set-file-time file st))) (find-files "." "leocad_.*\\.qm"))) #t))))) (home-page "https://www.leocad.org") (synopsis "Create virtual Lego models") (description "LeoCAD is a program for creating virtual LEGO models. It has an intuitive interface, designed to allow new users to start creating new models without having to spend too much time learning the application. LeoCAD is fully compatible with the LDraw Standard and related tools.") (license license:gpl2+)))