delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/17/05:38:41

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3B663857C47
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1631871519;
bh=Lv0BelFHsIZgAZhA476qhPMOcXLFGwTA7N+qWDORfog=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=idwIusueZ4lbJ2ccJROgr5oAVDT+hPPC+M/anI+F89DPkjsyZyti1GuL+5/FKloy8
MQ0vAqqOh4rj6Gl03FzcQNf/XwO1gTag/irCaAgMEUjBwQjOnESLelJW0BRaWfRhpE
b9pvzsGuj4+yh71+1OOwMnGPWCIfGrMVLJLwEX/M=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 80F033858D29
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=Tdq3Fgy91qTen8pTXBNZwqDnqErqTmzk3teICphD7eQ=;
b=11TohwZnlgESSAGjpmsq9K4PgqHfMtCIRCld2pHm+3u/72g15ssNH0q2bhh3EupeJz
WIiblGCoLJZ5WETXbdlz2Zz14RaoOMbyQ10fbcjHKKDSieIbOS4COobhOB85OMTtBxrq
VsDJ6cG7XgHaiYk0F7jg+gtzdZjXM7u0ndAsImfbUjFj8gqac32izEeyz7MoXTxMS+lL
WIl6XR8/MRaOPtaLQXATdN3M2HPEWSaSpudYSBV3AfujUCYDKyZOuUqy+eOjoEqS7wPp
hyw0fohNtCnq2MOMglGY0nRl+6/FOLh6d16dwUND0cVISMuqe9HlS2jFJ1YscMXdCrUX
u7Fw==
X-Gm-Message-State: AOAM533OuVPvZrllwCHiRLp23MdcMUdrK02/5P8lYdG62P2Ei4JhRzVv
EDY3Ew6OMQHvmj37JTn271RaPx6DYao5z/ivo1hT9oipWB4=
X-Google-Smtp-Source: ABdhPJxwPGVpXa6h2aA1bDMa6FFSClUk9GF0UpyndaT0tsMeqK22KABEiUh42hk83TYrSVFHi29TF6ea3qmSBXAcUUY=
X-Received: by 2002:aa7:d649:: with SMTP id v9mr11771788edr.38.1631871488588;
Fri, 17 Sep 2021 02:38:08 -0700 (PDT)
MIME-Version: 1.0
References: <CADt9577MRdgv+FtGj_2py=Y+fVw+UOJCaux7P=7gHmHReAKcmQ AT mail DOT gmail DOT com>
In-Reply-To: <CADt9577MRdgv+FtGj_2py=Y+fVw+UOJCaux7P=7gHmHReAKcmQ@mail.gmail.com>
Date: Fri, 17 Sep 2021 11:37:59 +0200
Message-ID: <CADt9575jJ8ZvaN4+U5d=Jws=ZPooBbm13p8OLAo-YU2Y69g5Tg@mail.gmail.com>
Subject: Re: cygport: CYGCMAKE_SOURCE seems to have no effect.
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Carlo B. via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Carlo B." <carlo DOT bramini AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello,
in addition to my previous message, I did some experiments with the
code of cygport and I added these lines to
/usr/share/cygport/cygclass/cmake.cygclass:

echo "CYGCMAKE_SOURCE=${CYGCMAKE_SOURCE}"
echo "B=${B}"
echo "S=${S}"
echo "PWD=${PWD}"

and the result is:

CYGCMAKE_SOURCE=/cmake
B=/home/carlo/liblo.src/liblo-0.31-1.x86_64/build
S=/home/carlo/liblo.src/liblo-0.31-1.x86_64/src/liblo-0.31
PWD=/home/carlo/liblo.src/liblo-0.31-1.x86_64/build
*** ERROR: cygcmake: cmake directory not found

But ${CYGCMAKE_SOURCE} was set as:

CYGCMAKE_SOURCE="${S}/cmake"

So, it seems to me that there is at least a bug into the
documentation, because ${CYGCMAKE_SOURCE} does not seem to allow the
use of {S}.
I was able to make it working by writing:

CYGCMAKE_SOURCE="$(pwd)/${NAME}-${VERSION}-${RELEASE}.${ARCH}/src/${NAME}-${VERSION}/cmake"

but I don't know if this is the right way to do it and could be accepted or not.

Sincerely.

Il giorno gio 16 set 2021 alle ore 17:18 Carlo B.
<carlo DOT bramini AT gmail DOT com> ha scritto:
>
> Hello,
> I'm trying to make a package for CYGWIN to provide liblo, but I'm
> having some difficulties.
> This library is available to the most used linux distributions (but
> not limited to), here there is the link to the one into a Debian as
> example:
>
> https://packages.debian.org/buster/liblo-dev
>
> I implemented a script for cygport but this is the output on the
> console when I execute it:
>
> $ cygport liblo.cygport all
> >>> Preparing liblo-0.31-1.x86_64
> >>> Unpacking source liblo-0.31.tar.gz
> >>> Preparing working source directory
> >>> Compiling liblo-0.31-1.x86_64
> *** ERROR: cygcmake: cmake directory not found
>
> The unique aspect of this library is that the CMakeLists.txt file is
> not into the root of the source tree, but it is located into a
> subfolder, see here:
>
> https://github.com/radarsat1/liblo/tree/master/cmake
>
> So, in my script, I configured ${CYGCMAKE_SOURCE} to point there, but
> it still cannot make it working. Since it seems that I'm not able to
> make it working in any way, I'm wondering if the behaviour of this
> variable has been ever tested, so I'm writing here with the hope to
> receive a suggestion.
>
> Thank you very much for your support.
>
> =======> And this is the content of my liblo.cygport file:
>
> inherit cmake
>
> NAME="liblo"
> VERSION=0.31
> RELEASE=1
> CATEGORY="Audio"
> SUMMARY="Open Sound Control protocol for POSIX systems"
> DESCRIPTION="Open Sound Control (OSC) is a protocol for communication
>  among computers, sound synthesizers, and other multimedia devices that
>  is optimized for modern networking technology."
> HOMEPAGE="http://liblo.sourceforge.net/"
> SRC_URI="http://downloads.sourceforge.net/liblo/liblo-${VERSION}.tar.gz"
>
> PKG_NAMES="liblo1 liblo-devel"
> PKG_IGNORE="
>     usr/share/doc/liblo/AUTHORS
>     usr/share/doc/liblo/COPYING
>     usr/share/doc/liblo/ChangeLog
>     usr/share/doc/liblo/NEWS
>     usr/share/doc/liblo/README
>     usr/share/doc/liblo/TODO
> "
>
> liblo1_CATEGORY="Libs"
> liblo1_SUMMARY="${SUMMARY}"
> liblo1_CONTENTS="
>     usr/bin/cyglo-7.dll
>     usr/bin/oscdump.exe
>     usr/bin/oscsend.exe
> "
> liblo_devel_CATEGORY="Libs"
> liblo_devel_SUMMARY="${SUMMARY}"
> liblo_devel_CONTENTS="
>     usr/include/lo/*
>     usr/lib/liblo.dll.a
>     usr/lib/pkgconfig/liblo.pc
>     usr/lib/cmake/liblo/libloConfig.cmake
> "
>
> CYGCMAKE_SOURCE="${S}/cmake"

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019