Re: Status on ddeb support in Debian

2015-06-30 Thread Simon McVittie
On 30/06/15 07:34, Niels Thykier wrote:
> On 2015-06-30 07:14, Paul Wise wrote:
>> A lot of derivatives use reprepro, do you know how that will handle
>> ddebs? Perhaps it should get a default filter to put ddebs into
>> separate archive components? main/dbgsym etc.
> 
> No, I do not concretely know how it will handle it.  Though my /guess/
> is that it will just process it as a regular deb and put it in the main
> part of the pool.

I wrote patches for Ubuntu-style (*.ddeb) debug symbols in reprepro a
while ago: . Those might be a good
starting point for *.deb ddebs if special handling is needed.

S


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55923d79.3020...@debian.org



Re: Status on ddeb support in Debian

2015-06-29 Thread Niels Thykier
On 2015-06-30 07:20, Tomas Pospisek wrote:
> May I suggest you add:
> 
> What is it?
> ===
> 
> * ddeb's are Debian packages with the extenstion .ddeb that
>   contain debugging symbols and are built implicitly.
>   - A package foo_1.23.deb will receive a corresponding
> foo_1.23-dbgsym.ddeb package.
>   - ddebs are built automatically by dh_strip.
> 
> Or such. The above info is deduced from random bits. I haven't
> really read the whole thread closely, so my blurp above might
> be wrong.
> *t
> 
> [...]

Hi Thomas,

Indeed, thanks for the suggestion.  I will try to remember that for next
time. :)

Just to avoid any confusion, please note that we use ".deb" as extension
for these as well.  Accordingly the "ddeb" for foo_1.23_arch.deb would
be foo-dbgsym_1.23_arch.deb.

Thanks,
~Niels



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5592393f.3080...@thykier.net



Re: Status on ddeb support in Debian

2015-06-29 Thread Niels Thykier
On 2015-06-30 07:14, Paul Wise wrote:
> On Tue, Jun 30, 2015 at 12:17 AM, Niels Thykier wrote:
> 
>>  * [Derivatives] Please consider upgrading your infrastructure /
>>tooling if/where needed.
> 
> A lot of derivatives use reprepro, do you know how that will handle
> ddebs? Perhaps it should get a default filter to put ddebs into
> separate archive components? main/dbgsym etc.
> 

No, I do not concretely know how it will handle it.  Though my /guess/
is that it will just process it as a regular deb and put it in the main
part of the pool.

 * Certainly, adding a default filter seems like a good suggestion.
   Have you already filed a wishlist bug for it? :)

Thanks,
~Niels



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55923880.7050...@thykier.net



Re: Status on ddeb support in Debian

2015-06-29 Thread Niels Thykier
On 2015-06-29 22:06, Vincent Bernat wrote:
>  ❦ 29 juin 2015 18:17 +0200, Niels Thykier  :
> 
>>  * Only known blocker is missing archive/dak support.
> 
> Is any help needed here?
> 

It has been a while since I synchronised with the FTP masters (CC'ed),
so things might have changed.  From memory:

 * There is no one actively on ddebs on the dak-side right now.

 * I believe Ansgar talked about having a look at the code at DebConf.

 * I suspect that "Patches are welcome" if you want to help. :)


For those interested in helping, please coordinate with the FTP masters,
as they may have preferences as to /how/ it is done.


Some possibly interesting files/methods in dak:

 * daklib/archive.py - class "ArchiveUpload", method "_final_suites"
   - That tags the upload as needing to go to "NEW" after a call to
 _check_new
   - Breadcrumb trail ends at method "_check_new_binary_overrides"
 (or _binary_override)

 * daklib/upload.py - class "Binary", method "component"
   - Seems to decide in what component as binary is inserted

 * You will probably be needing to mess with SQL.
   - If only to add the new component for the package.


Missing items / items left as an exercise for the reader:

 * I don't have the location of where to insert the override for the
   ddebs, which presumably should only happen once the package is
   accepted.

 * Writing patches and possibly discovering unspoken assumptions on my
   part.

Tricks:

 * You can test "read-only" parts of dak by uploading your copy to
   coccia.debian.org and run your own dak test command.
   - Like some do with "dak rm -nR [-b] package" to see what rdeps
 might be affected by the removal/change of a single package. :)

~Niels





-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/559236fb.1020...@thykier.net



Re: Status on ddeb support in Debian

2015-06-29 Thread Niels Thykier
On 2015-06-29 22:00, Jakub Wilk wrote:
> * Niels Thykier , 2015-06-29, 18:17:
>> * debhelper in unstable can now build ddebs - disabled by default.
> 
> Thanks!
> 
>> - Test with env DH_BUILD_DDEBS=1, but please don't upload ddebs to any
>> Debian archive.
> 
> It almost works. The *-dbgsym_*.deb packages were built, but for
> whatever reason the were not included in the *.changes file.
> 

