Skip to content

spec: install ebsnvme in sbindir #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

swapnildinkar
Copy link

@swapnildinkar swapnildinkar commented May 7, 2025

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 <[email protected]>
@saiharsha1994 saiharsha1994 merged commit fc9ff74 into amazonlinux:main May 13, 2025
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