Code Monkey home page Code Monkey logo

build-subscription-manager's Issues

Building issue on the OracleLinux7

Hi All,

I want to build subscription-manager package for Oracle Linux 7, 8 and 9. I have successfully able to build subscription-manager package for Oracle Linux 8 & 9.

But for Oracle Linux 7, multiple issues are being faced while running Dockerfile. So I modified it to resolve those issues, but even after that there are errors that I need your support to resolve.

My modified Dockerfile

FROM oraclelinux:7-slim

RUN echo "sslverify=0" >> /etc/yum.conf
RUN yum-config-manager --enable ol7_optional_latest
RUN yum -y install oracle-epel-release-el7 oracle-nodejs-release-el7
&& yum -y install @buildsys-build tito rpm-build rpm-sign nodejs npm which expect
&& rm -rf /var/cache/yum
&& npm config set strict-ssl false
&& npm config set unsafe-perm true
&& npm config set registry http://registry.npmjs.org/
&& npm install -g yarn
&& rpmdev-setuptree

COPY scripts/* /
RUN chmod +x /my-build-rhsm.sh /rpm-sign.exp

CMD ["/my-build-rhsm.sh"]

These are issues being faced. Complete output of "./build-rhsm-ol7.sh" is also attached.


error: Bad file: /tmp/tito/rpmbuild-subscription-managereTU7Gq/SOURCES/subscription-manager-cockpit-1.24.51.tar.gz: No such file or directory

RPM build errors:
Bad file: /tmp/tito/rpmbuild-subscription-managereTU7Gq/SOURCES/subscription-manager-cockpit-1.24.51.tar.gz: No such file or directory

ERROR: Error running command: rpmbuild --eval '%undefine scl' --define "_topdir /tmp/tito/rpmbuild-subscription-managereTU7Gq" --define "_sourcedir /tmp/tito/rpmbuild-subscription-managereTU7Gq/SOURCES" --define "_builddir /tmp/tito/rpmbuild-subscription-managereTU7Gq/BUILD" --define "_srcrpmdir /tmp/tito" --define "_rpmdir /tmp/tito" --define 'dist .el7' --nodeps -bs /tmp/tito/rpmbuild-subscription-managereTU7Gq/SOURCES/subscription-manager-1.24.51/subscription-manager.spec

Status code: 1

Command output: ['error: Bad file: /tmp/tito/rpmbuild-subscription-managereTU7Gq/SOURCES/subscription-manager-cockpit-1.24.51.tar.gz: No such file or directory', '', '', '', 'RPM build errors:', ' Bad file: /tmp/tito/rpmbuild-subscription-managereTU7Gq/SOURCES/subscription-manager-cockpit-1.24.51.tar.gz: No such file or directory']


Looking for your great help !!

Regards,
Faisal Naeem
build-rhsm-ol7.sh - error n output.txt

Package signing on the OracleLinux 9

First thing I want to say is GREAT work on this. I REALLY REALLY appreciate you doing and sharing this project.

I thought I might bring to your attention that the Oracle Linux 9 build works if you do not try and sign the rpm's.

Looks like they changed some thing in the rpmbuild on 9 , I get the following error...

error: rpmbuild --sign is no longer supported. Use the rpmsign command instead!

This is not big issue for me, but thought you might want to know.

error: Bad file: /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES/subscription-manager-cockpit-1.28.29.tar.gz: No such file or directory

I check on OEL8, RH8 and CentOS8 with no lucky

Creating output directory: /tmp/tito
Building package [subscription-manager-1.28.29-3]
Wrote: /tmp/tito/subscription-manager-1.28.29.tar.gz
error: Bad file: /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES/subscription-manager-cockpit-1.28.29.tar.gz: No such file or directory

ERROR: Error running command: rpmbuild --eval '%undefine scl' --define "_topdir /tmp/tito/rpmbuild-subscription-manageruzmptpdv" --define "_sourcedir /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES" --define "_builddir /tmp/tito/rpmbuild-subscription-manageruzmptpdv/BUILD" --define "_srcrpmdir /tmp/tito" --define "_rpmdir /tmp/tito" --define 'dist .el8' --nodeps -bs /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES/subscription-manager-1.28.29/subscription-manager.spec
Status code: 1

Command output: ['error: Bad file: /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES/subscription-manager-cockpit-1.28.29.tar.gz: No such file or directory', '']

Traceback (most recent call last):
File "/usr/bin/tito", line 11, in <module>
load_entry_point('tito==0.6.21', 'console_scripts', 'tito')()
File "/usr/lib/python3.6/site-packages/tito/cli.py", line 910, in main
CLI().main(sys.argv[1:])
File "/usr/lib/python3.6/site-packages/tito/cli.py", line 209, in main
return module.main(argv)
File "/usr/lib/python3.6/site-packages/tito/cli.py", line 392, in main
return builder.run(self.options)
File "/usr/lib/python3.6/site-packages/tito/builder/main.py", line 162, in run
self.srpm()
File "/usr/lib/python3.6/site-packages/tito/builder/main.py", line 246, in srpm
output = run_command_func(cmd)
File "/usr/lib/python3.6/site-packages/tito/common.py", line 353, in run_command_print
raise RunCommandException(command, status, "\n".join(output))
tito.exception.RunCommandException: Error running command: rpmbuild --eval '%undefine scl' --define "_topdir /tmp/tito/rpmbuild-subscription-manageruzmptpdv" --define "_sourcedir /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES" --define "_builddir /tmp/tito/rpmbuild-subscription-manageruzmptpdv/BUILD" --define "_srcrpmdir /tmp/tito" --define "_rpmdir /tmp/tito" --define 'dist .el8' --nodeps -bs /tmp/tito/rpmbuild-subscription-manageruzmptpdv/SOURCES/subscription-manager-1.28.29/subscription-manager.spec

cp: cannot stat '/tmp/tito/subscription-manager-1.28.29-3.el8.src.rpm': No such file or directory

Not signing the packages. One or more of the key.asc and passphrase files and the GPG_NAME_EMAIL environment variable are missing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.