Skip to content

CLOUDSTACK-9065: fix bug when creating packaging with noredist flag - #1114

Merged
asfgit merged 1 commit into
apache:4.6from
davidamorimcruz:4.6
Nov 26, 2015
Merged

asfgit merged 1 commit into
apache:4.6from
davidamorimcruz:4.6

Conversation

@davidamorimcruz

Copy link
Copy Markdown

Fixes this:

$ bash -x package.sh -p noredist -d centos63
(...)
+ rpmbuild --define '_topdir /home/david/cloudstack/packaging/../dist/rpmbuild' '-D_ver 4.6.1' '-D_rel SNAPSHOT' '-D_prerelease 1' -D_ossnoss noredist -bb SPECS/cloud.spec
error: Macro %_ossnoss has empty body
error: Macro %_ossnoss has empty body
error: failed to stat /home/david/cloudstack/dist/rpmbuild/noredist: No such file or directory
+ '[' 1 -ne 0 ']'
+ echo 'RPM Build Failed '
RPM Build Failed
+ exit 3

It was missing quotes around the rpmbuild argument '-D_ossnoss noredist'.

davidamorimcruz referenced this pull request Nov 25, 2015
 * lint
 * adjust exit codes (1 for usage, 2 for maven, 3 for rpmbuild)
 * variable naming consistency
 * add option for package release version
 * revise synopsis and usage
@DaanHoogland

Copy link
Copy Markdown
Contributor

LGTM on sight, let's not trust on sight as much anymore! I son't consider my lgtm here as good enough even if there are 20. I want to see people reporting having tried it succesfully.

@pdion891

Copy link
Copy Markdown
Contributor

LGTM, quickly build a RPM collection using this package.sh for centos63

@asfgit
asfgit merged commit adb0d3b into apache:4.6 Nov 26, 2015
asfgit pushed a commit that referenced this pull request Nov 26, 2015
CLOUDSTACK-9065: fix bug when creating packaging with noredist flagFixes this:
```
$ bash -x package.sh -p noredist -d centos63
(...)
+ rpmbuild --define '_topdir /home/david/cloudstack/packaging/../dist/rpmbuild' '-D_ver 4.6.1' '-D_rel SNAPSHOT' '-D_prerelease 1' -D_ossnoss noredist -bb SPECS/cloud.spec
error: Macro %_ossnoss has empty body
error: Macro %_ossnoss has empty body
error: failed to stat /home/david/cloudstack/dist/rpmbuild/noredist: No such file or directory
+ '[' 1 -ne 0 ']'
+ echo 'RPM Build Failed '
RPM Build Failed
+ exit 3
```

It was missing quotes around the rpmbuild argument '-D_ossnoss noredist'.

* pr/1114:
  CLOUDSTACK-9065: fix bug when creating packaging with noredist flag

Signed-off-by: Daan Hoogland <daan@onecht.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants