View previous topic :: View next topic |
Author |
Message |
quadbox Tux's lil' helper
Joined: 11 Jun 2002 Posts: 94 Location: Brisbane, Australia
|
Posted: Thu Jul 18, 2002 2:08 pm Post subject: Issues emerging Ghostscript. |
|
|
For some reason, my gentoo install won't emerge ghostscript. This is a bit of a problem, as it's a dependancy for everything and it's dog. (Notably kde).
I did a search of the bug database, (bugs.gentoo.org), and the only one I came up with related to a completely different part of the ebuild.
I have two questions:
- Is there a known workaround for this problem?
- Is the ghostscript dependancy of KDE optional? If so, which use variable introduces ghostscript as a dependancy?
I tried searching for this information, without any success. Here is the error message:
Code: |
cp: preserving permissions for '/var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/ghostscript/fonts'
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 8, Exitcode 1
!!! (no error message)
!!! Emerge aborting on /usr/portage/app-text/ghostscript/ghostscript-7.05.3-r1
|
I am running portage 2.0.13. |
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Thu Jul 18, 2002 2:17 pm Post subject: |
|
|
You might want to try deleting the ebuild you currently have (which might have some permissions problems) and then emerge rsync to get a clean one, then try compiling again. It does appear to be an issue with the ebuild, however this could be something isolated to your copy of it, although it does do an md5sum after it downloads. Its worth a shot anyway, won't take too long.
Regards,
BonezTheGoon |
|
Back to top |
|
|
quadbox Tux's lil' helper
Joined: 11 Jun 2002 Posts: 94 Location: Brisbane, Australia
|
Posted: Thu Jul 18, 2002 2:33 pm Post subject: |
|
|
BonezTheGoon wrote: | You might want to try deleting the ebuild you currently have (which might have some permissions problems) and then emerge rsync to get a clean one, then try compiling again. It does appear to be an issue with the ebuild, however this could be something isolated to your copy of it, although it does do an md5sum after it downloads. Its worth a shot anyway, won't take too long.
Regards,
BonezTheGoon |
No go, I'm afraid - I had this problem last week, did a complete reformat and reinstall (for other reasons), and am still having the problem. |
|
Back to top |
|
|
chatwood2 n00b
Joined: 20 Jun 2002 Posts: 39 Location: Washington DC, Pittsburgh PA
|
Posted: Thu Jul 18, 2002 3:19 pm Post subject: |
|
|
It seems to be a bug with acl, there have been a few threads about it in the past few days. (Including a few in the top five when you search for "ghostscript")
Look at this thread:
https://forums.gentoo.org/viewtopic.php?t=7892
It points to this bug on bugzilla:
https://bugs.gentoo.org/show_bug.cgi?id=3582
I was having this problem too, but I applied the patch to lib/acl.c (part of fileutils) as posted by Sam Yates on that thread, reemerged fileutils, and then I was able to emerge ghostscript. Let me know if there are any problems.
- Chris |
|
Back to top |
|
|
quadbox Tux's lil' helper
Joined: 11 Jun 2002 Posts: 94 Location: Brisbane, Australia
|
Posted: Fri Jul 19, 2002 6:32 am Post subject: |
|
|
I'm afraid I have absolutely no idea how to use that patch. Is it supposed to replace acl.c entirely? I'm no programmer...
Thanks for the info, though. As to the search, when I did search 3 days ago, I was unable to find anything that looked related. Evidently my searching skills are even worse than I thought. Appologies. |
|
Back to top |
|
|
chatwood2 n00b
Joined: 20 Jun 2002 Posts: 39 Location: Washington DC, Pittsburgh PA
|
Posted: Fri Jul 19, 2002 6:15 pm Post subject: |
|
|
Ok, here is a step-by-step on how to apply this ghostscript patch.
Code: | # emerge --clean rsync
# ebuild /usr/portage/sys-apps/fileutils/fileutils-4.1.8-r2.ebuild unpack
# cd /var/tmp/portage/fileutils-4.1.8-r2/work/fileutils-4.1.8/lib
(patch acl.c)
# ebuild /usr/portage/sys-apps/fileutils/fileutils-4.1.8-r2.ebuild compile
# ebuild /usr/portage/sys-apps/fileutils/fileutils-4.1.8-r2.ebuild install
# ebuild /usr/portage/sys-apps/fileutils/fileutils-4.1.8-r2.ebuild merge
# ebuild /usr/portage/sys-apps/fileutils/fileutils-4.1.8-r2.ebuild clean
|
Ok, now for the patch acl.c step. First you want to make the patch file, say ~/acl.patch Copy the patch text from the bugzilla link into the file. Now back in ...fileutil-4.1.8/lib, backup the orginal acl.c file:
Code: | # cp acl.c ~/acl.orig |
To actually patch acl.c:
Code: | # patch acl.c ~/acl.patch |
When I did this I got an error saying "Hunk #2 failed at 164", that's ok, we will apply hunk 2 by hand. Patch files have this syntax:
Code: | *** 123,321 **** #line numbers in org file
# orig text here
--- 123, 321 ---- #line numbers in final file
+ text #add this text
- tesst #remove this text
! #replace this block of text with block in orig file
|
make sense? probably not. But, basically acl.c lines 164 to 174, these lines:
Code: | }
if (acl_set_file (dst_path, ACL_TYPE_DEFAULT, acl))
{
error (0, errno, _("preserving permissions for %s"),
quote (dst_path));
acl_free(acl);
return -1;
}
else
acl_free(acl);
}
return 0;
|
end up looking like this:
Code: | }
switch (acl_get_entry (acl,ACL_FIRST_ENTRY,&dummy))
{
case -1:
error (0, errno, "%s", quote (src_path));
acl_free(acl);
return -1;
case 0:
/* empty acl */
if (acl_delete_def_file (dst_path))
{
error (0, errno, _("preserving permissions for %s"),
quote (dst_path));
acl_free(acl);
return -1;
}
break;
default:
if (acl_set_file (dst_path, ACL_TYPE_DEFAULT, acl))
{
error (0, errno, _("preserving permissions for %s"),
quote (dst_path));
acl_free(acl);
return -1;
}
}
acl_free(acl);
}
return 0;
|
So once acl.c is patched, go back up the list at the top and complete the steps. If I explained everything right fileutils will compile and install fine. Then, you can emerge ghostscript without any error.
Let me know if you have any issues.
- Chris |
|
Back to top |
|
|
quadbox Tux's lil' helper
Joined: 11 Jun 2002 Posts: 94 Location: Brisbane, Australia
|
Posted: Sat Jul 20, 2002 7:27 am Post subject: |
|
|
Thanks very much, chatwood2, you're a champion.
It works fine now. Thanks for the detailed explanation. |
|
Back to top |
|
|
chatwood2 n00b
Joined: 20 Jun 2002 Posts: 39 Location: Washington DC, Pittsburgh PA
|
Posted: Sun Jul 21, 2002 6:40 pm Post subject: |
|
|
glad I could help
- Chris |
|
Back to top |
|
|
CasimirEffect n00b
Joined: 06 May 2002 Posts: 31 Location: Bellingham, WA
|
Posted: Sat Aug 17, 2002 3:00 am Post subject: |
|
|
When trying to patch I get an error message 15 out of 15 hunks failed. I've never had to patch anything before I copied the script from the bugzilla patch into a file called acl.patch. Put that in the /var/tmp/portage/fileutils-4.1.8-r2/work/fileutils-4.1.8/lib directory and typed patch acl.c acl.patch. Where did I go wrong? _________________ I don't hate Microsoft. |
|
Back to top |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Mon Aug 19, 2002 3:39 am Post subject: patch acl.c |
|
|
CasimirEffect wrote: | When trying to patch I get an error message 15 out of 15 hunks failed. I've never had to patch anything before I copied the script from the bugzilla patch into a file called acl.patch. Put that in the /var/tmp/portage/fileutils-4.1.8-r2/work/fileutils-4.1.8/lib directory and typed patch acl.c acl.patch. Where did I go wrong? |
I get the same thing! I wonder if the file has changed, and this thread no longer applies... ? _________________ Even a stopped clock gives the right time twice a day. |
|
Back to top |
|
|
reverius42 Apprentice
Joined: 16 Jul 2002 Posts: 166 Location: Tucson, AZ
|
Posted: Mon Aug 19, 2002 3:58 am Post subject: ah hah! |
|
|
I did the following:
Code: | # emerge rsync
# emerge fileutils
# emerge ghostscript
|
and after that emerge fileutils (replacing the existing one, apparently?) it works fine! Ghostscript emerged without a problem.
Note that I put "-acl" in my /etc/make.conf file... _________________ Even a stopped clock gives the right time twice a day. |
|
Back to top |
|
|
chatwood2 n00b
Joined: 20 Jun 2002 Posts: 39 Location: Washington DC, Pittsburgh PA
|
Posted: Mon Aug 19, 2002 2:59 pm Post subject: |
|
|
The acl patch only has 2 hunks, you are using the xfs_acl.c patch. From the bugzilla dicussion here is the acl.c patch:
Code: | START-OF-PATCH
*** lib/acl.c.orig Mon Jul 15 02:24:56 2002
--- lib/acl.c Mon Jul 15 02:25:12 2002
***************
*** 155,158 ****
--- 155,160 ----
if (S_ISDIR (mode))
{
+ acl_entry_t dummy;
+
acl = acl_get_file (src_path, ACL_TYPE_DEFAULT);
if (acl == NULL)
***************
*** 162,174 ****
}
! if (acl_set_file (dst_path, ACL_TYPE_DEFAULT, acl))
! {
! error (0, errno, _("preserving permissions for %s"),
! quote (dst_path));
acl_free(acl);
return -1;
}
! else
! acl_free(acl);
}
return 0;
--- 164,196 ----
}
! switch (acl_get_entry (acl,ACL_FIRST_ENTRY,&dummy))
! {
! case -1:
! error (0, errno, "%s", quote (src_path));
acl_free(acl);
return -1;
+
+ case 0:
+ /* empty acl */
+ if (acl_delete_def_file (dst_path))
+ {
+ error (0, errno, _("preserving permissions for %s"),
+ quote (dst_path));
+ acl_free(acl);
+ return -1;
+ }
+ break;
+
+ default:
+ if (acl_set_file (dst_path, ACL_TYPE_DEFAULT, acl))
+ {
+ error (0, errno, _("preserving permissions for %s"),
+ quote (dst_path));
+ acl_free(acl);
+ return -1;
+ }
}
!
! acl_free(acl);
}
return 0;
END-OF-PATCH |
- Chris |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|