Skip to content

spec: install ebsnvme in sbindir - #49

Merged
saiharsha1994 merged 1 commit into
amazonlinux:mainfrom
swapnildinkar:main
May 13, 2025
Merged

saiharsha1994 merged 1 commit into
amazonlinux:mainfrom
swapnildinkar:main

Conversation

@swapnildinkar

@swapnildinkar swapnildinkar commented May 7, 2025

Copy link
Copy Markdown

Issue #, if available:
#48

Description of changes:
this patch fixes the rpmbuild errors because of missing ebsnvme install (Fixes #48 where the bug was discovered);

before:

$ rpmbuild -bb rpmbuild/SPECS/amazon-ec2-utils.spec
.
.
+ exit 0
Processing files: amazon-ec2-utils-2.2.0-1.amzn2023.noarch
error: File not found: /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64/usr/sbin/ebsnvme


RPM build errors:
    File not found: /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64/usr/sbin/ebsnvme

after:

$ rpmbuild -bb rpmbuild/SPECS/amazon-ec2-utils.spec
.
.
+ install -m755 /home/ec2-user/rpmbuild/SOURCES/ebsnvme /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64/usr/sbin
.
.
.
+ rm -rf /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

this patch fixes the rpmbuild errors because of missing ebsnvme install;

before:
```
$ rpmbuild -bb rpmbuild/SPECS/amazon-ec2-utils.spec
.
.
+ exit 0
Processing files: amazon-ec2-utils-2.2.0-1.amzn2023.noarch
error: File not found: /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64/usr/sbin/ebsnvme

RPM build errors:
    File not found: /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64/usr/sbin/ebsnvme
```

after:
```
$ rpmbuild -bb rpmbuild/SPECS/amazon-ec2-utils.spec
.
.
+ install -m755 /home/ec2-user/rpmbuild/SOURCES/ebsnvme /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64/usr/sbin
.
.
.
+ rm -rf /home/ec2-user/rpmbuild/BUILDROOT/amazon-ec2-utils-2.2.0-1.amzn2023.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0
```

Signed-off-by: Swapnil Dinkar <sddinkar@amazon.com>
@saiharsha1994
saiharsha1994 merged commit fc9ff74 into amazonlinux:main May 13, 2025
@ericsu66888 ericsu66888 mentioned this pull request Aug 24, 2026
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.

Regression in amazon-ec2-utils.spec

2 participants