[med-svn] [Git][med-team/liblemon][master] 6 commits: Fix build with C++20 by using allocator_traits Closes: #1133522
Andreas Tille (@tille)
gitlab at salsa.debian.org
Tue Aug 11 08:12:21 BST 2026
Andreas Tille pushed to branch master at Debian Med / liblemon
Commits:
dd267f58 by Andreas Tille at 2026-08-11T08:13:52+02:00
Fix build with C++20 by using allocator_traits Closes: #1133522
- - - - -
bbac695b by Andreas Tille at 2026-08-11T08:23:19+02:00
d/rules: stick to -std=gnu++14 (also needed for bug #1133522)
- - - - -
a4374580 by Andreas Tille at 2026-08-11T08:32:32+02:00
Standards-Version: 4.7.4 (routine-update)
- - - - -
c08eaa72 by Andreas Tille at 2026-08-11T09:01:35+02:00
Changes made by cme
- - - - -
eeeb8130 by Andreas Tille at 2026-08-11T09:06:01+02:00
routine-update: Ready to upload to unstable
- - - - -
cd15addc by Andreas Tille at 2026-08-11T09:11:59+02:00
Add lrc.conf
- - - - -
7 changed files:
- debian/changelog
- debian/control
- debian/copyright
- + debian/lrc.conf
- + debian/patches/gcc16.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,12 +1,27 @@
-liblemon (1.3.1+dfsg-8) UNRELEASED; urgency=medium
+liblemon (1.3.1+dfsg-9) UNRELEASED; urgency=medium
+ * Add lrc.conf
+
+ -- Andreas Tille <tille at debian.org> Tue, 11 Aug 2026 09:11:47 +0200
+
+liblemon (1.3.1+dfsg-8) unstable; urgency=medium
+
+ [ Michael R. Crusoe ]
* d/rules: fix tab-missing formatting
* d/rules: build & run the tests in parallel
* Standards-Version: 4.7.3 (routine-update)
* debputy lint --auto-fix (routine-update)
* d/control: liblemon-dev: Add Multi-Arch: same.
- -- Michael R. Crusoe <crusoe at debian.org> Fri, 20 Mar 2026 15:15:21 +0100
+ [ Andreas Tille ]
+ * Fix build with C++20 by using allocator_traits
+ Closes: #1133522
+ * d/rules: stick to -std=gnu++14 (also needed for bug #1133522)
+ * Standards-Version: 4.7.4 (routine-update)
+ * Reflow Uploaders field (cme)
+ * Remove Priority field (cme)
+
+ -- Andreas Tille <tille at debian.org> Tue, 11 Aug 2026 09:01:46 +0200
liblemon (1.3.1+dfsg-7) unstable; urgency=medium
=====================================
debian/control
=====================================
@@ -1,28 +1,30 @@
Source: liblemon
+Standards-Version: 4.7.4
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
-Uploaders: Andreas Tille <tille at debian.org>
+Uploaders:
+ Andreas Tille <tille at debian.org>,
Section: science
-Priority: optional
-Build-Depends: debhelper-compat (= 13),
- cmake,
- d-shlibs,
- libglpk-dev,
- python3,
- doxygen,
- graphviz,
- libjs-mathjax,
- ghostscript
-Standards-Version: 4.7.3
+Build-Depends:
+ debhelper-compat (= 14),
+ cmake,
+ d-shlibs,
+ libglpk-dev,
+ python3,
+ doxygen,
+ graphviz,
+ libjs-mathjax,
+ ghostscript,
Vcs-Browser: https://salsa.debian.org/med-team/liblemon
Vcs-Git: https://salsa.debian.org/med-team/liblemon.git
Homepage: https://lemon.cs.elte.hu/trac/lemon
Package: liblemon1.3.1
Architecture: any
-Section: libs
-Depends: ${shlibs:Depends},
- ${misc:Depends}
Multi-Arch: same
+Section: libs
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
Description: Library for Efficient Modeling and Optimization in Networks
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
@@ -37,10 +39,12 @@ Description: Library for Efficient Modeling and Optimization in Networks
Package: liblemon-dev
Architecture: any
+Multi-Arch: same
Section: libdevel
-Depends: ${shlibs:Depends},
- ${misc:Depends},
- liblemon1.3.1 (= ${binary:Version})
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ liblemon1.3.1 (= ${binary:Version}),
Description: Library for Efficient Modeling and Optimization in Networks (development)
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
@@ -52,12 +56,12 @@ Description: Library for Efficient Modeling and Optimization in Networks (develo
open source projects.
.
This package contains the static library and header files.
-Multi-Arch: same
Package: liblemon-utils
Architecture: any
-Depends: ${shlibs:Depends},
- ${misc:Depends}
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
Description: Library for Efficient Modeling and Optimization in Networks (utilities)
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
@@ -72,9 +76,10 @@ Description: Library for Efficient Modeling and Optimization in Networks (utilit
Package: liblemon-doc
Architecture: all
-Section: doc
-Depends: ${misc:Depends}
Multi-Arch: foreign
+Section: doc
+Depends:
+ ${misc:Depends},
Description: Library for Efficient Modeling and Optimization in Networks (doc)
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
=====================================
debian/copyright
=====================================
@@ -6,7 +6,7 @@ Files-Excluded: */doc/html
Files: *
Copyright: 2003-2012 Egerváry Jenő Kombinatorikus Optimalizálási Kutatócsoport
(Egerváry Research Group on Combinatorial Optimization, EGRES).
-License: Boost-1.0
+License: BSL-1.0
Files: lemon/random.h
Copyright: 1997 - 2002, Makoto Matsumoto and Takuji Nishimura
@@ -41,7 +41,7 @@ Files: debian/*
Copyright: 2016 Andreas Tille <tille at debian.org>
License: Boost-1.0
-License: Boost-1.0
+License: BSL-1.0
===========================================================================
Boost Software License, Version 1.0
===========================================================================
=====================================
debian/lrc.conf
=====================================
@@ -0,0 +1 @@
+LICENSE
=====================================
debian/patches/gcc16.patch
=====================================
@@ -0,0 +1,109 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: 2026-08-11
+Description: Fix build with C++20 by using allocator_traits
+Bug-Debian: https://bugs.debian.org/1133522
+
+--- a/lemon/bits/array_map.h
++++ b/lemon/bits/array_map.h
+@@ -88,7 +88,7 @@ namespace lemon {
+ Item it;
+ for (nf->first(it); it != INVALID; nf->next(it)) {
+ int id = nf->id(it);;
+- allocator.construct(&(values[id]), Value());
++ std::allocator_traits<Allocator>::construct(allocator, &(values[id]), Value());
+ }
+ }
+
+@@ -102,7 +102,7 @@ namespace lemon {
+ Item it;
+ for (nf->first(it); it != INVALID; nf->next(it)) {
+ int id = nf->id(it);;
+- allocator.construct(&(values[id]), value);
++ std::allocator_traits<Allocator>::construct(allocator, &(values[id]), value);
+ }
+ }
+
+@@ -121,7 +121,7 @@ namespace lemon {
+ Item it;
+ for (nf->first(it); it != INVALID; nf->next(it)) {
+ int id = nf->id(it);;
+- allocator.construct(&(values[id]), copy.values[id]);
++ std::allocator_traits<Allocator>::construct(allocator, &(values[id]), copy.values[id]);
+ }
+ }
+
+@@ -218,15 +218,15 @@ namespace lemon {
+ for (nf->first(it); it != INVALID; nf->next(it)) {
+ int jd = nf->id(it);;
+ if (id != jd) {
+- allocator.construct(&(new_values[jd]), values[jd]);
+- allocator.destroy(&(values[jd]));
++ std::allocator_traits<Allocator>::construct(allocator, &(new_values[jd]), values[jd]);
++ std::allocator_traits<Allocator>::destroy(allocator, &(values[jd]));
+ }
+ }
+ if (capacity != 0) allocator.deallocate(values, capacity);
+ values = new_values;
+ capacity = new_capacity;
+ }
+- allocator.construct(&(values[id]), Value());
++ std::allocator_traits<Allocator>::construct(allocator, &(values[id]), Value());
+ }
+
+ // \brief Adds more new keys to the map.
+@@ -260,8 +260,8 @@ namespace lemon {
+ }
+ }
+ if (found) continue;
+- allocator.construct(&(new_values[id]), values[id]);
+- allocator.destroy(&(values[id]));
++ std::allocator_traits<Allocator>::construct(allocator, &(new_values[id]), values[id]);
++ std::allocator_traits<Allocator>::destroy(allocator, &(values[id]));
+ }
+ if (capacity != 0) allocator.deallocate(values, capacity);
+ values = new_values;
+@@ -269,7 +269,7 @@ namespace lemon {
+ }
+ for (int i = 0; i < int(keys.size()); ++i) {
+ int id = nf->id(keys[i]);
+- allocator.construct(&(values[id]), Value());
++ std::allocator_traits<Allocator>::construct(allocator, &(values[id]), Value());
+ }
+ }
+
+@@ -279,7 +279,7 @@ namespace lemon {
+ // and it overrides the erase() member function of the observer base.
+ virtual void erase(const Key& key) {
+ int id = Parent::notifier()->id(key);
+- allocator.destroy(&(values[id]));
++ std::allocator_traits<Allocator>::destroy(allocator, &(values[id]));
+ }
+
+ // \brief Erase more keys from the map.
+@@ -289,7 +289,7 @@ namespace lemon {
+ virtual void erase(const std::vector<Key>& keys) {
+ for (int i = 0; i < int(keys.size()); ++i) {
+ int id = Parent::notifier()->id(keys[i]);
+- allocator.destroy(&(values[id]));
++ std::allocator_traits<Allocator>::destroy(allocator, &(values[id]));
+ }
+ }
+
+@@ -303,7 +303,7 @@ namespace lemon {
+ Item it;
+ for (nf->first(it); it != INVALID; nf->next(it)) {
+ int id = nf->id(it);;
+- allocator.construct(&(values[id]), Value());
++ std::allocator_traits<Allocator>::construct(allocator, &(values[id]), Value());
+ }
+ }
+
+@@ -317,7 +317,7 @@ namespace lemon {
+ Item it;
+ for (nf->first(it); it != INVALID; nf->next(it)) {
+ int id = nf->id(it);
+- allocator.destroy(&(values[id]));
++ std::allocator_traits<Allocator>::destroy(allocator, &(values[id]));
+ }
+ allocator.deallocate(values, capacity);
+ capacity = 0;
=====================================
debian/patches/series
=====================================
@@ -7,3 +7,4 @@ fix_libname.patch
dummy-test-check.diff
pkg-config.patch
cmake-4.patch
+gcc16.patch
=====================================
debian/rules
=====================================
@@ -6,6 +6,7 @@ include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
CMAKE_EXTRA_FLAGS += -DBUILD_SHARED_LIBS=TRUE -DLEMON_DOC_USE_MATHJAX=YES
+export DEB_CXXFLAGS_MAINT_APPEND = -std=gnu++14
%:
dh $@
View it on GitLab: https://salsa.debian.org/med-team/liblemon/-/compare/caf438e65ada6737921e512fa92c216f2d232126...cd15addc3ba79d9a7df44b2faaf0706a220a0b3c
--
View it on GitLab: https://salsa.debian.org/med-team/liblemon/-/compare/caf438e65ada6737921e512fa92c216f2d232126...cd15addc3ba79d9a7df44b2faaf0706a220a0b3c
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260811/d9091290/attachment-0001.htm>
More information about the debian-med-commit
mailing list