Skip to content

Commit 407b445

Browse files
authored
Merge pull request #704 from psafont/reorg
Change repository to use the default, upstream file layout
2 parents 750f475 + 8d0443b commit 407b445

File tree

413 files changed

+120
-1083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

413 files changed

+120
-1083
lines changed

.github/duplicates-xs-toolstack.txt

-3
This file was deleted.
File renamed without changes.

.github/known-licenses.txt

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception
1717
LGPL-2.1-only WITH OCaml-LGPL-linking-exception
1818
LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
1919
LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception AND BSD-3-Clause
20+
LGPL-3.0-only
2021
LGPL-3.0-only WITH OCaml-LGPL-linking-exception
2122
LGPL-2.1-or-later WITH OpenSSL-linking-exception
2223
GPL-2.0-or-later

.github/unused-packages.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
host-arch-x86_64
2+
host-system-other
3+
logs-syslog
4+
memtrace
5+
ocaml-options-vanilla
6+
ocaml-system
7+
opam-depext
8+
syslog-message
9+
trace
10+
tyre

.github/unused-upstream.txt

-13
This file was deleted.

.github/unused-xs.txt

Whitespace-only changes.

.github/workflows/main.yml

+3-14
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
ocaml-version: ["4.14.1", "4.14.2"]
17+
ocaml-version: ["4.14.2"]
1818
experimental: [false]
1919
# include:
2020
# - ocaml-version: "5.2.0"
@@ -47,7 +47,7 @@ jobs:
4747
echo "XDG_CACHE_HOME=${XDG_CACHE_HOME}" >>"$GITHUB_ENV"
4848
4949
- name: Use ocaml
50-
uses: ocaml/setup-ocaml@v2
50+
uses: ocaml/setup-ocaml@v3
5151
with:
5252
ocaml-compiler: ${{ matrix.ocaml-version }}
5353
opam-repositories: |
@@ -67,26 +67,15 @@ jobs:
6767
run: tools/license-check.sh
6868

6969
- name: Build xs-toolstack, test its dependencies
70-
# opam install may ignore installing depexts sometimes
7170
run: |
72-
opam list -s --required-by xs-toolstack | xargs opam depext -tu
7371
opam list -s --required-by xs-toolstack | xargs opam install -t
7472
env:
7573
# OPAMCOLOR is set to "always" by default and it breaks piping
7674
OPAMCOLOR: NEVER
7775
OPAMERRLOGLEN: 10000
7876

79-
- name: Uninstall unversioned packages
80-
# This should purge them from the cache, unversioned package have
81-
# 'master' as its version
82-
run: opam list | awk -F " " '$2 == "master" { print $1 }' | xargs opam uninstall
83-
env:
84-
# OPAMCOLOR is set to "always" by default and it breaks piping
85-
OPAMCOLOR: NEVER
86-
OPAMERRLOGLEN: 10000
87-
8877
- name: Install developer tools
89-
run: opam install upstream-extra-dummy
78+
run: opam install dev-tools
9079

9180
- name: Print disk usage
9281
shell: bash

.github/workflows/release.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ jobs:
1414
fetch-depth: 0
1515

1616
- name: Install opam
17-
run: sudo apt-get install -y opam
17+
uses: ocaml/setup-ocaml@v3
18+
with:
19+
ocaml-compiler: "4.14.2"
20+
opam-repositories: |
21+
xs-opam: "."
22+
opam-pin: false
23+
dune-cache: true
24+
allow-prerelease-opam: true
1825

1926
- name: Collect licenses
2027
run: ./tools/print-licenses.sh > licenses.txt

Makefile

+11-7
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ all:
1313
archive: $(NAME).tar.gz
1414

1515
$(NAME).tar.gz:
16-
# Add only upstream and xs pkgs into cache, add ocaml ones to metadata
17-
mkdir -p stash/ocaml
18-
mv packages/{upstream-extra,xs-extra,xs-extra-dummy} stash
19-
mv packages/ocaml/ocaml-base-compiler.* stash/ocaml
20-
env OPAMFETCH=curl opam admin cache |& tee cache.log
16+
# Remove unneeded packages (like dev tools), and retain special packages
17+
opam admin filter --recursive --required-by xs-toolstack --or host-system-other -y
18+
# Remove all xapi dev packages
19+
opam admin filter '*.master' --remove -y
20+
# Remove compilable ocaml versions
21+
opam admin filter 'ocaml-base-compiler' --remove -y
22+
# Remove xen-related packages, the libraries are built by the xen package
23+
opam admin filter 'conf-xen' --remove -y
24+
opam admin cache |& tee cache.log
2125
! grep ERROR cache.log
2226
tar zcf $@ --transform "flags=r;s|^|$(NAME)/|" cache packages tools repo
23-
cp -R stash/* packages/
24-
rm -R stash/
27+
# restore removed packages
28+
git checkout -- packages
2529

2630
# report licenses of xs-toolstack from *installed* packages
2731
licenses:

README.md

+4-20
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/xs-extra-dummy/upstream-extra-dummy.master/opam packages/dev-tools/dev-tools.master/opam

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors: "Christian Lindig <christian.lindig@citrix.com>"
55
homepage: "https://github.com/xapi-project/xs-opam"
66
license: "BSD-2-Clause"
77
synopsis: "Metapackage to install all developer tools recomemnded for developing xapi"
8+
tags: ["org:xapi-project" "dummy"]
89
depends: [
910
"merge-fmt"
1011
"merlin"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/ocaml/ocaml-base-compiler.4.14.1/opam

-95
This file was deleted.

packages/ocaml/ocaml-system.4.14.1/opam

-70
This file was deleted.

packages/ocaml/ocaml.4.14.1/opam

-38
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)