crosstool-ng packaging for Debian

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

crosstool-ng packaging for Debian

Alexis Murzeau
I resend this mail in text-only format as the first one got rejected.

(by the way, sorry for the possible duplicates)


Alexis Murzeau


-------- Forwarded Message --------
Subject: crosstool-ng packaging for Debian
Date: Thu, 13 Jul 2017 01:53:53 +0200
From: Alexis Murzeau <[hidden email]>
To: Chris Packham <[hidden email]>,
[hidden email]
CC: [hidden email]



Hi,

This week I worked on packaging crosstool-ng 1.23 for Debian using
existing work.

I found that some dependencies are missing from the binary package so
`ct-ng build` works correctly with minimal base system (like m4, wget).

I also added patches:
- 0001-Disable-MAKELEVEL-check.patch:
    An alternative to setting MAKELEVEL=0 inside debian/rules.
    This patch comments out the check of MAKELEVEL inside `Makefile.in`.

- 0002-Makefile.in-remove-recursive-part.patch:
    This patch fix the infinite recursion issue. I should probably share
this into crosstool-ng and put the following text into the patch
description :).
    The issue is that Debian dh run `make -n` which give `nrR` inside
MAKEFLAGS and the `filter` function only matches whole words.
    Using `findstring` replaces every occurrences of the given text,
making the assumption that no long options will contain `rR` or `Rr`.

- 0003-Backport-commit-Fix-debuild-warnings-errors.patch:
    This patch backports the commit [1] to fix lintian warning and errors.

I added installation of the bash completion script into
/usr/share/bash-completion/completions (which is the new directory
replacing /etc/bash_completion.d/).

I've added a watch file which use [4] and checks the gpg signature
against `debian/upstream/signing-key.asc`.
The signing-key.asc file contains public keys of Alexey Neyman and Bryan
Hundven (not sure if they are all the needed signatures).

I added a autopkgtest test to build a `arm-unknown-eabi` toolchain to
check that the built package is working properly.

I put my package sources on github [2] with a travis configuration to:
- Build on travis a schroot of unstable (as travis use old ubuntu releases)
- Use this schroot to run sbuild inside which also run lintian and
autopkgtest.
- Not that relevant but travis-ci also upload the built package to
bintray when building a tag.

I use git-buildpackage to manage the source package.
My workflow is documented at `debian/README.source`.

Due to the length of the toolchain building and limitation of travis
build max duration, I only test one toolchain build (arm-unknown-eabi).
FYI, Travis sbuild logs are available here [3].

I'm not sure about my medium/long term availability to maintain this
package, but I hope what I have done can help to get crosstool-ng into
Debian :)

[1]
https://github.com/crosstool-ng/crosstool-ng/commit/1b4e784a0ba636646def1db5ca012fd54ee7a81c
[2] https://github.com/amurzeau/crosstool-ng-debian/
[3] https://travis-ci.org/amurzeau/crosstool-ng-debian/builds/252979392
[4] http://crosstool-ng.org/download/crosstool-ng/

Alexis Murzeau
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: crosstool-ng packaging for Debian

Geert Stappers
On Thu, Jul 13, 2017 at 12:17:01AM +0000, Alexis Murzeau wrote:
> I resend this mail in text-only format as the first one got rejected.
>
> (by the way, sorry for the possible duplicates)
 
  :-)


>
> Alexis Murzeau
>
>
> -------- Forwarded Message --------
> Subject: crosstool-ng packaging for Debian
> Date: Thu, 13 Jul 2017 01:53:53 +0200
> From: Alexis Murzeau <[hidden email]>
> To: Chris Packham <[hidden email]>, [hidden email]
> CC: [hidden email]
>
>
>
> Hi,
>
> This week I worked on packaging crosstool-ng 1.23 for Debian
Thanks for doing so.


> using existing work.

Most likely you missed some of the existing work.
We, Chris, you (Alexis Murzeau) and I (Geert),
need to find out what work exists and merge it in one.

What is needed that some of us says:
  URL is for the time being the leading SCM repository



Groeten
Geert Stappers
Debian Developer
Uploader of crosstool-ng
--
Leven en laten leven

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug#721430: crosstool-ng packaging for Debian

Geert Stappers
On Mon, Jul 17, 2017 at 09:26:53PM +0000, Alexis Murzeau wrote:

