• Question about building a deb package

    From Yunmei Li@21:1/5 to All on Fri Feb 25 04:50:01 2022
    Hi,
    I am new to building deb packages, and I would like some help with a
    question.
    I am trying to build a deb package for Milvus(https://milvus.io/) on Ubuntu18.04 or Ubuntu 20.04. Building Milvus requires Cmake 3.18 or higher,
    but the latest version of cmake is 3.16 on Ubuntu 20.04 (golang has the
    same situation). Could I directly use the cmake binary when building my package? Or is there any other solution?

    Kind regards,
    Yunmei LI

    <div dir="ltr"><div class="gmail-_3zvrih6D0SM1Xm0vg5-rDb" style="outline:none;box-sizing:border-box;color:rgb(31,35,41);font-family:LarkEmojiFont,LarkChineseQuote,-apple-system,system-ui,&quot;Helvetica Neue&quot;,Tahoma,&quot;PingFang SC&quot;,&quot;
    Microsoft Yahei&quot;,Arial,&quot;Hiragino Sans GB&quot;,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:14px"><div class="gmail-MAIL_CONTENT_CONTAINER gmail-_
    1kNEVYXVeAQb85qlxiBHQ7" style="outline:none;box-sizing:border-box;overflow-x:auto;padding-left:8px"><div style="outline:none;box-sizing:content-box;white-space:pre-wrap;margin-top:4px;margin-bottom:4px;line-height:1.6"><span style="box-sizing:content-box;
    font-size:16px">Hi,</span>
    </div><div style="outline:none;box-sizing:content-box;white-space:pre-wrap;margin-top:4px;margin-bottom:4px;line-height:1.6"><span style="box-sizing:content-box;font-size:16px">I am </span><span style="box-sizing:content-box;font-size:16px">new to buil</
    span><span style="box-sizing:content-box;font-size:16px">ding deb </span><span style="box-sizing:content-box;font-size:16px">packages, an</span><span style="box-sizing:content-box;font-size:16px">d </span><span style="box-sizing:content-box;font-size:
    16px">I</span><span style="box-sizing:content-box;font-size:16px"> would like some help </span><span style="box-sizing:content-box;font-size:16px">with</span><span style="box-sizing:content-box;font-size:16px"> a question.</span>
    </div><div style="outline:none;box-sizing:content-box;white-space:pre-wrap;margin-top:4px;margin-bottom:4px;line-height:1.6"><span style="box-sizing:content-box;font-size:16px">I </span><span style="box-sizing:content-box;font-size:16px">am trying to
    build a deb package for Milvus(</span><span style="box-sizing:content-box;font-size:16px"><a rel="nofollow noopener noreferrer" href="https://milvus.io/" style="box-sizing:content-box;word-break:break-all;margin-right:2px;text-decoration-line:none;color:
    rgb(51,112,255)">https://milvus.io/</a></span><span style="box-sizing:content-box;font-size:16px">) on Ubuntu18.04 or Ubuntu 20.04. Building </span><span style="box-sizing:content-box;font-size:16px">Milvus </span><span style="box-sizing:content-box;font-
    size:16px">requires Cmake 3.18 or higher, but the</span><span style="box-sizing:content-box;font-size:16px"> latest</span><span style="box-sizing:content-box;font-size:16px"> version of cmake is 3.16 on Ubuntu 20.04 (golang has the same situation).
    Could</span><span style="box-sizing:content-box;font-size:16px"> I directly</span> <span style="box-sizing:content-box;font-size:16px">use the cmake binary when buil</span><span style="box-sizing:content-box;font-size:16px">ding my package?</span><span
    style="box-sizing:content-box;font-size:16px"> Or is there any other solution?</span>
    </div><div style="outline:none;box-sizing:content-box;white-space:pre-wrap;margin-top:4px;margin-bottom:4px;line-height:1.6"><br style="box-sizing:content-box"></div><div style="outline:none;box-sizing:content-box;white-space:pre-wrap;margin-top:4px;
    margin-bottom:4px;line-height:1.6"><span style="box-sizing:content-box;font-size:16px">Kind regards,
    </span></div><div style="outline:none;box-sizing:content-box;white-space:pre-wrap;margin-top:4px;margin-bottom:4px;line-height:1.6"><span style="box-sizing:content-box;font-size:16px">Yunmei LI</span>
    </div></div></div><div class="gmail-_1hRZ0qhsM8AX2a46_vYO9N" style="outline:none;height:8px;overflow:hidden;box-sizing:border-box;color:rgb(31,35,41);font-family:LarkEmojiFont,LarkChineseQuote,-apple-system,system-ui,&quot;Helvetica Neue&quot;,Tahoma,&
    quot;PingFang SC&quot;,&quot;Microsoft Yahei&quot;,Arial,&quot;Hiragino Sans GB&quot;,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:14px;width:0px"><br class="gmail-
    Apple-interchange-newline"></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rahmatullin@21:1/5 to Yunmei Li on Fri Feb 25 07:40:01 2022
    On Fri, Feb 25, 2022 at 11:44:46AM +0800, Yunmei Li wrote:
    I am new to building deb packages, and I would like some help with a question.
    I am trying to build a deb package for Milvus(https://milvus.io/) on Ubuntu18.04 or Ubuntu 20.04. Building Milvus requires Cmake 3.18 or higher, but the latest version of cmake is 3.16 on Ubuntu 20.04 (golang has the
    same situation). Could I directly use the cmake binary when building my package? Or is there any other solution?
    As this mailing list is specifically about Debian contributions, this is offtopic here (both because the question is about Ubuntu and because it's
    about packaging for local use).
    For official packages the only common option would be to not build it on systems where the required dependency versions are not available.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmIYeBctFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh W6sQAInUHgSGbnttSQCTL5xAmyie8rW8UYDMnwJuvEiDV4CdATXRamyhmgF2gDTz 0KNW5A59wvG7nSN0J2/0Dme+JisBUJ4S7yz/MvyQMFA1N17gaTT36MRz3XJCZhta 8a5gcpQdbO/vafi4fc4vXXDGzY/ZCBu7q7ba1bZ+fyje3YaE02xEUY7ZTaUhwNzI WY5AWfmCqNFzlPeA+TTybe2i3Fx/rOy/EHR0UlqN4Ocff//nryDmO1P6ehRYcUFW eOBhbCxeaXTWeF4CCQPckHVvf8BhmXT0JZsny0yabjAcDsji3tTTkRKTX9r9+YMN dtNEWxDUTp6NbcEI+p6fdc+4ZYE+EKFgM1ON3FwfqFY5QJq8QGcMGzaXKoSPn6pn zzcXVFOL2yDXgdN27mpGV7d2TyTm+VBoVyNLzpVu/lcG5deM/bTt6ZJV+k+bGofl oNCcBCk7lrgLEyFgE+XvVqr4GMJVj6fQHwXbaC0QkeG/cPZguVLmN+wRWbEmePFM 8c0B56wx+i5qWwHuDjHf/RBjaLeYPCAPhpRswH+0zBU3JiEhweeR3ZPqrevpwSSq jF2wRo7lwh20RV6QcArzrElJBl42g3z9TrQ6x97TZblqq9zSOwDEKYeCcqAE4cWE zZzY59o6jEqMjGGRK2BUvtOxzDkWUjkMGOEaB+bTLnlUJUhq
    =W92+
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Geert Stappers@21:1/5 to Andrey Rahmatullin on Fri Feb 25 10:00:01 2022
    On Fri, Feb 25, 2022 at 11:32:55AM +0500, Andrey Rahmatullin wrote:
    On Fri, Feb 25, 2022 at 11:44:46AM +0800, Yunmei Li wrote:
    I am new to building deb packages, and I would like some help with a question.
    I am trying to build a deb package for Milvus(https://milvus.io/) on Ubuntu18.04 or Ubuntu 20.04. Building Milvus requires Cmake 3.18 or higher, but the latest version of cmake is 3.16 on Ubuntu 20.04 (golang has the same situation). Could I directly use the cmake binary when building my package?

    I don't understand what the "directly use the cmake binary" means.
    When cmake is needed, have cmake in the build environment ...


    Or is there any other solution?

    And I don't understand the problem :-/

    Is the problem

    Upstream saying "cmake 3.18 meter long works for us" and
    Yunmei asking "Will cmake of size 3.16 meter be long enough?"

    or

    Upstream saying "We us features from cmake that first appeared in 3.18"
    and Yunmei reporting "I did one attempt and got some build error"

    ?


    As this mailing list is specifically about Debian contributions, this is offtopic here (both because the question is about Ubuntu and because it's about packaging for local use).

    There is no need for alienating people that have a question
    about building .debs

    In http://www.catb.org/~esr/faqs/smart-questions.html is documented
    that it is OK to ignore questions that don't deserve your time.

    Show the world that you understand
    that this is the mailinglinglist debian-mentors@lists.debian.org


    For official packages the only common option would be to not build it on systems where the required dependency versions are not available.

    Do not tell it can't be done to people who are already doing it.
    More thruths in https://datatracker.ietf.org/doc/html/rfc1925



    Groeten
    Geert Stappers
    --
    Silence is hard to parse

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sascha Steinbiss@21:1/5 to All on Fri Feb 25 14:40:01 2022
    Hi,

    [...] Could I directly use the cmake binary when building my
    package?

    I don't understand what the "directly use the cmake binary" means.
    When cmake is needed, have cmake in the build environment ...

    I think this might refer to CMake directly being able to build .deb
    packages (see https://cmake.org/cmake/help/latest/cpack_gen/deb.html)
    without going through a source package?
    This might work for personal use but would not be OK for inclusion into
    the 'official' Debian archive.

    Cheers
    Sascha

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Geert Stappers on Fri Feb 25 17:40:01 2022
    On Fri, Feb 25, 2022 at 09:59:02AM +0100, Geert Stappers wrote:
    I don't understand what the "directly use the cmake binary" means.
    When cmake is needed, have cmake in the build environment ...

    I think the OP meant manually putting a cmake 3.18 binary in the search
    path of the system that doesnt have that version packaged, totally
    missing the fact that automated building exists.

    Greetings
    Marc

    -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Steffen_M=c3=b6ller?=@21:1/5 to Andrey Rahmatullin on Sat Feb 26 14:50:02 2022
    On 25.02.22 07:32, Andrey Rahmatullin wrote:
    On Fri, Feb 25, 2022 at 11:44:46AM +0800, Yunmei Li wrote:
    I am new to building deb packages, and I would like some help with a
    question.
    I am trying to build a deb package for Milvus(https://milvus.io/) on
    Ubuntu18.04 or Ubuntu 20.04. Building Milvus requires Cmake 3.18 or higher, >> but the latest version of cmake is 3.16 on Ubuntu 20.04 (golang has the
    same situation). Could I directly use the cmake binary when building my
    package? Or is there any other solution?

    As others have already replied, for your local packages you are
    completely free to do just anything, really. However, if you want
    others, the automated builders of the release in particular, to rebuild
    your package then this is not helpful.

    If you are stuck with these older versions of Ubuntu then you could
    backport cmake 3.18 to these releases. How exactly this works in Ubuntu
    I cannot tell. You may want to start here https://help.ubuntu.com/community/UbuntuBackports

    Best,
    Steffen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)