help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packaging hwinfo


From: Wiktor Żelazny
Subject: Re: Packaging hwinfo
Date: Sat, 24 Jul 2021 21:50:06 +0200

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]