octave-maintainers
[Top][All Lists]
Advanced

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

Re: PKG_ADD / PKG_DEL directives duplicated on cygwin


From: Marco Atzeri
Subject: Re: PKG_ADD / PKG_DEL directives duplicated on cygwin
Date: Sat, 20 Jun 2015 19:55:02 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 6/20/2015 4:48 PM, Julien Bect wrote:
Hello all,

I have introduced PKG_ADD / PKG_DEL directives in the stk package (2.3.1
release candidate 1):

http://sourceforge.net/projects/kriging/files/stk/rc/stk-2.3.1-rc1-octpkg.tar.gz


The directives are located inside stk_init.m, which copied to the
arch-independent directory. Therefore, I would expect the corresponding
PKG_ADD and PKG_DEL files to be created in the arch-independent directory.

This is indeed what I observe on the two platforms that I have tested
(Ubuntu 14.10 32 bits and Win7 32 bits), but Marco Atzeri observes on
cygwin that the same files are created both in the arch-independent
directory and in the arch-dependent directory:

https://savannah.gnu.org/bugs/index.php?45362

Has anyone seen this problem before ? Could this be a cygwin-specific
issue ?

@++
Julien

Hi Julien,
may be is not a cygwin specific but due to to other directives
that I am using during the packaging.

I just tried a a local installation and the result is similar to yours:

$ find ~/octave/ -name PKG*
/home/marco/octave/stk-2.3.1/PKG_ADD
/home/marco/octave/stk-2.3.1/PKG_DEL

so only one copy of the scripts.

My cygwin build script has:

        octave-cli --eval "
        echo on all
        diary ../log/diary
        more off
pkg prefix ${D}/usr/share/octave/packages/ ${D}/usr/lib/octave/packages/
        pkg local_list  ${B}/octave_packages
        pkg global_list  ${B}/octave_packages
pkg build -nodeps -noauto -global -verbose ${B} ${S}/stk-${PV}.tar.gz
"

where ${D}, ${B} and ${S} are specific directory of the build
systems.

the binary package has also only one copy:
tar -tf stk-2.3.1.tar.gz |grep PKG
stk/PKG_ADD
stk/PKG_DEL

but after the install directive using the just built binary

        octave-cli --eval "
        echo on all
        diary ../log/diary
        more off
pkg prefix ${D}/usr/share/octave/packages/ ${D}/usr/lib/octave/packages/
        pkg local_list  ${B}/octave_packages
        pkg global_list  ${B}/octave_packages
pkg install -nodeps -noauto -global -verbose ${B}/stk-${OV}.tar.gz
        pkg list
"

I found two copies in the temporary install directory:

$ find inst -name "PKG*"
inst/usr/lib/octave/packages/stk-2.3.1/x86_64-unknown-cygwin-api-v50+/PKG_ADD
inst/usr/lib/octave/packages/stk-2.3.1/x86_64-unknown-cygwin-api-v50+/PKG_DEL
inst/usr/share/octave/packages/stk-2.3.1/PKG_ADD
inst/usr/share/octave/packages/stk-2.3.1/PKG_DEL

Regards
Marco



reply via email to

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