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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
brittney allen
purr-data
Commits
c6d27103
Commit
c6d27103
authored
7 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'aggraef/purr-data-debuild-fixes'
parents
269b526c
9f49209b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debuild/Makefile
+10
-0
10 additions, 0 deletions
debuild/Makefile
debuild/packages-Makefile.patch
+32
-0
32 additions, 0 deletions
debuild/packages-Makefile.patch
with
42 additions
and
0 deletions
debuild/Makefile
+
10
−
0
View file @
c6d27103
...
@@ -98,6 +98,10 @@ deb-us:
...
@@ -98,6 +98,10 @@ deb-us:
debsrc-us
:
debsrc-us
:
$(
MAKE
)
deb
DEBUILD_FLAGS
=
"-S -us -uc"
$(
MAKE
)
deb
DEBUILD_FLAGS
=
"-S -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.
PD_BUILD_VERSION
:=
$(
shell git log
-1
--format
=
%cd
--date
=
short |
sed
-e
's/-//g'
)
-rev
.
$(
shell git rev-parse
--short
HEAD
)
$(debsrc)
:
$(debsrc)
:
rm
-rf
$(
debdist
)
rm
-rf
$(
debdist
)
# Make sure that the submodules are initialized.
# Make sure that the submodules are initialized.
...
@@ -106,6 +110,12 @@ $(debsrc):
...
@@ -106,6 +110,12 @@ $(debsrc):
git
-C
..
archive
--format
=
tar.gz
--prefix
=
$(
debdist
)
/ HEAD |
tar
xfz -
git
-C
..
archive
--format
=
tar.gz
--prefix
=
$(
debdist
)
/ HEAD |
tar
xfz -
# Grab the submodules.
# Grab the submodules.
for
x
in
$(submodules);
do
(cd
$(debdist)
&&
rm
-rf
$$x
&&
git
-C
../../$$x
archive
--format
=
tar.gz
--prefix
=
$$
x/ HEAD |
tar
xfz -
)
;
done
for
x
in
$(submodules);
do
(cd
$(debdist)
&&
rm
-rf
$$x
&&
git
-C
../../$$x
archive
--format
=
tar.gz
--prefix
=
$$
x/ HEAD |
tar
xfz -
)
;
done
# Pre-generate and put s_stuff.h into the tarball (see above; the build
# version is generated using git which can't be done outside the git repo).
sed
's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|'
../pd/src/s_stuff.h.in
>
$(debdist)/pd/src/s_stuff.h
# Patch packages/Makefile so that we do *not* try to regenerate s_stuff.h
# during the build.
cd
$(debdist)
&&
patch
-p1
<
../packages-Makefile.patch
# Create the source tarball.
# Create the source tarball.
tar
cfz
$(debsrc)
$(debdist)
tar
cfz
$(debsrc)
$(debdist)
rm
-rf
$(debdist)
rm
-rf
$(debdist)
...
...
This diff is collapsed.
Click to expand it.
debuild/packages-Makefile.patch
0 → 100644
+
32
−
0
View file @
c6d27103
diff --git a/packages/Makefile b/packages/Makefile
index f5c1f8c0..0a285b52 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.)
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
set_version:
# change Pd's version number to reflect the extended build
@@ -421,7 +423,7 @@
distclean: cruft_clean
$(MAKE) -C $(abstractions_src) distclean
$(MAKE) -C $(extensions_src) distclean
$(MAKE) -C $(externals_src) distclean
- -$(MAKE) -C $(pd_src) distclean
+ -$(MAKE) -C $(pd_src) clean
test_locations:
@echo "PD_VERSION: $(PD_VERSION)"
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