port -u upgrade outdated

Thomas De Contes d.l.tDeContes at free.fr
Thu Oct 4 04:52:42 PDT 2007


Le 4 oct. 07 à 03:22, Daniel J. Luke a écrit :

> On Oct 3, 2007, at 8:43 PM, Chip Warden wrote:
>> On Oct 3, 2007, at 7:27 PM, Thomas De Contes wrote:
>>> do you mean that i should put
>>> port -nfu upgrade outdated
>>> in my script ?
>>
>> I can verify that this does work in a script (unless you have  
>> compilation errors).

what do you mean with "unless you have compilation errors" ?

>
> This will work most of the time (but will fail in some cases where  
> you really need to upgrade the dependencies before you upgrade the  
> port).

is it the case when i get :

--->  Building tiff with target all
Error: Target org.macports.build returned: shell command " cd "/Users/ 
thomas/Documents/prgm/bin/autoinstall/macports/var/macports/build/ 
_Users_thomas_Documents_prgm_bin_autoinstall_macports_var_macports_sourc 
es_rsync.macports.org_release_ports_graphics_tiff/work/tiff-3.8.2" &&  
make all " returned error 2
Command output: /System/Library/Frameworks/GLUT.framework/Headers/ 
glut.h:560: error: parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:561: error:  
parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:562: error:  
parse error before 'innerRadius'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:563: error:  
parse error before 'innerRadius'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:566: error:  
parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:567: error:  
parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:577: error:  
parse error before 'param'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:617: error:  
parse error before 'mode'
tiffgt.c: In function 'raster_draw':
tiffgt.c:285: warning: implicit declaration of function 'glDrawPixels'
tiffgt.c:285: error: 'GL_RGBA' undeclared (first use in this function)
tiffgt.c:285: error: (Each undeclared identifier is reported only once
tiffgt.c:285: error: for each function it appears in.)
tiffgt.c:285: error: 'GL_UNSIGNED_BYTE' undeclared (first use in this  
function)
tiffgt.c:285: error: parse error before 'GLvoid'
tiffgt.c: In function 'raster_reshape':
tiffgt.c:291: error: 'GLfloat' undeclared (first use in this function)
tiffgt.c:291: error: parse error before 'xratio'
tiffgt.c:293: error: 'xratio' undeclared (first use in this function)
tiffgt.c:293: error: 'yratio' undeclared (first use in this function)
tiffgt.c:295: warning: implicit declaration of function 'glPixelZoom'
tiffgt.c:296: warning: implicit declaration of function 'glViewport'
tiffgt.c: In function 'raster_keys':
tiffgt.c:303: warning: unused parameter 'x'
tiffgt.c:303: warning: unused parameter 'y'
tiffgt.c: In function 'raster_special':
tiffgt.c:348: warning: unused parameter 'x'
tiffgt.c:348: warning: unused parameter 'y'
make[1]: *** [tiffgt-tiffgt.o] Error 1
make: *** [all-recursive] Error 1

Error: Unable to upgrade port: 1

?

i don't like -f very much, anyway,
because we force it to do sth because it didn't want to do it normally,
and if it didn't want to do it normally, there may be a good reason

>
> I usually do:
>
> port sync
> sudo port -dvnf upgrade outdated

what's the interest to do "port -nf upgrade outdated" without -u ?

>
> ... but I'm aware of the possible issues and am comfortable with  
> fixing things if they break.


ps : why the port command doesn't return an error code, when there is  
an error ?

-- 
j'agis contre l'assistanat, je travaille dans une SCOP !





More information about the macports-users mailing list