[med-svn] [Git][med-team/libvgio][master] Initial packaging

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Oct 30 10:05:37 GMT 2026



Andreas Tille pushed to branch master at Debian Med / libvgio


Commits:
233c29fc by Andreas Tille at 2026-10-30T11:05:29+01:00
Initial packaging

- - - - -


14 changed files:

- + debian/changelog
- + debian/control
- + debian/copyright
- + debian/libvgio-dev.install
- + debian/libvgio0.install
- + debian/patches/install-paths-and-soname.patch
- + debian/patches/series
- + debian/rules
- + debian/salsa-ci.yml
- + debian/source/format
- + debian/tests/control
- + debian/tests/smoke
- + debian/upstream/metadata
- + debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -0,0 +1,5 @@
+libvgio (0.0~git20261016.54490c2-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #1152536).
+
+ -- Andreas Tille <tille at debian.org>  Fri, 30 Oct 2026 11:02:57 +0100


=====================================
debian/control
=====================================
@@ -0,0 +1,50 @@
+Source: libvgio
+Section: libs
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>,
+Build-Depends: debhelper-compat (= 14),
+               cmake,
+               pkgconf,
+               libhandlegraph-dev,
+               libhts-dev,
+               libjansson-dev,
+               libprotobuf-dev,
+               protobuf-compiler,
+               zlib1g-dev,
+Standards-Version: 4.7.4
+Vcs-Browser: https://salsa.debian.org/med-team/libvgio
+Vcs-Git: https://salsa.debian.org/med-team/libvgio.git
+Homepage: https://github.com/vgteam/libvgio
+Rules-Requires-Root: no
+
+Package: libvgio0
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+Description: library for reading and writing vg file formats
+ libvgio implements reading and writing of the file formats used by the
+ vg toolkit for sequence variation graphs and read alignments, including
+ protobuf-encoded and BGZF-compressed streams.
+ .
+ This package contains the shared library.
+
+Package: libvgio-dev
+Architecture: any
+Section: libdevel
+Multi-Arch: same
+Depends: libvgio0 (= ${binary:Version}),
+         libhandlegraph-dev,
+         libhts-dev,
+         libjansson-dev,
+         libprotobuf-dev,
+         zlib1g-dev,
+         pkgconf,
+         ${misc:Depends},
+Description: development files for libvgio
+ libvgio implements reading and writing of the file formats used by the
+ vg toolkit for sequence variation graphs and read alignments, including
+ protobuf-encoded and BGZF-compressed streams.
+ .
+ This package contains the C++ headers, the static library and the CMake
+ configuration files.


=====================================
debian/copyright
=====================================
@@ -0,0 +1,57 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libvgio
+Source: https://github.com/vgteam/libvgio
+
+Files: *
+Copyright: 2014 Erik Garrison
+           vg contributors
+License: LGPL-3+
+
+Files: src/json2pb.cpp
+       src/bin2ascii.h
+       include/vg/io/json2pb.h
+Copyright: 2013 Pavel Shramov <shramov at mexmat.net>
+           2009-2014 Petri Lehtinen <petri at digip.org>
+License: MIT
+
+Files: include/vg/io/fdstream.hpp
+Copyright: 2001 Nicolai M. Josuttis
+License: NTP
+ Permission to copy, use, modify, sell and distribute this software
+ is granted provided this copyright notice appears in all copies.
+ This software is provided "as is" without express or implied
+ warranty, and with no claim as to its suitability for any purpose.
+
+Files: debian/*
+Copyright: 2026 Andreas Tille <tille at debian.org>
+License: LGPL-3+
+
+License: LGPL-3+
+ This program is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 3 can be found in "/usr/share/common-licenses/LGPL-3".
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+


=====================================
debian/libvgio-dev.install
=====================================
@@ -0,0 +1,4 @@
+usr/include/vg
+usr/lib/*/libvgio.a
+usr/lib/*/libvgio.so
+usr/lib/*/cmake/VGio


=====================================
debian/libvgio0.install
=====================================
@@ -0,0 +1 @@
+usr/lib/*/libvgio.so.*


=====================================
debian/patches/install-paths-and-soname.patch
=====================================
@@ -0,0 +1,42 @@
+Description: Add a SONAME, honour build flags and find libhandlegraph from CMake
+ The upstream build hardcodes "-O3 -g" into CMAKE_CXX_FLAGS, overriding the
+ distribution build flags, installs the shared library without a SONAME and
+ exports a CMake config that does not look for the libhandlegraph targets it
+ references.
+Author: Andreas Tille <tille at debian.org>
+Last-Update: 2026-10-29
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1621834..0414372 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,8 +5,6 @@ OPTION(USE_INSTALLED_LIBHANDLEGRAPH "Use the version of libhandlegraph installed
+ OPTION(USE_INSTALLED_LIBHANDLEGRAPH_ONLY "Use the version of libhandlegraph installed on the system, which must exist [default: off]" OFF)
+ 
+ 
+-# Optimize by default, but also include debug info
+-set(CMAKE_CXX_FLAGS "-O3 -g ${CMAKE_CXX_FLAGS}")
+ # Don't allow any -std= flags in
+ string(REGEX REPLACE " *-std=[^ ]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+ find_package(OpenMP REQUIRED)
+@@ -152,6 +150,7 @@ file(GLOB SOURCES "src/**.cpp")
+ # Don't use an object library because we want the static library to be position-dependent code.
+ add_library(vgio SHARED ${PROTO_SRCS} ${SOURCES})
+ set_property(TARGET vgio PROPERTY POSITION_INDEPENDENT_CODE ON)
++set_target_properties(vgio PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 0)
+ add_library(vgio_static STATIC ${PROTO_SRCS} ${SOURCES})
+ set_target_properties(vgio_static PROPERTIES OUTPUT_NAME vgio)
+ set_property(TARGET vgio_static PROPERTY POSITION_INDEPENDENT_CODE OFF)
+diff --git a/cmake/VGioConfig.cmake.in b/cmake/VGioConfig.cmake.in
+index 4e0d8fe..c70ac57 100644
+--- a/cmake/VGioConfig.cmake.in
++++ b/cmake/VGioConfig.cmake.in
+@@ -11,6 +11,9 @@ pkg_check_modules(Protobuf REQUIRED protobuf)
+ pkg_check_modules(HTSlib REQUIRED htslib)
+ list(REMOVE_AT CMAKE_MODULE_PATH -1)
+ 
++find_dependency(OpenMP REQUIRED)
++find_dependency(libhandlegraph REQUIRED)
++
+ if(NOT TARGET VGio::VGio)
+     include("${VGIO_CMAKE_DIR}/VGioTargets.cmake")
+ endif()


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+install-paths-and-soname.patch


=====================================
debian/rules
=====================================
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@ --buildsystem=cmake
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
+		-DUSE_INSTALLED_LIBHANDLEGRAPH_ONLY=ON


=====================================
debian/salsa-ci.yml
=====================================
@@ -0,0 +1,3 @@
+---
+include:
+  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml


=====================================
debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,2 @@
+Tests: smoke
+Depends: @, build-essential, cmake


=====================================
debian/tests/smoke
=====================================
@@ -0,0 +1,53 @@
+#!/bin/sh
+set -e
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT
+
+cat > "$tmpdir/CMakeLists.txt" <<'EOF'
+cmake_minimum_required(VERSION 3.10)
+project(smoke CXX)
+
+find_package(VGio REQUIRED)
+
+add_executable(smoke smoke.cpp)
+target_link_libraries(smoke PRIVATE VGio::VGio)
+EOF
+
+cat > "$tmpdir/smoke.cpp" <<'EOF'
+#include <cstdio>
+#include <fstream>
+#include <stdexcept>
+#include <string>
+
+#include "vg/vg.pb.h"
+#include "vg/io/stream.hpp"
+
+int main() {
+    const std::string path = "smoke.vg";
+
+    vg::Graph graph;
+    vg::Node* node = graph.add_node();
+    node->set_id(1);
+    node->set_sequence("ACGT");
+    vg::io::write_to_file(graph, path);
+
+    size_t count = 0;
+    std::ifstream in(path, std::ios::binary);
+    vg::io::for_each<vg::Graph>(in, [&count](vg::Graph& part) {
+        ++count;
+        if (part.node_size() != 1 || part.node(0).sequence() != "ACGT") {
+            throw std::runtime_error("round-trip mismatch");
+        }
+    });
+    in.close();
+    std::remove(path.c_str());
+
+    return count == 1 ? 0 : 1;
+}
+EOF
+
+cmake -S "$tmpdir" -B "$tmpdir/build"
+cmake --build "$tmpdir/build"
+cd "$tmpdir"
+"$tmpdir/build/smoke"


=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,2 @@
+Bug-Database: https://github.com/vgteam/libvgio/issues
+Repository-Browse: https://github.com/vgteam/libvgio


=====================================
debian/watch
=====================================
@@ -0,0 +1,6 @@
+Version: 5
+
+Source: https://github.com/vgteam/libvgio
+Mode: git
+Matching-Pattern: HEAD
+Git-Pretty: 0.0~git%cd.%h



View it on GitLab: https://salsa.debian.org/med-team/libvgio/-/commit/233c29fcf721663554ac76857e5c30998201ed72

-- 
View it on GitLab: https://salsa.debian.org/med-team/libvgio/-/commit/233c29fcf721663554ac76857e5c30998201ed72
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/20261030/bf41700a/attachment-0001.htm>


More information about the debian-med-commit mailing list