unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: guix@tatd.dev
To: help-guix <help-guix@gnu.org>
Subject: Creating a package is putting it in the wrong directories and not adding libs to the package.
Date: Sat, 03 Aug 2024 21:02:22 +0000	[thread overview]
Message-ID: <172271894910.7.11673029961956479268.396729343@tatd.dev> (raw)

Hello. I don't know if this is the right email list. If not please point me to the right direction.
I am trying to package two programsbfor guix. One is a platform for the other program. The platform  build and installs. Its not adding the lib files or the right directories to the package for the other program to be build.

I am new to the guix package build system and cmake. 

Issues
- It installs just the /include folder instead of /usr/local/include
- It does not install the config files. It installs the config files in a tmp folder and delete them after build.

Here is build process that a capture both from guix and Debian VM. Debian is installing it in /usr/local and including the lib files from the p8-platform buid.

Any help would be much appreciated thank you.

Here is the capture from Guix, Debian, and the scm file for the build. 

## From Guix
Install the project...
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -P cmake_install.cma$
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/guix-build-p8-platform-2.2-1.5a786dd.drv-0/build/lib/libp8-platform.a
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd/include/p8$
-- Installing: /tmp/guix-build-p8-platform-2.2-1.5a786dd.drv-0/build/lib/pkgconfig/p8-platform.$
-- Installing: /tmp/guix-build-p8-platform-2.2-1.5a786dd.drv-0/build/lib/p8-platform/p8-platf
phase `install' succeeded after 0.1 seconds
starting phase `patch-shebangs'
phase `patch-shebangs' succeeded after 0.0 seconds
starting phase `strip'
phase `strip' succeeded after 0.0 seconds
starting phase `validate-runpath'
phase `validate-runpath' succeeded after 0.0 seconds
starting phase `validate-documentation-location'
phase `validate-documentation-location' succeeded after 0.0 seconds
starting phase `delete-info-dir-file'
phase `delete-info-dir-file' succeeded after 0.0 seconds
starting phase `patch-dot-desktop-files'
phase `patch-dot-desktop-files' succeeded after 0.0 seconds
starting phase `make-dynamic-linker-cache'
phase `make-dynamic-linker-cache' succeeded after 0.0 seconds
starting phase `install-license-files'
installing 0 license files from '../source'
phase `install-license-files' succeeded after 0.0 seconds
starting phase `reset-gzip-timestamps'
phase `reset-gzip-timestamps' succeeded after 0.0 seconds
starting phase `compress-documentation'
phase `compress-documentation' succeeded after 0.0 seconds
successfully built /gnu/store/9v82lvbn3q0mfqdll0h420hm06hgh7l2-p8-platform-2.2-1.5a786dd.drv
/gnu/store/8dzz4w415g4rnbr7hjh008jr8hf13q0v-p8-platform-2.2-1.5a786dd

I was able to installed it on Debian VM
## From Debian
[100%] Built target p8-platform
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libp8-platform.a
-- Installing: /usr/local/include/p8-platform/os.h
-- Installing: /usr/local/include/p8-platform/posix/os-socket.h
-- Installing: /usr/local/include/p8-platform/posix/os-threads.h
-- Installing: /usr/local/include/p8-platform/posix/os-types.h
-- Installing: /usr/local/include/p8-platform/sockets/cdevsocket.h
-- Installing: /usr/local/include/p8-platform/sockets/socket.h
-- Installing: /usr/local/include/p8-platform/sockets/tcp.h
-- Installing: /usr/local/include/p8-platform/threads/atomics.h
-- Installing: /usr/local/include/p8-platform/threads/mutex.h
-- Installing: /usr/local/include/p8-platform/threads/threads.h
-- Installing: /usr/local/include/p8-platform/util/atomic.h
-- Installing: /usr/local/include/p8-platform/util/buffer.h
-- Installing: /usr/local/include/p8-platform/util/StringUtils.h
-- Installing: /usr/local/include/p8-platform/util/StdString.h
-- Installing: /usr/local/include/p8-platform/util/timeutils.h
-- Installing: /usr/local/include/p8-platform/util/util.h
-- Installing: /usr/local/lib/pkgconfig/p8-platform.pc
-- Installing: /usr/local/lib/p8-platform/p8-platform-config.cmake

Here is my package scm file
 (define-module (tatd-channel)
      #:use-module (guix licenses)
      #:use-module (guix packages)
      #:use-module (guix utils)
      #:use-module (guix git-download)
      #:use-module (gnu packages xorg)
      #:use-module (gnu packages pkg-config)
      #:use-module (gnu packages linux)
      #:use-module (guix build-system gnu)
      #:use-module (guix build-system cmake)
      #:use-module (guix download))
  
   (define-public p8-platform
     (let ((commit "5a786dd580972a2dc89941ea60dc08c0314e0e4d")
           (revision "1"))
     (package
       (name "p8-platform")
       (version (git-version "2.2" revision commit))
       (source (origin
                 (method git-fetch)
                 (uri
                  (git-reference
                   (url "https://github.com/Pulse-Eight/platform/")
                   (commit commit)))
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
                   "1p8npdps5xzs3ix643kn6didf3w4nkfqjiaaffxd43ajnimnwnk4"))))
       (build-system cmake-build-system)
       (arguments
        `(#:tests? #false
          #:make-flags (list (string-append "prefix=" %output))))
       (synopsis "The Platform for libcec to control tv hdmi")
       (description
        "The Pulse Eight Platform for allow libcec to control your hdmi tv through your compu$
       (home-page "https://www.pulse-eight.com")
       (license gpl2+))))

 (define-public p8-libcec
     (package
       (name "p8-libcec")
       (version "6.0.2")
       (source (origin
                 (method url-fetch)
                 (uri (string-append "https://github.com/Pulse-Eight/libcec/archive/refs/tags$
                 (sha256
                  (base32
                   "0xrkrcgfgr5r8r0854bw3i9jbq4jmf8nzc5vrrx2sxzvlkbrc1h9"))))
       (build-system cmake-build-system)
       (outputs '("out"))
       (arguments
        `(#:tests? #false))
       (inputs
        (list p8-platform))
       (native-inputs
        (list libxrandr
              pkg-config
              eudev))
       (synopsis "The libcec is the library to control tv through  hdmi")
       (description
        "The Pulse Eight libcec is to control your tv through your computer")
       (home-page "https://www.pulse-eight.com")
       (license gpl2+)))



                 reply	other threads:[~2024-08-03 21:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=172271894910.7.11673029961956479268.396729343@tatd.dev \
    --to=guix@tatd.dev \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).