delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org E8A0D3858D29 |
Authentication-Results: | sourceware.org; dmarc=none (p=none dis=none) |
header.from=SystematicSw.ab.ca | |
Authentication-Results: | sourceware.org; |
spf=none smtp.mailfrom=systematicsw.ab.ca | |
X-Authority-Analysis: | v=2.4 cv=I4EG+Psg c=1 sm=1 tr=0 ts=6144b715 |
a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 | |
a=IkcTkHD0fZMA:10 a=vKebfVIyAAAA:8 a=FP58Ms26AAAA:8 a=g9xsj6QLcMVTD2jiBXsA:9 | |
a=QEXdDO2ut3YA:10 a=QrC7uEyoK2QA:10 a=n2eEs4sum_sr8PAT1Mgn:22 | |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Subject: | Re: cygport: CYGCMAKE_SOURCE seems to have no effect. |
To: | cygwin AT cygwin DOT com |
References: | <CADt9577MRdgv+FtGj_2py=Y+fVw+UOJCaux7P=7gHmHReAKcmQ AT mail DOT gmail DOT com> |
<CADt9575jJ8ZvaN4+U5d=Jws=ZPooBbm13p8OLAo-YU2Y69g5Tg AT mail DOT gmail DOT com> | |
Organization: | Systematic Software |
Message-ID: | <fed7b366-56ef-0a93-1b8b-fbb8c6ced443@SystematicSw.ab.ca> |
Date: | Fri, 17 Sep 2021 09:41:08 -0600 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 |
Thunderbird/78.14.0 | |
MIME-Version: | 1.0 |
In-Reply-To: | <CADt9575jJ8ZvaN4+U5d=Jws=ZPooBbm13p8OLAo-YU2Y69g5Tg@mail.gmail.com> |
X-CMAE-Envelope: | MS4xfM7vwcZ7Icnl7L+9KQfqZ7OTFmjDkQukSuhF2UeP4YcfPz3VSN6SHRJLhaKro3uaUwomJeoRkrjjJFIlgQ9WPQXkOLQ09bb+Vxf5irPPv2jYyOo7iZyP |
mY035u9d6CXwn/+KdjIMkDfZ3bfYWshDFSChf3PgopeJri60iHmc6PWpQiNH2AIrRCJNIF1BtYX+0qpdVku4G1PpJRC+PlOb5kw= | |
X-Spam-Status: | No, score=-1161.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, | |
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, | |
SPF_NONE, TXREP autolearn=no 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-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
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> | |
Reply-To: | cygwin AT cygwin DOT com |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
On 2021-09-17 03:37, Carlo B. via Cygwin wrote: > 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 If you look at the Cygport Install Functions docs for docinto, ...into, defining target directories, you would see that an "absolute" path disables cygport from prefixing a subdirectory name with the package name, etc. so CMakeLists.txt is (linked) under ${S,B}/cmake, and cygport will automatically find that, so it should not be required or specified: https://cygwin.github.io/cygport/cmake_cygclass.html#robo767 "This is only necessary when the top-level CMakeLists.txt is not in $S and cygcmake is not being run in the same subdirectory of $B which under $S contains the top-level CMakeLists.txt. (IOW if the top-level CMakeLists.txt is in $S/unix and cygcmake is run from $B/unix, setting CYGCMAKE_SOURCE would not be necessary.)" as cygport would find CMakeLists.txt in $S/cmake/ so it would copy or link those under $B, and run cygcmake under the equivalent subdirectory. > 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}. CMakeLists.txt is found automatically by cygport if it is under $S, as that is the documented assumption (see above). > 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. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.] >> =======> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |