Comments (5)
It could be that the last command in the script needs updating, currently it's:
sudo mock -r epel-7-x86_64 rebuild $TMP/rpmbuild/SRPMS/stenographer-*$short_commit.el7.src.rpm
Maybe it should be
sudo mock -r epel-7-x86_64 rebuild $TMP/rpmbuild/SRPMS/stenographer-*$short_commit.*.src.rpm
Could you modify rpmbuild-steno-centos
accordingly and let me know if it works? If so, I can update the script within the repo.
from stenographer.
Could you rerun, using this as the final step:
bash -x ./rpmbuild-steno-centos
and paste the output?
from stenographer.
[root@playground stenographer]# ls
base filecache lib.sh stenographer.spec
blockfile format.sh LICENSE stenokeys.sh
certs httputil query stenoread
config indexfile README.md stenotype
configs install_el7.sh rpmbuild-steno-centos testdata
CONTRIBUTING.md INSTALL.md stats thread
DESIGN.md install.sh stenocurl
env integration_test stenographer.go
[root@playground stenographer]# bash -x ./rpmbuild-steno-centos
++ curl https://api.github.com/repos/google/stenographer/commits/master
++ awk 'NR==2{print $0}'
++ awk '-F"' '{print $4}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4478 100 4478 0 0 26715 0 --:--:-- --:--:-- --:--:-- 26814
+ commit=8ef0b15a812317885b3d4e5ae4286d7dbbe350b5
++ echo 8ef0b15
+ short_commit=8ef0b15
++ mktemp -d
+ TMP=/tmp/tmp.bp4EkaCM88
+ pushd /tmp/tmp.bp4EkaCM88
/tmp/tmp.bp4EkaCM88 /home/stenographer/go/src/github.com/google/stenographer
+ curl -L -J -O https://github.com/google/stenographer/archive/8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 161 0 161 0 0 1132 0 --:--:-- --:--:-- --:--:-- 1125
100 136k 100 136k 0 0 529k 0 --:--:-- --:--:-- --:--:-- 529k
curl: Saved to filename 'stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz'
+ mkdir -p /tmp/tmp.bp4EkaCM88/rpmbuild/BUILD /tmp/tmp.bp4EkaCM88/rpmbuild/RPMS /tmp/tmp.bp4EkaCM88/rpmbuild/SOURCES /tmp/tmp.bp4EkaCM88/rpmbuild/SPECS /tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS
+ cp stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz /tmp/tmp.bp4EkaCM88/rpmbuild/SOURCES
+ tar -xzf stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz
+ cp /tmp/tmp.bp4EkaCM88/stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5/stenographer.spec /tmp/tmp.bp4EkaCM88/rpmbuild/SPECS/
+ rpmbuild --define '_topdir /tmp/tmp.bp4EkaCM88/rpmbuild' -bs /tmp/tmp.bp4EkaCM88/rpmbuild/SPECS/stenographer.spec
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4478 100 4478 0 0 25024 0 --:--:-- --:--:-- --:--:-- 25157
Wrote: /tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS/stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
+ sudo mock -r epel-7-x86_64 --init
INFO: mock.py version 1.2.21 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
Mock Version: 1.2.21
INFO: Mock Version: 1.2.21
Finish: chroot init
Finish: run
+ sudo mock -r epel-7-x86_64 --clean
INFO: mock.py version 1.2.21 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Finish: run
+ sudo mock -r epel-7-x86_64 rebuild '/tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS/stenographer-*8ef0b15.el7.src.rpm'
INFO: mock.py version 1.2.21 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
ERROR: Cannot find/open srpm: /tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS/stenographer-*8ef0b15.el7.src.rpm. Error: [Errno 2] No such file or directory: '/tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS/stenographer-*8ef0b15.el7.src.rpm'
[root@playground stenographer]#
from stenographer.
Hmm, so rpmbuild builds A, but mock rebuild cannot find B:
A: /tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS/stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
B: /tmp/tmp.bp4EkaCM88/rpmbuild/SRPMS/stenographer-*8ef0b15.el7.src.rpm
The difference there appears to be the suffix: rpmbuild is building .el7.centos.src.rpm
, but the second command just wants .el7.src.rpm
.
from stenographer.
That did the trick 👍
Thank you
Results:
[stenographer@playground stenographer]$ sudo bash -x ./rpmbuild-steno-centos > steno-insall.log
++ awk 'NR==2{print $0}'
++ awk '-F"' '{print $4}'
++ curl https://api.github.com/repos/google/stenographer/commits/master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4478 100 4478 0 0 32517 0 --:--:-- --:--:-- --:--:-- 32449
+ commit=8ef0b15a812317885b3d4e5ae4286d7dbbe350b5
++ echo 8ef0b15
+ short_commit=8ef0b15
++ mktemp -d
+ TMP=/tmp/tmp.X9OZFinEPF
+ pushd /tmp/tmp.X9OZFinEPF
+ curl -L -J -O https://github.com/google/stenographer/archive/8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 161 0 161 0 0 1154 0 --:--:-- --:--:-- --:--:-- 1158
100 136k 100 136k 0 0 88470 0 0:00:01 0:00:01 --:--:-- 5344
+ mkdir -p /tmp/tmp.X9OZFinEPF/rpmbuild/BUILD /tmp/tmp.X9OZFinEPF/rpmbuild/RPMS /tmp/tmp.X9OZFinEPF/rpmbuild/SOURCES /tmp/tmp.X9OZFinEPF/rpmbuild/SPECS /tmp/tmp.X9OZFinEPF/rpmbuild/SRPMS
+ cp stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz /tmp/tmp.X9OZFinEPF/rpmbuild/SOURCES
+ tar -xzf stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5.tar.gz
+ cp /tmp/tmp.X9OZFinEPF/stenographer-8ef0b15a812317885b3d4e5ae4286d7dbbe350b5/stenographer.spec /tmp/tmp.X9OZFinEPF/rpmbuild/SPECS/
+ rpmbuild --define '_topdir /tmp/tmp.X9OZFinEPF/rpmbuild' -bs /tmp/tmp.X9OZFinEPF/rpmbuild/SPECS/stenographer.spec
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4478 100 4478 0 0 34558 0 --:--:-- --:--:-- --:--:-- 34713
+ sudo mock -r epel-7-x86_64 --init
INFO: mock.py version 1.2.21 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
Mock Version: 1.2.21
INFO: Mock Version: 1.2.21
Start: yum install
Finish: yum install
Start: creating root cache
Finish: creating root cache
Finish: chroot init
INFO: Installed packages:
Finish: run
+ sudo mock -r epel-7-x86_64 --clean
INFO: mock.py version 1.2.21 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Finish: run
+ sudo mock -r epel-7-x86_64 rebuild /tmp/tmp.X9OZFinEPF/rpmbuild/SRPMS/stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
INFO: mock.py version 1.2.21 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
INFO: Start(/tmp/tmp.X9OZFinEPF/rpmbuild/SRPMS/stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm) Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
Mock Version: 1.2.21
INFO: Mock Version: 1.2.21
Start: yum update
Finish: yum update
Finish: chroot init
Start: build phase for stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
Start: build setup for stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
Finish: build setup for stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
Start: rpmbuild stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
Finish: rpmbuild stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
Finish: build phase for stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm
INFO: Done(/tmp/tmp.X9OZFinEPF/rpmbuild/SRPMS/stenographer-0.0-1.git8ef0b15.el7.centos.src.rpm) Config(epel-7-x86_64) 1 minutes 6 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
Finish: run
[stenographer@playground stenographer]$
from stenographer.
Related Issues (20)
- Ubuntu 18.04 Seccomp Failures HOT 11
- gRPC support for stenoread HOT 7
- Feature Request: Utility to dump offline stenographer sensor data to pcap HOT 4
- [Ubuntu] Stenotype keeps crashing HOT 9
- Prometheus metrics support
- Stenographer will not start on Ubuntu 16.04LTS HOT 1
- Temporary directory created before dropping privileges
- Wishlist: Community ID indexed flow extraction
- VLAN tags HOT 3
- multiple threads writing to same disk causes issues with disk cleanup HOT 10
- No such device exception seen while running install.sh on Ubuntu 18.04 HOT 1
- Export the packet through the stenoread and it will automatically break in 15 minutes HOT 1
- rpm created stenographer doesn't run HOT 3
- Notifying about index completion HOT 1
- Decapsulate ERSPAN
- Watchdog failure stenotype abort after 2 minutes (Debian 10) HOT 15
- BlockFile.AllPackets() fail when using non-standard blocksize
- Not able to set stenotype packet directory HOT 1
- Non-pretty results from output file open failure HOT 3
- PCAP-over-IP client in stenotype
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stenographer.