Fedora Linux Support Community & Resources Center
  #1  
Old 7th April 2007, 12:14 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
failed to build gpaint under mock

able to build gpaint no problem. when try to build under mock fails with translations
Quote:
+ mkdir -p /var/tmp/gpaint-2-0.3.0_5-1.fc6-root-mockbuild/usr/share/applications /var/tmp/gpaint-2-0.3.0_5-1.fc6-root-mockbuild/usr/share/pixmaps
+ cp -a /builddir/build/SOURCES/gpaint-2.desktop /var/tmp/gpaint-2-0.3.0_5-1.fc6-root-mockbuild/usr/share/applications
+ cp -a /builddir/build/SOURCES/gpaint-2.png /var/tmp/gpaint-2-0.3.0_5-1.fc6-root-mockbuild/usr/share/pixmaps
+ /usr/lib/rpm/redhat/find-lang.sh /var/tmp/gpaint-2-0.3.0_5-1.fc6-root-mockbuild gpaint-2
No translations found for gpaint-2 in /var/tmp/gpaint-2-0.3.0_5-1.fc6-root-mockbuild
error: Bad exit status from /var/tmp/rpm-tmp.63254 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.63254 (%install)

Error building package from gpaint-2-0.3.0_5-1.fc6.src.rpm, See build log
attached the srpm i created rename it and remove the .tar
Attached Files
File Type: tar gpaint-2-0.3.0_5-1.src.rpm.tar (371.0 KB, 161 views)
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #2  
Old 7th April 2007, 12:19 AM
Wayne
Guest
 
Posts: n/a
http://members.aol.com/Whip1472/soft...ompiled.tar.gz
Reply With Quote
  #3  
Old 7th April 2007, 12:32 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
im trying to build this in mock so that it can be added to fedora repo in fc7 or extras in fc6. in order to do this i need to be able to build the package in a chroot container. mock do this by creating a fake install and attempts to build the package as tho it were on a clean install.
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #4  
Old 7th April 2007, 01:58 AM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 55
Posts: 12,371
Hello Jim:
I am trying your .src rpm here on mock to see what if anything I can figure out. .... Failed at the same place
I am going to try a couple of things and give it a whirl again to see if the outcome is any different.

Just a note about your rpm, if you don't mind the comment
the output from
rpmlint -v
W: gpaint-2 non-standard-group Applications/Graphics
W: gpaint-2 incoherent-version-in-changelog 0.3.0-pre5-1fc6 0.3.0_5-1
W: gpaint-2 no-documentation

To correct the non-standard-group I believe you have to use
User Interface/X
To correct the no-documentation, you need to amend your spec file .
from
%doc
to
%doc AUTHORS COPYING ChangeLog NEWS README



Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)

Last edited by Seve; 7th April 2007 at 03:50 AM.
Reply With Quote
  #5  
Old 7th April 2007, 05:10 AM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 55
Posts: 12,371
Hello Jim:
I changed a couple of things in your spec file and it will now build quickly and cleanly in mock.
PHP Code:
mock -r fedora-6-i386-core.cfg gpaint-2-0.3.0_5-1.src.rpm
init
clean
prep
This may take a 
while
setup
build
ending
done
Results 
and/or logs in: /var/lib/mock/fedora-6-i386-core/result 
The changes are as follows [scan the revised spec in case I forgot something]:
#---------------------------------------------
Group: User Interface/X
#---------------------------------------------
BuildRequires: gettext >= 0.14
BuildRequires: gettext-devel >= 0.14
#---------------------------------------------
%post
update-desktop-database %{_datadir}/applications

