Your message dated Mon, 23 Jan 2017 20:55:45 +0100
with message-id <[email protected]>
and subject line New archive sections 'javascript' and 'rust' added
has caused the Debian Bug report #845576,
regarding Please add a section for Rust packages
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
845576: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845576
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ftp.debian.org
Severity: wishlist

The Debian Rust packaging team has the infrastructure in place to start
uploading Rust library ("crate") packages to support the building of
application packages written in Rust.  We only plan to upload the crate
packages needed to build application packages, but that'll still result
in hundreds of crate packages (with names like librust-cratename-dev).
As a result, we'd like to request the addition of a "rust" section,
rather than putting all those packages in libdevel.

Section description:
Development tools and library crates for the Rust programming language

Thanks,
Josh Triplett

--- End Message ---
--- Begin Message ---
The sections 'javascript' and 'rust' (and their 'cont rib' and 'non-free'
equivalents[1]) have been added to the archive.

I also updated the sections for existing overrides as requested

  node-%, libjs-%, javascript-%      -> javascript
  rustc, cargo, libstd-rust%, rust-% -> rust

via the attached SQL query (not nice, but it worked).

  [1] Which reminded me that this really should be fixed...
BEGIN;

INSERT INTO section (section)
VALUES
  ('javascript'), ('contrib/javascript'), ('non-free/javascript'),
  ('rust'), ('contrib/rust'), ('non-free/rust');

UPDATE override o
SET section = (SELECT s.id FROM section s WHERE s.section = CASE c.name WHEN 
'main' THEN 'javascript' ELSE CONCAT(c.name, '/javascript') END)
FROM component c
WHERE o.component = c.id
AND package LIKE 'node-%' OR package LIKE 'libjs-%' OR package LIKE 
'javascript-%'
AND o.suite = (SELECT id FROM suite WHERE suite_name = 'unstable')
RETURNING
  o.package,
  (SELECT s.section FROM section s WHERE s.id = o.section) AS new_section
;

UPDATE override o
SET section = (SELECT s.id FROM section s WHERE s.section = CASE c.name WHEN 
'main' THEN 'rust' ELSE CONCAT(c.name, '/rust') END)
FROM component c
WHERE o.component = c.id
AND package IN ('rustc', 'cargo') OR package LIKE 'libstd-rust%' OR package 
LIKE 'rust-%'
AND o.suite = (SELECT id FROM suite WHERE suite_name = 'unstable')
RETURNING
  o.package,
  (SELECT s.section FROM section s WHERE s.id = o.section) AS new_section
;

ROLLBACK;
-- COMMIT;

--- End Message ---

Reply via email to