Indeed, KiBi reported said problem over IRC a few hours before you.

The cause is a that debhelper stopped giving an explicit name to
dpkg-gencontrol for the ddebs.  Unfortunately, dpkg-gencontrol will add
the "wrong" name to debian/files.
  Guillem already devised a short patch for dpkg-gencontrol, which I
will be testing soon.

>> * Please review the documentation in dh_strip(1) and help me improve
>> it where needed.
> 
> Well, the manpage doesn't say that building ddebs is disabled for now,
> or how to enable them...
> 

Thanks, will add that.

~Niels



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55922fb4.8070...@thykier.net



Re: Status on ddeb support in Debian

2015-06-29 Thread Tomas Pospisek
May I suggest you add:

What is it?
===

* ddeb's are Debian packages with the extenstion .ddeb that
  contain debugging symbols and are built implicitly.
  - A package foo_1.23.deb will receive a corresponding
foo_1.23-dbgsym.ddeb package.
  - ddebs are built automatically by dh_strip.

Or such. The above info is deduced from random bits. I haven't
really read the whole thread closely, so my blurp above might
be wrong.
*t

Am 29.06.2015 um 18:17 schrieb Niels Thykier:
> Here is another short update on ddeb support in Debian.
> 
> What is missing?
> 
> 
>  * Only known blocker is missing archive/dak support.
> 
>  * Once DAK support is implemented, I intend to enable ddebs
>unconditionally in debhelper.
> 
> Where are we?
> =
> 
>  * debhelper in unstable can now build ddebs - disabled by default.
>- Test with env DH_BUILD_DDEBS=1, but please don't upload ddebs to
>  any Debian archive.
> 
>  * lintian gives no remarks to the new ddebs.
> 
>  * dh_strip can now be asked to /not/ build ddebs, if your package for
>some reason cannot use them.
>- Known cases are: linux (build-id based debug symbols not supported)
>  and possibly other kernels
> 
> 
> How can I help?
> ===
> 
>  * Please review the documentation in dh_strip(1) and help me improve it
>where needed.
> 
>  * [Toolchain maintainers] If you maintain that might need to handle
>ddebs /differently/ than a regular ddeb (e.g. reprepro), please
>look into implementing that.
> 
>  * [Derivatives] Please consider upgrading your infrastructure /
>tooling if/where needed.
> 
> FAQ
> ===
> 
>  Q: What if my distribution/use-case is ready to build ddebs?
>  A: Please import debhelper 9.20150628 with the attached patch
> cherry-picked.
> - Note, if your developers/users moonlight as DDs, please remind
>   them to build their Debian packages in a clean unstable chroot
>   with the regular debhelper! They should be doing that already,
>   but a reminder cannot hurt.
> 
>  Q: What happens if I upload a ddeb to unstable?
>  A: Either dak unconditionally rejects your upload (if you are lucky)
> OR it ends up in NEW (if you are unlucky).  Note that once your
> package is in NEW, subsequent upload will /also/ end up in NEW.
> Even if they do /not/ include the ddeb package.
> 
> Thanks,
> ~Niels
> 
> 


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5592270f.7080...@sourcepole.ch



Re: Status on ddeb support in Debian

2015-06-29 Thread Paul Wise
On Tue, Jun 30, 2015 at 12:17 AM, Niels Thykier wrote:

>  * [Derivatives] Please consider upgrading your infrastructure /
>tooling if/where needed.

A lot of derivatives use reprepro, do you know how that will handle
ddebs? Perhaps it should get a default filter to put ddebs into
separate archive components? main/dbgsym etc.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAKTje6EpORgAvr=k1MhUD73B4Rmbg_9cG45kS50Oa5=aacq...@mail.gmail.com



Re: Status on ddeb support in Debian

2015-06-29 Thread Vincent Bernat
 ❦ 29 juin 2015 18:17 +0200, Niels Thykier  :

>  * Only known blocker is missing archive/dak support.

Is any help needed here?
-- 
Keep it right when you make it faster.
- The Elements of Programming Style (Kernighan & Plauger)


signature.asc
Description: PGP signature


Re: Status on ddeb support in Debian

2015-06-29 Thread Jakub Wilk

* Niels Thykier , 2015-06-29, 18:17:

* debhelper in unstable can now build ddebs - disabled by default.


Thanks!

- Test with env DH_BUILD_DDEBS=1, but please don't upload ddebs to any 
Debian archive.


It almost works. The *-dbgsym_*.deb packages were built, but for 
whatever reason the were not included in the *.changes file.


* Please review the documentation in dh_strip(1) and help me improve it 
where needed.


Well, the manpage doesn't say that building ddebs is disabled for now, 
or how to enable them...


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150629200056.ga2...@jwilk.net