• how to abtain only the debian directory of a package

    From PICCA Frederic-Emmanuel@21:1/5 to All on Wed Jun 18 11:10:02 2025
    Hello, I would

    like to get only the debian directory of a package, in order to build locally a set of packages.

    My tools are for now, the dht programm from pkg-haskell-tools.

    This tool expect a flat directory organized like this p/<package>/debian

    It then create the dsc file from this and build all the .deb files, taking care of the dependency in order to build everythings via sbuild.
    I like the simplicity of this and the fact that it is really easy to deploy, especially since sbuild use unshare.

    It works very whell for the build part.

    Now, I `just` need to maintain this flat package organisation.

    So I started by providing to our users a file 'package' which describe the set of package expected., like this


    # version package
    testing ufo-core
    unstable ufo-filters
    git pyfai http://salsa.debian.org/science-team/pyfai <subfolder>
    ...

    In the futur I would like to add also other sources for packages like pip or something else.

    Then I just need to write something which can parse this file and put the right p/<package>/debian files depending of the user information.
    So to start with, I just want to get the debian directory of the testing/unstable version of package.

    How can I get this without downloading a full debian source package ?

    thanks for your help

    Frederic.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Metzler@21:1/5 to frederic-emmanuel.picca@synchrotron on Wed Jun 18 11:40:01 2025
    On 2025-06-18 PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:
    [...]
    So to start with, I just want to get the debian directory of the testing/unstable version of package.

    How can I get this without downloading a full debian source package ?

    Ther is no easy way for native packages (i.e. where the source package
    only consists of tarball and .dsc). For modern non-native 3.0 you can
    simply unpack the debian.tar.xz, for older packages you'd need to
    extract the files from diff.gz.

    cu Andreas

    --
    `What a good friend you are to him, Dr. Maturin. His other friends are
    so grateful to you.'
    `I sew his ears on from time to time, sure'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to Andreas Metzler on Wed Jun 18 11:50:01 2025
    On Wed, Jun 18, 2025 at 11:30:05AM +0200, Andreas Metzler wrote:
    So to start with, I just want to get the debian directory of the
    testing/unstable version of package.

    How can I get this without downloading a full debian source package ?

    Ther is no easy way for native packages (i.e. where the source package
    only consists of tarball and .dsc). For modern non-native 3.0 you can
    simply unpack the debian.tar.xz, for older packages you'd need to
    extract the files from diff.gz.

    ... and hope that they don't patch the upstream source directly.

    --
    WBR, wRAR

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

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmhSiYItFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh 6DAP/2vzU601510l2CVGxEqbZYaPnwBqd3t6ubU7QZdnXeFlRz4Ccmzfn6a0UjhC xXk1OL/dJjgu/7qluVBGTP04+coEy6NmipqZT9G7dU5o7gTRUVnOVX3UiNDZyJhT IaqgDXfbSNChl9z3dKee1eD+Iipm6csHlRjjbFdxYLPkJrn8Yxz/O7LMk4U1H66O lBrqH3/E9tcHto6MZmmyAciSbxUhLBrGjTdA6Bt7SVdgNC4+86Qi94heH78hwUJC AWcquOJoyi8vxd3uOb046x9NIJth3/xNCq1Pq4UdXAAMYeNUiVk+KIL/AXFudjcW qLgE+N8po5XDJUY3dHCkDAfu2GdJJf0hfJyuFnGndU8DVHYqgtrCRE08XJZIZtsM BlVCP9EfKI3NwbPUHYA94uSrf2dYJ3bxWyzbRZmeL959aBZo9cyT3mQaPAOx1u73 8y0R4RS2Gykf7vpBSL/d4L7sbF28CIFpDfUPZkztSZxv2Gav4Vb/7XlSaS36T/Yb 0awKUmH4p5vEmknNAA4p+cdRswnlebp3mLyIrGrUI8GZgcDiNoI8FH5bpkBs04SP 0rZQ/jHdlHELqbyRr/bo6ZeH4PHw50uWw8W0HLdU01rE+xxlIzIJ6HUznS0AiMOn 2fmdO7IMvlmmq9eMh9wqkijDc+obWon9gsuIOpZtj3QWYAN7
    =MDtB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PICCA Frederic-Emmanuel@21:1/5 to All on Wed Jun 18 12:20:02 2025
    ... and hope that they don't patch the upstream source directly.

    The purpose is not necessarely to build every packages already uploaded into Debian :).

    Just a few packages from testing/unstable in order to build backports on the current stable or exceptionally oldstable.

    Maybe a solution would be to use snapshot in order to retrive the source packages.

    Do we have a cli-tool whcih is an equivalent of apt source blabla=version, but connected by default to snapshot ?

    Fred

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Colin Watson@21:1/5 to PICCA Frederic-Emmanuel on Wed Jun 18 12:30:01 2025
    On Wed, Jun 18, 2025 at 11:59:11AM +0200, PICCA Frederic-Emmanuel wrote:
    Do we have a cli-tool whcih is an equivalent of apt source blabla=version, but connected by default to snapshot ?

    There's debsnap(1) in devscripts.

    --
    Colin Watson (he/him) [cjwatson@debian.org]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to PICCA Frederic-Emmanuel on Wed Jun 18 12:30:01 2025
    On Wed, Jun 18, 2025 at 11:59:11AM +0200, PICCA Frederic-Emmanuel wrote:
    ... and hope that they don't patch the upstream source directly.

    The purpose is not necessarely to build every packages already uploaded into Debian :).

    Just a few packages from testing/unstable in order to build backports on the current stable or exceptionally oldstable.

    Maybe a solution would be to use snapshot in order to retrive the source packages.

    Do we have a cli-tool whcih is an equivalent of apt source blabla=version, but connected by default to snapshot ?

    debsnap

    --
    WBR, wRAR

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

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmhSlKwtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh LKgP/3lWbt9Tm6gnbaxueITT32A8kgTr3EmmA6saa28cIXCJDPygJcN0ImdvmK/d gScjKcyppm87Wuq5RDZOurYSmmKwYR47pkeHu1O0oez7v5GxQc9CIyFsEdyb+Tq0 77o0wPSxGXzwdWS37ef055Nbx6P3JI3kRR41SqAnXfMDSTUVD/79unktqfELH8/C 5aYNxAD6BKmQcIqyWjVNY1DvSycwqWMT7zgwrVhDMN5jDdNzR2iqFwvrNRu7ObDS IAtCEmvqP2MIfUUQSHwwDKwsRFgnGRtrMTHtzqv7dwPlcxv+f3iXKPXezOBcdXsw Qi3DCokETZwNOKQnb36iUiZUcwgltgGiZdIq6tjBBTsR8Zjm3kYlReY6HIE4mtIx STSlsoSPZmwGa3IP95rvLnMFeDJ/GNu5O3DWIgbAwKBdgdfbm7n+wqAnI4pIHwhk w2HhSWSzfHxHZe7DCqyEfc68Eif/L6bf9JBJaTCsPe5nqJvdmbqR4RtkFsuRLseq qDtKGBuAaPcZvPRpSK+cQdZ+GrBj5sI0AtNpTsaAgG9ZAGuqUMaL45+NRdP6ak9s 5OLanIhOHmTkJVd10uJG92005iZBknRkwPgUUIoiN9GSIQhwEr+u+K0ca66d19h+ LLanhlbxjwnnta1h2A4Vo/o4Gt/f/Pb6ZvaJMkIEeNRtxpuJ
    =8bJB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PICCA Frederic-Emmanuel@21:1/5 to All on Wed Jun 18 13:10:02 2025
    debsnap

    Indeed,

    it is quite slow compare to apt source...

    thanks

    Fred

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to PICCA Frederic-Emmanuel on Wed Jun 18 13:20:01 2025
    On Wed, Jun 18, 2025 at 12:51:28PM +0200, PICCA Frederic-Emmanuel wrote:
    debsnap

    Indeed,

    it is quite slow compare to apt source...

    Not to me.
    Make sure you are using it correctly, e.g. make sure you are specifying
    the version to download.

    --
    WBR, wRAR

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

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmhSn6ItFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh xmcQAKPM9/4aFXsLaBZ5CSs9UW6TOwzEF9Xk9FRIlieSu1nQ3Z7BtmqUO5YDoa5d xm0UX3bLlG23YdC4/8ZyI0cCF2Q80VDFS36tTuJvGImFoLe9FSFBKn9MpSuH9Sfd xIAHF4N2LIUy7clrljq77TZuEIgqQTe2MICOS7U1wRR1tZd44D8hJOb+Z1MliUQF IrFfsMG9N295UD2Odp9CM+ghYDgYkwcyY0VrMnIl9x0H9w7wyBCvK1aO6qSacKlp GdQgBKZjM+FKFYAo4Xo3ja/qGWsiddvX1BUxoSlEPR/2k0vbTTjJe/UhvYabzRUl mP99KBgrwvrJDrclGLWkHDkirl18bmkBVo1DAAHOcRbGp/egb81hRx6Vbh3ge3Le wddoAUHUMHOE8As41wEfWawL9pgRJ+QYZN08U7CUu7neIhVrWxjajnECA5R9ZJNk C7r1/CwZo1ZfG44sf4PxajT0oetquMHyKMiCyMXMYWxWqk8MyJzHcCCOfei4INlS 3Om3lnrNlDhzJFVub5LvMuU9I73OaSjwfORF71FK+BAaeCKcd652FJIAh3eaCPHy 42oSqpZ/YMmstyimz7K6Qk13VRoEFCJWqmj4sf50/dDVWvJOcNlv+0oJipwZDmGM +cke2NWdwoGEAgHNxn4p0Vyqf+sHQ8jpt4AKlFKI3e1xuTEP
    =af3i
    -----END PGP SIGNATURE-----

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