Skip to content

Does not build with alternate prefix #7

@dsem

Description

@dsem

Setting the prefix to /opt

%define __prefix /opt

causes the packaging to fail,

+ '[' '!' -z 2.7 ']'
+ cd /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/opt/bin
+ mv pydoc pydoc.old
+ sed 's|#!.*|#!/opt/bin/python2.7|' pydoc.old
+ chmod 755 pydoc
+ rm -f pydoc.old
+ sed -i -e 's|#!.*|#!/opt/bin/python2.7|' python2.7-config
+ '[' '!' -z 2.7 ']'
+ cd /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/opt/bin
+ for file in 2to3 pydoc python-config idle smtpd.py
+ '[' -f 2to3 ']'
+ mv 2to3 2to32.7
+ for file in 2to3 pydoc python-config idle smtpd.py
+ '[' -f pydoc ']'
+ mv pydoc pydoc2.7
+ for file in 2to3 pydoc python-config idle smtpd.py
+ '[' -f python-config ']'
+ for file in 2to3 pydoc python-config idle smtpd.py
+ '[' -f idle ']'
+ mv idle idle2.7
+ for file in 2to3 pydoc python-config idle smtpd.py
+ '[' -f smtpd.py ']'
+ mv smtpd.py smtpd.py2.7
+ chmod 644 /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/opt/lib/libpython2.7.a
+ cp -a Tools /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/opt/lib/python2.7
+ rm -f mainpkg.files
+ sed 's|^/home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64|/|'
+ grep -v -e '_tkinter.so$'
+ find /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/opt/lib/python2.7 -type f
+ grep -v -e '/bin/2to32.7$'
+ grep -v -e '/bin/pydoc2.7$'
+ grep -v -e '/bin/smtpd.py2.7$'
+ find /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/opt/bin -type f -o -type l
+ grep -v -e '/bin/idle2.7$'
+ sed 's|^/home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64|/|'
+ echo /opt/include/python2.7/pyconfig.h
+ rm -f tools.files
+ echo /opt/lib/python2.7/Tools
+ echo /opt/lib/python2.7/lib2to3/tests
+ echo /opt/bin/2to32.7
+ echo /opt/bin/pydoc2.7
+ echo /opt/bin/smtpd.py2.7
+ echo /opt/bin/idle2.7
+ mkdir -p /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/var/www/html/python2.7.10
+ cd /home/dylan/rpmbuild/BUILDROOT/python27-2.7.10-1.x86_64/var/www/html/python2.7.10
+ tar x
+ bunzip2
/var/tmp/rpm-tmp.Cc1sus: line 95: /home/dylan/rpmbuild/SOURCES/python-2.7.10-docs-html.tar.bz2: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
error: Bad exit status from /var/tmp/rpm-tmp.Cc1sus (%install)


RPM build errors:
    bogus date in %changelog: Fri Jun 28 2012 Nathan Milford <nathan@milford.io> [2.7.5-1]
    bogus date in %changelog: Tue Nov 18 2001 Sean Reifschneider <jafo-rpms@tummy.com>
    bogus date in %changelog: Mon Oct  9 2001 Sean Reifschneider <jafo-rpms@tummy.com>
    Bad exit status from /var/tmp/rpm-tmp.Cc1sus (%install)

It fails whether %define config_include_docs is yes or no.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions