Ebuild my_ebuild digest generates incorrect checksum

Anything that pertains to Portage

Moderator: Moderators

Ebuild my_ebuild digest generates incorrect checksum

Postby xipi » Sun Feb 15, 2009 13:50

Hi,

I've just installed Sabayon 4.1 r1 x86-32, and I'm in the process of adding some ebuilds in my local portage tree that are not in official portage.

I've tried with ebuilds for gnome-commander and xoscope applications, and I'm finding following trouble:

in /usr/local/portage, when I do

# ebuild xoscope-1.12.ebuild digest

in order to generate its manifest, it DOES NOT download the package from correct location. I mean, although SRC_URI in the ebuild itself tells a correct location, ebuild first tries to download from official gentoo mirrors. It gets several 404, and keeps trying other mirrors, until one of them ( http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles ), happens to answer a 200 and gives back an HTML telling something like "the page you're looking for is not here, dude". Thus, ebuild downloads this HTML, and stores it in /usr/portage/distfiles with filename 'xoscope-1.12.tgz'. I.e., we have an HTML named like a package now. Then, generates the checksum and takes the size of this HTML as the one it has to expect from the package.

This results in that, when doing:

# emerge xoscope

It does not download it (as the "package", though corrupted, is already in /usr/portage/distfiles), tries to unpack it, and obviously fails (as it is an HTML).

I tried removing the corrupted file from /usr/portage/distfiles. What then emerge does is downloading it (this time, from the correct location), but as the size and checksum does not fit with the Manifest generated by the ebuild, it does not install it.

In front of this issue, I wonder several questions:

-Where are located the list of gentoo mirrors that portage is using on my system? (one idea is that, if I delete the infamious server that answer with a 200 to an invalid URL, maybe 'ebuild' command will end up downloading the package from the correct location)

-Is there any reason for which 'ebuild' first tries to download the package from official gentoo mirrors rather than the SRC_URI specified in the ebuild i've placed? I can't see the sense in that (if I placed the ebuild myself, is because it is NOT in the official gentoo mirrors).

-Is there any command to cleanup all what 'ebuild whatever.ebuild digest' has done? (i.e., downloading the package and creating the Manifest)

Thanks and greetings,
xipi
Young Hen
 
Posts: 23
Joined: Sun Feb 15, 2009 13:34

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby wolfden » Sun Feb 15, 2009 17:03

if you have location for the file, download it yourself or point the ebuild to the location directly. You can simply fetch it yourself and put it in the /usr/portage/distfiles than ebuild digest the ebuild file. The digest shouldn't download anything than, just create the manifest than you can emerge package as normal
wolfden
Sharecropper
 
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby Fitzcarraldo » Mon Feb 16, 2009 9:18

Yep, as wolfden says. In fact, when I'm merging ebuilds at an office where my access to the Internet is via a proxy server (such as the office I'm in today as I type this) and they limit my access to the Internet to just using a Web browser, I have to manually download the tar.gz, tar.bz2 or whatever files via a Web browser and copy them into /usr/portage/distfiles/ myself. There are plenty of mirrors around: I just copy the file name from the failed ebuild message and paste it into Google's search box.

I see from your latest post in the Gentoo Forums that you have now got the ebuild to work.

What exactly did you do to create the ebuild and manifest? I'm not interested in installing xoscope but, had I been, I would have done something along the following lines as root:

Code: Select all
nano /etc/make.conf  (and add the line PORTDIR_OVERLAY=/usr/local/portage to the file)

mkdir -p /usr/local/portage/media-sound/xoscope/files

wget http://bugs.gentoo.org/attachment.cgi?id=171035 --output-document=/usr/local/portage/media-sound/xoscope/xoscope-1.12.ebuild

wget http://bugs.gentoo.org/attachment.cgi?id=171021 --output-document=/usr/local/portage/media-sound/xoscope/files/01-xoscope_pointer_fix.patch

cd /usr/local/portage/media-sound/xoscope

ebuild xoscope-1.12.ebuild manifest

emerge -1v xoscope


There are two USE flags (esd and gtk) for the xoscope ebuild, so I would have tried building with and without those to see what happens.

BTW, although it still works for the time being, 'digest' is deprecated and you should now use 'manifest'.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby xipi » Mon Feb 16, 2009 12:18