%postun
update-desktop-database %{_datadir}/applications
#----------------------------------------------
%{_datadir}/locale/*
%doc AUTHORS COPYING ChangeLog NEWS README

#----------------------------------------------
Here is the output from rpnlint for the rpms
rpmlint gpaint-2-0.3.0_5-1.i386.rpm
W: gpaint-2 incoherent-version-in-changelog 0.3.0-pre5-1fc6 0.3.0_5-1
rpmlint gpaint-2-0.3.0_5-1.src.rpm
NO errors or warnings
rpmlint gpaint-2-debuginfo-0.3.0_5-1.i386.rpm
NO errors or warnings


I have attached the changed spec file and build.log, hopefully it's not too hacked up

BTW ... nice job

Seve
Attached Files
File Type: spec gpaint-2.spec (1.9 KB, 164 views)
File Type: txt build.log.txt (60.7 KB, 146 views)
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #6  
Old 8th April 2007, 01:14 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
here are the "Groups" fedora has
cat `rpm -ql rpm | grep GROUPS$` | less
Quote:
Amusements/Games
Amusements/Graphics
Applications/Archiving
Applications/Communications
Applications/Databases
Applications/Editors
Applications/Emulators
Applications/Engineering
Applications/File
Applications/Internet
Applications/Multimedia
Applications/Productivity
Applications/Publishing
Applications/System
Applications/Text
Development/Debuggers
Development/Languages
Development/Libraries
Development/System
Development/Tools
Documentation
System Environment/Base
System Environment/Daemons
System Environment/Kernel
System Environment/Libraries
System Environment/Shells
User Interface/Desktops
User Interface/X
User Interface/X Hardware Support
For the added dependencies i was able to build without gettext-devel

also why isit when i build it i do not get the fc6 in the name ?
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?

Last edited by jim; 8th April 2007 at 01:18 AM.
Reply With Quote
  #7  
Old 8th April 2007, 02:28 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
built with out gettest-devel

gonna submit to extras in the future.
After speaking with the developer, he plans on moving gpaint to be in sync with the gnome libraries. so a complete new package may come to life here.

attached current gpaint-2 rpm built in mock remove the .txt to install

all files located here
http://jimlawrnc.mine.nu/mywiki/files
Attached Files
File Type: txt gpaint-2-0.3-1.fc6.i386.rpm.txt (129.0 KB, 159 views)
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?

Last edited by jim; 8th April 2007 at 02:40 AM.
Reply With Quote
  #8  
Old 8th April 2007, 02:45 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
Oh almost forgot,

Seve, Thanks a bunch
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #9  
Old 8th April 2007, 02:52 AM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 55
Posts: 12,371
Hello Jim:
First off I am no expert [I'm not even good, in fact I'm rather bad] at this process, so I am sure there are many better ways to do things.

I normally use mock to test my own little projects.

Gpaint-2 would not build in mock until I added in the gettext rpm(s) I did not try it without the devel. Less is better though.... The joy of finding / eliminating dependencies / requirements

Also, I could not install the rpm due to a dependency with gnome-print, once I changed that around I could install the application. I disabled the gnome-print requirement and it built and installed fine but no printing, no menu.

So, from dumping the ./configure file and scanning through it I added lignomeprint22, libgnomeprintui22 and libgnomeprintui22-devel and that seemed to work, whether all are needed I don't know.

For the no menu entry, I changed the group to Interface/X and edited you gpaint-2.desktop file and added
Categories=GNOME;GTK;Application;Graphics;Viewer;
and a MimieType for giggles to see if it would work [it did]
MimeType=image/bmp;image/jpeg;image/gif;image/png;image/tiff;image/x-bmp;
Did a : desktop-file-validate gpaint-2.desktop [which was fine]

Then rebuilt - passed through mock and it installed perfectly under Applications / Graphics.

Also, the rpmlint and all rpms were clean as clean.

To add the fc6 extension I normally just have an entry as:

%define dist .fc6

Release: 1.x.x%{?dist}

I'm sure there is more formal and better way to accomplish this as well.
I never really thought about it before, I'm sure Firewing1 would have the answer.

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #10  
Old 8th April 2007, 03:06 AM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 55
Posts: 12,371
Quote:
Originally Posted by jim
Oh almost forgot,

Seve, Thanks a bunch
Hello Jim:

You're welcome, glad to help out albeit only a little.
Look forward to seeing in the official repos ...

I just noticed you posted another one will grab it a whirl .

Seve
Attached Thumbnails
Click image for larger version

Name:	Screenshot-Untitled - gpaint.png
Views:	152
Size:	97.6 KB
ID:	11879   Click image for larger version

Name:	Screenshot-Menu Layout.png
Views:	178
Size:	158.3 KB
ID:	11880  
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #11  
Old 8th April 2007, 01:42 PM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
you have a modified version of the desktop file? can you attach it?
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #12  
Old 9th April 2007, 12:19 AM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 55
Posts: 12,371
Hello Jim:
Here is the modified desktop file, you may wish to confirm the actual mime types as I am not all the familiar with which extensions that gpaint-2 can handle.

Also:
I tried your new rpm and it still fails to install due to the gnome-print dependency.

Seve
Attached Files
File Type: txt gpaint-2.desktop.txt (499 Bytes, 153 views)
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #13  
Old 9th April 2007, 12:51 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
ok
i removed the gnome-paint i had installed removed it as adepenency and built ok with libgnomeprint22 as a required. how ever rpmlint cries
$ rpmlint /home/jim/rpmbuild/RPMS/i386/gpaint-2-0.3-1.i386.rpm
E: gpaint-2 explicit-lib-dependency libgnomeprint22
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #14  
Old 9th April 2007, 12:59 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
Seve:

try this one
Attached Files
File Type: txt gpaint-2-0.3-1.i386.rpm.txt (132.1 KB, 170 views)
File Type: txt gpaint-2-0.3-1.src.rpm.txt (375.6 KB, 175 views)
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #15  
Old 9th April 2007, 01:18 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
How can I get around the rpmlint problem if i cannot get gnome-print from core or extras

Quote:
$ sudo yum search gnome-printLoading "installonlyn" plugin
Setting up repositories
livna 100% |=========================| 1.1 kB 00:00
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files



libgnomeprint22-devel.i386 2.12.1-8 core
Matched from:
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System. The gnome-print-devel package
includes the libraries and include files needed for developing
applications that use the GNOME printing capabilities.

You should install the gnome-print-devel package if you would like to
develop GNOME applications that will use the GNOME print capabilities.
You do not need to install the gnome-print-devel package if you just
want to use the GNOME desktop environment.



libgnomeprint22.i386 2.12.1-8 core
Matched from:
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System. The gnome-print package contains
libraries and fonts needed by GNOME applications for printing.

You should install the gnome-print package if you intend to use any of
the GNOME applications that can print. If you would like to develop
GNOME applications that can print you will also need to install the
gnome-print devel package.



libgnomeprint22-devel.i386 2.12.1-9.fc6 updates
Matched from:
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System. The gnome-print-devel package
includes the libraries and include files needed for developing
applications that use the GNOME printing capabilities.

You should install the gnome-print-devel package if you would like to
develop GNOME applications that will use the GNOME print capabilities.
You do not need to install the gnome-print-devel package if you just
want to use the GNOME desktop environment.



libgnomeprint22.i386 2.12.1-9.fc6 updates
Matched from:
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System. The gnome-print package contains
libraries and fonts needed by GNOME applications for printing.

You should install the gnome-print package if you intend to use any of
the GNOME applications that can print. If you would like to develop
GNOME applications that can print you will also need to install the
gnome-print devel package.



libgnomeprint22-devel.i386 2.12.1-9.fc6 installed
Matched from:
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System. The gnome-print-devel package
includes the libraries and include files needed for developing
applications that use the GNOME printing capabilities.

You should install the gnome-print-devel package if you would like to
develop GNOME applications that will use the GNOME print capabilities.
You do not need to install the gnome-print-devel package if you just
want to use the GNOME desktop environment.




libgnomeprint22.i386 2.12.1-9.fc6 installed
Matched from:
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System. The gnome-print package contains
libraries and fonts needed by GNOME applications for printing.

You should install the gnome-print package if you intend to use any of
the GNOME applications that can print. If you would like to develop
GNOME applications that can print you will also need to install the
gnome-print devel package.
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
Reply

Tags
build, failed, gpaint, mock

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
Mock can't build x86_64 packages Kakao Using Fedora 0 2nd October 2009 01:51 PM
Trying to build a simple srpm with mock errors out uncholowapo Using Fedora 5 17th March 2009 05:12 AM
Build as root in mock? Moray Using Fedora 3 7th February 2008 01:45 PM
build failed on x86_64 david.xiao.bj Using Fedora 2 16th January 2008 02:07 AM


Current GMT-time: 04:02 (Friday, 25-04-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