From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5B3BE158094 for ; Fri, 22 Jul 2022 14:56:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96134E0AFF; Fri, 22 Jul 2022 14:56:18 +0000 (UTC) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C7F25E0AFB for ; Fri, 22 Jul 2022 14:56:15 +0000 (UTC) Received: by mail-il1-x12d.google.com with SMTP id i1so1001368ilk.3 for ; Fri, 22 Jul 2022 07:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=61EUw1kSK15Z+GgSDHpRCj2rlHUlQq69dPKvJN4g1Us=; b=TUkRYCcDGrQwTKuKCfp1UAvtHzuc+CJC6zg2Hmrh5B3FptEYrjdxo0hC0/U9bbBxXp 1RRJM+4xEw6nKwqYbk+31gAOBKXutD9KqWT2Tol2vWxtVe2JJQ7RmnIPBszQpOJg2CXC RUpllQZYrl8z1IlJEsBRGjm+mX3AJFpgt7uL7dy6Kc7K90BA8H+wro2FcRPRp3MbA572 Efa4BRU0yC5yKRUa40hX8xRG2gC2h8Qiq5AFStYgKAtekuH4hVcwrXwpWLuvTk/Q2JsN k7aKSDJD4/U2XhJe2nZyiLVM3e4SEupZYCaLfE5/ZtzLfaXP+n4D3C76mTsv1fbnccV3 AbHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=61EUw1kSK15Z+GgSDHpRCj2rlHUlQq69dPKvJN4g1Us=; b=soZhOc2a3hxkhJREhgirKAy7pepw5CZGjSpfgxc4ZT4LwegtmYag/nnqdtoWXI8Dhj 21BNLXbZnk2EwEIaiR/nfznklmLszfv3VDV1qX30kPDu40TrTe/cEWVw3BcidacA/GC3 +GL8A66CR7eDc1UlH/4yFwb/Gq+j0W+sPUOf/zjuHDuHaOmt96dB+Yz3K/CUqIsirfD9 YuUhqaNdAPpV3dLxNwkRjJWcFK+JnSUz1uaqe6ufB+JtLz70hpF0qzWXxR/p5DbA3rnV VR3nl81QpziNfce0TB0qjUs0591mcT6JXtw9GXAyBNFpDEOZqxgroYFLbUCGbCCHohwP FYEQ== X-Gm-Message-State: AJIora+SnMM1lNEd4UwB46a3Wiyr8pDWboOHNVapuMfnNctO7vsbbrj5 gaO4SZhKkhRwS2rNwOI354QPwpuWvX6r+G99rQ7btMi+d3MJm4I3BHE= X-Google-Smtp-Source: AGRyM1vaTr0pyKzvQwnaRlmmBvds6JAZcviNlwvZkOIkvw3ru3zaKVh0e51J984fMglno3tFxzWTnHJzmcjzkurJd3c= X-Received: by 2002:a92:6603:0:b0:2da:82b6:34a3 with SMTP id a3-20020a926603000000b002da82b634a3mr146543ilc.250.1658501774695; Fri, 22 Jul 2022 07:56:14 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 From: Fabulous Zhang Zheng Date: Fri, 22 Jul 2022 22:56:04 +0800 Message-ID: Subject: [gentoo-dev] dosym function in binary package ebuilds To: gentoo-dev@lists.gentoo.org Content-Type: multipart/alternative; boundary="00000000000023e2d505e4660963" X-Archives-Salt: 0fa006ed-3e1c-48bc-bf2f-5a3c220f3f10 X-Archives-Hash: 249dc11d37591da32ad772c1e56e894e --00000000000023e2d505e4660963 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Good evening, dear list Most binary package ebuilds have such a *dosym* statement in src_install(), take net-im/signal-desktop-bin as an example: dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN} (where the variable is signal-desktop) *dosym* creates a symlink of the binary under opt at /usr/bin/ according to devmanaul. I'm confused about the "../../", since S=3D"${workdir}", the correct way seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx" It's much appreciated if anyone could help ; ) =E2=94=94=E2=94=80=E2=94=80 signal-desktop-bin-5.50.0 =E2=94=9C=E2=94=80=E2=94=80 distdir =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 signal-desktop_5.50.0_amd64.deb= -> /var/cache/distfiles/signal-desktop_5.50.0_amd64.deb =E2=94=9C=E2=94=80=E2=94=80 files -> /var/db/repos/gentoo/net-im/signal= -desktop-bin/files =E2=94=9C=E2=94=80=E2=94=80 homedir =E2=94=9C=E2=94=80=E2=94=80 temp =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 build.log =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 eclass-debug.log =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 environment =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 logging =E2=94=94=E2=94=80=E2=94=80 work =E2=94=9C=E2=94=80=E2=94=80 opt =E2=94=94=E2=94=80=E2=94=80 usr --00000000000023e2d505e4660963 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good evening, dear list

Most= binary package ebuilds have such a *dosym* statement in src_install(), tak= e net-im/signal-desktop-bin as an example:

dosym .= ./../opt/Signal/${MY_PN} /usr/bin/${MY_PN}=C2=A0=C2=A0=C2=A0=C2=A0 (where t= he variable is signal-desktop)

*dosym* creates a s= ymlink of the binary under opt at /usr/bin/ according to devmanaul.
I'm confused about the "../../", since S=3D"${wor= kdir}",=C2=A0 the correct way seems to be "dosym=C2=A0 ./opt/Sign= al/xxx =C2=A0=C2=A0 /usr/bin/xxx"

It's mu= ch appreciated if anyone could help=C2=A0=C2=A0 ; )


=E2=94=94=E2=94=80=E2=94=80 signal-desktop-bin-5.50.0<= br>=C2=A0 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 distdir
=C2=A0 =C2=A0 =E2= =94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 signal-desktop_5.50.0_amd64.= deb -> /var/cache/distfiles/signal-desktop_5.50.0_amd64.deb
=C2=A0 = =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 files -> /var/db/repos/gentoo/net-im/= signal-desktop-bin/files
=C2=A0 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 homed= ir
=C2=A0 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 temp
=C2=A0 =C2=A0 =E2= =94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 build.log
=C2=A0 =C2=A0 = =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 eclass-debug.log
=C2= =A0 =C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 environment=C2=A0 =C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 logging=C2=A0 =C2=A0 =E2=94=94=E2=94=80=E2=94=80 work
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =E2=94=9C=E2=94=80=E2=94=80 opt
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=94= =94=E2=94=80=E2=94=80 usr

--00000000000023e2d505e4660963--