On 06/11/2021 18.30, Corinna Vinschen via Cygwin wrote:
On Nov  6 15:31, Federico Kircheis via Cygwin wrote:
it seems that cygport always strip binaries, but I have one program that
when stripped does not work correctly.

Out of curiosity, what program is that?  And why does it require the
symbols to be present in the executable?


Corinna


Hi Corinna,

it's pari-gp the program I'm having trouble packaging.

If I compile it manually, without cygport, then I'm able to execute it.
If I use cygport, then the program misbehaves.

I've noticed that cygport strips the binaries, so I thought that could be the issue.


Also setting


RESTRICT="strip" and STRIP=/usr/bin/true


seems to strip some information compared to the manually built binary.

Best

Federico


PS:
Why does cygport strip binaries by default?
Doesn't it generally makes harder to debug issues?
If stripping removes unused data I would actually expect the compiler to not generate it, and if the data is used....

Is it a common practice for GNU/Linux distribution to strip binaries when creating packages?
# pari.cygport
NAME="pari"
VERSION=2.13.3
RELEASE=1
SUMMARY="add summary"
DESCRIPTION="add description"
CATEGORY="Mail" #FIXME, find category

HOMEPAGE="https://pari.math.u-bordeaux.fr";
SRC_URI="https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${VERSION}.tar.gz";
SRC_DIR="pari-${VERSION}"



# for documentation needs latex (pdflatex for creating pdf)
BUILD_REQUIRES="libncurses-devel libreadline-devel libgmp-devel"
REQUIRES="libreadline libgmp10"

PKG_NAMES="pari"

src_compile() {
        lndirs
        cd ${B}
        sh ./Configure \
          --prefix=/usr
        cygmake gp
}

src_install() {
        cd ${B}
        cyginstall
}

src_test() {
        cygmake bench
}
-- 
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

Reply via email to