Fedora Linux Support Community & Resources Center
  #1  
Old 24th June 2012, 09:30 PM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,682
linuxchrome
Unhappy rpmbuild changes ARCH during build

Heyas,

i'm currently quit confused. I had built with this spec file quite a few times, only 2 times successfully on f17, the build process has quite a few odd output:
Code:
rpmbuild -ba ~/rpmbuild/SPECS/script-tools.spec
Code:
# | Fedora : Script Tools 0.6.1 : (0)                                                                   2012.06.24-20.32.18 | #
# |                                              sea's RPMbuild handler (0.1)                                              | #
# |                                           sea's SourceForge.net Manager (0.1)                                           | #
# | Available projects:                                                                                                  st | #
/tmp/tar.tmp
rm: Alle Argumente rekursiv entfernen? y
rm: Entfernen von „.git“ nicht möglich: Datei oder Verzeichnis nicht gefunden
tar: Entferne führende „/“ von Elementnamen
Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.Maqyro
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf script-tools-0.6.1
+ /usr/bin/mkdir -p script-tools-0.6.1
+ cd script-tools-0.6.1
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/script-tools-0.6.1.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Ausführung(%build): /bin/sh -e /var/tmp/rpm-tmp.N0KXZw
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd script-tools-0.6.1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Ausführung(%install): /bin/sh -e /var/tmp/rpm-tmp.SrSWBF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386
++ dirname /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386
+ cd script-tools-0.6.1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ tar -axf /root/rpmbuild/SOURCES/script-tools-0.6.1.tar.gz
+ rm -rf /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386
+ mkdir -p /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools
+ mv tmp /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/etc/profile.d
+ cat
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /root/rpmbuild/BUILD/script-tools-0.6.1
+ '[' noarch = noarch ']'
+ case "${QA_CHECK_RPATHS:-}" in
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: script-tools-0.6.1-4.fc17.noarch
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/doc
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/st
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/st.cfg
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/cfg
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/it
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/libs
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/lists
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/man
Fehler: Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/scripts


Fehler beim Bauen des RPM:
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/doc
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/st
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/st.cfg
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/cfg
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/it
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/libs
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/lists
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/man
    Datei nicht gefunden: /root/rpmbuild/BUILDROOT/script-tools-0.6.1-4.fc17.i386/usr/share/script-tools/scripts
[root@nc210 st]# ��
The specfile is there: http://sea.hostingsociety.com/dev/script-tools.spec
More files can be review on: http://sea.hostingsociety.com/dev/

The issue is, scripts should be noarch, to my understanding at least, but for some reason rpmbuild suddenly changes "noarch" to "i386".
I have no idea what might be the cause for this...

I had search google with "rpmbuild ARCH mismatch", but that didnt brought any usefull information
Any hint or idea is very welcome.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)

Last edited by sea; 24th June 2012 at 11:05 PM.
Reply With Quote
  #2  
Old 24th June 2012, 11:50 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: rpmbuild changes ARCH during build

Try

Code:
rpmbuild -ba --target noarch ~/rpmbuild/SPECS/script-tools.spec
Reply With Quote
  #3  
Old 25th June 2012, 02:28 AM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,682
linuxfedoraunknown
Re: rpmbuild changes ARCH during build

Thank you, that did it

Looks now like:
Code:
rpmbuild -ba --target $rpm_build_arch ~/rpmbuild/SPECS/$prj_name.spec && \
    		list=$(find ~/rpmbuild/ -name $prj_name*rpm) || \
    		list=empty
Code:
+ rm -rf /root/rpmbuild/BUILDROOT/script-tools-0.6.2-1.fc17.noarch
+ exit 0
# | RPM build st                                                      [DONE] | #
# | Files moved to /home/simon/Projects/output...                            | #
# |  * script-tools-0.6.3-1.fc17.noarch.rpm                                  | #
# |  * script-tools-0.6.3-1.fc17.src.rpm                                     | #
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)

Last edited by sea; 25th June 2012 at 02:49 AM.
Reply With Quote
Reply

Tags
arch, build, rpmbuild

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build fedora for Custom Arch? cadillackid F16 Development 3 15th October 2010 12:03 AM
[SOLVED] can't build rpm (rpmbuild seems broken!) help please tripleninez Using Fedora 2 5th March 2010 01:27 AM
Problem to build kernel with rpmbuild brunoadm Using Fedora 1 26th October 2007 04:42 AM
can I rpmbuild kernel source with arch=athlon? alphonsebrown Using Fedora 10 28th March 2005 01:43 PM
Specific Build (arch types) Melio Suggestions & Feedback 4 13th March 2004 10:36 AM


Current GMT-time: 07:37 (Thursday, 18-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Metro Rebibbia Travel Photos on Instagram - Regency Club Lounge, Hyatt Manila Travel Photos - St Paul Catholic Church - Chuns Reef Beach Instagram Photos