> On 17/07/2017 17:44, Geert Stappers wrote:
> >
> >> using existing work.
> > Most likely you missed some of the existing work.
> > We, Chris, you (Alexis Murzeau) and I (Geert),
> > need to find out what work exists and merge it in one.
> >
> > What is needed that some of us says:
> >    URL is for the time being the leading SCM repository
> >
>
> I've found so far only the main repository on github at [1] to contains
> Debian packaging files.
> I've not checked the package on mentors.debian.net extensively but found
> it relatively close to the one in official sources [1].
> I can't find the crosstool-ng package on mentors.debian.net anymore,
> does it get to a new stage ?
>
>
> Is there other already known repositories out there ?

 git repro https://github.com/cpackham/crosstool-ng.git 
 branch debian-packaging-update

> (So I can maybe  make a pull request or something :-) ).
> I guess it's better for the Debian package source repository to be a
> separate one from the upstream crosstool-ng one ?

Yes, some indepency from upstream has advantages


> Alexis Murzeau

Groeten
Geert Stappers


[1] https://github.com/crosstool-ng/crosstool-ng/tree/master/debian
--
Leven en laten leven
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug#721430: crosstool-ng packaging for Debian

Chris Packham-2
On 19/07/17 07:57, Geert Stappers wrote:

> On Mon, Jul 17, 2017 at 09:26:53PM +0000, Alexis Murzeau wrote:
>> On 17/07/2017 17:44, Geert Stappers wrote:
>>>
>>>> using existing work.
>>> Most likely you missed some of the existing work.
>>> We, Chris, you (Alexis Murzeau) and I (Geert),
>>> need to find out what work exists and merge it in one.
>>>
>>> What is needed that some of us says:
>>>     URL is for the time being the leading SCM repository
>>>
>>
>> I've found so far only the main repository on github at [1] to contains
>> Debian packaging files.
>> I've not checked the package on mentors.debian.net extensively but found
>> it relatively close to the one in official sources [1].
>> I can't find the crosstool-ng package on mentors.debian.net anymore,
>> does it get to a new stage ?
>>
>>
>> Is there other already known repositories out there ?
>
>   git repro https://github.com/cpackham/crosstool-ng.git
>   branch debian-packaging-update
>

The changes from that branch have been merged to the upstream repo so
it's effectively dead. I'll probably delete it shortly.

>> (So I can maybe  make a pull request or something :-) ).
>> I guess it's better for the Debian package source repository to be a
>> separate one from the upstream crosstool-ng one ?
>
> Yes, some indepency from upstream has advantages
>
>
>> Alexis Murzeau
>
> Groeten
> Geert Stappers
>
>
> [1] https://github.com/crosstool-ng/crosstool-ng/tree/master/debian
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug#721430: crosstool-ng packaging for Debian

Chris Packham-2
On 24/07/17 12:33, Chris Packham wrote:

> On 19/07/17 07:57, Geert Stappers wrote:
>> On Mon, Jul 17, 2017 at 09:26:53PM +0000, Alexis Murzeau wrote:
>>> On 17/07/2017 17:44, Geert Stappers wrote:
>>>>
>>>>> using existing work.
>>>> Most likely you missed some of the existing work.
>>>> We, Chris, you (Alexis Murzeau) and I (Geert),
>>>> need to find out what work exists and merge it in one.
>>>>
>>>> What is needed that some of us says:
>>>>      URL is for the time being the leading SCM repository
>>>>
>>>
>>> I've found so far only the main repository on github at [1] to contains
>>> Debian packaging files.
>>> I've not checked the package on mentors.debian.net extensively but found
>>> it relatively close to the one in official sources [1].
>>> I can't find the crosstool-ng package on mentors.debian.net anymore,
>>> does it get to a new stage ?
>>>
>>>
>>> Is there other already known repositories out there ?
>>
>>    git repro https://github.com/cpackham/crosstool-ng.git
>>    branch debian-packaging-update
>>
>
> The changes from that branch have been merged to the upstream repo so
> it's effectively dead. I'll probably delete it shortly.
>
>>> (So I can maybe  make a pull request or something :-) ).
>>> I guess it's better for the Debian package source repository to be a
>>> separate one from the upstream crosstool-ng one ?
>>
>> Yes, some indepency from upstream has advantages
>>

Sorry hit send too soon :(.

Separating them is probably a good idea short term at least. I'd like to
get the current released version 1.23 packaged. This may require patches
to fix lintian issues (some of which have already been applied to master).

Longer term we can decide to either maintain the packaging completely
separately (and remove the /debian directory from crosstool-ng.git) or
bribe Alexy to make it part of the upstream release process.


Loading...