Quantcast

'cygport dep' is empty for orpie

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

'cygport dep' is empty for orpie

Andrew Schulman
I'm building orpie 1.5.2 with cygport 0.24.0 and ocaml 4.04.0. cygport script is
below.

orpie builds and runs fine. But surprisingly, 'cygport dep' comes back empty:

$ cygport orpie.cygport dep
$

even though /usr/bin/orpie depends on libgsl19, libncursesw10, and libblas0:

$ ldd orpie-1.5.2-3.x86_64/inst/usr/bin/orpie
    ntdll.dll => /win/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffc9bed0000)
    KERNEL32.DLL => /win/c/WINDOWS/System32/KERNEL32.DLL (0x7ffc9a760000)
    KERNELBASE.dll => /win/c/WINDOWS/System32/KERNELBASE.dll (0x7ffc98e70000)
    cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
    cygncursesw-10.dll => /usr/bin/cygncursesw-10.dll (0x3ec850000)
    cyggsl-19.dll => /usr/bin/cyggsl-19.dll (0x3f5b20000)
    cygblas-0.dll => /usr/bin/cygblas-0.dll (0x3f3e70000)

Any idea why that might be?
Thanks,
Andrew


#
# cygport script for orpie
# by Andrew E. Schulman, 2017-04-03
#

NAME=orpie
VERSION=1.5.2
RELEASE=3

# Packaging

SUMMARY="Fullscreen RPN calculator for the console"
DESCRIPTION="Orpie is a fullscreen RPN calculator for the console.  Its
operation
is similar to that of modern HP calculators, but data entry has been
optimized for efficiency on a PC keyboard.  Features include extensive
scientific calculator functionality, command completion, and a visible
interactive stack."
CATEGORY="Math"
HOMEPAGE="http://pessimization.com/software/orpie/"

# Sources

SRC_URI="http://pessimization.com/software/orpie/orpie-${PV}.tar.gz"
PATCH_URI="
 http://pkgs.fedoraproject.org/cgit/rpms/orpie.git/plain/patch-Makefile.in.diff
    http://pkgs.fedoraproject.org/cgit/rpms/orpie.git/plain/patch-configure.diff

http://pkgs.fedoraproject.org/cgit/rpms/orpie.git/plain/patch-gsl-mgsl_sf.c.diff
    http://pkgs.fedoraproject.org/cgit/rpms/orpie.git/plain/patch-gsl_sf.ml.diff
 http://pkgs.fedoraproject.org/cgit/rpms/orpie.git/plain/patch-mlgsl_blas.h.diff

http://pkgs.fedoraproject.org/cgit/rpms/orpie.git/plain/patch-mlgsl_error.c.diff
"

# Build

DEPEND="ocaml ocaml-camlp4 libgsl-devel"
case "$ARCH" in
    i686)
        DEPEND+=" libncurses-devel"  ;;
    x86_64)
        DEPEND+=" libncursesw-devel" ;;
esac

src_compile ()
{
    # As of April 2016, OCaml is broken OOTB in x86_64. Builds fail with the
    # mysterious error "flexdll error: cannot relocate RELOC_REL32, target is
    # too far". Fix this. See
    # https://cygwin.com/ml/cygwin-apps/2016-04/msg00049.html
    if [ "$ARCH" = x86_64 ] ; then
        rebase -b 0x06440000 /usr/lib/ocaml/stublibs/dllunix.so
        rebase -b 0x06510000 /usr/lib/ocaml/stublibs/dllcamlstr.so
    fi

    cd "$S"
    cygautoreconf
    cd "$B"
    lndirs  # configure doesn't support --srcdir
    cygconf --mandir=/usr/share/man CPPFLAGS=-I/usr/include/ncurses
    cygmake curses_assist.cmx
    cygmake
}

src_install ()
{
    cd "$B"
    cyginstall
    make_etc_defaults /etc/orpierc
}


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 'cygport dep' is empty for orpie

Yaakov Selkowitz
On 2017-04-03 23:14, Andrew Schulman wrote:
> I'm building orpie 1.5.2 with cygport 0.24.0 and ocaml 4.04.0. cygport script is
> below.

WFM:

 >>> Packaging orpie-1.5.2-3.x86_64
 >>> Creating binary package(s)
 >>> orpie-1.5.2-3.tar.xz
[snip]
 >>> Checking packages for missing or duplicate files
 >>> Creating source patches
  0 files changed
 >>> Creating source package
[snip]
 >>> orpie requires: cygwin libgsl19 libncursesw10
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> orpie builds and runs fine. But surprisingly, 'cygport dep' comes back empty:
>
> $ cygport orpie.cygport dep
> $

The list and dep commands will display their results in a pager when run
in an interactive console.  What does cygport put in the .hint files?

> even though /usr/bin/orpie depends on libgsl19, libncursesw10, and libblas0:

libblas0 is an indirect dependency of libgsl19, so it won't be listed.

--
Yaakov
Loading...