unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Wiktor Żelazny" <wz@freeshell.de>
To: phodina <phodina@protonmail.com>
Cc: help-guix@gnu.org
Subject: Re: Packaging hwinfo
Date: Sat, 24 Jul 2021 21:50:06 +0200	[thread overview]
Message-ID: <20210724195006.apz7gnznfnlwk5mn@wzguix> (raw)
In-Reply-To: <aKMMxxQKuB1T67sxo6MAGbzvRwUnQFXpY-MZN-8mwq8FabjLAHdnLAJpcAjRvRI8FD06YSp_yWETqA5Rp0bUdw5VcL6fWqtmX0Os0_HE53Y=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 4897 bytes --]

On Sat, Jul 24, 2021 at 06:20:18PM +0000, phodina wrote:

> > CFLAGS+="-fPIC -I$srcdir/$pkgname/src/hd -w" \
> >
> > Could it be related to libhd?
>
> Yes, this is due to the libhd. I probably didn't hightlight it in the
> description.

You described the problem very clearly, IMO. As “it”, I meant that line
from PKGBUILD.

> As you suggested I already had look at Arch (previous user).
>
> I built it successfully on Arch using the PKGBUILD.

Using pacman or abs, you mean? Can you build it from source by hand on
Guix?

> I applied this flag but the build is still failing.

Did you apply it while attempting to build hwinfo by hand?

As for your Guix package definition, I can see some substitution there.
I would try CFLAGS. Maybe you will find inspiration in the existing Guix
packages:

   $ grep FLAGS=-I gnu/packages/*.scm
   gnu/packages/astronomy.scm:                  (string-append "CPPFLAGS=-I" netpbm "/include/netpbm")
   gnu/packages/audio.scm:       #:make-flags (list (string-append "CFLAGS=-I"
   gnu/packages/audio.scm:       (list (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/cobol.scm:                               (string-append "JSON_C_CFLAGS=-I"
   gnu/packages/emulators.scm:         (list (string-append "CPPFLAGS=-I" (assoc-ref %build-inputs "sdl2")
   gnu/packages/fabric-management.scm:       (list (string-append "CPPFLAGS=-I" (assoc-ref %build-inputs "opensm")
   gnu/packages/game-development.scm:       (list (string-append "CFLAGS=-I"
   gnu/packages/games.scm:       (list (string-append "CXXFLAGS=-I"
   gnu/packages/games.scm:       (list (string-append "CPPFLAGS=-I"
   gnu/packages/games.scm:       (list (string-append "CPPFLAGS=-I"
   gnu/packages/games.scm:       (list (string-append "CPPFLAGS=-I"
   gnu/packages/games.scm:       (list (string-append "CFLAGS=-I"
   gnu/packages/games.scm:             (string-append "CXXFLAGS=-I"
   gnu/packages/games.scm:        (string-append "READLINE_CFLAGS=-I"
   gnu/packages/games.scm:                         (string-append "SDL_CPPFLAGS=-I"
   gnu/packages/guile-xyz.scm:         (list (string-append "CPPFLAGS=-I"
   gnu/packages/image.scm:             (string-append "CFLAGS=-I. -Icommon/include -Iimage/sys -fPIC "
   gnu/packages/image.scm:              (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/image-viewers.scm:             (string-append "CPPFLAGS=-I"
   gnu/packages/kde-frameworks.scm:       (list (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/kde-multimedia.scm:       (list (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/kde-multimedia.scm:              "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/kde.scm:             (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/libreoffice.scm:               (("GPGMEPP_CFLAGS=-I/usr")
   gnu/packages/libreoffice.scm:                (string-append "GPGMEPP_CFLAGS=-I"
   gnu/packages/libusb.scm:          (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
   gnu/packages/linux.scm:          (string-append "libuuid_CFLAGS=-I" libuuid "/include/uuid")
   gnu/packages/linux.scm:          (string-append "libblkid_CFLAGS=-I" libuuid "/include/uuid "
   gnu/packages/maths.scm:                               (string-append "CPPFLAGS=-I"
   gnu/packages/messaging.scm:        (string-append "CFLAGS=-I"
   gnu/packages/networking.scm:             (string-append "CFLAGS=-I"
   gnu/packages/photo.scm:        (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/qt.scm:          (string-append "-DCMAKE_CXX_FLAGS=-I"
   gnu/packages/raspberry-pi.scm:                           "CFLAGS=-I../common -I../notc/include"))))
   gnu/packages/raspberry-pi.scm:                           "CFLAGS=-Ilib -I. -Iinclude -ffunction-sections -Wall -g -nostdlib -nostartfiles -ffreestanding -DBAREMETAL"))))
   gnu/packages/raspberry-pi.scm:                           "CFLAGS=-Iinclude -g"))))
   gnu/packages/search.scm:                                "CPPFLAGS=-I../src"
   gnu/packages/telephony.scm:                  ,(string-append "UCOMMON_CFLAGS=-I"
   gnu/packages/telephony.scm:                  ,(string-append "LIBOSIP2_CFLAGS=-I"
   gnu/packages/telephony.scm:                  ,(string-append "EXOSIP2_CFLAGS=-I"
   gnu/packages/video.scm:             (string-append "CPPFLAGS=-I"
   gnu/packages/virtualization.scm:              (string-append "CFLAGS=-I" (assoc-ref inputs "cross-libc")
   gnu/packages/web.scm:          (string-append "liblua_CFLAGS=-I" lua "/include")
   gnu/packages/xiph.scm:     `(#:configure-flags (list (string-append "CFLAGS=-I"

> Besides I also opened an issue on [1] though nobody probably even
> noticed :-(

I’m not sure if anyone there is going to be excited about working on an
issue which is Guix-specific. Some months ago, someone on this list
wrote “don’t bother upstream”.

Bye,

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

  reply	other threads:[~2021-07-24 19:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-24 15:56 Packaging hwinfo phodina
2021-07-24 17:44 ` Wiktor Żelazny
2021-07-24 18:20   ` phodina
2021-07-24 19:50     ` Wiktor Żelazny [this message]
2021-07-24 20:57 ` Tobias Geerinckx-Rice
2021-07-26  6:09   ` phodina

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=20210724195006.apz7gnznfnlwk5mn@wzguix \
    --to=wz@freeshell.de \
    --cc=help-guix@gnu.org \
    --cc=phodina@protonmail.com \
    /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).