Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

failed to package rpm #67

Closed
vdvas opened this issue Jun 12, 2019 · 6 comments
Closed

failed to package rpm #67

vdvas opened this issue Jun 12, 2019 · 6 comments
Assignees
Labels
Milestone

Comments

@vdvas
Copy link

vdvas commented Jun 12, 2019

Hi.
I use docker container image centos:latest to build artefacts rpm packet epm.
My .gitlab-ci.yml file is

build_rpm_packet:
  stage: build
  image: centos:latest
  before_script:
    - yum update -y
    - yum groupinstall "Development Tools" -y
  script:
    - cd epm
    - ./configure
    - make
    - make install
    - epm -vvv -f rpm epm --output-dir rpm-distr
  artifacts:
    name: "$CI_COMMIT_SHA"
    paths:
      - epm/rpm-distr/
  when: manual

I get error Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Gitlab CI console output $ epm -vvv -f rpm epm --output-dir rpm-distr Building target platforms: x86_64 Building for target x86_64 Processing files: epm-4.4.1-0.x86_64 Provides: epm = 4.4.1-0 epm(x86-64) = 4.4.1-0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: epm-documentation-4.4.1-0.x86_64 error: File must begin with "/": NONE/share/doc/epm/COPYING error: File must begin with "/": NONE/share/doc/epm/README error: File must begin with "/": NONE/share/doc/epm/epm-book.html

RPM build errors:
File must begin with "/": NONE/share/doc/epm/COPYING
File must begin with "/": NONE/share/doc/epm/README
File must begin with "/": NONE/share/doc/epm/epm-book.html
ESP Package Manager v4.4.1
Copyright 1999-2017 by Michael R Sweet.

EPM is free software and comes with ABSOLUTELY NO WARRANTY; for details
see the GNU General Public License in the file COPYING or at
"http://www.fsf.org/gpl.html". Report all problems to
"https://github.com/michaelrsweet/epm/issues".

Searching for product information...
Stripping executables in distribution...
/usr/bin/strip epm
/usr/bin/strip epminstall
/usr/bin/strip mkepmlist
Creating RPM distribution...
Creating spec file...
Copying temporary distribution files...
epm -> rpm-distr/buildroot/usr/local/bin/epm...
epminstall -> rpm-distr/buildroot/usr/local/bin/epminstall...
mkepmlist -> rpm-distr/buildroot/usr/local/bin/mkepmlist...
./COPYING -> rpm-distr/buildrootNONE/share/doc/epm/COPYING...
./README.md -> rpm-distr/buildrootNONE/share/doc/epm/README...
./doc/epm-book.html -> rpm-distr/buildrootNONE/share/doc/epm/epm-book.html...
./doc/epm.man -> rpm-distr/buildrootNONE/share/man/man1/epm.1...
./doc/epminstall.man -> rpm-distr/buildrootNONE/share/man/man1/epminstall.1...
./doc/mkepmlist.man -> rpm-distr/buildrootNONE/share/man/man1/mkepmlist.1...
./doc/epm.list.man -> rpm-distr/buildrootNONE/share/man/man5/epm.list.5...
Building RPM binary distribution...
/usr/bin/rpmbuild -bb --buildroot "/builds/root/esp/epm/rpm-distr/buildroot" --target x86_64 rpm-distr/epm.spec
Packaging failed!
ERROR: Job failed: exit code 1

@skensell201
Copy link

Have you been able to solve this problem?

@vdvas
Copy link
Author

vdvas commented Jul 3, 2019

No.

@skensell201
Copy link

maybe there are at least some guesses?

@michaelrsweet michaelrsweet self-assigned this Jul 3, 2019
@michaelrsweet michaelrsweet added this to the Stable milestone Jul 3, 2019
@michaelrsweet
Copy link
Owner

Looks like the configure script is substituting NONE for an unspecified prefix. Not sure what is going wrong there, but will investigate.

@michaelrsweet
Copy link
Owner

[master 4a9c861] Fix prefix from configure script (Issue #67)

@skensell201
Copy link

Michaelsweet thank you so much! It is was very important for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants