Commit Graph

21 Commits

Author SHA1 Message Date
Shraddha Agrawal
81bb19f67c debian: enable crimson packages
This commit enables ceph-osd-crimson and ceph-osd-crimson-dbg
packages for debian builds which have gcc version 13 or above.
This is done as a first step to add noble to supported distors
for crimson.

Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
2026-06-08 12:38:37 +05:30
Dan Mick
d6f023850c make-debs.sh: use ID instead of NAME for workdir
NAME is "for the user", and as such, Debian's is "Debian GNU/Linux",
which isn't friendly for making a pathname.  ID is more like what
we want (lowercase, no spaces, limited special characters),
in the two cases we care most about, 'ubuntu' and 'debian'.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2025-10-07 12:05:24 -07:00
Zack Cerza
16183205fe make-debs.sh: Avoid OOM errors during build
This uses the logic from: f074f1ce7f/scripts/build_utils.sh (L1411-L1435)

Signed-off-by: Zack Cerza <zack@cerza.org>
CEPH-BUILD-JOB: ceph-dev-pipeline
ARCHS: x86_64
DISTROS: jammy noble
FLAVORS: default
2025-08-29 13:52:16 -06:00
Dan Mick
ad529cce49 Remove git clean -fdx
either
1) a source tarball is supplied, in which case the local dir is
   irrelevant, or
2) make-debs calls make-dist, which doesn't care about a dirty cwd

so it just punishes the unaware by removing things that they may
have wanted to keep.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2025-08-25 17:45:21 -07:00
Dan Mick
46c540444d make-debs.sh: invoke tar with --no-same-owner
When running as a normal user, tar does not attempt to preserve
owners set on the tar content files.  When running as root, it does.
Containerized builds are running as root.  Stop make-debs.sh from
trying to set other owners for files, and leaving files in the
host system with mapped UIDs other than the user running the container
(which causes jenkins to be unable to clear the workspace).

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2025-08-22 17:43:24 -07:00
Dan Mick
86d6e931bd make-debs.sh: make "skip debug packages" conditional
Now that we're using make-debs.sh as a builder inside containers,
the default should be to build all the packages, including debug.
(Also, fix a typo.)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2025-08-21 13:28:46 -07:00
Zack Cerza
5478fb94a3 make-debs.sh: Optionally rm version from build dir
Signed-off-by: Zack Cerza <zack@cerza.org>
2025-05-21 13:08:57 -06:00
Zack Cerza
0db48b2303 make-debs.sh: Optionally take debian version
Our existing CI builds have names like:
  ceph-base_20.0.0-194-g6efaea33-1jammy_amd64.deb
Before this change, they are like:
  ceph-base_20.0.0-158-gb0de3a42-1_amd64.deb
This way we can pass e.g. "jammy" to end up with names compatible with our CI
builds.

Signed-off-by: Zack Cerza <zack@cerza.org>
2025-04-10 13:08:57 -06:00
Zack Cerza
e6a9e32e7c make-debs.sh: Don't use ccache if using sccache
Signed-off-by: Zack Cerza <zack@cerza.org>
2025-04-10 13:08:57 -06:00
Zack Cerza
6455b99f32 make-debs.sh: Optionally avoid make-dist
Signed-off-by: Zack Cerza <zack@cerza.org>
2025-04-10 13:08:57 -06:00
John Mulligan
4578625ce0 build: small script tweak to allow different build dirs
Move the mkdir line to allow for other builds dir naming schemes outside
of what appears in the .gitignore file. A tiny bit of added flexibility
at little cost.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-02-05 15:13:06 -05:00
Ken Dreyer
92f73a2bb9 make-debs.sh: remove lsb_release
The lsb_release utility brings in a lot of other dependencies. Remove
it from the make-debs script.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2021-08-18 13:08:24 -04:00
Changcheng Liu
ae5a294000 make-debs.sh: clean dir to avoid build deb packages error
Without this patch, it'll hit build error in the 2nd time.
Example:
make-deb.sh  #no error: first time
make-deb.sh  #hit error: second time

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
2018-11-24 13:17:12 +08:00
Daniel Glaser
9f81bb8041 make-debs.sh: Changed make-debs.sh to use current architecture
Signed-off-by: Daniel Glaser <the78mole@chaintronics.com>
2018-03-27 15:40:24 +08:00
Alan Somers
3aae5ca6fd scripts: fix bash path in shebangs
/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00
Sage Weil
5bd88a54bb make-debs.sh: use make-dist
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-03 09:46:50 -04:00
Roi Dayan
4a8c2fcba0 make-debs.sh: avoid creating recursive conf dir
Before this commit when running make-debs.sh second time ln will create
the conf symlink inside already exisiting conf dir that was created
on the first tune.

Signed-off-by: Roi Dayan <roid@mellanox.com>
2016-05-10 10:16:57 +03:00
Sage Weil
bbe84578bf remove rest-bench
This is a weak tool; users should look to cosbench or others instead.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-07-30 13:21:36 -04:00
Loic Dachary
8c7a781ef2 build: make-debs.sh NPROC overrides make -j
Building a package is disk intensive and running make -j8 on a machine
with a spinner can actually be slower than make. NPROC=1 make-deb.sh
overrides the default value of make -jX.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-05 19:16:56 +02:00
Yuan Zhou
6fd356b935 misc: fix make debs script
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
2015-04-22 14:34:42 +08:00
Loic Dachary
0471be6fe3 debian: create a repository from sources
Create a debian repository suitable for inclusion in
/etc/apt/sources.list, for the current distribution and using the git
clone from the current working directory.

It is meant to quickly provide teuthology with the packages to run a
job.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-01-02 12:14:39 +01:00