see also my Port in https://github.com/FreeBSD-Ask/QQ-Port
QQ is a very popular messaging software in China, with approximately 571 million users in 2024.
After installing my Port, running
shows the message: “You need to make sure that /usr/local/share/qq/opt/QQ/chrome-sandbox is owned by root and has mode 4755.” However, if I add these two lines in the script:
the software loses its environment variables and all dependencies.
The complete Port is at https://github.com/FreeBSD-Ask/QQ-Port/blob/main/qq. Does anyone know how to solve this issue? Thank you very much.
QQ is a very popular messaging software in China, with approximately 571 million users in 2024.
After installing my Port, running
/usr/share/qq/opt/QQ/qq
shows the message: “You need to make sure that /usr/local/share/qq/opt/QQ/chrome-sandbox is owned by root and has mode 4755.” However, if I add these two lines in the script:
${CHMOD} 4755 ${STAGEDIR}${PREFIX}/share/qq/opt/QQ/chrome-sandbox
${CHOWN} root:wheel ${STAGEDIR}${PREFIX}/share/qq/opt/QQ/chrome-sandbox
the software loses its environment variables and all dependencies.
Code:
PORTNAME= qq
PORTVERSION= ${QQ_VER}.${QQ_BUILD}
CATEGORIES= net-im linux
MASTER_SITES= https://dldir1.qq.com/qqfile/qq/QQNT/Linux/
DISTNAME= QQ_${QQ_VER}_${QQ_DATE}_${LINUX_ARCH_${ARCH}}_${QQ_BUILD}
DISTFILES= ${DISTNAME}.rpm
MAINTAINER= yklaxds@gmail.com
COMMENT= Tencent QQ for Linux
WWW= https://im.qq.com/linuxqq/
RUN_DEPENDS= linux_base-rl9>0:emulators/linux_base-rl9
USES= linux:rl9
USE_LINUX= xorglibs nss dbus cups-libs alsalib alsa-plugins-oss alsa-plugins-pulseaudio ffmpeg-libs
ONLY_FOR_ARCHS= aarch64 amd64
SHEBANG_FILES= opt/QQ/qq
NO_BUILD= yes
NO_WRKSUBDIR= yes
QQ_VER= 3.2.17
QQ_DATE= 250521
QQ_BUILD= 01
# Architecture mapping
LINUX_ARCH_amd64= x86_64
LINUX_ARCH_aarch64= aarch64
post-extract:
@${REINPLACE_CMD} -e 's|/opt/QQ/qq|${PREFIX}/share/qq/opt/QQ/qq|' \
${WRKSRC}/usr/share/applications/qq.desktop
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/qq
cd ${WRKDIR}/qq-${QQ_VER}.${QQ_BUILD} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/qq
cd ${WRKSRC}/usr/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share
${CHMOD} +x ${STAGEDIR}${PREFIX}/share/qq/opt/QQ/qq
.include <bsd.port.mk>
The complete Port is at https://github.com/FreeBSD-Ask/QQ-Port/blob/main/qq. Does anyone know how to solve this issue? Thank you very much.