php-directory-scanner: add nocheck and stage1 build profiles

Bug #1543399 reported by Nish Aravamudan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-directory-scanner (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

In order to remove PHP5 from the archive, a set of build-dependency loops need to be bootstrapped. php-directory-scanner depends on phpunit and symfony packages, which need to be bootstrapped.

Tags: patch
Revision history for this message
Nish Aravamudan (nacc) wrote :
Changed in php-directory-scanner (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "php-directory-scanner.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Steve Langasek (vorlon) wrote :

+ifeq (,$(filter nocheck stage1, $(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))

I don't think this is correct. The filter command takes a single pattern, followed by a set of whitespace-separated values to match it against. I don't believe you can filter both nocheck and stage1 in a single command.

Revision history for this message
Nish Aravamudan (nacc) wrote :

Per https://www.gnu.org/software/make/manual/html_node/Text-Functions.html, it is allowed:

"$(filter pattern…,text)

    Returns all whitespace-separated words in text that do match any of the pattern words, removing any words that do not match. The patterns are written using ‘%’, just like the patterns used in the patsubst function above."

It did seem to work in my testing (that is specifying -Pnocheck or -Pstage1 dtrt.)

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1543399] Re: php-directory-scanner: add nocheck and stage1 build profiles

On Thu, Feb 11, 2016 at 04:25:10PM -0000, Nish Aravamudan wrote:
> Per https://www.gnu.org/software/make/manual/html_node/Text-
> Functions.html, it is allowed:

> "$(filter pattern…,text)

> Returns all whitespace-separated words in text that do match any of
> the pattern words, removing any words that do not match. The patterns
> are written using ‘%’, just like the patterns used in the patsubst
> function above."

> It did seem to work in my testing (that is specifying -Pnocheck or
> -Pstage1 dtrt.)

ah, TIL! thanks!

Revision history for this message
Steve Langasek (vorlon) wrote :

uploaded, with the minor change of running 'update-maintainer' to fix the maintainer field, and documenting this bug # in the changelog.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package php-directory-scanner - 1.3.1-2ubuntu1

---------------
php-directory-scanner (1.3.1-2ubuntu1) xenial; urgency=medium

  * add nocheck build profile.
  * add stage1 build profile.
  * LP: #1543399.

 -- Nishanth Aravamudan <email address hidden> Mon, 08 Feb 2016 17:58:22 -0800

Changed in php-directory-scanner (Ubuntu):
status: New → Fix Released
Revision history for this message
Nish Aravamudan (nacc) wrote :

Do we need to also version these changes? That is, pkg-php-tools >= 1.32~?

Revision history for this message
Steve Langasek (vorlon) wrote :

On Fri, Feb 12, 2016 at 10:57:54PM -0000, Nish Aravamudan wrote:
> Do we need to also version these changes? That is, pkg-php-tools >=
> 1.32~?

No; the package will just build differently when building with old vs. new
pkg-php-tools, but that's ok, it just results in a no-change rebuild to the
package once the new pkg-php-tools is available. And no-change rebuilds are
a lot cheaper to batch.

Any packages that don't *mis*build with older pkg-php-tools are ok to upload
now with these changes to support stage1 profile.

Revision history for this message
Nish Aravamudan (nacc) wrote :

> No; the package will just build differently when building with old vs. new
> pkg-php-tools, but that's ok, it just results in a no-change rebuild to the
> package once the new pkg-php-tools is available. And no-change rebuilds are
> a lot cheaper to batch.

Will that automatically happen or should I document this as also needing
to be rebuilt?

> Any packages that don't *mis*build with older pkg-php-tools are ok to upload
> now with these changes to support stage1 profile.

Ah, I see! Hrm, then maybe my work today was not necessary and I
misunderstood. *sigh*, I'll think it over.

Revision history for this message
Steve Langasek (vorlon) wrote :

On Sat, Feb 13, 2016 at 12:45:33AM -0000, Nish Aravamudan wrote:
> > No; the package will just build differently when building with old vs. new
> > pkg-php-tools, but that's ok, it just results in a no-change rebuild to the
> > package once the new pkg-php-tools is available. And no-change rebuilds are
> > a lot cheaper to batch.

> Will that automatically happen or should I document this as also needing
> to be rebuilt?

Please document this as also requiring a rebuild.

The preference from my side is to, as much as possible, bootstrap with
pristine sources from the Ubuntu archive. So if packages can be changed to
support a stage1 build profile, and be uploaded to the archive now, I
believe it's better to do this and get this in the archive now; then
afterwards do stage1 bootstrap builds, and finally do no-change rebuilds to
the archive. This lets us separate the "bootstrap" process from the
"sourceful changes" process, and reduce the risk of misbuilds or
mis-uploads.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.