Skip to content

Commit f451987

Browse files
authored
fix packaging issues (#1)
* add hardening to deb build * improve ladybug pkg description * fix no-symbols-control-file rule * add soname patch for shared lib * move README up * fix version tag in readme * update timestamps * fix so path in liblbug0
1 parent 392947a commit f451987

14 files changed

Lines changed: 116 additions & 19 deletions

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# LadybugDB Debian Packaging
2+
3+
Packaging follows Debian source format 3.0 (quilt).
4+
5+
To build from upstream source:
6+
1. Download the Ladybug release tarball.
7+
2. Rename it to ladybug_\<version\>.orig.tar.gz.
8+
3. Extract the tarball to a new directory. Don't delete the tarball after extraction, we need it for the build process
9+
4. Copy the `debian/` directory from this repository into the extracted directory and `cd` into it.
10+
5. Run `export DH_BUILD_SYSTEM=cmake_ninja && dpkg-buildpackage -us -uc`
11+
12+
## References
13+
- https://arnaudr.io/2016/01/14/first-debian-package/
14+
- https://arnaudr.io/2016/10/01/publishing-a-debian-package-mentors-sponsorship/

debian/README.source

Lines changed: 0 additions & 6 deletions
This file was deleted.

debian/changelog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ladybug (0.15.1-1) unstable; urgency=medium
22

3-
* Initial release.
4-
* Package lbug CLI, shared runtime library, and development headers.
3+
* Initial release (CLoses: #1130583)
4+
* Package ladybug CLI, shared runtime library, and development headers.
55

6-
-- Arun <arun@ladybugdb.com> Mon, 09 Mar 2026 11:55:00 -0700
6+
-- Ally Heev <allyheev@gmail.com> Sun, 15 Mar 2026 20:26:00 +0530

debian/control

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
Source: ladybug
22
Section: database
33
Priority: optional
4-
Maintainer: Arun <arun@ladybugdb.com>
4+
Maintainer: Ally Heev <allyheev@gmail.com>
55
Rules-Requires-Root: no
66
Build-Depends:
77
debhelper-compat (= 13),
8-
cmake,
9-
g++
10-
Standards-Version: 4.7.0
8+
cmake
9+
Standards-Version: 4.7.2
1110
Homepage: https://ladybugdb.com/
1211
Vcs-Browser: https://github.com/LadybugDB/ladybug
1312
Vcs-Git: https://github.com/LadybugDB/ladybug.git
1413

15-
Package: ladybug-cli
14+
Package: ladybug
1615
Architecture: any
1716
Depends:
1817
${misc:Depends},
@@ -21,7 +20,8 @@ Description: Embedded graph database command-line client
2120
Ladybug is an embedded graph database optimized for query speed and
2221
scalability.
2322
.
24-
This package provides the lbug interactive shell CLI.
23+
This package provides the LadybugDB interactive shell command
24+
line client (lbug).
2525

2626
Package: liblbug0
2727
Section: libs

debian/copyright

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ License: Expat
2323
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2424
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2525
SOFTWARE.
26-
27-
License: Expat

debian/ladybug.manpages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debian/lbug.1

debian/lbug.1

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2+
.TH LBUG "1" "March 15, 2026" "Ladybug 0.15.1" "User Commands"
3+
.SH NAME
4+
Lbug \- LadybugDB interactive shell CLI
5+
.SH SYNOPSIS
6+
lbug [databasePath] {OPTIONS}
7+
.SH DESCRIPTION
8+
lbug is an interactive shell CLI for LadybugDB.
9+
You can use it to run OpenCypher queries directly on the database.
10+
.SH DATABASEPATH
11+
Path to the database. If not given or
12+
set to ":memory:", the database will be
13+
opened under in\-memory mode.
14+
.SH OPTIONS
15+
.TP
16+
\fB\-h\fR, \fB\-\-help\fR
17+
Display this help menu
18+
.TP
19+
\fB\-d\fR, \fB\-\-default_bp_size\fR, \fB\-\-defaultbpsize\fR
20+
Size of buffer pool for default and
21+
large page sizes in megabytes
22+
.TP
23+
\fB\-\-max_db_size\fR=\fI\,[max_db_size]\/\fR, \fB\-\-maxdbsize\fR=\fI\,[max_db_size]\/\fR
24+
Maximum size of the database in bytes
25+
.HP
26+
\fB\-\-no_compression\fR, \fB\-\-nocompression\fR Disable compression
27+
.TP
28+
\fB\-r\fR, \fB\-\-read_only\fR, \fB\-\-readonly\fR
29+
Open database in read\-only mode.
30+
.TP
31+
\fB\-p\fR, \fB\-\-path_history\fR
32+
Path to directory for shell history
33+
.TP
34+
\fB\-v\fR, \fB\-\-version\fR
35+
Display current database version
36+
.TP
37+
\fB\-m\fR, \fB\-\-mode\fR
38+
Set the output mode of the shell
39+
.TP
40+
\fB\-s\fR, \fB\-\-no_stats\fR, \fB\-\-nostats\fR
41+
Disable query stats
42+
.TP
43+
\fB\-b\fR, \fB\-\-no_progress_bar\fR, \fB\-\-noprogressbar\fR
44+
Disable query progress bar
45+
.TP
46+
\fB\-w\fR, \fB\-\-ignore_wal_replay_errors\fR
47+
By default something goes wrong when
48+
replaying the WAL an exception will be
49+
thrown. With this flag enabled we will
50+
instead ignore these errors and stop
51+
replaying the WAL.
52+
.TP
53+
\fB\-i\fR, \fB\-\-init\fR
54+
Path to the script file to run on
55+
startup
56+
.HP
57+
\fB"\-\-"\fR can be used to terminate flag options and force all following
58+
arguments to be treated as positional options
59+
.SH SEE ALSO
60+
https://docs.ladybugdb.com/client-apis/cli/
61+
.br
62+
https://ladybugdb.github.io/wasm-shell/ (a WASM build of the shell)
63+
.SH AUTHOR
64+
LadybugDB contributors
65+
.SH COPYRIGHT
66+
LadybugDB contributors

debian/liblbug-dev.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
usr/include/lbug.h
22
usr/lib/*/liblbug.a
3+
usr/lib/*/liblbug.so

debian/liblbug0.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
usr/lib/*/liblbug.so
1+
usr/lib/*/liblbug.so.*

0 commit comments

Comments
 (0)