Oops, you caught me.

The (solved) thread in gentoo forums is in http://forums.gentoo.org/viewtopic-t-737471.html , didn't want to fool anyone.

Anyway, thanks for the answers here, wolfden and you gave another good point.

Regarding your answer, yes, I did exactly what you point (with the exception of wgetting the sources).

From your answers I assume that, if I download manually the package, the command "ebuild myebuild.ebuild manifest" will not attempt to download it, which is quite intuitive.

Anyway it won't solve the very root of the issue, which is why the heck my system downloads something is not right. And the answer from what I learn in gentoo forums is that the server my system queried should not have answered with a page telling that the URL was wrong, and an HTTP status 200. I emailed the guy at http://gd.tuwien.ac.at to check if their configuration was fine.

I solved the issue adding a line GENTOO_MIRRORS=".." in my /etc/make.conf. I didn't do it manually, I used the tool "mirrorselect" as suggested by those gentoo folks.

It prevented the system from using this server that answered incorrectly, so everything went as it was initially expected: "ebuild xoscope-1.12.ebuild manifest" tried several gentoo mirrors, obtained 404's and finally downloaded it from correct location.

What I still do not understand is, in case that tag GENTOO_MIRRORS is missing in make.conf, where exactly will the system go to look for the sources. I've read that "it goes to default gentoo mirrors", but I guess it should be configured somehow in some place anyway.

Note that I was trying that on a clean x86-32 Sabayon installation, so if it's really a default configuration issue, it might need to be taken into account by all users wanting to add custom ebuilds (i.e. maybe somebody keeping the distro should remove that server I tell from somewhere till they solve the issue).
xipi
Young Hen
 
Posts: 23
Joined: Sun Feb 15, 2009 13:34

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby Thev00d00 » Mon Feb 16, 2009 14:58

Just sloppy ebuild writing :D

RESTRICT="mirror"

The amount of broken ebuilds people put on the gentoo bugzilla is amazin :evil:
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby Fitzcarraldo » Mon Feb 16, 2009 18:22

Code: Select all
[email protected] ~ $ su
Password:
acertm8215 fitzcarraldo # mkdir -p /usr/local/portage/media-sound/xoscope/files
acertm8215 fitzcarraldo # cd /usr/local/portage/media-sound/xoscope/
acertm8215 xoscope # cp /home/fitzcarraldo/Desktop/xoscope-1.12.ebuild .
acertm8215 xoscope # ls
files  xoscope-1.12.ebuild
acertm8215 xoscope # cp /home/fitzcarraldo/Desktop/01-xoscope_pointer_fix.patch ./files/
acertm8215 xoscope # ls files
01-xoscope_pointer_fix.patch


Now I try to create the manifest, knowing full well it will fail because, in the office I am working in today, my access to the Internet is restricted to using only a Web browser:

