Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
361f65b8
Commit
361f65b8
authored
7 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
Update debuild
parent
dfb3a0f8
No related branches found
No related tags found
1 merge request
!172
Build system fixes
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debuild/Makefile
+2
-2
2 additions, 2 deletions
debuild/Makefile
debuild/debian/rules
+2
-0
2 additions, 0 deletions
debuild/debian/rules
debuild/packages-Makefile.patch
+8
-18
8 additions, 18 deletions
debuild/packages-Makefile.patch
with
12 additions
and
20 deletions
debuild/Makefile
+
2
−
2
View file @
361f65b8
...
...
@@ -90,13 +90,13 @@ deb: $(debsrc) $(addprefix debian/nwjs/, $(nwjs))
rm
-rf
$(debdist)
debsrc
:
$(
MAKE
)
deb
DEBUILD_FLAGS
=
-S
$(
MAKE
)
deb
DEBUILD_FLAGS
=
"
-S
-d"
deb-us
:
$(
MAKE
)
deb
DEBUILD_FLAGS
=
"-us -uc"
debsrc-us
:
$(
MAKE
)
deb
DEBUILD_FLAGS
=
"-S -us -uc"
$(
MAKE
)
deb
DEBUILD_FLAGS
=
"-S
-d
-us -uc"
# Determine the build version which needs git to be computed, so we can't do
# it in a stand-alone build from a tarball.
...
...
This diff is collapsed.
Click to expand it.
debuild/debian/rules
+
2
−
0
View file @
361f65b8
...
...
@@ -25,6 +25,8 @@ prefix = /opt/purr-data
override_dh_auto_configure
:
override_dh_auto_clean
:
override_dh_auto_build
:
# Copy the nw.js sources to where purr-data wants them.
tar
-xf
debian/nwjs/$(nwjspkg)-$(arch).tar.gz
&&
rm
-rf
pd/nw/nw
&&
mv
$(nwjspkg)-$(arch)
pd/nw/nw
...
...
This diff is collapsed.
Click to expand it.
debuild/packages-Makefile.patch
+
8
−
18
View file @
361f65b8
diff --git a/packages/Makefile b/packages/Makefile
index
f5c1f8c0..0a285b52
100644
index
a360dba7..b5b949b5
100644
--- a/packages/Makefile
+++ b/packages/Makefile
@@ -373,12 +373,14 @@
doc_format:
# AG: The set_version target is broken since it modifies m_pd.h in-place
# during the build, which is a bad thing to do to files which are supposed to
# be kept in a source code repository. Instead, we create s_stuff.h from
-# s_stuff.h.in, where the latter is kept in the repo and the former gets created
-# from the latter by substituting PD_BUILD_VERSION.
+# s_stuff.h.in, where the latter is kept in the repo and the former gets
+# created from the latter by substituting PD_BUILD_VERSION. (Only try to do
+# this if we're actually in the git repo, otherwise we'll get an empty
+# revision number.)
@@ -377,7 +377,7 @@
doc_format:
# from the latter by substituting PD_BUILD_VERSION.
git_version: $(pd_src)/src/s_stuff.h.in
- cd $(pd_src)/src/ && \
- sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' s_stuff.h.in > s_stuff.h
+ test -d $(cvs_root_dir)/.git && cd $(pd_src)/src/
&& \
+ sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' s_stuff.h.in > s_stuff.h || true
-
@
cd $(pd_src)/src/ && \
+ @test -d $(cvs_root_dir)/.git && cd $(pd_src)/src/ && \
sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' s_stuff.h.in > s_stuff.h.new
&& \
(test -f s_stuff.h && diff -q s_stuff.h s_stuff.h.new > /dev/null && rm -f s_stuff.h.new && echo s_stuff.h unchanged || (rm -f s_stuff.h && mv s_stuff.h.new s_stuff.h))
set_version:
# change Pd's version number to reflect the extended build
@@ -421,7 +423,7 @@
distclean: cruft_clean
@@ -422,7 +422,7 @@
distclean: cruft_clean
$(MAKE) -C $(abstractions_src) distclean
$(MAKE) -C $(extensions_src) distclean
$(MAKE) -C $(externals_src) distclean
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment