Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
scouting-demonstrator
scdaq
Commits
f09193c5
Commit
f09193c5
authored
2 years ago
by
Dinyar Rabady
Committed by
Thomas Owen James
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix RPM dependency situation
parent
6db93183
Loading
Loading
2 merge requests
!59
CMSSW json file
,
!2
Fix RPM dependency situation
Pipeline
#4070252
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
scripts/scdaqrpm.sh
+11
-12
11 additions, 12 deletions
scripts/scdaqrpm.sh
with
12 additions
and
13 deletions
.gitlab-ci.yml
+
1
−
1
View file @
f09193c5
image
:
gitlab-registry.cern.ch/scouting-demonstrator/scouting-docker-images/scdaq-builder:1.0.
0
image
:
gitlab-registry.cern.ch/scouting-demonstrator/scouting-docker-images/scdaq-builder:1.0.
1
build_rpm_tag
:
build_rpm_tag
:
stage
:
build
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
scripts/scdaqrpm.sh
+
11
−
12
View file @
f09193c5
...
@@ -24,6 +24,11 @@ BASEDIR=$PWD
...
@@ -24,6 +24,11 @@ BASEDIR=$PWD
PARAMCACHE
=
"paramcache"
PARAMCACHE
=
"paramcache"
NLINES
=
1
NLINES
=
1
ASK
=
"1"
ASK
=
"1"
RAWVER
=
$(
git describe
--tags
||
echo
'v0.0.0'
)
# If git describe fails, we set a default version number.
VER
=
$(
echo
${
RAWVER
}
|
sed
's/^v//'
|
awk
'{split($0,a,"-"); print a[1]}'
)
REL
=
$(
git rev-list HEAD |
wc
-l
|
tr
-d
' '
)
echo
"Version
$VER
, release
$REL
"
if
[
-n
"
$1
"
]
;
then
if
[
-n
"
$1
"
]
;
then
if
[
"
$1
"
=
"--batch"
]
;
then
if
[
"
$1
"
=
"--batch"
]
;
then
...
@@ -95,21 +100,19 @@ rm -rf /tmp/$PACKAGENAME-build-tmp
...
@@ -95,21 +100,19 @@ rm -rf /tmp/$PACKAGENAME-build-tmp
echo
"creating new build area"
echo
"creating new build area"
mkdir
/tmp/
$PACKAGENAME
-build-tmp
mkdir
/tmp/
$PACKAGENAME
-build-tmp
cd
/tmp/
$PACKAGENAME
-build-tmp
cd
/tmp/
$PACKAGENAME
-build-tmp
#mkdir BUILD
#mkdir RPMS
TOPDIR
=
$PWD
TOPDIR
=
$PWD
echo
"working in
$PWD
"
echo
"working in
$PWD
"
#ls
#ls
# we are done here, write the specs and make the
fu*****
rpm
# we are done here, write the specs and make the rpm
cat
>
scoutdaq.spec
<<
EOF
cat
>
scoutdaq.spec
<<
EOF
Name:
$PACKAGENAME$pkgsuffix
Name:
$PACKAGENAME$pkgsuffix
Version:
0.1.0
Version:
$VER
Release:
0%{?dist}
Release:
$REL
Summary:
s
couting
daq
Summary:
L1 S
couting
DAQ
License: gpl
License: gpl
Group:
DAQ
Group:
CMS/L1Scouting
Packager:
meschi
Packager:
scouter
Source: none
Source: none
%define _tmppath
$TOPDIR
/scdaq-build
%define _tmppath
$TOPDIR
/scdaq-build
BuildRoot: %{_tmppath}
BuildRoot: %{_tmppath}
...
@@ -118,16 +121,13 @@ AutoReqProv: no
...
@@ -118,16 +121,13 @@ AutoReqProv: no
Provides:/opt/scdaq
Provides:/opt/scdaq
Requires: tbb boost-thread libcurl
Requires: tbb boost-thread libcurl
Obsoletes: scdaq
%description
%description
scouting daq
scouting daq
%prep
%prep
echo "PIPPPPPPPPO"
echo
$RPM_SOURCE_DIR
echo
$RPM_SOURCE_DIR
echo "PIPPOOOOOOOOO"
echo
$BASEDIR
echo
$BASEDIR
cp -R
$BASEDIR
/src SOURCES/
cp -R
$BASEDIR
/src SOURCES/
...
@@ -163,7 +163,6 @@ echo "Copying files to their destination"
...
@@ -163,7 +163,6 @@ echo "Copying files to their destination"
cp
$BASEDIR
/init.d/runSCdaq.service usr/lib/systemd/system/runSCdaq.service
cp
$BASEDIR
/init.d/runSCdaq.service usr/lib/systemd/system/runSCdaq.service
cp
$BASEDIR
/init.d/scoutboardResetServer.service usr/lib/systemd/system/scoutboardResetServer.service
cp
$BASEDIR
/init.d/scoutboardResetServer.service usr/lib/systemd/system/scoutboardResetServer.service
cp -R
$BASEDIR
/* opt/scdaq
cp -R
$BASEDIR
/* opt/scdaq
echo "PIPPOOOOOOOOOOO"
pwd
pwd
cp
$TOPDIR
/RPMBUILD/BUILD/SOURCES/scdaq opt/scdaq/bin/
cp
$TOPDIR
/RPMBUILD/BUILD/SOURCES/scdaq opt/scdaq/bin/
cp -R
$BASEDIR
/etc/scdaq/scdaq.conf etc/scdaq/
cp -R
$BASEDIR
/etc/scdaq/scdaq.conf etc/scdaq/
...
...
This diff is collapsed.
Click to expand it.
Thomas Owen James
@tjames
mentioned in commit
f0b3f990
·
2 years ago
mentioned in commit
f0b3f990
mentioned in commit f0b3f990c646039098182440263c7d673d94d7d9
Toggle commit list
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