Code: Select all
acertm8215 xoscope # ebuild xoscope-1.12.ebuild manifest
>>> Downloading 'ftp://mirror.switch.ch/mirror/gentoo/distfiles/xoscope-1.12.tgz'
--2009-02-16 15:33:34--  ftp://mirror.switch.ch/mirror/gentoo/distfiles/xoscope-1.12.tgz
           => `/usr/portage/distfiles/xoscope-1.12.tgz'
Resolving mirror.switch.ch... failed: Name or service not known.
wget: unable to resolve host address `mirror.switch.ch'
>>> Downloading 'http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/xoscope-1.12.tgz
Resolving ftp.uni-erlangen.de... failed: Name or service not known.
wget: unable to resolve host address `ftp.uni-erlangen.de'
>>> Downloading 'http://mirror.switch.ch/ftp/mirror/gentoo/distfiles/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://mirror.switch.ch/ftp/mirror/gentoo/distfiles/xoscope-1.12.tgz
Resolving mirror.switch.ch... failed: Name or service not known.
wget: unable to resolve host address `mirror.switch.ch'
>>> Downloading 'http://surfnet.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://surfnet.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving surfnet.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `surfnet.dl.sourceforge.net'
>>> Downloading 'http://ovh.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://ovh.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving ovh.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `ovh.dl.sourceforge.net'
>>> Downloading 'http://switch.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://switch.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving switch.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `switch.dl.sourceforge.net'
>>> Downloading 'http://internap.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://internap.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving internap.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `internap.dl.sourceforge.net'
>>> Downloading 'http://easynews.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://easynews.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving easynews.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `easynews.dl.sourceforge.net'
>>> Downloading 'http://kent.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://kent.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving kent.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `kent.dl.sourceforge.net'
>>> Downloading 'http://mesh.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://mesh.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving mesh.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `mesh.dl.sourceforge.net'
>>> Downloading 'http://heanet.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://heanet.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving heanet.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `heanet.dl.sourceforge.net'
>>> Downloading 'http://nchc.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://nchc.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving nchc.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `nchc.dl.sourceforge.net'
>>> Downloading 'http://keihanna.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://keihanna.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving keihanna.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `keihanna.dl.sourceforge.net'
>>> Downloading 'http://osdn.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://osdn.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving osdn.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `osdn.dl.sourceforge.net'
>>> Downloading 'http://ufpr.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://ufpr.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving ufpr.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `ufpr.dl.sourceforge.net'
>>> Downloading 'http://jaist.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz'
--2009-02-16 15:33:35--  http://jaist.dl.sourceforge.net/sourceforge/xoscope/xoscope-1.12.tgz
Resolving jaist.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `jaist.dl.sourceforge.net'
!!! Couldn't download 'xoscope-1.12.tgz'. Aborting.
!!! Fetch failed for xoscope-1.12.tgz, can't update Manifest


^Don't see the mirror http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles mentioned by the OP, though.

Anyway, from the above console messages I see that I need to get the file xoscope-1.12.tgz, so I google it and download it to my Desktop from any mirror that Google throws up, and then copy it to /usr/portage/distfiles/, and then I rerun the command to create the manifest:

Code: Select all
acertm8215 xoscope # ebuild xoscope-1.12.ebuild manifest
>>> Creating Manifest for /usr/local/portage/media-sound/xoscope


Now I try to merge the package:

Code: Select all
acertm8215 xoscope # emerge -1v xoscope

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "media-sound/xoscope" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-sound/xoscope-1.12 (masked by: missing keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


^Portage is telling me the package is masked by keyword (see the Gentoo Handbook), so I need to edit package.keywords to unmask it by just adding the line "media-sound/xoscope **" (without the quotes) to the file /etc/portage/package.keywords:

Code: Select all
acertm8215 xoscope # nano /etc/portage/package.keywords


Now I try to merge it again:

Code: Select all
acertm8215 xoscope # emerge -1v xoscope

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-sound/xoscope-1.12  USE="gtk -esd" 0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-sound/xoscope-1.12 from unknown repo
 * xoscope-1.12.tgz RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking xoscope-1.12.tgz to /var/tmp/portage/media-sound/xoscope-1.12/work
 * Applying 01-xoscope_pointer_fix.patch ...                              [ ok ]
>>> Source unpacked in /var/tmp/portage/media-sound/xoscope-1.12/work
>>> Compiling source in /var/tmp/portage/media-sound/xoscope-1.12/work/xoscope-1.12 ...
 * econf: updating xoscope-1.12/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating xoscope-1.12/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-gtk --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for strerror in -lcposix... no
checking for gcc... gcc
checking whether the C compiler (gcc -Os -march=x86-64 -pipe -Wl,-O1) works... yes
checking whether the C compiler (gcc -Os -march=x86-64 -pipe -Wl,-O1) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking for X... libraries /usr/lib64, headers
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for perl... /usr/bin/perl
checking for ranlib... /usr/bin/ranlib
checking for esd_monitor_stream in -lesd... yes
checking for sin in -lm... yes
checking for comedi_open in -lcomedi... no
checking for vga_init in -lvga... no
checking for vga_initfont in -lvgamisc... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for termio.h... yes
checking for unistd.h... yes
checking for libsx.h... no
checking for X11/SX/libsx.h... no
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether gcc needs -traditional... no
checking whether sys/types.h defines makedev... yes
checking return type of signal handlers... void
checking for getcwd... yes
checking for putenv... yes
checking for select... yes
checking for strdup... yes
checking for strstr... yes
checking for strtol... yes
updating cache ./config.cache
creating ./config.status
creating operl
creating Makefile
creating bitscope-glade-src/Makefile
creating comedi-glade-src/Makefile
creating config.h
make -s -j3 -j1
Making all in bitscope-glade-src
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c support.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c interface.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c callbacks.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c oscope.c
oscope.c: In function ‘handle_key’:
oscope.c:422: warning: case label value is less than minimum value for type
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c file.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c func.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c fft.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c realfft.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c display.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c proscope.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c bitscope.c
bitscope.c: In function ‘bs_getreg’:
bitscope.c:168: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
bitscope.c:169: warning: pointer targets in passing argument 2 of ‘bs_io’ differ in signedness
bitscope.c:169: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:171: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness
bitscope.c: In function ‘bs_getregs’:
bitscope.c:183: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:185: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness
bitscope.c:187: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c: In function ‘bs_putregs’:
bitscope.c:203: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
bitscope.c:205: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
bitscope.c:206: warning: pointer targets in passing argument 2 of ‘bs_cmd’ differ in signedness
bitscope.c: In function ‘bs_changerate’:
bitscope.c:271: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
bitscope.c:272: warning: pointer targets in passing argument 2 of ‘bs_cmd’ differ in signedness
bitscope.c: In function ‘idbitscope’:
bitscope.c:377: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:378: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness
bitscope.c: In function ‘bs_getdata’:
bitscope.c:436: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:458: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness
bitscope.c:478: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:482: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:484: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c:495: warning: pointer targets in passing argument 3 of ‘bs_io’ differ in signedness
bitscope.c: At top level:
bitscope.c:166: warning: ‘bs_getreg’ defined but not used
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c sc_linux.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c ser_unix.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c com_gtk.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c gr_gtk.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c sc_linux_gtk.c
sc_linux_gtk.c: In function ‘dma’:
sc_linux_gtk.c:50: warning: cast from pointer to integer of different size
sc_linux_gtk.c: In function ‘esdrecord’:
sc_linux_gtk.c:56: warning: cast from pointer to integer of different size
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c offt.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c xy_gtk.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include    -Os -march=x86-64 -pipe -Wall -c xy.c
>>> Source compiled.
>>> Test phase [not enabled]: media-sound/xoscope-1.12

>>> Install xoscope-1.12 into /var/tmp/portage/media-sound/xoscope-1.12/image/ category media-sound
make -s -j3 DESTDIR=/var/tmp/portage/media-sound/xoscope-1.12/image/ install
Making install in bitscope-glade-src
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/bin
  /usr/bin/install -c  bitscope /var/tmp/portage/media-sound/xoscope-1.12/image//usr/bin/bitscope
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/libexec
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/libexec
  /usr/bin/install -c  xoscope /var/tmp/portage/media-sound/xoscope-1.12/image//usr/bin/xoscope
mkdir: cannot create directory `/var/tmp/portage/media-sound/xoscope-1.12/image/usr/libexec'mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/libexec/xoscope
: File exists
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/libexec/xoscope
mkdir: cannot create directory `/var/tmp/portage/media-sound/xoscope-1.12/image/usr/libexec/xoscope': File exists
 /usr/bin/install -c  operl /var/tmp/portage/media-sound/xoscope-1.12/image//usr/libexec/xoscope/operl
  /usr/bin/install -c  offt /var/tmp/portage/media-sound/xoscope-1.12/image//usr/libexec/xoscope/offt
 /usr/bin/install -c  ofreq.ini /var/tmp/portage/media-sound/xoscope-1.12/image//usr/libexec/xoscope/ofreq.ini
  /usr/bin/install -c  xy /var/tmp/portage/media-sound/xoscope-1.12/image//usr/libexec/xoscope/xy
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/share
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/share/man
mkdir /var/tmp/portage/media-sound/xoscope-1.12/image/usr/share/man/man1
 /usr/bin/install -c -m 644 ./oscope.1 /var/tmp/portage/media-sound/xoscope-1.12/image//usr/share/man/man1/oscope.1
 /usr/bin/install -c -m 644 ./xoscope.1 /var/tmp/portage/media-sound/xoscope-1.12/image//usr/share/man/man1/xoscope.1
>>> Completed installing xoscope-1.12 into /var/tmp/portage/media-sound/xoscope-1.12/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/libexec/xoscope/xy
   usr/libexec/xoscope/offt
   usr/bin/bitscope
   usr/bin/xoscope
ecompressdir: bzip2 -9 /usr/share/man

>>> Installing media-sound/xoscope-1.12
 * checking 20 files for package collisions
--- /usr/
--- /usr/libexec/
>>> /usr/libexec/xoscope/
>>> /usr/libexec/xoscope/xy
>>> /usr/libexec/xoscope/offt
>>> /usr/libexec/xoscope/ofreq.ini
>>> /usr/libexec/xoscope/operl
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/xoscope-1.12/
>>> /usr/share/doc/xoscope-1.12/TODO.bz2
>>> /usr/share/doc/xoscope-1.12/README.bz2
>>> /usr/share/doc/xoscope-1.12/README.parport.bz2
>>> /usr/share/doc/xoscope-1.12/ChangeLog.bz2
>>> /usr/share/doc/xoscope-1.12/NEWS.bz2
>>> /usr/share/doc/xoscope-1.12/INTERNALS.bz2
>>> /usr/share/doc/xoscope-1.12/buff2.ps.bz2
>>> /usr/share/doc/xoscope-1.12/pcb.ps.bz2
>>> /usr/share/doc/xoscope-1.12/HARDWARE.bz2
>>> /usr/share/doc/xoscope-1.12/README.f51.bz2
>>> /usr/share/doc/xoscope-1.12/buff.ps.bz2
>>> /usr/share/doc/xoscope-1.12/AUTHORS.bz2
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/xoscope.1.bz2
>>> /usr/share/man/man1/oscope.1.bz2
--- /usr/bin/
>>> /usr/bin/bitscope
>>> /usr/bin/xoscope
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
acertm8215 xoscope #


Installed.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby Fitzcarraldo » Mon Feb 16, 2009 19:12

xipi wrote:-Is there any command to cleanup all what 'ebuild whatever.ebuild digest' has done? (i.e., downloading the package and creating the Manifest)

Just delete the Manifest file (and what was downloaded to /usr/portage/distfiles/, if you want to).

There's a nice bash script for cleaning up orphaned files -- search for "yaocleaner" using the SL Forum search facility. I haven't used it recently, so caveat 'emptor'.

xipi wrote:From your answers I assume that, if I download manually the package, the command "ebuild myebuild.ebuild manifest" will not attempt to download it, which is quite intuitive.

Your assumption is correct.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby xipi » Mon Feb 16, 2009 19:19

Thanks for your detailed exposition,

I also must say that, the same day I had this issue, I tested it with no problems in a clean Sabayon 4.1 r1 x86-64, and worked without issue (did not try the Technical University of Vienna server).

When then I moved back to a clean installation of an x86-32, I had this issue, don't ask me why.

Don't know why your computer did not try this server, don't know the contents of your GENTOO_MIRRORS line in make.conf, and i don't know either where to configure where Sabayon is going to look for software when there is no GENTOO_MIRRORS line in make.conf.

If your interest is to reproduce my issue maybe you could try directly adding the mentioned server in GENTOO_MIRRORS (just a thought), or maybe changing some environment var at the time of calling ebuild xxx manifest.

I had no interest in using this particular server, and I even didn't know of its existence before last saturday, so I see no reason for which it will not happen to another person (of course I might be wrong, and maybe some random modification I did in the system in the 60 minutes after installing it resulted in that, but I don't see it as reasonably possible).
xipi
Young Hen
 
Posts: 23
Joined: Sun Feb 15, 2009 13:34

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby Fitzcarraldo » Mon Feb 16, 2009 19:24

Here' s the relevant line from my as-installed /etc/make.conf SL x86_64 4.0-r1, for you to compare with yours and also with your x86 version. I'm not at home so cannot look at my SL 4.0-r1 x86 installation: the one I'm using here is the aforementioned SL x86_64 4.0-r1.

Code: Select all
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://212.219.56.139/sites/www.ibiblio.org/gentoo/"
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Ebuild my_ebuild digest generates incorrect checksum

Postby Fitzcarraldo » Mon Feb 16, 2009 19:28

^Just noticed the following in /etc/make.conf:

Code: Select all
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://212.219.56.139/sites/www.ibiblio.org/gentoo/"
INPUT_DEVICES="evdev keyboard mouse void"
VIDEO_CARDS="fbdev vesa"

GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests