File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ debuild/unit_$(VERSION).orig.tar.gz: | debuild/$(SRCDIR)/debian
241
241
242
242
unit : check-build-depends-unit debuild/unit_$(VERSION ) .orig.tar.gz debuild/$(SRCDIR ) /debian/changelog
243
243
@echo " ===> Building $@ package"
244
- cd debuild/$(SRCDIR ) && debuild -us -uc
244
+ cd debuild/$(SRCDIR ) && debuild --preserve-envvar PATH --preserve-envvar RUSTUP_HOME - us -uc
245
245
mkdir -p debs
246
246
find debuild/ -maxdepth 1 -type f -exec cp {} debs/ \;
247
247
ln -s debuild/$(SRCDIR ) /build $@
@@ -314,7 +314,7 @@ endif
314
314
315
315
unit-% : check-build-depends-% | debuild-%
316
316
@echo " ===> Building $@ package"
317
- cd debuild-$* /$(SRCDIR ) && debuild -us -uc
317
+ cd debuild-$* /$(SRCDIR ) && debuild --preserve-envvar PATH --preserve-envvar RUSTUP_HOME - us -uc
318
318
mkdir -p debs
319
319
find debuild-$* / -maxdepth 1 -type f -exec cp {} debs/ \;
320
320
ln -s debuild-$* /$(SRCDIR ) /build $@
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ Build-Depends: debhelper (>= 11),
6
6
linux-libc-dev,
7
7
libssl-dev,
8
8
libpcre2-dev,
9
- pkg-config
9
+ pkg-config,
10
+ clang,
11
+ llvm
10
12
Standards-Version: 4.1.4
11
13
Homepage: https://unit.nginx.org
12
14
Original file line number Diff line number Diff line change 1
1
usr/bin
2
2
usr/sbin
3
3
usr/lib/unit
4
+ usr/include/unit
4
5
var/lib/unit
Original file line number Diff line number Diff line change 25
25
cd pkg/contrib && make .njs
26
26
touch $@
27
27
28
+ libunit-wasm :
29
+ dh_testdir
30
+ cd pkg/contrib && make .libunit-wasm
31
+ touch $@
32
+
28
33
config.env.% : njs
29
34
dh_testdir
30
35
mkdir -p $(BUILDDIR_$* )
@@ -92,7 +97,7 @@ build-arch: build-arch.unit build-arch.unit_debug
92
97
dh_testdir
93
98
touch $@
94
99
95
- build : build-arch build-indep
100
+ build : build-arch build-indep libunit-wasm
96
101
dh_testdir
97
102
touch $@
98
103
@@ -123,6 +128,9 @@ install: build do.tests
123
128
install -m 644 README.md $(INSTALLDIR ) /usr/share/doc/unit/
124
129
install -m 644 CONTRIBUTING.md $(INSTALLDIR ) /usr/share/doc/unit/
125
130
install -m 644 NOTICE $(INSTALLDIR ) /usr/share/doc/unit/
131
+ mkdir -p $(INSTALLDIR_dev ) /usr/include/unit
132
+ install -m644 $(CURDIR ) /pkg/contrib/libunit-wasm/src/c/libunit-wasm.a $(INSTALLDIR_dev ) /usr/lib/$(DEB_HOST_MULTIARCH ) /libunit-wasm.a
133
+ install -m644 $(CURDIR ) /pkg/contrib/libunit-wasm/src/c/include/unit/unit-wasm.h $(INSTALLDIR_dev ) /usr/include/unit/
126
134
127
135
binary-indep : build install
128
136
dh_testdir
You can’t perform that action at this time.
0 commit comments