all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38090] [PATCH 0/2] Fix build for astyle
@ 2019-11-06 16:39 Hartmut Goebel
  2019-11-06 16:40 ` [bug#38090] [PATCH 1/2] gnu: astyle: Install header file, too Hartmut Goebel
       [not found] ` <handler.38090.B.157305839411202.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Hartmut Goebel @ 2019-11-06 16:39 UTC (permalink / raw)
  To: 38090

- header files have been missing
- The Makefile only creates files with a versioned extension (.so.3.1.0),
  which are not picked up be cmake's `find_libarary()`. (Instead cmake
  picks up the static .a library.)

I stepped over these when updating kdevelop.

Hartmut Goebel (2):
  gnu: astyle: Install header file, too.
  gnu: astyle: Create symlinks for .so files, too.

 gnu/packages/code.scm | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

-- 
2.21.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#38090] [PATCH 1/2] gnu: astyle: Install header file, too.
  2019-11-06 16:39 [bug#38090] [PATCH 0/2] Fix build for astyle Hartmut Goebel
@ 2019-11-06 16:40 ` Hartmut Goebel
  2019-11-06 16:40   ` [bug#38090] [PATCH 2/2] gnu: astyle: Create symlinks for .so files, too Hartmut Goebel
       [not found] ` <handler.38090.B.157305839411202.ack@debbugs.gnu.org>
  1 sibling, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2019-11-06 16:40 UTC (permalink / raw)
  To: 38090

* gnu/packages/code.scm(astyle)[arguments]<phases>{install-libs}: Also install
  header file.
---
 gnu/packages/code.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 512ca5d365..d1c3540bd4 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2019 Hartmut Goebel <h.goebel@goebel-consult.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -605,10 +606,14 @@ Objective@tie{}C, D, Java, Pawn, and Vala).  Features:
            (lambda _ (chdir "build/gcc") #t))
          (add-after 'install 'install-libs
            (lambda* (#:key outputs #:allow-other-keys)
-             ;; Libraries are not installed by default
+             ;; Libraries and includes are not installed by default
              (let* ((output (assoc-ref outputs "out"))
+                    (incdir (string-append output "/include"))
                     (libdir (string-append output "/lib")))
                (begin
+                 (mkdir-p incdir)
+                 (copy-file "../../src/astyle.h"
+                            (string-append incdir "/astyle.h"))
                  (mkdir-p libdir)
                  (for-each (lambda (l)
                              (copy-file
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#38090] [PATCH 2/2] gnu: astyle: Create symlinks for .so files, too.
  2019-11-06 16:40 ` [bug#38090] [PATCH 1/2] gnu: astyle: Install header file, too Hartmut Goebel
@ 2019-11-06 16:40   ` Hartmut Goebel
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2019-11-06 16:40 UTC (permalink / raw)
  To: 38090

The Makefile only creates files with a versioned extension (.so.3.1.0),
which are not picked up be cmake's `find_libarary()`. (Instead cmake
picks up the static .a library.)

* gnu/packages/code.scm(astyle)[argumements]<modules>: New element.
  <phases>{install-libs}: Add creating symlinks.
---
 gnu/packages/code.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index d1c3540bd4..9aa5bb3bec 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -600,6 +600,9 @@ Objective@tie{}C, D, Java, Pawn, and Vala).  Features:
        #:make-flags (list (string-append "prefix=" %output)
                           "INSTALL=install"
                           "all")
+       #:modules ((guix build gnu-build-system) ;; FIXME use %default-modules
+                  (guix build utils)
+                  (ice-9 regex))
        #:phases
        (modify-phases %standard-phases
          (replace 'configure
@@ -618,7 +621,14 @@ Objective@tie{}C, D, Java, Pawn, and Vala).  Features:
                  (for-each (lambda (l)
                              (copy-file
                               l (string-append libdir "/" (basename l))))
-                           (find-files "bin" "lib*"))))
+                           (find-files "bin" "lib*"))
+                 (for-each
+                  (lambda (l)
+                    (symlink (basename l)
+                     (regexp-substitute #f
+                                        (string-match "(\\.[0-9]){3}$" l)
+                                        'pre)))
+                  (find-files libdir "lib.*\\.so\\..*"))))
              #t)))))
     (home-page "http://astyle.sourceforge.net/")
     (synopsis "Source code indenter, formatter, and beautifier")
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#38090: Acknowledgement ([PATCH 0/2] Fix build for astyle)
       [not found] ` <handler.38090.B.157305839411202.ack@debbugs.gnu.org>
@ 2019-11-06 21:24   ` Hartmut Goebel
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2019-11-06 21:24 UTC (permalink / raw)
  To: 38090-close

This showed to be not sufficient. Will send a new patch set soon.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-06 21:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 16:39 [bug#38090] [PATCH 0/2] Fix build for astyle Hartmut Goebel
2019-11-06 16:40 ` [bug#38090] [PATCH 1/2] gnu: astyle: Install header file, too Hartmut Goebel
2019-11-06 16:40   ` [bug#38090] [PATCH 2/2] gnu: astyle: Create symlinks for .so files, too Hartmut Goebel
     [not found] ` <handler.38090.B.157305839411202.ack@debbugs.gnu.org>
2019-11-06 21:24   ` bug#38090: Acknowledgement ([PATCH 0/2] Fix build for astyle) Hartmut Goebel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.