Solved net-p2p/transmission-qt5: make stage-qa warnings.

rigoletto@

Developer
Hi,

I finally managed to make a working port. I used the net-p2p/transmission-qt4 as template.

However, when running make stage-qa I receiver some warnings:

Code:
====> Running Q/A tests (stage-qa)
Warning: 'bin/transmission-qt' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Error: /usr/local/bin/transmission-qt is linked to /usr/local/lib/libcrypto.so.41 from security/libressl but it is not declared as a dependency
Warning: you need USES=ssl
Error: /usr/local/bin/transmission-qt is linked to /usr/local/lib/libfontconfig.so.1 from x11-fonts/fontconfig but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libfontconfig.so:x11-fonts/fontconfig
Error: /usr/local/bin/transmission-qt is linked to /usr/local/lib/libfreetype.so.6 from print/freetype2 but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libfreetype.so:print/freetype2
Error: /usr/local/bin/transmission-qt is linked to /usr/local/lib/libGL-NVIDIA.so.1 from x11/nvidia-driver but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libGL-NVIDIA.so:x11/nvidia-driver
/!\ To run stage-qa automatically add DEVELOPER=yes to your environment /!\

  1. INSTALL_TARGET=install-strip is already in the port, and so I do not understad why the warning is in there;
  2. USES=ssl, same as above;
  3. LIB_DEPENDS+=, in the original port have ${GEN_LIB_DEPENDS}. I do not know what it is/do, and if I should add or not what the warnings says so.
Code:
PKGNAMESUFFIX=        -qt5

MAINTAINER=        
COMMENT=        Fast and lightweight Qt5 BitTorrent client

LIB_DEPENDS=        ${GEN_LIB_DEPENDS}
RUN_DEPENDS=        ${GEN_RUN_DEPENDS}

DESCR=            ${.CURDIR}/pkg-descr
MASTERDIR=        ${.CURDIR}/../transmission-cli
PLIST=            ${.CURDIR}/pkg-plist
SLAVEPORT=        qt5

QT_NONSTANDARD=        yes
USE_QT5=        core buildtools gui dbus network widgets qmake_build
USES=            compiler:c++11-lib ssl desktop-file-utils

INSTALL_TARGET=        install-strip

EXTRA_CONF_ARGS=    --disable-cli \
            --disable-daemon \
            --without-gtk \
            --disable-mac \
            --disable-nls

post-patch: general-patch
    @${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \
        ${WRKSRC}/qt/qtr.pro
    @${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \
        >>${WRKSRC}/qt/qtr.pro

post-build:
    @(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD})

do-install:
    @(cd ${WRKSRC}/qt && \
        ${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install)

post-install: general-install
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/qt/README.txt \
        ${STAGEDIR}${DOCSDIR}/README-qt5
    @${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \
        ${STAGEDIR}${PREFIX}/share/applications/
    @${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png

.include "${MASTERDIR}/Makefile"

Thank you!
 
Hi, lebarondemerde!

LIB_DEPENDS+=, in the original port have ${GEN_LIB_DEPENDS}. I do not know what it is/do, and if I should add or not what the warnings says so.
Your Makefile includes ${MASTERDIR}/Makefile, where $MASTERDIR is:
Code:
% make -V MASTERDIR
/usr/ports/net-p2p/transmission-qt4/../transmission-cli
/usr/ports/net-p2p/transmission-qt4/transmission-cli/Makefile defines GEN_LIB_DEPENDS as follows:
Code:
# General dependencies
GEN_LIB_DEPENDS=libb64.so:converters/libb64 \
                libcurl.so:ftp/curl \
                libdht.so:devel/jech-dht \
                libminiupnpc.so:net/miniupnpc \
                libnatpmp.so:net/libnatpmp \
                libutp.so:net/libutp \
                libevent.so:devel/libevent
 
Back
Top