[Bug 4779] New: make docker-centosX and docker-fedoraX fail: no such file or directory, directory nonexistent
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Sat Aug 15 14:22:27 UTC 2015
http://bz.selenic.com/show_bug.cgi?id=4779
Priority: normal
Bug ID: 4779
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: make docker-centosX and docker-fedoraX fail: no such
file or directory, directory nonexistent
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: av6 at dwimlabs.net
Hardware: PC
Status: UNCONFIRMED
Version: default branch
Component: Mercurial
Product: Mercurial
Trying to build any RPMs via docker containers doesn't work for me: seems like
SOURCES and SPECS directories need to exist before running make
docker-something-rpm-based.
$ hg sum
parent: 26033:9e7d805925c8 tip
reachableroots: fix memleak of integer objects at includepath loop
branch: default
commit: (clean)
update: (current)
$ uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8
19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
This example is make docker-centos6, but centos5, centos7, fedora20 and
fedora21 get the same kind of errors:
$ make docker-centos6
[...]
abort: No such file or directory:
/home/vagrant/hg/packages/centos6/SOURCES/mercurial-3.5+146-9e7d805925c8.tar.gz
make: *** [docker-centos6] Error 255
Now let's create the directory and retry:
$ mkdir packages/centos6/SOURCES
$ make docker-centos6
[...]
contrib/buildrpm: 84: contrib/buildrpm: cannot create
/home/vagrant/hg/packages/centos6/SPECS/mercurial.spec: Directory nonexistent
make: *** [docker-centos6] Error 2
Okay, once more:
$ mkdir packages/centos6/SPECS
$ make docker-centos6
[...]
Processing files: mercurial-debuginfo-3.5+146-9e7d805925c8.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/mnt/shared/BUILDROOT/mercurial-3.5+146-9e7d805925c8.x86_64
Wrote: /mnt/shared/SRPMS/mercurial-3.5+146-9e7d805925c8.src.rpm
Wrote: /mnt/shared/RPMS/x86_64/mercurial-3.5+146-9e7d805925c8.x86_64.rpm
Wrote:
/mnt/shared/RPMS/x86_64/mercurial-debuginfo-3.5+146-9e7d805925c8.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.R6I1Jn
+ umask 022
+ cd /mnt/shared/BUILD
+ cd mercurial-3.5+146-9e7d805925c8
+ rm -rf /mnt/shared/BUILDROOT/mercurial-3.5+146-9e7d805925c8.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.t5dJ94
+ umask 022
+ cd /mnt/shared/BUILD
+ rm -rf mercurial-3.5+146-9e7d805925c8
+ exit 0
Spawning worker 0 with 3 pkgs
Workers Finished
Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
Build complete - results can be found in /home/vagrant/hg/packages/centos6
I assume that buildrpm needs something like a mkdir -p
packages/centos6/{SOURCES,SPECS} somewhere? I don't use rpm-based distros, so I
can be wrong. For the record, make docker-debian-jessie works fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list