`SPECS-EXTENDED` fixes and removals. (#2247)
This commit is contained in:
Родитель
877c37a239
Коммит
2f75cec4b4
|
@ -23,6 +23,7 @@ ignore_list=" \
|
|||
grubby \
|
||||
initramfs \
|
||||
installkernel \
|
||||
javapackages-tools-meta \
|
||||
kde-filesystem \
|
||||
kernel-signed-aarch64 \
|
||||
kernel-signed-x86_64 \
|
||||
|
|
|
@ -1,480 +0,0 @@
|
|||
Index: /trunk/cdparanoia/interface/test_interface.c
|
||||
===================================================================
|
||||
--- /trunk/cdparanoia/interface/test_interface.c (revision 15299)
|
||||
+++ /trunk/cdparanoia/interface/test_interface.c (revision 15338)
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
if(begin<lastread)
|
||||
- d->private->last_milliseconds=20;
|
||||
+ d->private_data->last_milliseconds=20;
|
||||
else
|
||||
- d->private->last_milliseconds=sectors;
|
||||
+ d->private_data->last_milliseconds=sectors;
|
||||
|
||||
#ifdef CDDA_TEST_UNDERRUN
|
||||
Index: /trunk/cdparanoia/interface/cdda_interface.h
|
||||
===================================================================
|
||||
--- /trunk/cdparanoia/interface/cdda_interface.h (revision 15290)
|
||||
+++ /trunk/cdparanoia/interface/cdda_interface.h (revision 15338)
|
||||
@@ -85,5 +85,5 @@
|
||||
int is_mmc;
|
||||
|
||||
- cdda_private_data_t *private;
|
||||
+ cdda_private_data_t *private_data;
|
||||
void *reserved;
|
||||
unsigned char inqbytes[4];
|
||||
Index: /trunk/cdparanoia/interface/interface.c
|
||||
===================================================================
|
||||
--- /trunk/cdparanoia/interface/interface.c (revision 15314)
|
||||
+++ /trunk/cdparanoia/interface/interface.c (revision 15338)
|
||||
@@ -40,7 +40,7 @@
|
||||
if(d->cdda_fd!=-1)close(d->cdda_fd);
|
||||
if(d->ioctl_fd!=-1 && d->ioctl_fd!=d->cdda_fd)close(d->ioctl_fd);
|
||||
- if(d->private){
|
||||
- if(d->private->sg_hd)free(d->private->sg_hd);
|
||||
- free(d->private);
|
||||
+ if(d->private_data){
|
||||
+ if(d->private_data->sg_hd)free(d->private_data->sg_hd);
|
||||
+ free(d->private_data);
|
||||
}
|
||||
|
||||
@@ -128,5 +128,5 @@
|
||||
}
|
||||
}
|
||||
- if(ms)*ms=d->private->last_milliseconds;
|
||||
+ if(ms)*ms=d->private_data->last_milliseconds;
|
||||
return(sectors);
|
||||
}
|
||||
Index: /trunk/cdparanoia/interface/scsi_interface.c
|
||||
===================================================================
|
||||
--- /trunk/cdparanoia/interface/scsi_interface.c (revision 15314)
|
||||
+++ /trunk/cdparanoia/interface/scsi_interface.c (revision 15338)
|
||||
@@ -16,11 +16,11 @@
|
||||
struct timespec tv1;
|
||||
struct timespec tv2;
|
||||
- int ret1=clock_gettime(d->private->clock,&tv1);
|
||||
+ int ret1=clock_gettime(d->private_data->clock,&tv1);
|
||||
int ret2=ioctl(fd, command,arg);
|
||||
- int ret3=clock_gettime(d->private->clock,&tv2);
|
||||
+ int ret3=clock_gettime(d->private_data->clock,&tv2);
|
||||
if(ret1<0 || ret3<0){
|
||||
- d->private->last_milliseconds=-1;
|
||||
+ d->private_data->last_milliseconds=-1;
|
||||
}else{
|
||||
- d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
|
||||
+ d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
|
||||
}
|
||||
return ret2;
|
||||
@@ -97,5 +97,5 @@
|
||||
fd_set fdset;
|
||||
struct timeval tv;
|
||||
- struct sg_header *sg_hd=d->private->sg_hd;
|
||||
+ struct sg_header *sg_hd=d->private_data->sg_hd;
|
||||
int flag=0;
|
||||
|
||||
@@ -186,5 +186,5 @@
|
||||
int tret1,tret2;
|
||||
int status = 0;
|
||||
- struct sg_header *sg_hd=d->private->sg_hd;
|
||||
+ struct sg_header *sg_hd=d->private_data->sg_hd;
|
||||
long writebytes=SG_OFF+cmd_len+in_size;
|
||||
|
||||
@@ -196,5 +196,5 @@
|
||||
memset(sg_hd,0,sizeof(sg_hd));
|
||||
memset(sense_buffer,0,SG_MAX_SENSE);
|
||||
- memcpy(d->private->sg_buffer,cmd,cmd_len+in_size);
|
||||
+ memcpy(d->private_data->sg_buffer,cmd,cmd_len+in_size);
|
||||
sg_hd->twelve_byte = cmd_len == 12;
|
||||
sg_hd->result = 0;
|
||||
@@ -210,5 +210,5 @@
|
||||
|
||||
if(bytecheck && out_size>in_size){
|
||||
- memset(d->private->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size);
|
||||
+ memset(d->private_data->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size);
|
||||
/* the size does not remove cmd_len due to the way the kernel
|
||||
driver copies buffers */
|
||||
@@ -244,5 +244,5 @@
|
||||
|
||||
sigprocmask (SIG_BLOCK, &(d->sigset), NULL );
|
||||
- tret1=clock_gettime(d->private->clock,&tv1);
|
||||
+ tret1=clock_gettime(d->private_data->clock,&tv1);
|
||||
errno=0;
|
||||
status = write(d->cdda_fd, sg_hd, writebytes );
|
||||
@@ -290,5 +290,5 @@
|
||||
}
|
||||
|
||||
- tret2=clock_gettime(d->private->clock,&tv2);
|
||||
+ tret2=clock_gettime(d->private_data->clock,&tv2);
|
||||
errno=0;
|
||||
status = read(d->cdda_fd, sg_hd, SG_OFF + out_size);
|
||||
@@ -314,5 +314,5 @@
|
||||
long i,flag=0;
|
||||
for(i=in_size;i<out_size;i++)
|
||||
- if(d->private->sg_buffer[i]!=bytefill){
|
||||
+ if(d->private_data->sg_buffer[i]!=bytefill){
|
||||
flag=1;
|
||||
break;
|
||||
@@ -327,7 +327,7 @@
|
||||
errno=0;
|
||||
if(tret1<0 || tret2<0){
|
||||
- d->private->last_milliseconds=-1;
|
||||
+ d->private_data->last_milliseconds=-1;
|
||||
}else{
|
||||
- d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000 + (tv2.tv_nsec-tv1.tv_nsec)/1000000;
|
||||
+ d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000 + (tv2.tv_nsec-tv1.tv_nsec)/1000000;
|
||||
}
|
||||
return(0);
|
||||
@@ -348,5 +348,5 @@
|
||||
memset(&hdr,0,sizeof(hdr));
|
||||
memset(sense,0,sizeof(sense));
|
||||
- memcpy(d->private->sg_buffer,cmd+cmd_len,in_size);
|
||||
+ memcpy(d->private_data->sg_buffer,cmd+cmd_len,in_size);
|
||||
|
||||
hdr.cmdp = cmd;
|
||||
@@ -356,5 +356,5 @@
|
||||
hdr.timeout = 50000;
|
||||
hdr.interface_id = 'S';
|
||||
- hdr.dxferp = d->private->sg_buffer;
|
||||
+ hdr.dxferp = d->private_data->sg_buffer;
|
||||
hdr.flags = SG_FLAG_DIRECT_IO; /* direct IO if we can get it */
|
||||
|
||||
@@ -401,5 +401,5 @@
|
||||
long i,flag=0;
|
||||
for(i=in_size;i<out_size;i++)
|
||||
- if(d->private->sg_buffer[i]!=bytefill){
|
||||
+ if(d->private_data->sg_buffer[i]!=bytefill){
|
||||
flag=1;
|
||||
break;
|
||||
@@ -413,5 +413,5 @@
|
||||
|
||||
/* Can't rely on .duration because we can't be certain kernel has HZ set to something useful */
|
||||
- /* d->private->last_milliseconds = hdr.duration; */
|
||||
+ /* d->private_data->last_milliseconds = hdr.duration; */
|
||||
|
||||
errno = 0;
|
||||
@@ -446,7 +446,7 @@
|
||||
handle_scsi_cmd(d, cmd, 6, 0, 56, 0,0, sense);
|
||||
|
||||
- key = d->private->sg_buffer[2] & 0xf;
|
||||
- ASC = d->private->sg_buffer[12];
|
||||
- ASCQ = d->private->sg_buffer[13];
|
||||
+ key = d->private_data->sg_buffer[2] & 0xf;
|
||||
+ ASC = d->private_data->sg_buffer[12];
|
||||
+ ASCQ = d->private_data->sg_buffer[13];
|
||||
|
||||
if(key == 2 && ASC == 4 && ASCQ == 1) return 0;
|
||||
@@ -493,5 +493,5 @@
|
||||
|
||||
{
|
||||
- unsigned char *b=d->private->sg_buffer;
|
||||
+ unsigned char *b=d->private_data->sg_buffer;
|
||||
if(b[0])return(1); /* Handles only up to 256 bytes */
|
||||
if(b[6])return(1); /* Handles only up to 256 bytes */
|
||||
@@ -605,6 +605,6 @@
|
||||
if(mode_sense(d,12,0x01))return(-1);
|
||||
|
||||
- d->orgdens = d->private->sg_buffer[4];
|
||||
- return(d->orgsize = ((int)(d->private->sg_buffer[10])<<8)+d->private->sg_buffer[11]);
|
||||
+ d->orgdens = d->private_data->sg_buffer[4];
|
||||
+ return(d->orgsize = ((int)(d->private_data->sg_buffer[10])<<8)+d->private_data->sg_buffer[11]);
|
||||
}
|
||||
|
||||
@@ -665,6 +665,6 @@
|
||||
}
|
||||
|
||||
- first=d->private->sg_buffer[2];
|
||||
- last=d->private->sg_buffer[3];
|
||||
+ first=d->private_data->sg_buffer[2];
|
||||
+ last=d->private_data->sg_buffer[3];
|
||||
tracks=last-first+1;
|
||||
|
||||
@@ -684,5 +684,5 @@
|
||||
}
|
||||
{
|
||||
- scsi_TOC *toc=(scsi_TOC *)(d->private->sg_buffer+4);
|
||||
+ scsi_TOC *toc=(scsi_TOC *)(d->private_data->sg_buffer+4);
|
||||
|
||||
d->disc_toc[i-first].bFlags=toc->bFlags;
|
||||
@@ -705,5 +705,5 @@
|
||||
}
|
||||
{
|
||||
- scsi_TOC *toc=(scsi_TOC *)(d->private->sg_buffer+4);
|
||||
+ scsi_TOC *toc=(scsi_TOC *)(d->private_data->sg_buffer+4);
|
||||
|
||||
d->disc_toc[i-first].bFlags=toc->bFlags;
|
||||
@@ -739,5 +739,5 @@
|
||||
|
||||
/* copy to our structure and convert start sector */
|
||||
- tracks = d->private->sg_buffer[1];
|
||||
+ tracks = d->private_data->sg_buffer[1];
|
||||
if (tracks > MAXTRK) {
|
||||
cderror(d,"003: CDROM reporting illegal number of tracks\n");
|
||||
@@ -755,31 +755,31 @@
|
||||
}
|
||||
|
||||
- d->disc_toc[i].bFlags = d->private->sg_buffer[10];
|
||||
+ d->disc_toc[i].bFlags = d->private_data->sg_buffer[10];
|
||||
d->disc_toc[i].bTrack = i + 1;
|
||||
|
||||
d->disc_toc[i].dwStartSector= d->adjust_ssize *
|
||||
- (((signed char)(d->private->sg_buffer[2])<<24) |
|
||||
- (d->private->sg_buffer[3]<<16)|
|
||||
- (d->private->sg_buffer[4]<<8)|
|
||||
- (d->private->sg_buffer[5]));
|
||||
+ (((signed char)(d->private_data->sg_buffer[2])<<24) |
|
||||
+ (d->private_data->sg_buffer[3]<<16)|
|
||||
+ (d->private_data->sg_buffer[4]<<8)|
|
||||
+ (d->private_data->sg_buffer[5]));
|
||||
}
|
||||
|
||||
d->disc_toc[i].bFlags = 0;
|
||||
d->disc_toc[i].bTrack = i + 1;
|
||||
- memcpy (&foo, d->private->sg_buffer+2, 4);
|
||||
- memcpy (&bar, d->private->sg_buffer+6, 4);
|
||||
+ memcpy (&foo, d->private_data->sg_buffer+2, 4);
|
||||
+ memcpy (&bar, d->private_data->sg_buffer+6, 4);
|
||||
d->disc_toc[i].dwStartSector = d->adjust_ssize * (be32_to_cpu(foo) +
|
||||
be32_to_cpu(bar));
|
||||
|
||||
d->disc_toc[i].dwStartSector= d->adjust_ssize *
|
||||
- ((((signed char)(d->private->sg_buffer[2])<<24) |
|
||||
- (d->private->sg_buffer[3]<<16)|
|
||||
- (d->private->sg_buffer[4]<<8)|
|
||||
- (d->private->sg_buffer[5]))+
|
||||
+ ((((signed char)(d->private_data->sg_buffer[2])<<24) |
|
||||
+ (d->private_data->sg_buffer[3]<<16)|
|
||||
+ (d->private_data->sg_buffer[4]<<8)|
|
||||
+ (d->private_data->sg_buffer[5]))+
|
||||
|
||||
- ((((signed char)(d->private->sg_buffer[6])<<24) |
|
||||
- (d->private->sg_buffer[7]<<16)|
|
||||
- (d->private->sg_buffer[8]<<8)|
|
||||
- (d->private->sg_buffer[9]))));
|
||||
+ ((((signed char)(d->private_data->sg_buffer[6])<<24) |
|
||||
+ (d->private_data->sg_buffer[7]<<16)|
|
||||
+ (d->private_data->sg_buffer[8]<<8)|
|
||||
+ (d->private_data->sg_buffer[9]))));
|
||||
|
||||
|
||||
@@ -818,5 +818,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -837,5 +837,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -855,5 +855,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -873,5 +873,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -891,5 +891,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -909,5 +909,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -923,5 +923,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -937,5 +937,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -951,5 +951,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -965,5 +965,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -979,5 +979,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -993,5 +993,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -1027,5 +1027,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -1040,5 +1040,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -1053,5 +1053,5 @@
|
||||
if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
|
||||
return(ret);
|
||||
- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
+ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
|
||||
return(0);
|
||||
}
|
||||
@@ -1276,5 +1276,5 @@
|
||||
long i;
|
||||
for(i=2351;i>=0;i--)
|
||||
- if(d->private->sg_buffer[i]!=(unsigned char)'\177')
|
||||
+ if(d->private_data->sg_buffer[i]!=(unsigned char)'\177')
|
||||
return(((i+3)>>2)<<2);
|
||||
|
||||
@@ -1285,5 +1285,5 @@
|
||||
long i,flag=0;
|
||||
for(i=0;i<2352;i++)
|
||||
- if(d->private->sg_buffer[i]!=0){
|
||||
+ if(d->private_data->sg_buffer[i]!=0){
|
||||
flag=1;
|
||||
break;
|
||||
@@ -1622,5 +1622,5 @@
|
||||
if(mode_sense(d,22,0x2A)==0){
|
||||
|
||||
- b=d->private->sg_buffer;
|
||||
+ b=d->private_data->sg_buffer;
|
||||
b+=b[3]+4;
|
||||
|
||||
@@ -1670,5 +1670,5 @@
|
||||
return(NULL);
|
||||
}
|
||||
- return (d->private->sg_buffer);
|
||||
+ return (d->private_data->sg_buffer);
|
||||
}
|
||||
|
||||
@@ -1726,6 +1726,6 @@
|
||||
|
||||
d->error_retry=1;
|
||||
- d->private->sg_hd=realloc(d->private->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
|
||||
- d->private->sg_buffer=((unsigned char *)d->private->sg_hd)+SG_OFF;
|
||||
+ d->private_data->sg_hd=realloc(d->private_data->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
|
||||
+ d->private_data->sg_buffer=((unsigned char *)d->private_data->sg_hd)+SG_OFF;
|
||||
d->report_all=1;
|
||||
return(0);
|
||||
Index: /trunk/cdparanoia/interface/cooked_interface.c
|
||||
===================================================================
|
||||
--- /trunk/cdparanoia/interface/cooked_interface.c (revision 15202)
|
||||
+++ /trunk/cdparanoia/interface/cooked_interface.c (revision 15338)
|
||||
@@ -14,11 +14,11 @@
|
||||
struct timespec tv1;
|
||||
struct timespec tv2;
|
||||
- int ret1=clock_gettime(d->private->clock,&tv1);
|
||||
+ int ret1=clock_gettime(d->private_data->clock,&tv1);
|
||||
int ret2=ioctl(fd, command,arg);
|
||||
- int ret3=clock_gettime(d->private->clock,&tv2);
|
||||
+ int ret3=clock_gettime(d->private_data->clock,&tv2);
|
||||
if(ret1<0 || ret3<0){
|
||||
- d->private->last_milliseconds=-1;
|
||||
+ d->private_data->last_milliseconds=-1;
|
||||
}else{
|
||||
- d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
|
||||
+ d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
|
||||
}
|
||||
return ret2;
|
||||
Index: /trunk/cdparanoia/interface/scan_devices.c
|
||||
===================================================================
|
||||
--- /trunk/cdparanoia/interface/scan_devices.c (revision 15202)
|
||||
+++ /trunk/cdparanoia/interface/scan_devices.c (revision 15338)
|
||||
@@ -265,9 +265,9 @@
|
||||
d->bigendianp=-1; /* We don't know yet... */
|
||||
d->nsectors=-1;
|
||||
- d->private=calloc(1,sizeof(*d->private));
|
||||
+ d->private_data=calloc(1,sizeof(*d->private_data));
|
||||
{
|
||||
/* goddamnit */
|
||||
struct timespec tv;
|
||||
- d->private->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
|
||||
+ d->private_data->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
|
||||
}
|
||||
idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",description);
|
||||
@@ -675,13 +675,13 @@
|
||||
d->nsectors=-1;
|
||||
d->messagedest = messagedest;
|
||||
- d->private=calloc(1,sizeof(*d->private));
|
||||
+ d->private_data=calloc(1,sizeof(*d->private_data));
|
||||
{
|
||||
/* goddamnit */
|
||||
struct timespec tv;
|
||||
- d->private->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
|
||||
+ d->private_data->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
|
||||
}
|
||||
if(use_sgio){
|
||||
d->interface=SGIO_SCSI;
|
||||
- d->private->sg_buffer=(unsigned char *)(d->private->sg_hd=malloc(MAX_BIG_BUFF_SIZE));
|
||||
+ d->private_data->sg_buffer=(unsigned char *)(d->private_data->sg_hd=malloc(MAX_BIG_BUFF_SIZE));
|
||||
g_fd=d->cdda_fd=dup(d->ioctl_fd);
|
||||
}else{
|
||||
@@ -697,6 +697,6 @@
|
||||
|
||||
/* malloc our big buffer for scsi commands */
|
||||
- d->private->sg_hd=malloc(MAX_BIG_BUFF_SIZE);
|
||||
- d->private->sg_buffer=((unsigned char *)d->private->sg_hd)+SG_OFF;
|
||||
+ d->private_data->sg_hd=malloc(MAX_BIG_BUFF_SIZE);
|
||||
+ d->private_data->sg_buffer=((unsigned char *)d->private_data->sg_hd)+SG_OFF;
|
||||
}
|
||||
|
||||
@@ -773,7 +773,7 @@
|
||||
if(g_fd!=-1)close(g_fd);
|
||||
if(d){
|
||||
- if(d->private){
|
||||
- if(d->private->sg_hd)free(d->private->sg_hd);
|
||||
- free(d->private);
|
||||
+ if(d->private_data){
|
||||
+ if(d->private_data->sg_hd)free(d->private_data->sg_hd);
|
||||
+ free(d->private_data);
|
||||
}
|
||||
free(d);
|
||||
@@ -822,5 +822,5 @@
|
||||
d->bigendianp=-1; /* We don't know yet... */
|
||||
d->nsectors=-1;
|
||||
- d->private=calloc(1,sizeof(*d->private));
|
||||
+ d->private_data=calloc(1,sizeof(*d->private_data));
|
||||
d->drive_model=copystring("File based test interface");
|
||||
idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",d->drive_model);
|
|
@ -1,12 +0,0 @@
|
|||
diff -up cdparanoia-III-10.2/interface/interface.c.jx cdparanoia-III-10.2/interface/interface.c
|
||||
--- cdparanoia-III-10.2/interface/interface.c.jx 2009-02-10 14:25:02.000000000 -0500
|
||||
+++ cdparanoia-III-10.2/interface/interface.c 2009-02-10 14:25:49.000000000 -0500
|
||||
@@ -115,7 +115,7 @@ long cdda_read_timed(cdrom_drive *d, voi
|
||||
|
||||
if(sectors>0){
|
||||
/* byteswap? */
|
||||
- if(d->bigendianp==-1) /* not determined yet */
|
||||
+ if(buffer && d->bigendianp==-1) /* not determined yet */
|
||||
d->bigendianp=data_bigendianp(d);
|
||||
|
||||
if(d->bigendianp!=bigendianp()){
|
|
@ -1,16 +0,0 @@
|
|||
diff -Naur cdparanoia-III-10.2.orig/main.c cdparanoia-III-10.2/main.c
|
||||
--- cdparanoia-III-10.2.orig/main.c 2008-09-11 23:11:02.000000000 +0200
|
||||
+++ cdparanoia-III-10.2/main.c 2014-04-14 21:24:10.023000000 +0200
|
||||
@@ -588,10 +588,10 @@
|
||||
buffer[aheadposition+19]='>';
|
||||
}
|
||||
|
||||
- fprintf(stderr,buffer);
|
||||
+ fprintf(stderr, "%s", buffer);
|
||||
|
||||
if (logfile != NULL && function==-1) {
|
||||
- fprintf(logfile,buffer+1);
|
||||
+ fprintf(logfile, "%s", buffer+1);
|
||||
fprintf(logfile,"\n\n");
|
||||
fflush(logfile);
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
diff -Naupr cdparanoia-III-10.2.orig/Makefile.in cdparanoia-III-10.2/Makefile.in
|
||||
--- cdparanoia-III-10.2.orig/Makefile.in 2008-09-11 22:33:30.000000000 +0200
|
||||
+++ cdparanoia-III-10.2/Makefile.in 2008-12-22 22:31:45.578372040 +0100
|
||||
@@ -63,28 +63,28 @@ slib:
|
||||
cd paranoia && $(MAKE) slib
|
||||
|
||||
install:
|
||||
- $(INSTALL) -d -m 0755 $(BINDIR)
|
||||
- $(INSTALL) -m 755 $(srcdir)/cdparanoia $(BINDIR)
|
||||
- $(INSTALL) -d -m 0755 $(MANDIR)
|
||||
- $(INSTALL) -d -m 0755 $(MANDIR)/man1
|
||||
- $(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(MANDIR)/man1
|
||||
- $(INSTALL) -d -m 0755 $(INCLUDEDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(INCLUDEDIR)
|
||||
- $(INSTALL) -d -m 0755 $(LIBDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(LIBDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(LIBDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(INCLUDEDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(LIBDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(LIBDIR)
|
||||
- $(INSTALL) -m 0644 $(srcdir)/utils.h $(INCLUDEDIR)
|
||||
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(BINDIR)
|
||||
+ $(INSTALL) -m 755 $(srcdir)/cdparanoia $(DESTDIR)$(BINDIR)
|
||||
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)
|
||||
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)/man1
|
||||
+ $(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(DESTDIR)$(MANDIR)/man1
|
||||
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(INCLUDEDIR)
|
||||
+ $(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(DESTDIR)$(INCLUDEDIR)
|
||||
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(LIBDIR)
|
||||
+ $(INSTALL) -m 0755 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(DESTDIR)$(LIBDIR)
|
||||
+ $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(DESTDIR)$(LIBDIR)
|
||||
+ $(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(DESTDIR)$(INCLUDEDIR)
|
||||
+ $(INSTALL) -m 0755 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(DESTDIR)$(LIBDIR)
|
||||
+ $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(DESTDIR)$(LIBDIR)
|
||||
+ $(INSTALL) -m 0644 $(srcdir)/utils.h $(DESTDIR)$(INCLUDEDIR)
|
||||
ln -fs libcdda_interface.so.0.$(VERSION) \
|
||||
- $(LIBDIR)/libcdda_interface.so.0
|
||||
+ $(DESTDIR)$(LIBDIR)/libcdda_interface.so.0
|
||||
ln -fs libcdda_interface.so.0.$(VERSION) \
|
||||
- $(LIBDIR)/libcdda_interface.so
|
||||
+ $(DESTDIR)$(LIBDIR)/libcdda_interface.so
|
||||
ln -fs libcdda_paranoia.so.0.$(VERSION) \
|
||||
- $(LIBDIR)/libcdda_paranoia.so.0
|
||||
+ $(DESTDIR)$(LIBDIR)/libcdda_paranoia.so.0
|
||||
ln -fs libcdda_paranoia.so.0.$(VERSION) \
|
||||
- $(LIBDIR)/libcdda_paranoia.so
|
||||
+ $(DESTDIR)$(LIBDIR)/libcdda_paranoia.so
|
||||
|
||||
cdparanoia: $(OFILES) $(LIBDEP)
|
||||
$(LD) $(CFLAGS) $(LDFLAGS) $(OFILES) \
|
|
@ -1,24 +0,0 @@
|
|||
diff -up cdparanoia-III-10.2/interface/Makefile.in.jx cdparanoia-III-10.2/interface/Makefile.in
|
||||
--- cdparanoia-III-10.2/interface/Makefile.in.jx 2008-08-21 12:08:54.000000000 -0400
|
||||
+++ cdparanoia-III-10.2/interface/Makefile.in 2018-03-07 13:12:53.999947802 -0500
|
||||
@@ -46,7 +46,7 @@ libcdda_interface.a: $(OFILES)
|
||||
$(RANLIB) libcdda_interface.a
|
||||
|
||||
libcdda_interface.so: $(OFILES)
|
||||
- $(CC) -fpic -shared -o libcdda_interface.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES) $(LIBS)
|
||||
+ $(CC) $(LDFLAGS) -fpic -shared -o libcdda_interface.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES) $(LIBS)
|
||||
[ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so.0
|
||||
[ -e libcdda_interface.so ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so
|
||||
|
||||
diff -up cdparanoia-III-10.2/paranoia/Makefile.in.jx cdparanoia-III-10.2/paranoia/Makefile.in
|
||||
--- cdparanoia-III-10.2/paranoia/Makefile.in.jx 2008-09-04 15:02:47.000000000 -0400
|
||||
+++ cdparanoia-III-10.2/paranoia/Makefile.in 2018-03-07 13:12:39.352765050 -0500
|
||||
@@ -44,7 +44,7 @@ libcdda_paranoia.a: $(OFILES)
|
||||
$(RANLIB) libcdda_paranoia.a
|
||||
|
||||
libcdda_paranoia.so: $(OFILES)
|
||||
- $(CC) -fpic -shared -o libcdda_paranoia.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_paranoia.so.0 $(OFILES) -L ../interface -lcdda_interface
|
||||
+ $(CC) $(LDFLAGS) -fpic -shared -o libcdda_paranoia.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_paranoia.so.0 $(OFILES) -L ../interface -lcdda_interface
|
||||
[ -e libcdda_paranoia.so.0 ] || ln -s libcdda_paranoia.so.0.$(VERSION) libcdda_paranoia.so.0
|
||||
[ -e libcdda_paranoia.so ] || ln -s libcdda_paranoia.so.0.$(VERSION) libcdda_paranoia.so
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
Index: cdparanoia-III-10.2/configure
|
||||
===================================================================
|
||||
--- cdparanoia-III-10.2.orig/configure
|
||||
+++ cdparanoia-III-10.2/configure
|
||||
@@ -1289,9 +1289,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
|
||||
-cp $srcdir/configure.guess $srcdir/config.guess
|
||||
-cp $srcdir/configure.sub $srcdir/config.sub
|
||||
-
|
||||
ac_aux_dir=
|
||||
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
||||
if test -f $ac_dir/install-sh; then
|
||||
Index: cdparanoia-III-10.2/configure.in
|
||||
===================================================================
|
||||
--- cdparanoia-III-10.2.orig/configure.in
|
||||
+++ cdparanoia-III-10.2/configure.in
|
||||
@@ -1,8 +1,5 @@
|
||||
AC_INIT(interface/interface.c)
|
||||
|
||||
-cp $srcdir/configure.guess $srcdir/config.guess
|
||||
-cp $srcdir/configure.sub $srcdir/config.sub
|
||||
-
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
if test -z "$CC"; then
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"cdparanoia-III-10.2.src.tgz": "005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df"
|
||||
}
|
||||
}
|
|
@ -1,390 +0,0 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
Summary: Compact Disc Digital Audio (CDDA) extraction tool (or ripper)
|
||||
Name: cdparanoia
|
||||
Version: 10.2
|
||||
Release: 32%{?dist}
|
||||
# the app is GPLv2, everything else is LGPLv2
|
||||
License: GPLv2 and LGPLv2
|
||||
URL: http://www.xiph.org/paranoia/index.html
|
||||
|
||||
Source: http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-%{version}.src.tgz
|
||||
# Patch from upstream to fix cdda_interface.h C++ incompatibility ("private")
|
||||
# https://trac.xiph.org/changeset/15338
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=463009
|
||||
Patch0: cdparanoia-10.2-#463009.patch
|
||||
# #466659
|
||||
Patch1: cdparanoia-10.2-endian.patch
|
||||
Patch2: cdparanoia-10.2-install.patch
|
||||
Patch3: cdparanoia-10.2-format-security.patch
|
||||
Patch4: cdparanoia-use-proper-gnu-config-files.patch
|
||||
Patch5: cdparanoia-10.2-ldflags.patch
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
BuildRequires: gcc
|
||||
%description
|
||||
Cdparanoia (Paranoia III) reads digital audio directly from a CD, then
|
||||
writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear
|
||||
PCM format. Cdparanoia doesn't contain any extra features (like the ones
|
||||
included in the cdda2wav sampling utility). Instead, cdparanoia's strength
|
||||
lies in its ability to handle a variety of hardware, including inexpensive
|
||||
drives prone to misalignment, frame jitter and loss of streaming during
|
||||
atomic reads. Cdparanoia is also good at reading and repairing data from
|
||||
damaged CDs.
|
||||
|
||||
%package static
|
||||
Summary: Development tools for libcdda_paranoia (Paranoia III)
|
||||
Requires: cdparanoia-devel = %{version}-%{release}
|
||||
License: LGPLv2
|
||||
|
||||
%description static
|
||||
The cdparanoia-devel package contains the static libraries needed for
|
||||
developing applications to read CD Digital Audio disks.
|
||||
|
||||
%package libs
|
||||
Summary: Libraries for libcdda_paranoia (Paranoia III)
|
||||
License: LGPLv2
|
||||
|
||||
%description libs
|
||||
The cdparanoia-libs package contains the dynamic libraries needed for
|
||||
applications which read CD Digital Audio disks.
|
||||
|
||||
%package devel
|
||||
Summary: Development tools for libcdda_paranoia (Paranoia III)
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
License: LGPLv2
|
||||
|
||||
%description devel
|
||||
The cdparanoia-devel package contains the libraries and header files needed
|
||||
for developing applications to read CD Digital Audio disks.
|
||||
|
||||
%prep
|
||||
%setup -q -n cdparanoia-III-%{version}
|
||||
%patch0 -p3 -b .#463009
|
||||
%patch1 -p1 -b .endian
|
||||
%patch2 -p1 -b .install
|
||||
%patch3 -p1 -b .fmt-sec
|
||||
%patch4 -p1 -b .config
|
||||
%patch5 -p1 -b .ldflags
|
||||
|
||||
# Update config.guess/sub for newer architectures
|
||||
cp /usr/lib/rpm/config.* .
|
||||
|
||||
%build
|
||||
%configure --includedir=%{_includedir}/cdda
|
||||
# Also remove many warnings which we are aware of
|
||||
# Lastly, don't use _smp_mflags since it also makes the build fail
|
||||
make OPT="$RPM_OPT_FLAGS -Wno-pointer-sign -Wno-unused" LDFLAGS="%{?__global_ldflags}"
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files
|
||||
%doc COPYING* README
|
||||
%{_bindir}/cdparanoia
|
||||
%{_mandir}/man1/cdparanoia.1*
|
||||
|
||||
%files libs
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/cdda/
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files static
|
||||
%{_libdir}/*.a
|
||||
|
||||
%changelog
|
||||
* Thu Apr 01 2021 Henry Li <lihl@microsoft.com> - 10.2-32
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Change /usr/lib/rpm/redhat to /usr/lib/rpm
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-31
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-29
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Mar 07 2018 Adam Jackson <ajax@redhat.com> - 10.2-27
|
||||
- Fix LDFLAGS propagation
|
||||
- Stop building with -O0
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Sun Feb 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 10.2-25
|
||||
- Switch to %%ldconfig_scriptlets
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 10.2-19
|
||||
- Rebuilt for Fedora 23 Change
|
||||
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
||||
|
||||
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat May 3 2014 Peter Robinson <pbrobinson@fedoraproject.org> 10.2-16
|
||||
- Update config.guess config.sub to build on new architectures
|
||||
- Cleanup spec
|
||||
|
||||
* Mon Apr 14 2014 Jaromir Capik <jcapik@redhat.com> - 10.2-15
|
||||
- Fixing format-security flaws (#1037011)
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Fri Feb 05 2010 Adam Jackson <ajax@redhat.com> 10.2-9
|
||||
- Fix packaging typo from -7
|
||||
|
||||
* Wed Feb 03 2010 Peter Jones <pjones@redhat.com> - 10.2-8
|
||||
- Incorporate changes from Matthias Saou:
|
||||
- Include install patch, to avoid all of the ugly manual installation.
|
||||
- Cosmetic fixes (libs group, scriplets, don't mix %%name with hardcode...).
|
||||
|
||||
* Tue Feb 02 2010 Adam Jackson <ajax@redhat.com> 10.2-7
|
||||
- Move static libs to -static subpackage, make it require -devel
|
||||
|
||||
* Tue Dec 8 2009 Matthias Saou <http://freshrpms.net/> 10.2-6
|
||||
- Fix all of the problems detected during the review which aren't acceptable
|
||||
according to the current policies and guidelines (part of #225638).
|
||||
- Don't prefix summaries with "A" nor suffix them with a dot.
|
||||
- Move .so symlink to the devel sub-package (#203620).
|
||||
- Add highest known version to the cdparanoia-III obsoletes.
|
||||
- Remove incorrect buildroot removal from %%build.
|
||||
- Use acceptable %%clean section.
|
||||
- Provide cdparanoia-static in the devel sub-package since the *.a is there.
|
||||
- Use single-command scriplet syntax for /sbin/ldconfig calls.
|
||||
- Escape all macros in changelog.
|
||||
- Include license file since it is present with the sources.
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 10.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Feb 10 2009 Adam Jackson <ajax@redhat.com>
|
||||
- Merge review cleanups (not finished, #225638)
|
||||
|
||||
* Tue Feb 10 2009 Adam Jackson <ajax@redhat.com> 10.2-3
|
||||
- cdparanoia-10.2-endian.patch: Backport a crash fix for host/drive
|
||||
endianness mismatch. (#466659)
|
||||
|
||||
* Tue Sep 30 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 10.2-2
|
||||
- fix cdda_interface.h C++ incompatibility (patch from upstream) (#463009)
|
||||
|
||||
* Thu Sep 11 2008 Adam Jackson <ajax@redhat.com> 10.2-1
|
||||
- cdparanoia 10.2
|
||||
|
||||
* Wed Aug 13 2008 Adam Jackson <ajax@redhat.com> 10.1-1
|
||||
- Update to 10.1, just changes the license back.
|
||||
|
||||
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 10.0-3
|
||||
- fix license tag
|
||||
- fix headers, setspeed patch to apply with fuzz=0
|
||||
|
||||
* Thu Jun 19 2008 Adam Jackson <ajax@redhat.com> 10.0-2
|
||||
- cdparanoia 10.
|
||||
|
||||
* Thu Mar 20 2008 Adam Jackson <ajax@redhat.com> alpha9.8-30
|
||||
- Add -Werror-implicit-function-declarations.
|
||||
- cdparanoia-III-alpha9.8-headers.patch: Fix the resulting errors.
|
||||
|
||||
* Tue Mar 04 2008 Adam Jackson <ajax@redhat.com> alpha9.8-29
|
||||
- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of
|
||||
SCSI CD drives. (#431178)
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - alpha9.8-28.2
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-27.2
|
||||
- rebuild
|
||||
|
||||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-27.1
|
||||
- bump again for double-long bug on ppc(64)
|
||||
|
||||
* Wed Feb 08 2006 Monty Montgomery <cmontgom@redhat.com> - alpha9.8-27
|
||||
- rebuilt
|
||||
|
||||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - alpha9.8-26.2
|
||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||
|
||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Sat Oct 15 2005 Florian La Roche <laroche@redhat.com>
|
||||
- make sure shared libs are linked against respective other libs
|
||||
|
||||
* Wed Mar 16 2005 Peter Jones <pjones@redhat.com> alpha9.8-25
|
||||
- gcc4 rebuild and CFLAGS change
|
||||
|
||||
* Wed Feb 9 2005 Peter Jones <pjones@redhat.com> alpha9.8-24.2
|
||||
- Rebuild for new toolchain
|
||||
|
||||
* Wed Oct 6 2004 Peter Jones <pjones@redhat.com> alpha9.8-24
|
||||
- workaround for sgio read size issues in newer kernels.
|
||||
|
||||
* Fri Oct 1 2004 Peter Jones <pjones@redhat.com> alpha9.8-23
|
||||
- "This time, with a meaningful changelog" release. Just like -22.
|
||||
- new SG_IO code in rawhide. This means ripping will no longer use the
|
||||
"cooked ioctl" mode that it has since we moved to 2.6, instead utilizing
|
||||
the real scsi-based command set to talk to most drives. This should
|
||||
result in better error correction handling, and usage of much more
|
||||
commonly used kernel features.
|
||||
- environment variable "CDDA_TRANSPORT" added. If you set this to "cooked",
|
||||
cdparanoia will try to use the "cooked ioctl" mode instead of SCSI/SG_IO
|
||||
based modes first, and then fall back to SG_IO.
|
||||
- It'd be good if this got some testing. A prior version of the SG_IO code
|
||||
was known to fail on some USB drives. This version should mitigate that
|
||||
quite a bit, but I lack the hardware to test it for sure.
|
||||
|
||||
* Wed Jul 7 2004 Peter Jones <pjones@redhat.com> alpha9.8-21sgio1
|
||||
- a new set of sgio patches
|
||||
|
||||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Feb 17 2004 Peter Jones <pjones@redhat.com> alpha9.8-20
|
||||
- take ownership of %%{_includedir}/cdda
|
||||
|
||||
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue May 20 2003 Peter Jones <pjones@redhat.com> alpha9.8-17
|
||||
- typo fix (g_fd -> fd)
|
||||
- add errno output
|
||||
|
||||
* Tue May 06 2003 Peter Jones <pjones@redhat.com> alpha9.8-16
|
||||
- fix warnings on switches
|
||||
- use O_EXCL
|
||||
|
||||
* Tue Feb 04 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||
- add symlinks to shared libs
|
||||
|
||||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Wed Dec 25 2002 Tim Powers <timp@redhat.com> alpha9.8-13
|
||||
- fix %%install references in the changelog so that it will rebuild properly
|
||||
|
||||
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> alpha9.8-12
|
||||
- rebuild on all arches
|
||||
|
||||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Wed Apr 3 2002 Peter Jones <pjones@redhat.com> alpha9.8-8
|
||||
- don't strip, let rpm do that
|
||||
|
||||
* Mon Feb 25 2002 Tim Powers <timp@redhat.com> alpha9.8-7
|
||||
- fix broken Obsoletes of cdparanoia-devel
|
||||
|
||||
* Thu Dec 6 2001 Peter Jones <pjones@redhat.com> alpha9.8-6
|
||||
- move includes to %%{_includedir}/cdda/
|
||||
- add utils.h to %%install
|
||||
- clean up %%install some.
|
||||
|
||||
* Sun Nov 4 2001 Peter Jones <pjones@redhat.com> alpha9.8-5
|
||||
- make a -libs package which contains the .so files
|
||||
- make the cdparanoia dependancy towards that, not -devel
|
||||
|
||||
* Thu Aug 2 2001 Peter Jones <pjones@redhat.com>
|
||||
- bump the release not to conflict with on in the RH build tree :/
|
||||
- reverse devel dependency
|
||||
|
||||
* Wed Aug 1 2001 Peter Jones <pjones@redhat.com>
|
||||
- fix %%post and %%postun to only run ldconfig for devel packages
|
||||
|
||||
* Wed Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
|
||||
- devel now depends on package
|
||||
|
||||
* Wed Mar 28 2001 Peter Jones <pjones@redhat.com>
|
||||
- 9.8 release.
|
||||
|
||||
* Tue Feb 27 2001 Karsten Hopp <karsten@redhat.de>
|
||||
- fix spelling error in description
|
||||
|
||||
* Thu Dec 7 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
||||
- rebuild for new tree
|
||||
|
||||
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
||||
- use %%{_tmppath}
|
||||
|
||||
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
||||
- automatic rebuild
|
||||
|
||||
* Wed Jun 06 2000 Preston Brown <pbrown@redhat.com>
|
||||
- revert name change
|
||||
- use new rpm macro paths
|
||||
|
||||
* Wed Apr 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
||||
- Switched spec file from the one used in Red Hat Linux 6.2, which
|
||||
also changes the name
|
||||
- gzip man page
|
||||
|
||||
* Thu Dec 23 1999 Peter Jones <pjones@redhat.com>
|
||||
- update package to provide cdparanoia-alpha9.7-2.*.rpm and
|
||||
cdparanoia-devel-alpha9.7-2.*.rpm. Also, URLs point at xiph.org
|
||||
like they should.
|
||||
|
||||
* Wed Dec 22 1999 Peter Jones <pjones@redhat.com>
|
||||
- updated package for alpha9.7, based on input from:
|
||||
Monty <xiphmont@xiph.org>
|
||||
David Philippi <david@torangan.saar.de>
|
||||
|
||||
* Mon Apr 12 1999 Michael Maher <mike@redhat.com>
|
||||
- updated pacakge
|
||||
|
||||
* Tue Oct 06 1998 Michael Maher <mike@redhat.com>
|
||||
- updated package
|
||||
|
||||
* Mon Jun 29 1998 Michael Maher <mike@redhat.com>
|
||||
- built package
|
|
@ -1,12 +0,0 @@
|
|||
diff -urNp elinks-0.12pre3-orig/src/config/options.inc elinks-0.12pre3/src/config/options.inc
|
||||
--- elinks-0.12pre3-orig/src/config/options.inc
|
||||
+++ elinks-0.12pre3/src/config/options.inc
|
||||
@@ -920,7 +920,7 @@ static struct option_info config_options
|
||||
* not defined, it should not be possible to set UTF-8 as "codepage";
|
||||
* please report any such possibilities as bugs.) */
|
||||
INIT_OPT_BOOL("terminal._template_", N_("UTF-8 I/O"),
|
||||
- "utf_8_io", 0, 0,
|
||||
+ "utf_8_io", 0, 1,
|
||||
N_("Enable I/O in UTF-8 for Unicode terminals. "
|
||||
"Note that currently, only the subset of UTF-8 according to "
|
||||
"terminal codepage is used. ELinks ignores this option "
|
|
@ -1,18 +0,0 @@
|
|||
src/config/options.c | 3 ++-
|
||||
1 files changed, 2 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/src/config/options.c b/src/config/options.c
|
||||
index 925e042..ace1a13 100644
|
||||
--- a/src/config/options.c
|
||||
+++ b/src/config/options.c
|
||||
@@ -706,8 +706,9 @@ register_autocreated_options(void)
|
||||
get_opt_bool("terminal.linux.m11_hack") = 1;
|
||||
get_opt_int("terminal.vt100.type") = TERM_VT100;
|
||||
get_opt_int("terminal.vt110.type") = TERM_VT100;
|
||||
- get_opt_int("terminal.xterm.type") = TERM_VT100;
|
||||
+ get_opt_int("terminal.xterm.type") = 2;
|
||||
get_opt_bool("terminal.xterm.underline") = 1;
|
||||
+ get_opt_int("terminal.xterm.colors") = 1;
|
||||
get_opt_int("terminal.xterm-color.type") = TERM_VT100;
|
||||
get_opt_int("terminal.xterm-color.colors") = COLOR_MODE_16;
|
||||
get_opt_bool("terminal.xterm-color.underline") = 1;
|
|
@ -1,25 +0,0 @@
|
|||
--- elinks-0.11.0/src/network/dns.c.getaddrinfo 2006-01-01 17:39:36.000000000 +0100
|
||||
+++ elinks-0.11.0/src/network/dns.c 2006-01-10 09:30:56.000000000 +0100
|
||||
@@ -157,9 +157,21 @@ do_real_lookup(unsigned char *name, struct sockaddr_storage **addrs, int *addrno
|
||||
* But we duplicate the code terribly here :|. */
|
||||
/* hostent = getipnodebyname(name, AF_INET6, AI_ALL | AI_ADDRCONFIG, NULL); */
|
||||
memset(&hint, 0, sizeof(hint));
|
||||
+ hint.ai_flags = AI_ADDRCONFIG;
|
||||
hint.ai_family = AF_UNSPEC;
|
||||
hint.ai_socktype = SOCK_STREAM;
|
||||
- if (getaddrinfo(name, NULL, &hint, &ai) != 0) return DNS_ERROR;
|
||||
+ switch (getaddrinfo(name, NULL, &hint, &ai))
|
||||
+ {
|
||||
+ case 0:
|
||||
+ break;
|
||||
+ case EAI_BADFLAGS:
|
||||
+ hint.ai_flags = 0;
|
||||
+ if (getaddrinfo(name, NULL, &hint, &ai) == 0)
|
||||
+ break;
|
||||
+ /* fall through */
|
||||
+ default:
|
||||
+ return DNS_ERROR;
|
||||
+ }
|
||||
|
||||
#else
|
||||
/* Seems there are problems on Mac, so we first need to try
|
|
@ -1,21 +0,0 @@
|
|||
--- elinks-0.11.0/src/network/ssl/ssl.c.noegd 2006-01-10 09:24:50.000000000 +0100
|
||||
+++ elinks-0.11.0/src/network/ssl/ssl.c 2006-01-10 09:25:01.000000000 +0100
|
||||
@@ -44,18 +44,6 @@ SSL_CTX *context = NULL;
|
||||
static void
|
||||
init_openssl(struct module *module)
|
||||
{
|
||||
- unsigned char f_randfile[PATH_MAX];
|
||||
-
|
||||
- /* In a nutshell, on OS's without a /dev/urandom, the OpenSSL library
|
||||
- * cannot initialize the PRNG and so every attempt to use SSL fails.
|
||||
- * It's actually an OpenSSL FAQ, and according to them, it's up to the
|
||||
- * application coders to seed the RNG. -- William Yodlowsky */
|
||||
- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
|
||||
- /* Not an EGD, so read and write to it */
|
||||
- if (RAND_load_file(f_randfile, -1))
|
||||
- RAND_write_file(f_randfile);
|
||||
- }
|
||||
-
|
||||
SSLeay_add_ssl_algorithms();
|
||||
context = SSL_CTX_new(SSLv23_client_method());
|
||||
SSL_CTX_set_options(context, SSL_OP_ALL);
|
|
@ -1,20 +0,0 @@
|
|||
--- elinks-0.11.0/src/osdep/sysname.c.sysname 2006-01-01 17:39:36.000000000 +0100
|
||||
+++ elinks-0.11.0/src/osdep/sysname.c 2006-01-10 09:34:14.000000000 +0100
|
||||
@@ -26,7 +26,7 @@
|
||||
FILE *f;
|
||||
unsigned char *p;
|
||||
|
||||
- f = popen("uname -srm", "r");
|
||||
+ f = popen("uname -s", "r");
|
||||
if (!f) return 0;
|
||||
|
||||
if (fread(system_name, 1, sizeof(system_name) - 1, f) <= 0) {
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
if (!uname(&name)) {
|
||||
snprintf(system_name, sizeof(system_name),
|
||||
- "%s %s %s", name.sysname, name.release, name.machine);
|
||||
+ "%s", name.sysname);
|
||||
return;
|
||||
}
|
||||
#endif
|
|
@ -1,16 +0,0 @@
|
|||
src/encoding/encoding.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/src/encoding/encoding.c b/src/encoding/encoding.c
|
||||
index d019dab..9648da3 100644
|
||||
--- a/src/encoding/encoding.c
|
||||
+++ b/src/encoding/encoding.c
|
||||
@@ -124,7 +124,7 @@ open_encoded(int fd, enum stream_encoding encoding)
|
||||
if (!stream) return NULL;
|
||||
|
||||
stream->encoding = encoding;
|
||||
- if (decoding_backends[stream->encoding]->open(stream, fd) >= 0)
|
||||
+ if ((decoding_backends[stream->encoding]->open)(stream, fd) >= 0)
|
||||
return stream;
|
||||
|
||||
mem_free(stream);
|
|
@ -1,51 +0,0 @@
|
|||
From a96d8a17e57343ff29736a2f8d0c954f2c4ba02a Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Tue, 18 Sep 2012 15:32:31 +0200
|
||||
Subject: [PATCH] rewrite: add default "ddg" dumb/smart prefixes for DuckDuckGo
|
||||
|
||||
... and mention that URI rewriting rules may leak ELinks' identity
|
||||
in the documentation of protocol.http.user_agent.
|
||||
|
||||
Originally requested at <https://bugzilla.redhat.com/856348>.
|
||||
---
|
||||
src/protocol/http/http.c | 3 ++-
|
||||
src/protocol/rewrite/rewrite.c | 2 ++
|
||||
2 files changed, 4 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/src/protocol/http/http.c b/src/protocol/http/http.c
|
||||
index ce14031..98053c0 100644
|
||||
--- a/src/protocol/http/http.c
|
||||
+++ b/src/protocol/http/http.c
|
||||
@@ -227,7 +227,8 @@ static union option_info http_options[] = {
|
||||
"pushing some lite version to them automagically.\n"
|
||||
"\n"
|
||||
"Use \" \" if you don't want any User-Agent header to be sent "
|
||||
- "at all.\n"
|
||||
+ "at all. URI rewriting rules may still include parameters "
|
||||
+ "that reveal you are using ELinks.\n"
|
||||
"\n"
|
||||
"%v in the string means ELinks version,\n"
|
||||
"%s in the string means system identification,\n"
|
||||
diff --git a/src/protocol/rewrite/rewrite.c b/src/protocol/rewrite/rewrite.c
|
||||
index dd5c7ab..e01da74 100644
|
||||
--- a/src/protocol/rewrite/rewrite.c
|
||||
+++ b/src/protocol/rewrite/rewrite.c
|
||||
@@ -121,6 +121,7 @@ static union option_info uri_rewrite_options[] = {
|
||||
INIT_OPT_DUMB_PREFIX("cia", "http://cia.navi.cx/"),
|
||||
INIT_OPT_DUMB_PREFIX("b", "http://babelfish.altavista.com/babelfish/tr"),
|
||||
INIT_OPT_DUMB_PREFIX("d", "http://www.dict.org"),
|
||||
+ INIT_OPT_DUMB_PREFIX("ddg", "http://duckduckgo.com/?t=elinks"),
|
||||
INIT_OPT_DUMB_PREFIX("g", "http://www.google.com/"),
|
||||
INIT_OPT_DUMB_PREFIX("gg", "http://www.google.com/"),
|
||||
INIT_OPT_DUMB_PREFIX("go", "http://www.google.com/"),
|
||||
@@ -158,6 +159,7 @@ static union option_info uri_rewrite_options[] = {
|
||||
INIT_OPT_SMART_PREFIX("cambridge", "http://dictionary.cambridge.org/results.asp?searchword=%s"),
|
||||
INIT_OPT_SMART_PREFIX("cliki", "http://www.cliki.net/admin/search?words=%s"),
|
||||
INIT_OPT_SMART_PREFIX("d", "http://www.dict.org/bin/Dict?Query=%s&Form=Dict1&Strategy=*&Database=*&submit=Submit+query"),
|
||||
+ INIT_OPT_SMART_PREFIX("ddg", "http://duckduckgo.com/?q=%s&t=elinks"),
|
||||
INIT_OPT_SMART_PREFIX("dmoz", "http://search.dmoz.org/cgi-bin/search?search=%s"),
|
||||
INIT_OPT_SMART_PREFIX("foldoc", "http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?%s"),
|
||||
INIT_OPT_SMART_PREFIX("g", "http://www.google.com/search?q=%s&btnG=Google+Search"),
|
||||
--
|
||||
1.7.1
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
From d7380abead73dc753023ef598b87944756c08d40 Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Mon, 25 Feb 2013 15:31:07 +0100
|
||||
Subject: [PATCH] configure.in: add missing AC_LANG_PROGRAM
|
||||
|
||||
... around the first argument of AC_COMPILE_IFELSE
|
||||
---
|
||||
configure.in | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 2629ac3..4290e45 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -220,7 +220,7 @@ AC_STRUCT_TM
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_MSG_CHECKING([[for C99-conforming inline]])
|
||||
-AC_COMPILE_IFELSE([[
|
||||
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
int add(int change);
|
||||
|
||||
static int sum;
|
||||
@@ -236,7 +236,7 @@ AC_COMPILE_IFELSE([[
|
||||
sub(int change)
|
||||
{
|
||||
return add(-change);
|
||||
- }]],
|
||||
+ }]])],
|
||||
[AC_MSG_RESULT([[yes]])
|
||||
AC_DEFINE([NONSTATIC_INLINE], [inline],
|
||||
[Define as inline if the compiler lets you declare a function without inline, then define it with inline, and have that definition refer to identifiers with internal linkage. This is allowed by C99 6.7.4p6 and 6.7.4p3 together. Otherwise define as nothing.])],
|
||||
--
|
||||
1.7.1
|
||||
|
|
@ -1,110 +0,0 @@
|
|||
From 496afe1f27481eb45ac14df0bfdb287b95eefbdd Mon Sep 17 00:00:00 2001
|
||||
From: Robert Scheck <redhat-bugzilla@linuxnetz.de>
|
||||
Date: Fri, 30 May 2014 15:28:54 +0200
|
||||
Subject: [PATCH] Add support for GNU Libidn2
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Patch by Robert Scheck <robert@fedoraproject.org> for elinks >= 0.12 which replaces current
|
||||
GNU Libidn support (IDNA 2003) by GNU Libidn2 support (IDNA 2008). This is e.g. allowing
|
||||
the 'ß' character in domain names. See also the Red Hat Bugzilla #1098789 for some further
|
||||
information: https://bugzilla.redhat.com/show_bug.cgi?id=1098789
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
Makefile.config.in | 2 +-
|
||||
configure.in | 4 ++--
|
||||
src/osdep/win32/win32.c | 2 +-
|
||||
src/protocol/uri.c | 18 +++++++-----------
|
||||
4 files changed, 11 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/Makefile.config.in b/Makefile.config.in
|
||||
index fe1a559..829d350 100644
|
||||
--- a/Makefile.config.in
|
||||
+++ b/Makefile.config.in
|
||||
@@ -130,7 +130,7 @@ CONFIG_GOPHER = @CONFIG_GOPHER@
|
||||
CONFIG_GPM = @CONFIG_GPM@
|
||||
CONFIG_GZIP = @CONFIG_GZIP@
|
||||
CONFIG_HTML_HIGHLIGHT = @CONFIG_HTML_HIGHLIGHT@
|
||||
-CONFIG_IDN = @CONFIG_IDN@
|
||||
+CONFIG_IDN2 = @CONFIG_IDN2@
|
||||
CONFIG_INTERLINK = @CONFIG_INTERLINK@
|
||||
CONFIG_IPV6 = @CONFIG_IPV6@
|
||||
CONFIG_JW = @CONFIG_JW@
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 3ef8603..3f74d9c 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -473,8 +473,8 @@ EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_GZIP, zlib, zlib.h, z, gzclearerr,
|
||||
EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_BZIP2, bzlib, bzlib.h, bz2, BZ2_bzReadOpen,
|
||||
[ --without-bzlib disable bzlib support])
|
||||
|
||||
-EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_IDN, idn, idna.h, idn, stringprep_check_version,
|
||||
- [ --without-idn disable international domain names support])
|
||||
+EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_IDN2, idn2, idn2.h, idn2, idn2_lookup_ul,
|
||||
+ [ --without-idn2 disable international domain names support])
|
||||
|
||||
if test "x${with_gc}" != xno; then
|
||||
EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_GC, gc, gc.h, gc, GC_init,
|
||||
diff --git a/src/osdep/win32/win32.c b/src/osdep/win32/win32.c
|
||||
index 66b2128..e870a6e 100644
|
||||
--- a/src/osdep/win32/win32.c
|
||||
+++ b/src/osdep/win32/win32.c
|
||||
@@ -48,7 +48,7 @@ init_osdep(void)
|
||||
#ifdef HAVE_LOCALE_H
|
||||
setlocale(LC_ALL, "");
|
||||
#endif
|
||||
-#ifdef CONFIG_IDN
|
||||
+#ifdef CONFIG_IDN2
|
||||
{
|
||||
char buf[60];
|
||||
UINT cp = GetACP();
|
||||
diff --git a/src/protocol/uri.c b/src/protocol/uri.c
|
||||
index 5e23ea2..8987567 100644
|
||||
--- a/src/protocol/uri.c
|
||||
+++ b/src/protocol/uri.c
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
-#ifdef HAVE_IDNA_H
|
||||
-#include <idna.h>
|
||||
+#ifdef HAVE_IDN2_H
|
||||
+#include <idn2.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -531,24 +531,20 @@ add_uri_to_string(struct string *string, const struct uri *uri,
|
||||
* --pasky */
|
||||
if (uri->ipv6 && wants(URI_PORT)) add_char_to_string(string, '[');
|
||||
#endif
|
||||
-#ifdef CONFIG_IDN
|
||||
+#ifdef CONFIG_IDN2
|
||||
/* Support for the GNU International Domain Name library.
|
||||
*
|
||||
- * http://www.gnu.org/software/libidn/manual/html_node/IDNA-Functions.html
|
||||
- *
|
||||
- * Now it is probably not perfect because idna_to_ascii_lz()
|
||||
- * will be using a ``zero terminated input string encoded in
|
||||
- * the current locale's character set''. Anyway I don't know
|
||||
- * how to convert anything to UTF-8 or Unicode. --jonas */
|
||||
+ * http://www.gnu.org/software/libidn/libidn2/manual/libidn2.html
|
||||
+ */
|
||||
if (wants(URI_IDN)) {
|
||||
unsigned char *host = memacpy(uri->host, uri->hostlen);
|
||||
|
||||
if (host) {
|
||||
char *idname;
|
||||
- int code = idna_to_ascii_lz(host, &idname, 0);
|
||||
+ int code = idn2_lookup_ul(host, &idname, 0);
|
||||
|
||||
/* FIXME: Return NULL if it coughed? --jonas */
|
||||
- if (code == IDNA_SUCCESS) {
|
||||
+ if (code == IDN2_OK) {
|
||||
add_to_string(string, idname);
|
||||
free(idname);
|
||||
add_host = 0;
|
||||
--
|
||||
1.9.3
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
From 701b16e0ee6f159cbf8498f4569022005dfdebbd Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Wed, 19 Mar 2014 11:48:34 +0100
|
||||
Subject: [PATCH] lists.h: list_is_singleton() now returns false for empty list
|
||||
|
||||
We have a crash report of ELinks 0.12pre6 with backtrace going through
|
||||
bookmark_all_terminals(). I believe it is caused by list_is_singleton()
|
||||
returning true for an empty list. Consequently, bookmark_terminal()
|
||||
attempts to access a list item that does not exist.
|
||||
|
||||
While it would be possible to fix bookmark_all_terminals() to explicitly
|
||||
check the list for emptiness, I propose to fix list_is_singleton() such
|
||||
that it does not return true for an empty list. I checked the other
|
||||
uses of list_is_singleton() and the proposed change should not introduce
|
||||
any change in the behavior elsewhere.
|
||||
|
||||
Bug: https://bugzilla.redhat.com/1075415
|
||||
---
|
||||
src/util/lists.h | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/util/lists.h b/src/util/lists.h
|
||||
index b577c9f..9da38ae 100644
|
||||
--- a/src/util/lists.h
|
||||
+++ b/src/util/lists.h
|
||||
@@ -146,7 +146,8 @@ do { \
|
||||
#define list_empty(x) (list_magic_chkbool(x, "list_empty") && (x).next == &(x))
|
||||
|
||||
#define list_is_singleton(x) \
|
||||
- (list_magic_chkbool(x, "list_is_singleton") && (x).next == (x).prev)
|
||||
+ (list_magic_chkbool(x, "list_is_singleton") && (x).next == (x).prev \
|
||||
+ && !list_empty(x))
|
||||
|
||||
#define list_has_prev(l,p) \
|
||||
(list_magic_chkbool(l, "list_has_prev") && (p)->prev != (void *) &(l))
|
||||
--
|
||||
1.8.3.1
|
||||
|
|
@ -1,154 +0,0 @@
|
|||
From 0b72059e1bebb52f41a93de710ae12577769fb50 Mon Sep 17 00:00:00 2001
|
||||
From: Miciah Dashiel Butler Masters <miciah.masters@gmail.com>
|
||||
Date: Sun, 5 Apr 2009 12:57:35 +0000
|
||||
Subject: [PATCH 1/2] Lua: Report bad arguments to edit_bookmark_dialoga
|
||||
|
||||
If edit_bookamrk_dialogs is given the wrong number or types of
|
||||
arguments, report the problem to the user instead of failing silently.
|
||||
|
||||
[upstream commit 6a8e0ccd9bdb06e440b7b147c61f7741dd6d1fcd]
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
src/scripting/lua/core.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c
|
||||
index bff037b..7712dcd 100644
|
||||
--- a/src/scripting/lua/core.c
|
||||
+++ b/src/scripting/lua/core.c
|
||||
@@ -369,6 +369,7 @@ l_edit_bookmark_dialog(LS)
|
||||
|
||||
if (!lua_isstring(S, 1) || !lua_isstring(S, 2)
|
||||
|| !lua_isstring(S, 3) || !lua_isfunction(S, 4)) {
|
||||
+ alert_lua_error("bad arguments to edit_bookmark_dialog");
|
||||
lua_pushnil(S);
|
||||
return 1;
|
||||
}
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
|
||||
From 8ce643a489dd8dc195aa2f8dc4029ce347093c98 Mon Sep 17 00:00:00 2001
|
||||
From: Witold Filipczyk <witekfl@poczta.onet.pl>
|
||||
Date: Wed, 21 Jul 2010 19:07:49 +0200
|
||||
Subject: [PATCH 2/2] Link against lua51, not lua50.
|
||||
|
||||
[upstream commit 331a4dc62b0dbdecba3857d87dc4e12660e5d705]
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
configure.in | 16 +++++++---------
|
||||
src/scripting/lua/core.c | 13 +++++--------
|
||||
src/scripting/lua/hooks.c | 6 +++++-
|
||||
3 files changed, 17 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 3ef8603..ca138ac 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -854,10 +854,10 @@ if test -z "$disable_lua"; then
|
||||
withval="";
|
||||
fi
|
||||
for luadir in "$withval" "" /usr /usr/local; do
|
||||
- for suffix in "" 50; do
|
||||
+ for suffix in "" 51; do
|
||||
if test "$cf_result" = no && ( test -f "$luadir/include/lua.h" || \
|
||||
test -f "$luadir/include/lua$suffix/lua.h" ) ; then
|
||||
- LUA_LIBS="-L$luadir/lib -llua$suffix -llualib$suffix -lm"
|
||||
+ LUA_LIBS="-L$luadir/lib -llua$suffix -lm"
|
||||
LUA_CFLAGS="-I$luadir/include -I$luadir/include/lua$suffix"
|
||||
|
||||
LIBS="$LUA_LIBS $LIBS_X"
|
||||
@@ -865,13 +865,11 @@ if test -z "$disable_lua"; then
|
||||
CPPFLAGS="$CPPFLAGS_X $LUA_CFLAGS"
|
||||
|
||||
# Check that it is a compatible Lua version
|
||||
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <lua.h>
|
||||
- #include <lualib.h>]], [[ lua_State *L = lua_open();
|
||||
- luaopen_base(L);
|
||||
- luaopen_table(L);
|
||||
- luaopen_io(L);
|
||||
- luaopen_string(L);
|
||||
- luaopen_math(L);
|
||||
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <lauxlib.h>]
|
||||
+ #include <lua.h>
|
||||
+ #include <lualib.h>
|
||||
+ ], [[ lua_State *L = luaL_newstate();
|
||||
+ luaL_openlibs(L);
|
||||
lua_pushboolean(L, 1);
|
||||
lua_close(L);]])],[cf_result=yes],[cf_result=no])
|
||||
fi
|
||||
diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c
|
||||
index 7712dcd..1c4dbbc 100644
|
||||
--- a/src/scripting/lua/core.c
|
||||
+++ b/src/scripting/lua/core.c
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#include <lauxlib.h>
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
|
||||
@@ -659,7 +660,7 @@ do_hooks_file(LS, unsigned char *prefix, unsigned char *filename)
|
||||
if (file_can_read(file)) {
|
||||
int oldtop = lua_gettop(S);
|
||||
|
||||
- if (lua_dofile(S, file) != 0)
|
||||
+ if (luaL_dofile(S, file) != 0)
|
||||
sleep(3); /* Let some time to see error messages. */
|
||||
lua_settop(S, oldtop);
|
||||
}
|
||||
@@ -670,13 +671,9 @@ do_hooks_file(LS, unsigned char *prefix, unsigned char *filename)
|
||||
void
|
||||
init_lua(struct module *module)
|
||||
{
|
||||
- L = lua_open();
|
||||
+ L = luaL_newstate();
|
||||
|
||||
- luaopen_base(L);
|
||||
- luaopen_table(L);
|
||||
- luaopen_io(L);
|
||||
- luaopen_string(L);
|
||||
- luaopen_math(L);
|
||||
+ luaL_openlibs(L);
|
||||
|
||||
lua_register(L, LUA_ALERT, l_alert);
|
||||
lua_register(L, "current_url", l_current_url);
|
||||
@@ -781,7 +778,7 @@ handle_ret_eval(struct session *ses)
|
||||
int oldtop = lua_gettop(L);
|
||||
|
||||
if (prepare_lua(ses) == 0) {
|
||||
- lua_dostring(L, expr);
|
||||
+ luaL_dostring(L, expr);
|
||||
lua_settop(L, oldtop);
|
||||
finish_lua();
|
||||
}
|
||||
diff --git a/src/scripting/lua/hooks.c b/src/scripting/lua/hooks.c
|
||||
index d79ad80..49b6414 100644
|
||||
--- a/src/scripting/lua/hooks.c
|
||||
+++ b/src/scripting/lua/hooks.c
|
||||
@@ -4,6 +4,10 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
+#include <lauxlib.h>
|
||||
+#include <lua.h>
|
||||
+#include <lualib.h>
|
||||
+
|
||||
#include "elinks.h"
|
||||
|
||||
#include "cache/cache.h"
|
||||
@@ -200,7 +204,7 @@ static enum evhook_status
|
||||
script_hook_quit(va_list ap, void *data)
|
||||
{
|
||||
if (!prepare_lua(NULL)) {
|
||||
- lua_dostring(lua_state, "if quit_hook then quit_hook() end");
|
||||
+ luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
|
||||
finish_lua();
|
||||
}
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
From d83c0edf4c6ae42359ff856d7a879ecba5769595 Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Fri, 17 Feb 2017 16:51:41 +0100
|
||||
Subject: [PATCH 1/2] fix compatibility with OpenSSL 1.1
|
||||
|
||||
---
|
||||
src/network/ssl/socket.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c
|
||||
index c9e2be4..467fc48 100644
|
||||
--- a/src/network/ssl/socket.c
|
||||
+++ b/src/network/ssl/socket.c
|
||||
@@ -83,7 +83,7 @@ static void
|
||||
ssl_set_no_tls(struct socket *socket)
|
||||
{
|
||||
#ifdef CONFIG_OPENSSL
|
||||
- ((ssl_t *) socket->ssl)->options |= SSL_OP_NO_TLSv1;
|
||||
+ SSL_set_options((ssl_t *) socket->ssl, SSL_OP_NO_TLSv1);
|
||||
#elif defined(CONFIG_GNUTLS)
|
||||
{
|
||||
/* GnuTLS does not support SSLv2 because it is "insecure".
|
||||
@@ -419,7 +419,7 @@ ssl_connect(struct socket *socket)
|
||||
}
|
||||
|
||||
if (client_cert) {
|
||||
- SSL_CTX *ctx = ((SSL *) socket->ssl)->ctx;
|
||||
+ SSL_CTX *ctx = SSL_get_SSL_CTX((SSL *) socket->ssl);
|
||||
|
||||
SSL_CTX_use_certificate_chain_file(ctx, client_cert);
|
||||
SSL_CTX_use_PrivateKey_file(ctx, client_cert,
|
||||
--
|
||||
2.7.4
|
||||
|
||||
|
||||
From ec952cc5b79973bee73fcfc813159d40c22b7228 Mon Sep 17 00:00:00 2001
|
||||
From: Tomas Mraz <tmraz@fedoraproject.org>
|
||||
Date: Fri, 17 Feb 2017 16:44:11 +0100
|
||||
Subject: [PATCH 2/2] drop disablement of TLS1.0 on second attempt to connect
|
||||
|
||||
It would not work correctly anyway and the code does not build
|
||||
with OpenSSL-1.1.0.
|
||||
---
|
||||
src/network/ssl/socket.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c
|
||||
index 467fc48..b981c1e 100644
|
||||
--- a/src/network/ssl/socket.c
|
||||
+++ b/src/network/ssl/socket.c
|
||||
@@ -82,6 +82,11 @@
|
||||
static void
|
||||
ssl_set_no_tls(struct socket *socket)
|
||||
{
|
||||
+#if 0
|
||||
+/* This implements the insecure renegotiation, which should not be used.
|
||||
+ * The code also would not work on current Fedora (>= Fedora 23) anyway,
|
||||
+ * because it would just switch off TLS 1.0 keeping TLS 1.1 and 1.2 enabled.
|
||||
+ */
|
||||
#ifdef CONFIG_OPENSSL
|
||||
SSL_set_options((ssl_t *) socket->ssl, SSL_OP_NO_TLSv1);
|
||||
#elif defined(CONFIG_GNUTLS)
|
||||
@@ -96,6 +101,7 @@ ssl_set_no_tls(struct socket *socket)
|
||||
gnutls_protocol_set_priority(*(ssl_t *) socket->ssl, protocol_priority);
|
||||
}
|
||||
#endif
|
||||
+#endif
|
||||
}
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
From a73e1ecfbfbc42bfc4798a98a4afd90bd35eb7f0 Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Fri, 17 Feb 2017 16:21:48 +0100
|
||||
Subject: [PATCH] configure.in: recognize recent versions of GCC
|
||||
|
||||
---
|
||||
configure.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 6bcfeec..28c685d 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1588,7 +1588,7 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
|
||||
# alternative is just too ugly. Thanks gcc guys!! ;)
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||
;;
|
||||
- 4.*)
|
||||
+ 4.*|5.*|6.*|7)
|
||||
# Do not show warnings related to (char * | unsigned char *) type
|
||||
# difference.
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing -Wno-pointer-sign"
|
||||
--
|
||||
2.11.1
|
||||
|
|
@ -1,974 +0,0 @@
|
|||
From 30d96f81dbefffd3f1523256cc5a5328ea1c7ecb Mon Sep 17 00:00:00 2001
|
||||
From: Kalle Olavi Niemitalo <kon@iki.fi>
|
||||
Date: Mon, 2 May 2011 14:41:40 +0300
|
||||
Subject: [PATCH 1/4] 1024: Use RFC 3546 server_name TLS extension
|
||||
|
||||
For both GnuTLS and OpenSSL. Not tested with nss-compat-openssl.
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
src/network/ssl/socket.c | 19 ++++++++++++++++++-
|
||||
src/network/ssl/ssl.c | 29 ++++++++++++++++++++++++-----
|
||||
src/network/ssl/ssl.h | 14 ++++++++++++--
|
||||
3 files changed, 54 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c
|
||||
index 45b4b4a..dc682d0 100644
|
||||
--- a/src/network/ssl/socket.c
|
||||
+++ b/src/network/ssl/socket.c
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "network/socket.h"
|
||||
#include "network/ssl/socket.h"
|
||||
#include "network/ssl/ssl.h"
|
||||
+#include "protocol/uri.h"
|
||||
#include "util/memory.h"
|
||||
|
||||
|
||||
@@ -117,12 +118,28 @@ int
|
||||
ssl_connect(struct socket *socket)
|
||||
{
|
||||
int ret;
|
||||
+ unsigned char *server_name;
|
||||
+ struct connection *conn = socket->conn;
|
||||
|
||||
- if (init_ssl_connection(socket) == S_SSL_ERROR) {
|
||||
+ /* TODO: Recode server_name to UTF-8. */
|
||||
+ server_name = get_uri_string(conn->proxied_uri, URI_HOST);
|
||||
+ if (!server_name) {
|
||||
+ socket->ops->done(socket, connection_state(S_OUT_OF_MEM));
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ /* RFC 3546 says literal IPv4 and IPv6 addresses are not allowed. */
|
||||
+ if (is_ip_address(server_name, strlen(server_name)))
|
||||
+ mem_free_set(&server_name, NULL);
|
||||
+
|
||||
+ if (init_ssl_connection(socket, server_name) == S_SSL_ERROR) {
|
||||
+ mem_free_if(server_name);
|
||||
socket->ops->done(socket, connection_state(S_SSL_ERROR));
|
||||
return -1;
|
||||
}
|
||||
|
||||
+ mem_free_if(server_name);
|
||||
+
|
||||
if (socket->no_tls)
|
||||
ssl_set_no_tls(socket);
|
||||
|
||||
diff --git a/src/network/ssl/ssl.c b/src/network/ssl/ssl.c
|
||||
index 685c31e..7767a71 100644
|
||||
--- a/src/network/ssl/ssl.c
|
||||
+++ b/src/network/ssl/ssl.c
|
||||
@@ -212,13 +212,26 @@ struct module ssl_module = struct_module(
|
||||
);
|
||||
|
||||
int
|
||||
-init_ssl_connection(struct socket *socket)
|
||||
+init_ssl_connection(struct socket *socket,
|
||||
+ const unsigned char *server_name)
|
||||
{
|
||||
#ifdef CONFIG_OPENSSL
|
||||
socket->ssl = SSL_new(context);
|
||||
if (!socket->ssl) return S_SSL_ERROR;
|
||||
+
|
||||
+ /* If the server name is known, pass it to OpenSSL.
|
||||
+ *
|
||||
+ * The return value of SSL_set_tlsext_host_name is not
|
||||
+ * documented. The source shows that it returns 1 if
|
||||
+ * successful; on error, it calls SSLerr and returns 0. */
|
||||
+ if (server_name
|
||||
+ && !SSL_set_tlsext_host_name(socket->ssl, server_name)) {
|
||||
+ SSL_free(socket->ssl);
|
||||
+ socket->ssl = NULL;
|
||||
+ return S_SSL_ERROR;
|
||||
+ }
|
||||
+
|
||||
#elif defined(CONFIG_GNUTLS)
|
||||
- /* const unsigned char server_name[] = "localhost"; */
|
||||
ssl_t *state = mem_alloc(sizeof(ssl_t));
|
||||
|
||||
if (!state) return S_SSL_ERROR;
|
||||
@@ -255,9 +268,15 @@ init_ssl_connection(struct socket *socket)
|
||||
/* gnutls_handshake_set_private_extensions(*state, 1); */
|
||||
gnutls_cipher_set_priority(*state, cipher_priority);
|
||||
gnutls_kx_set_priority(*state, kx_priority);
|
||||
- /* gnutls_certificate_type_set_priority(*state, cert_type_priority);
|
||||
- gnutls_server_name_set(*state, GNUTLS_NAME_DNS, server_name,
|
||||
- sizeof(server_name) - 1); */
|
||||
+ /* gnutls_certificate_type_set_priority(*state, cert_type_priority); */
|
||||
+
|
||||
+ if (server_name
|
||||
+ && gnutls_server_name_set(*state, GNUTLS_NAME_DNS, server_name,
|
||||
+ strlen(server_name))) {
|
||||
+ gnutls_deinit(*state);
|
||||
+ mem_free(state);
|
||||
+ return S_SSL_ERROR;
|
||||
+ }
|
||||
|
||||
socket->ssl = state;
|
||||
#endif
|
||||
diff --git a/src/network/ssl/ssl.h b/src/network/ssl/ssl.h
|
||||
index 7c54a7a..bfd94e1 100644
|
||||
--- a/src/network/ssl/ssl.h
|
||||
+++ b/src/network/ssl/ssl.h
|
||||
@@ -11,8 +11,18 @@ struct socket;
|
||||
extern struct module ssl_module;
|
||||
|
||||
/* Initializes the SSL connection data. Returns S_OK on success and S_SSL_ERROR
|
||||
- * on failure. */
|
||||
-int init_ssl_connection(struct socket *socket);
|
||||
+ * on failure.
|
||||
+ *
|
||||
+ * server_name is the DNS name of the server (in UTF-8), or NULL if
|
||||
+ * ELinks knows only the IP address. ELinks reports that name to the
|
||||
+ * server so that the server can choose the correct certificate if it
|
||||
+ * has multiple virtual hosts on the same IP address. See RFC 3546
|
||||
+ * section 3.1.
|
||||
+ *
|
||||
+ * server_name does not affect how ELinks verifies the certificate
|
||||
+ * after the server has returned it. */
|
||||
+int init_ssl_connection(struct socket *socket,
|
||||
+ const unsigned char *server_name);
|
||||
|
||||
/* Releases the SSL connection data */
|
||||
void done_ssl_connection(struct socket *socket);
|
||||
--
|
||||
2.1.0
|
||||
|
||||
|
||||
From e7484a980572b665747c28aa1376e29a12fb4b19 Mon Sep 17 00:00:00 2001
|
||||
From: Kalle Olavi Niemitalo <kon@iki.fi>
|
||||
Date: Tue, 3 May 2011 03:52:21 +0300
|
||||
Subject: [PATCH 2/4] 1024: Verify server certificate hostname with OpenSSL
|
||||
|
||||
Not tested with nss-compat-ossl.
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
src/network/ssl/Makefile | 7 +-
|
||||
src/network/ssl/match-hostname.c | 125 +++++++++++++++++
|
||||
src/network/ssl/match-hostname.h | 10 ++
|
||||
src/network/ssl/socket.c | 211 ++++++++++++++++++++++++++++-
|
||||
src/network/ssl/ssl.c | 41 +++++-
|
||||
src/network/ssl/ssl.h | 3 +
|
||||
src/network/ssl/test/Makefile | 9 ++
|
||||
src/network/ssl/test/match-hostname-test.c | 123 +++++++++++++++++
|
||||
src/network/ssl/test/test-match-hostname | 3 +
|
||||
9 files changed, 529 insertions(+), 3 deletions(-)
|
||||
create mode 100644 src/network/ssl/match-hostname.c
|
||||
create mode 100644 src/network/ssl/match-hostname.h
|
||||
create mode 100644 src/network/ssl/test/Makefile
|
||||
create mode 100644 src/network/ssl/test/match-hostname-test.c
|
||||
create mode 100755 src/network/ssl/test/test-match-hostname
|
||||
|
||||
diff --git a/src/network/ssl/Makefile b/src/network/ssl/Makefile
|
||||
index 26f02c2..6f265da 100644
|
||||
--- a/src/network/ssl/Makefile
|
||||
+++ b/src/network/ssl/Makefile
|
||||
@@ -3,6 +3,11 @@ include $(top_builddir)/Makefile.config
|
||||
|
||||
INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)
|
||||
|
||||
-OBJS = ssl.o socket.o
|
||||
+SUBDIRS = test
|
||||
+
|
||||
+# ELinks uses match-hostname.o only if CONFIG_OPENSSL.
|
||||
+# However, match-hostname.o has test cases that always need it.
|
||||
+# The test framework doesn't seem to support conditional tests.
|
||||
+OBJS = match-hostname.o ssl.o socket.o
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
diff --git a/src/network/ssl/match-hostname.c b/src/network/ssl/match-hostname.c
|
||||
new file mode 100644
|
||||
index 0000000..9a64bb4
|
||||
--- /dev/null
|
||||
+++ b/src/network/ssl/match-hostname.c
|
||||
@@ -0,0 +1,125 @@
|
||||
+/* Matching a host name to wildcards in SSL certificates */
|
||||
+
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include "config.h"
|
||||
+#endif
|
||||
+
|
||||
+#include "elinks.h"
|
||||
+
|
||||
+#include "intl/charsets.h"
|
||||
+#include "network/ssl/match-hostname.h"
|
||||
+#include "util/conv.h"
|
||||
+#include "util/error.h"
|
||||
+#include "util/string.h"
|
||||
+
|
||||
+/** Checks whether a host name matches a pattern that may contain
|
||||
+ * wildcards.
|
||||
+ *
|
||||
+ * @param[in] hostname
|
||||
+ * The host name to which the user wanted to connect.
|
||||
+ * Should be in UTF-8 and need not be null-terminated.
|
||||
+ * @param[in] hostname_length
|
||||
+ * The length of @a hostname, in bytes.
|
||||
+ * @param[in] pattern
|
||||
+ * A pattern that the host name might match.
|
||||
+ * Should be in UTF-8 and need not be null-terminated.
|
||||
+ * The pattern may contain wildcards, as specified in
|
||||
+ * RFC 2818 section 3.1.
|
||||
+ * @param[in] pattern_length
|
||||
+ * The length of @a pattern, in bytes.
|
||||
+ *
|
||||
+ * @return
|
||||
+ * Nonzero if the host name matches. Zero if it doesn't.
|
||||
+ *
|
||||
+ * According to RFC 2818 section 3.1, '*' matches any number of
|
||||
+ * characters except '.'. For example, "*r*.example.org" matches
|
||||
+ * "random.example.org" or "history.example.org" but not
|
||||
+ * "frozen.fruit.example.org".
|
||||
+ *
|
||||
+ * This function does not allocate memory, and consumes at most
|
||||
+ * O(@a hostname_length * @a pattern_length) time. */
|
||||
+int
|
||||
+match_hostname_pattern(const unsigned char *hostname,
|
||||
+ size_t hostname_length,
|
||||
+ const unsigned char *pattern,
|
||||
+ size_t pattern_length)
|
||||
+{
|
||||
+ const unsigned char *const hostname_end = hostname + hostname_length;
|
||||
+ const unsigned char *const pattern_end = pattern + pattern_length;
|
||||
+
|
||||
+ assert(hostname <= hostname_end);
|
||||
+ assert(pattern <= pattern_end);
|
||||
+ if_assert_failed return 0;
|
||||
+
|
||||
+ while (pattern < pattern_end) {
|
||||
+ if (*pattern == '*') {
|
||||
+ const unsigned char *next_wildcard;
|
||||
+ size_t literal_length;
|
||||
+
|
||||
+ ++pattern;
|
||||
+ next_wildcard = memchr(pattern, '*',
|
||||
+ pattern_end - pattern);
|
||||
+ if (next_wildcard == NULL)
|
||||
+ literal_length = pattern_end - pattern;
|
||||
+ else
|
||||
+ literal_length = next_wildcard - pattern;
|
||||
+
|
||||
+ for (;;) {
|
||||
+ size_t hostname_left = hostname_end - hostname;
|
||||
+ unicode_val_T uni;
|
||||
+
|
||||
+ if (hostname_left < literal_length)
|
||||
+ return 0;
|
||||
+
|
||||
+ /* If next_wildcard == NULL, then the
|
||||
+ * literal string is at the end of the
|
||||
+ * pattern, so anchor the match to the
|
||||
+ * end of the hostname. The end of
|
||||
+ * this function can then easily
|
||||
+ * verify that the whole hostname was
|
||||
+ * matched.
|
||||
+ *
|
||||
+ * But do not jump directly there;
|
||||
+ * first verify that there are no '.'
|
||||
+ * characters in between. */
|
||||
+ if ((next_wildcard != NULL
|
||||
+ || hostname_left == literal_length)
|
||||
+ && !c_strlcasecmp(pattern, literal_length,
|
||||
+ hostname, literal_length))
|
||||
+ break;
|
||||
+
|
||||
+ /* The literal string doesn't match here.
|
||||
+ * Skip one character of the hostname and
|
||||
+ * retry. If the skipped character is '.'
|
||||
+ * or one of the equivalent characters
|
||||
+ * listed in RFC 3490 section 3.1
|
||||
+ * requirement 1, then return 0, because
|
||||
+ * '*' must not match such characters.
|
||||
+ * Do the same if invalid UTF-8 is found.
|
||||
+ * Cast away const. */
|
||||
+ uni = utf8_to_unicode((unsigned char **) hostname,
|
||||
+ hostname_end);
|
||||
+ if (uni == 0x002E
|
||||
+ || uni == 0x3002
|
||||
+ || uni == 0xFF0E
|
||||
+ || uni == 0xFF61
|
||||
+ || uni == UCS_NO_CHAR)
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ pattern += literal_length;
|
||||
+ hostname += literal_length;
|
||||
+ } else {
|
||||
+ if (hostname == hostname_end)
|
||||
+ return 0;
|
||||
+
|
||||
+ if (c_toupper(*pattern) != c_toupper(*hostname))
|
||||
+ return 0;
|
||||
+
|
||||
+ ++pattern;
|
||||
+ ++hostname;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return hostname == hostname_end;
|
||||
+}
|
||||
diff --git a/src/network/ssl/match-hostname.h b/src/network/ssl/match-hostname.h
|
||||
new file mode 100644
|
||||
index 0000000..60d32b2
|
||||
--- /dev/null
|
||||
+++ b/src/network/ssl/match-hostname.h
|
||||
@@ -0,0 +1,10 @@
|
||||
+
|
||||
+#ifndef EL__NETWORK_SSL_MATCH_HOSTNAME_H
|
||||
+#define EL__NETWORK_SSL_MATCH_HOSTNAME_H
|
||||
+
|
||||
+int match_hostname_pattern(const unsigned char *hostname,
|
||||
+ size_t hostname_length,
|
||||
+ const unsigned char *pattern,
|
||||
+ size_t pattern_length);
|
||||
+
|
||||
+#endif
|
||||
diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c
|
||||
index dc682d0..a67bbde 100644
|
||||
--- a/src/network/ssl/socket.c
|
||||
+++ b/src/network/ssl/socket.c
|
||||
@@ -6,13 +6,24 @@
|
||||
|
||||
#ifdef CONFIG_OPENSSL
|
||||
#include <openssl/ssl.h>
|
||||
+#include <openssl/x509v3.h>
|
||||
+#define USE_OPENSSL
|
||||
+#elif defined(CONFIG_NSS_COMPAT_OSSL)
|
||||
+#include <nss_compat_ossl/nss_compat_ossl.h>
|
||||
+#define USE_OPENSSL
|
||||
#elif defined(CONFIG_GNUTLS)
|
||||
#include <gnutls/gnutls.h>
|
||||
#else
|
||||
#error "Huh?! You have SSL enabled, but not OPENSSL nor GNUTLS!! And then you want exactly *what* from me?"
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_ARPA_INET_H
|
||||
+#include <arpa/inet.h>
|
||||
+#endif
|
||||
#include <errno.h>
|
||||
+#ifdef HAVE_NETINET_IN_H
|
||||
+#include <netinet/in.h>
|
||||
+#endif
|
||||
|
||||
#include "elinks.h"
|
||||
|
||||
@@ -20,6 +31,7 @@
|
||||
#include "main/select.h"
|
||||
#include "network/connection.h"
|
||||
#include "network/socket.h"
|
||||
+#include "network/ssl/match-hostname.h"
|
||||
#include "network/ssl/socket.h"
|
||||
#include "network/ssl/ssl.h"
|
||||
#include "protocol/uri.h"
|
||||
@@ -83,6 +95,203 @@ ssl_set_no_tls(struct socket *socket)
|
||||
#endif
|
||||
}
|
||||
|
||||
+#ifdef USE_OPENSSL
|
||||
+
|
||||
+/** Checks whether the host component of a URI matches a host name in
|
||||
+ * the server certificate.
|
||||
+ *
|
||||
+ * @param[in] uri_host
|
||||
+ * The host name (or IP address) to which the user wanted to connect.
|
||||
+ * Should be in UTF-8.
|
||||
+ * @param[in] cert_host_asn1
|
||||
+ * A host name found in the server certificate: either as commonName
|
||||
+ * in the subject field, or as a dNSName in the subjectAltName
|
||||
+ * extension. This may contain wildcards, as specified in RFC 2818
|
||||
+ * section 3.1.
|
||||
+ *
|
||||
+ * @return
|
||||
+ * Nonzero if the host matches. Zero if it doesn't, or on error.
|
||||
+ *
|
||||
+ * If @a uri_host is an IP address literal rather than a host name,
|
||||
+ * then this function returns 0, meaning that the host name does not match.
|
||||
+ * According to RFC 2818, if the certificate is intended to match an
|
||||
+ * IP address, then it must have that IP address as an iPAddress
|
||||
+ * SubjectAltName, rather than in commonName. For comparing those,
|
||||
+ * match_uri_host_ip() must be used instead of this function. */
|
||||
+static int
|
||||
+match_uri_host_name(const unsigned char *uri_host,
|
||||
+ ASN1_STRING *cert_host_asn1)
|
||||
+{
|
||||
+ const size_t uri_host_len = strlen(uri_host);
|
||||
+ unsigned char *cert_host = NULL;
|
||||
+ int cert_host_len;
|
||||
+ int matched = 0;
|
||||
+
|
||||
+ if (is_ip_address(uri_host, uri_host_len))
|
||||
+ goto mismatch;
|
||||
+
|
||||
+ /* This function is used for both dNSName and commonName.
|
||||
+ * Although dNSName is always an IA5 string, commonName allows
|
||||
+ * many other encodings too. Normalize all to UTF-8. */
|
||||
+ cert_host_len = ASN1_STRING_to_UTF8(&cert_host,
|
||||
+ cert_host_asn1);
|
||||
+ if (cert_host_len < 0)
|
||||
+ goto mismatch;
|
||||
+
|
||||
+ matched = match_hostname_pattern(uri_host, uri_host_len,
|
||||
+ cert_host, cert_host_len);
|
||||
+
|
||||
+mismatch:
|
||||
+ if (cert_host)
|
||||
+ OPENSSL_free(cert_host);
|
||||
+ return matched;
|
||||
+}
|
||||
+
|
||||
+/** Checks whether the host component of a URI matches an IP address
|
||||
+ * in the server certificate.
|
||||
+ *
|
||||
+ * @param[in] uri_host
|
||||
+ * The IP address (or host name) to which the user wanted to connect.
|
||||
+ * Should be in UTF-8.
|
||||
+ * @param[in] cert_host_asn1
|
||||
+ * An IP address found as iPAddress in the subjectAltName extension
|
||||
+ * of the server certificate. According to RFC 5280 section 4.2.1.6,
|
||||
+ * that is an octet string in network byte order. According to
|
||||
+ * RFC 2818 section 3.1, wildcards are not allowed.
|
||||
+ *
|
||||
+ * @return
|
||||
+ * Nonzero if the host matches. Zero if it doesn't, or on error.
|
||||
+ *
|
||||
+ * If @a uri_host is a host name rather than an IP address literal,
|
||||
+ * then this function returns 0, meaning that the address does not match.
|
||||
+ * This function does not try to resolve the host name to an IP address
|
||||
+ * and compare that to @a cert_host_asn1, because such an approach would
|
||||
+ * be vulnerable to DNS spoofing.
|
||||
+ *
|
||||
+ * This function does not support the address-and-netmask format used
|
||||
+ * in the name constraints extension of a CA certificate (RFC 5280
|
||||
+ * section 4.2.1.10). */
|
||||
+static int
|
||||
+match_uri_host_ip(const unsigned char *uri_host,
|
||||
+ ASN1_OCTET_STRING *cert_host_asn1)
|
||||
+{
|
||||
+ const unsigned char *cert_host_addr = ASN1_STRING_data(cert_host_asn1);
|
||||
+ struct in_addr uri_host_in;
|
||||
+#ifdef CONFIG_IPV6
|
||||
+ struct in6_addr uri_host_in6;
|
||||
+#endif
|
||||
+
|
||||
+ /* RFC 5280 defines the iPAddress alternative of GeneralName
|
||||
+ * as an OCTET STRING. Verify that the type is indeed that.
|
||||
+ * This is an assertion because, if someone puts the wrong
|
||||
+ * type of data there, then it will not even be recognized as
|
||||
+ * an iPAddress, and this function will not be called.
|
||||
+ *
|
||||
+ * (Because GeneralName is defined in an implicitly tagged
|
||||
+ * ASN.1 module, the OCTET STRING tag is not part of the DER
|
||||
+ * encoding. BER also allows a constructed encoding where
|
||||
+ * each substring begins with the OCTET STRING tag; but ITU-T
|
||||
+ * Rec. X.690 (07/2002) subclause 8.21 says those would be
|
||||
+ * OCTET STRING even if the outer string were of some other
|
||||
+ * type. "A Layman's Guide to a Subset of ASN.1, BER, and
|
||||
+ * DER" (Kaliski, 1993) claims otherwise, though.) */
|
||||
+ assert(ASN1_STRING_type(cert_host_asn1) == V_ASN1_OCTET_STRING);
|
||||
+ if_assert_failed return 0;
|
||||
+
|
||||
+ /* cert_host_addr, url_host_in, and url_host_in6 are all in
|
||||
+ * network byte order. */
|
||||
+ switch (ASN1_STRING_length(cert_host_asn1)) {
|
||||
+ case 4:
|
||||
+ return inet_aton(uri_host, &uri_host_in) != 0
|
||||
+ && memcmp(cert_host_addr, &uri_host_in.s_addr, 4) == 0;
|
||||
+
|
||||
+#ifdef CONFIG_IPV6
|
||||
+ case 16:
|
||||
+ return inet_pton(AF_INET6, uri_host, &uri_host_in6) == 1
|
||||
+ && memcmp(cert_host_addr, &uri_host_in6.s6_addr, 16) == 0;
|
||||
+#endif
|
||||
+
|
||||
+ default:
|
||||
+ return 0;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+/** Verify one certificate in the server certificate chain.
|
||||
+ * This callback is documented in SSL_set_verify(3). */
|
||||
+static int
|
||||
+verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
+{
|
||||
+ X509 *cert;
|
||||
+ SSL *ssl;
|
||||
+ struct socket *socket;
|
||||
+ struct connection *conn;
|
||||
+ unsigned char *host_in_uri;
|
||||
+ GENERAL_NAMES *alts;
|
||||
+ int saw_dns_name = 0;
|
||||
+ int matched = 0;
|
||||
+
|
||||
+ /* If OpenSSL already found a problem, keep that. */
|
||||
+ if (!preverify_ok)
|
||||
+ return 0;
|
||||
+
|
||||
+ /* Examine only the server certificate, not CA certificates. */
|
||||
+ if (X509_STORE_CTX_get_error_depth(ctx) != 0)
|
||||
+ return preverify_ok;
|
||||
+
|
||||
+ cert = X509_STORE_CTX_get_current_cert(ctx);
|
||||
+ ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
|
||||
+ socket = SSL_get_ex_data(ssl, socket_SSL_ex_data_idx);
|
||||
+ conn = socket->conn;
|
||||
+ host_in_uri = get_uri_string(conn->uri, URI_HOST | URI_IDN);
|
||||
+ if (!host_in_uri)
|
||||
+ return 0;
|
||||
+
|
||||
+ /* RFC 5280 section 4.2.1.6 describes the subjectAltName extension.
|
||||
+ * RFC 2818 section 3.1 says Common Name must not be used
|
||||
+ * if dNSName is present. */
|
||||
+ alts = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL);
|
||||
+ if (alts != NULL) {
|
||||
+ int alt_count;
|
||||
+ int alt_pos;
|
||||
+ GENERAL_NAME *alt;
|
||||
+
|
||||
+ alt_count = sk_GENERAL_NAME_num(alts);
|
||||
+ for (alt_pos = 0; !matched && alt_pos < alt_count; ++alt_pos) {
|
||||
+ alt = sk_GENERAL_NAME_value(alts, alt_pos);
|
||||
+ if (alt->type == GEN_DNS) {
|
||||
+ saw_dns_name = 1;
|
||||
+ matched = match_uri_host_name(host_in_uri,
|
||||
+ alt->d.dNSName);
|
||||
+ } else if (alt->type == GEN_IPADD) {
|
||||
+ matched = match_uri_host_ip(host_in_uri,
|
||||
+ alt->d.iPAddress);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /* Free the GENERAL_NAMES list and each element. */
|
||||
+ sk_GENERAL_NAME_pop_free(alts, GENERAL_NAME_free);
|
||||
+ }
|
||||
+
|
||||
+ if (!matched && !saw_dns_name) {
|
||||
+ X509_NAME *name;
|
||||
+ int cn_index;
|
||||
+ X509_NAME_ENTRY *entry = NULL;
|
||||
+
|
||||
+ name = X509_get_subject_name(cert);
|
||||
+ cn_index = X509_NAME_get_index_by_NID(name, NID_commonName, -1);
|
||||
+ if (cn_index >= 0)
|
||||
+ entry = X509_NAME_get_entry(name, cn_index);
|
||||
+ if (entry != NULL)
|
||||
+ matched = match_uri_host_name(host_in_uri,
|
||||
+ X509_NAME_ENTRY_get_data(entry));
|
||||
+ }
|
||||
+
|
||||
+ mem_free(host_in_uri);
|
||||
+ return matched;
|
||||
+}
|
||||
+
|
||||
+#endif /* USE_OPENSSL */
|
||||
+
|
||||
static void
|
||||
ssl_want_read(struct socket *socket)
|
||||
{
|
||||
@@ -149,7 +358,7 @@ ssl_connect(struct socket *socket)
|
||||
if (get_opt_bool("connection.ssl.cert_verify"))
|
||||
SSL_set_verify(socket->ssl, SSL_VERIFY_PEER
|
||||
| SSL_VERIFY_FAIL_IF_NO_PEER_CERT,
|
||||
- NULL);
|
||||
+ verify_callback);
|
||||
|
||||
if (get_opt_bool("connection.ssl.client_cert.enable")) {
|
||||
unsigned char *client_cert;
|
||||
diff --git a/src/network/ssl/ssl.c b/src/network/ssl/ssl.c
|
||||
index 7767a71..d1881c8 100644
|
||||
--- a/src/network/ssl/ssl.c
|
||||
+++ b/src/network/ssl/ssl.c
|
||||
@@ -39,7 +39,35 @@
|
||||
#define PATH_MAX 256 /* according to my /usr/include/bits/posix1_lim.h */
|
||||
#endif
|
||||
|
||||
-SSL_CTX *context = NULL;
|
||||
+static SSL_CTX *context = NULL;
|
||||
+int socket_SSL_ex_data_idx = -1;
|
||||
+
|
||||
+/** Prevent SSL_dup() if the SSL is associated with struct socket.
|
||||
+ * We cannot copy struct socket and it doesn't have a reference count
|
||||
+ * either. */
|
||||
+static int
|
||||
+socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from,
|
||||
+ void *from_d, int idx, long argl, void *argp)
|
||||
+{
|
||||
+ /* The documentation of from_d in RSA_get_ex_new_index(3)
|
||||
+ * is a bit unclear. The caller does something like:
|
||||
+ *
|
||||
+ * void *data = CRYPTO_get_ex_data(from, idx);
|
||||
+ * socket_SSL_dup(to, from, &data, idx, argl, argp);
|
||||
+ * CRYPTO_set_ex_data(to, idx, data);
|
||||
+ *
|
||||
+ * i.e., from_d always points to a pointer, even though
|
||||
+ * it is just a void * in the prototype. */
|
||||
+ struct socket *socket = *(void **) from_d;
|
||||
+
|
||||
+ assert(idx == socket_SSL_ex_data_idx);
|
||||
+ if_assert_failed return 0;
|
||||
+
|
||||
+ if (socket)
|
||||
+ return 0; /* prevent SSL_dup() */
|
||||
+ else
|
||||
+ return 1; /* allow SSL_dup() */
|
||||
+}
|
||||
|
||||
static void
|
||||
init_openssl(struct module *module)
|
||||
@@ -48,12 +76,17 @@ init_openssl(struct module *module)
|
||||
context = SSL_CTX_new(SSLv23_client_method());
|
||||
SSL_CTX_set_options(context, SSL_OP_ALL);
|
||||
SSL_CTX_set_default_verify_paths(context);
|
||||
+ socket_SSL_ex_data_idx = SSL_get_ex_new_index(0, NULL,
|
||||
+ NULL,
|
||||
+ socket_SSL_ex_data_dup,
|
||||
+ NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
done_openssl(struct module *module)
|
||||
{
|
||||
if (context) SSL_CTX_free(context);
|
||||
+ /* There is no function that undoes SSL_get_ex_new_index. */
|
||||
}
|
||||
|
||||
static union option_info openssl_options[] = {
|
||||
@@ -219,6 +252,12 @@ init_ssl_connection(struct socket *socket,
|
||||
socket->ssl = SSL_new(context);
|
||||
if (!socket->ssl) return S_SSL_ERROR;
|
||||
|
||||
+ if (!SSL_set_ex_data(socket->ssl, socket_SSL_ex_data_idx, socket)) {
|
||||
+ SSL_free(socket->ssl);
|
||||
+ socket->ssl = NULL;
|
||||
+ return S_SSL_ERROR;
|
||||
+ }
|
||||
+
|
||||
/* If the server name is known, pass it to OpenSSL.
|
||||
*
|
||||
* The return value of SSL_set_tlsext_host_name is not
|
||||
diff --git a/src/network/ssl/ssl.h b/src/network/ssl/ssl.h
|
||||
index bfd94e1..480b4db 100644
|
||||
--- a/src/network/ssl/ssl.h
|
||||
+++ b/src/network/ssl/ssl.h
|
||||
@@ -29,6 +29,9 @@ void done_ssl_connection(struct socket *socket);
|
||||
|
||||
unsigned char *get_ssl_connection_cipher(struct socket *socket);
|
||||
|
||||
+#if defined(CONFIG_OPENSSL) || defined(CONFIG_NSS_COMPAT_OSSL)
|
||||
+extern int socket_SSL_ex_data_idx;
|
||||
+#endif
|
||||
|
||||
/* Internal type used in ssl module. */
|
||||
|
||||
diff --git a/src/network/ssl/test/Makefile b/src/network/ssl/test/Makefile
|
||||
new file mode 100644
|
||||
index 0000000..f2196eb
|
||||
--- /dev/null
|
||||
+++ b/src/network/ssl/test/Makefile
|
||||
@@ -0,0 +1,9 @@
|
||||
+top_builddir=../../../..
|
||||
+include $(top_builddir)/Makefile.config
|
||||
+
|
||||
+SUBDIRS =
|
||||
+TEST_PROGS = match-hostname-test
|
||||
+TESTDEPS += \
|
||||
+ $(top_builddir)/src/network/ssl/match-hostname.o
|
||||
+
|
||||
+include $(top_srcdir)/Makefile.lib
|
||||
diff --git a/src/network/ssl/test/match-hostname-test.c b/src/network/ssl/test/match-hostname-test.c
|
||||
new file mode 100644
|
||||
index 0000000..fbdf6fa
|
||||
--- /dev/null
|
||||
+++ b/src/network/ssl/test/match-hostname-test.c
|
||||
@@ -0,0 +1,123 @@
|
||||
+/* Test match_hostname_pattern() */
|
||||
+
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include "config.h"
|
||||
+#endif
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
+#include "elinks.h"
|
||||
+
|
||||
+#include "network/ssl/match-hostname.h"
|
||||
+#include "util/string.h"
|
||||
+
|
||||
+struct match_hostname_pattern_test_case
|
||||
+{
|
||||
+ const unsigned char *pattern;
|
||||
+ const unsigned char *hostname;
|
||||
+ int match;
|
||||
+};
|
||||
+
|
||||
+static const struct match_hostname_pattern_test_case match_hostname_pattern_test_cases[] = {
|
||||
+ { "*r*.example.org", "random.example.org", 1 },
|
||||
+ { "*r*.example.org", "history.example.org", 1 },
|
||||
+ { "*r*.example.org", "frozen.fruit.example.org", 0 },
|
||||
+ { "*r*.example.org", "steamed.fruit.example.org", 0 },
|
||||
+
|
||||
+ { "ABC.def.Ghi", "abc.DEF.gHI", 1 },
|
||||
+
|
||||
+ { "*", "localhost", 1 },
|
||||
+ { "*", "example.org", 0 },
|
||||
+ { "*.*", "example.org", 1 },
|
||||
+ { "*.*.*", "www.example.org", 1 },
|
||||
+ { "*.*.*", "example.org", 0 },
|
||||
+
|
||||
+ { "assign", "assignee", 0 },
|
||||
+ { "*peg", "arpeggiator", 0 },
|
||||
+ { "*peg*", "arpeggiator", 1 },
|
||||
+ { "*r*gi*", "arpeggiator", 1 },
|
||||
+ { "*r*git*", "arpeggiator", 0 },
|
||||
+
|
||||
+ { NULL, NULL, 0 }
|
||||
+};
|
||||
+
|
||||
+int
|
||||
+main(void)
|
||||
+{
|
||||
+ const struct match_hostname_pattern_test_case *test;
|
||||
+ int count_ok = 0;
|
||||
+ int count_fail = 0;
|
||||
+ struct string hostname_str = NULL_STRING;
|
||||
+ struct string pattern_str = NULL_STRING;
|
||||
+
|
||||
+ if (!init_string(&hostname_str) || !init_string(&pattern_str)) {
|
||||
+ fputs("Out of memory.\n", stderr);
|
||||
+ done_string(&hostname_str);
|
||||
+ done_string(&pattern_str);
|
||||
+ return EXIT_FAILURE;
|
||||
+ }
|
||||
+
|
||||
+ for (test = match_hostname_pattern_test_cases; test->pattern; test++) {
|
||||
+ int match;
|
||||
+
|
||||
+ match = match_hostname_pattern(
|
||||
+ test->hostname,
|
||||
+ strlen(test->hostname),
|
||||
+ test->pattern,
|
||||
+ strlen(test->pattern));
|
||||
+ if (!match == !test->match) {
|
||||
+ /* Test OK */
|
||||
+ count_ok++;
|
||||
+ } else {
|
||||
+ fprintf(stderr, "match_hostname_pattern() test failed\n"
|
||||
+ "\tHostname: %s\n"
|
||||
+ "\tPattern: %s\n"
|
||||
+ "\tActual result: %d\n"
|
||||
+ "\tCorrect result: %d\n",
|
||||
+ test->hostname,
|
||||
+ test->pattern,
|
||||
+ match,
|
||||
+ test->match);
|
||||
+ count_fail++;
|
||||
+ }
|
||||
+
|
||||
+ /* Try with strings that are not null-terminated. */
|
||||
+ hostname_str.length = 0;
|
||||
+ add_to_string(&hostname_str, test->hostname);
|
||||
+ add_to_string(&hostname_str, "ZZZ");
|
||||
+ pattern_str.length = 0;
|
||||
+ add_to_string(&pattern_str, test->pattern);
|
||||
+ add_to_string(&hostname_str, "______");
|
||||
+
|
||||
+ match = match_hostname_pattern(
|
||||
+ hostname_str.source,
|
||||
+ strlen(test->hostname),
|
||||
+ pattern_str.source,
|
||||
+ strlen(test->pattern));
|
||||
+ if (!match == !test->match) {
|
||||
+ /* Test OK */
|
||||
+ count_ok++;
|
||||
+ } else {
|
||||
+ fprintf(stderr, "match_hostname_pattern() test failed\n"
|
||||
+ "\tVariant: Strings were not null-terminated.\n"
|
||||
+ "\tHostname: %s\n"
|
||||
+ "\tPattern: %s\n"
|
||||
+ "\tActual result: %d\n"
|
||||
+ "\tCorrect result: %d\n",
|
||||
+ test->hostname,
|
||||
+ test->pattern,
|
||||
+ match,
|
||||
+ test->match);
|
||||
+ count_fail++;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ printf("Summary of match_hostname_pattern() tests: %d OK, %d failed.\n",
|
||||
+ count_ok, count_fail);
|
||||
+
|
||||
+ done_string(&hostname_str);
|
||||
+ done_string(&pattern_str);
|
||||
+ return count_fail ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
+
|
||||
+}
|
||||
diff --git a/src/network/ssl/test/test-match-hostname b/src/network/ssl/test/test-match-hostname
|
||||
new file mode 100755
|
||||
index 0000000..01d7173
|
||||
--- /dev/null
|
||||
+++ b/src/network/ssl/test/test-match-hostname
|
||||
@@ -0,0 +1,3 @@
|
||||
+#! /bin/sh -e
|
||||
+
|
||||
+./match-hostname-test
|
||||
--
|
||||
2.1.0
|
||||
|
||||
|
||||
From 0cb6967bb9ccabc583bbdc6ee76baf4fdf0f90cc Mon Sep 17 00:00:00 2001
|
||||
From: mancha <mancha@mac.hush.com>
|
||||
Date: Sun, 15 Jul 2012 23:27:53 +0200
|
||||
Subject: [PATCH 3/4] Fix hostname verification code.
|
||||
|
||||
[ From bug 1123 attachment 569. --KON ]
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
src/network/ssl/match-hostname.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/network/ssl/match-hostname.c b/src/network/ssl/match-hostname.c
|
||||
index 9a64bb4..80d93b0 100644
|
||||
--- a/src/network/ssl/match-hostname.c
|
||||
+++ b/src/network/ssl/match-hostname.c
|
||||
@@ -97,7 +97,7 @@ match_hostname_pattern(const unsigned char *hostname,
|
||||
* '*' must not match such characters.
|
||||
* Do the same if invalid UTF-8 is found.
|
||||
* Cast away const. */
|
||||
- uni = utf8_to_unicode((unsigned char **) hostname,
|
||||
+ uni = utf8_to_unicode((unsigned char **) &hostname,
|
||||
hostname_end);
|
||||
if (uni == 0x002E
|
||||
|| uni == 0x3002
|
||||
--
|
||||
2.1.0
|
||||
|
||||
|
||||
From cf8586b0389911d944d767646d5a91c2e1bae86c Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Fri, 5 Jun 2015 17:08:46 +0200
|
||||
Subject: [PATCH 4/4] ssl: use the OpenSSL-provided host name check
|
||||
|
||||
... if built against a new enough version of OpenSSL
|
||||
|
||||
Suggested-by: Christian Heimes
|
||||
---
|
||||
configure.in | 3 +++
|
||||
src/network/ssl/socket.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++-
|
||||
2 files changed, 52 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 91d0257..1d858bd 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1044,6 +1044,9 @@ else
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($cf_result)
|
||||
+if test "$cf_result" = yes; then
|
||||
+ AC_CHECK_FUNCS(X509_VERIFY_PARAM_set1_host)
|
||||
+fi
|
||||
|
||||
# ---- GNU TLS
|
||||
|
||||
diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c
|
||||
index a67bbde..c9e2be4 100644
|
||||
--- a/src/network/ssl/socket.c
|
||||
+++ b/src/network/ssl/socket.c
|
||||
@@ -7,6 +7,9 @@
|
||||
#ifdef CONFIG_OPENSSL
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/x509v3.h>
|
||||
+#ifdef HAVE_X509_VERIFY_PARAM_SET1_HOST
|
||||
+#include <openssl/x509_vfy.h>
|
||||
+#endif
|
||||
#define USE_OPENSSL
|
||||
#elif defined(CONFIG_NSS_COMPAT_OSSL)
|
||||
#include <nss_compat_ossl/nss_compat_ossl.h>
|
||||
@@ -97,6 +100,30 @@ ssl_set_no_tls(struct socket *socket)
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
|
||||
+#ifdef HAVE_X509_VERIFY_PARAM_SET1_HOST
|
||||
+/* activate the OpenSSL-provided host name check */
|
||||
+static int
|
||||
+ossl_set_hostname(void *ssl, unsigned char *server_name)
|
||||
+{
|
||||
+ int ret = -1;
|
||||
+
|
||||
+ X509_VERIFY_PARAM *vpm = X509_VERIFY_PARAM_new();
|
||||
+ if (vpm) {
|
||||
+ if (X509_VERIFY_PARAM_set1_host(vpm, (char *) server_name, 0)
|
||||
+ && SSL_set1_param(ssl, vpm))
|
||||
+ {
|
||||
+ /* successfully activated the OpenSSL host name check */
|
||||
+ ret = 0;
|
||||
+ }
|
||||
+
|
||||
+ X509_VERIFY_PARAM_free(vpm);
|
||||
+ }
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+#else /* HAVE_X509_VERIFY_PARAM_SET1_HOST */
|
||||
+
|
||||
/** Checks whether the host component of a URI matches a host name in
|
||||
* the server certificate.
|
||||
*
|
||||
@@ -289,6 +316,7 @@ verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
mem_free(host_in_uri);
|
||||
return matched;
|
||||
}
|
||||
+#endif /* HAVE_X509_VERIFY_PARAM_SET1_HOST */
|
||||
|
||||
#endif /* USE_OPENSSL */
|
||||
|
||||
@@ -329,6 +357,9 @@ ssl_connect(struct socket *socket)
|
||||
int ret;
|
||||
unsigned char *server_name;
|
||||
struct connection *conn = socket->conn;
|
||||
+#ifdef USE_OPENSSL
|
||||
+ int (*verify_callback_ptr)(int, X509_STORE_CTX *);
|
||||
+#endif /* USE_OPENSSL */
|
||||
|
||||
/* TODO: Recode server_name to UTF-8. */
|
||||
server_name = get_uri_string(conn->proxied_uri, URI_HOST);
|
||||
@@ -347,6 +378,23 @@ ssl_connect(struct socket *socket)
|
||||
return -1;
|
||||
}
|
||||
|
||||
+#ifdef USE_OPENSSL
|
||||
+#ifdef HAVE_X509_VERIFY_PARAM_SET1_HOST
|
||||
+ /* activate the OpenSSL-provided host name check */
|
||||
+ if (ossl_set_hostname(socket->ssl, server_name)) {
|
||||
+ mem_free_if(server_name);
|
||||
+ socket->ops->done(socket, connection_state(S_SSL_ERROR));
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ /* verify_callback() is not needed with X509_VERIFY_PARAM_set1_host() */
|
||||
+ verify_callback_ptr = NULL;
|
||||
+#else
|
||||
+ /* use our own callback implementing the host name check */
|
||||
+ verify_callback_ptr = verify_callback;
|
||||
+#endif
|
||||
+#endif /* USE_OPENSSL */
|
||||
+
|
||||
mem_free_if(server_name);
|
||||
|
||||
if (socket->no_tls)
|
||||
@@ -358,7 +406,7 @@ ssl_connect(struct socket *socket)
|
||||
if (get_opt_bool("connection.ssl.cert_verify"))
|
||||
SSL_set_verify(socket->ssl, SSL_VERIFY_PEER
|
||||
| SSL_VERIFY_FAIL_IF_NO_PEER_CERT,
|
||||
- verify_callback);
|
||||
+ verify_callback_ptr);
|
||||
|
||||
if (get_opt_bool("connection.ssl.client_cert.enable")) {
|
||||
unsigned char *client_cert;
|
||||
--
|
||||
2.4.3
|
||||
|
|
@ -1,197 +0,0 @@
|
|||
From 0bfe44b6e0041210859c91e1589d5dc45c3991de Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Tue, 6 Nov 2018 18:35:19 +0100
|
||||
Subject: [PATCH] elinks: fix programming mistakes detected by static analysis
|
||||
|
||||
---
|
||||
src/bfu/menu.c | 1 +
|
||||
src/bfu/msgbox.c | 1 +
|
||||
src/config/conf.c | 5 ++++-
|
||||
src/dialogs/options.c | 3 ++-
|
||||
src/intl/gettext/loadmsgcat.c | 14 ++++++++++++--
|
||||
src/protocol/ftp/ftp.c | 8 +++++++-
|
||||
src/scripting/lua/core.c | 8 ++++++--
|
||||
src/terminal/event.c | 2 +-
|
||||
src/util/string.c | 2 +-
|
||||
9 files changed, 35 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/src/bfu/menu.c b/src/bfu/menu.c
|
||||
index 74b60d7..07285b7 100644
|
||||
--- a/src/bfu/menu.c
|
||||
+++ b/src/bfu/menu.c
|
||||
@@ -125,6 +125,7 @@ do_menu_selected(struct terminal *term, struct menu_item *items,
|
||||
refresh_hotkeys(term, menu);
|
||||
add_window(term, menu_handler, menu);
|
||||
} else {
|
||||
+ /* FIXME: This will cause BAD_FREE when called from do_setup_menu() */
|
||||
free_menu_items(items);
|
||||
}
|
||||
}
|
||||
diff --git a/src/bfu/msgbox.c b/src/bfu/msgbox.c
|
||||
index d7af62b..f272459 100644
|
||||
--- a/src/bfu/msgbox.c
|
||||
+++ b/src/bfu/msgbox.c
|
||||
@@ -103,6 +103,7 @@ msg_text_do(unsigned char *format, va_list ap)
|
||||
VA_COPY(ap2, ap);
|
||||
|
||||
infolen = vsnprintf(NULL, 0, format, ap2);
|
||||
+ va_end(ap2);
|
||||
info = mem_alloc(infolen + 1);
|
||||
if (!info) return NULL;
|
||||
|
||||
diff --git a/src/config/conf.c b/src/config/conf.c
|
||||
index 12bba7c..e879ea5 100644
|
||||
--- a/src/config/conf.c
|
||||
+++ b/src/config/conf.c
|
||||
@@ -702,7 +702,10 @@ read_config_file(unsigned char *name)
|
||||
if (fd < 0) return NULL;
|
||||
set_bin(fd);
|
||||
|
||||
- if (!init_string(&string)) return NULL;
|
||||
+ if (!init_string(&string)) {
|
||||
+ close(fd);
|
||||
+ return NULL;
|
||||
+ }
|
||||
|
||||
while ((r = safe_read(fd, cfg_buffer, FILE_BUF)) > 0) {
|
||||
int i;
|
||||
diff --git a/src/dialogs/options.c b/src/dialogs/options.c
|
||||
index f40d07d..a3a0a8b 100644
|
||||
--- a/src/dialogs/options.c
|
||||
+++ b/src/dialogs/options.c
|
||||
@@ -125,8 +125,9 @@ push_ok_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
static widget_handler_status_T
|
||||
push_save_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
{
|
||||
+ struct terminal *term = dlg_data->win->term;
|
||||
push_ok_button(dlg_data, button);
|
||||
- write_config(dlg_data->win->term);
|
||||
+ write_config(term);
|
||||
|
||||
return EVENT_PROCESSED;
|
||||
}
|
||||
diff --git a/src/intl/gettext/loadmsgcat.c b/src/intl/gettext/loadmsgcat.c
|
||||
index 0eac283..1be7b2b 100644
|
||||
--- a/src/intl/gettext/loadmsgcat.c
|
||||
+++ b/src/intl/gettext/loadmsgcat.c
|
||||
@@ -312,8 +312,10 @@ source_success:
|
||||
unsigned char *read_ptr;
|
||||
|
||||
data = (struct mo_file_header *) malloc(size);
|
||||
- if (data == NULL)
|
||||
+ if (data == NULL) {
|
||||
+ close(fd);
|
||||
return;
|
||||
+ }
|
||||
|
||||
to_read = size;
|
||||
read_ptr = (unsigned char *) data;
|
||||
@@ -321,6 +323,7 @@ source_success:
|
||||
ssize_t nb = safe_read(fd, read_ptr, to_read);
|
||||
|
||||
if (nb <= 0) {
|
||||
+ free(data);
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
@@ -345,8 +348,15 @@ source_success:
|
||||
}
|
||||
|
||||
domain = (struct loaded_domain *) malloc(sizeof(struct loaded_domain));
|
||||
- if (domain == NULL)
|
||||
+ if (domain == NULL) {
|
||||
+#ifdef LOADMSGCAT_USE_MMAP
|
||||
+ if (use_mmap)
|
||||
+ munmap((void *) data, size);
|
||||
+ else
|
||||
+#endif
|
||||
+ free(data);
|
||||
return;
|
||||
+ }
|
||||
domain_file->data = domain;
|
||||
|
||||
domain->data = (unsigned char *) data;
|
||||
diff --git a/src/protocol/ftp/ftp.c b/src/protocol/ftp/ftp.c
|
||||
index 10c9e28..fe3b7f0 100644
|
||||
--- a/src/protocol/ftp/ftp.c
|
||||
+++ b/src/protocol/ftp/ftp.c
|
||||
@@ -926,11 +926,17 @@ ftp_data_connect(struct connection *conn, int pf, struct sockaddr_storage *sa,
|
||||
}
|
||||
|
||||
fd = socket(pf, SOCK_STREAM, 0);
|
||||
- if (fd < 0 || set_nonblocking_fd(fd) < 0) {
|
||||
+ if (fd < 0) {
|
||||
abort_connection(conn, connection_state(S_FTP_ERROR));
|
||||
return -1;
|
||||
}
|
||||
|
||||
+ if (set_nonblocking_fd(fd) < 0) {
|
||||
+ abort_connection(conn, connection_state(S_FTP_ERROR));
|
||||
+ close(fd);
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
set_ip_tos_throughput(fd);
|
||||
|
||||
conn->data_socket->fd = fd;
|
||||
diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c
|
||||
index 1c4dbbc..f86bf0d 100644
|
||||
--- a/src/scripting/lua/core.c
|
||||
+++ b/src/scripting/lua/core.c
|
||||
@@ -207,12 +207,16 @@ l_pipe_read(LS)
|
||||
if (l > 0) {
|
||||
unsigned char *news = mem_realloc(s, len + l);
|
||||
|
||||
- if (!news) goto lua_error;
|
||||
+ if (!news) {
|
||||
+ pclose(fp);
|
||||
+ goto lua_error;
|
||||
+ }
|
||||
s = news;
|
||||
memcpy(s + len, buf, l);
|
||||
len += l;
|
||||
|
||||
- } else if (l < 0) {
|
||||
+ } else {
|
||||
+ pclose(fp);
|
||||
goto lua_error;
|
||||
}
|
||||
}
|
||||
diff --git a/src/terminal/event.c b/src/terminal/event.c
|
||||
index 9ad90df..d0de6f0 100644
|
||||
--- a/src/terminal/event.c
|
||||
+++ b/src/terminal/event.c
|
||||
@@ -251,13 +251,13 @@ handle_interlink_event(struct terminal *term, struct interlink_event *ilev)
|
||||
/* Either the initialization of the first session failed or we
|
||||
* are doing a remote session so quit.*/
|
||||
if (!decode_session_info(term, info)) {
|
||||
- destroy_terminal(term);
|
||||
/* Make sure the user is notified if the initialization
|
||||
* of the first session fails. */
|
||||
if (program.terminate) {
|
||||
usrerror(_("Failed to create session.", term));
|
||||
program.retval = RET_FATAL;
|
||||
}
|
||||
+ destroy_terminal(term);
|
||||
return 0;
|
||||
}
|
||||
|
||||
diff --git a/src/util/string.c b/src/util/string.c
|
||||
index 604a00d..833fb9b 100644
|
||||
--- a/src/util/string.c
|
||||
+++ b/src/util/string.c
|
||||
@@ -417,10 +417,10 @@ add_file_to_string(struct string *string, const unsigned char *filename)
|
||||
string->length += fread(string->source + string->length, 1,
|
||||
(size_t) filelen, file);
|
||||
string->source[string->length] = 0;
|
||||
- fclose(file);
|
||||
|
||||
if (string->length != newlength) goto err;
|
||||
|
||||
+ fclose(file);
|
||||
return string;
|
||||
|
||||
err:
|
||||
--
|
||||
2.17.2
|
||||
|
|
@ -1,861 +0,0 @@
|
|||
From f513964579f72fc77eea6e0961e49cc8299bf204 Mon Sep 17 00:00:00 2001
|
||||
From: Witold Filipczyk <witekfl@poczta.onet.pl>
|
||||
Date: Sun, 31 Aug 2008 14:23:28 +0200
|
||||
Subject: [PATCH] Use real_box in dialog.c.
|
||||
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
src/bfu/button.c | 32 +++++++++++++-------------
|
||||
src/bfu/button.h | 3 +-
|
||||
src/bfu/checkbox.c | 13 +++++-----
|
||||
src/bfu/checkbox.h | 3 +-
|
||||
src/bfu/dialog.c | 59 ++++++++++++++++++++++++++++++++++-------------
|
||||
src/bfu/dialog.h | 2 +
|
||||
src/bfu/group.c | 18 +++++++-------
|
||||
src/bfu/group.h | 2 +-
|
||||
src/bfu/inpfield.c | 10 ++++----
|
||||
src/bfu/inpfield.h | 2 +-
|
||||
src/bfu/listbox.c | 3 +-
|
||||
src/bfu/listbox.h | 2 +-
|
||||
src/bfu/text.c | 16 +++++++-----
|
||||
src/bfu/text.h | 5 ++-
|
||||
src/dialogs/download.c | 12 +++++-----
|
||||
src/terminal/draw.c | 36 +++++++++++++++++++++++++++++
|
||||
src/terminal/draw.h | 10 ++++++++
|
||||
src/terminal/window.c | 15 ++++++++++++
|
||||
src/terminal/window.h | 2 +
|
||||
19 files changed, 170 insertions(+), 75 deletions(-)
|
||||
|
||||
diff --git a/src/bfu/button.c b/src/bfu/button.c
|
||||
index 8267c94..8e6ac62 100644
|
||||
--- a/src/bfu/button.c
|
||||
+++ b/src/bfu/button.c
|
||||
@@ -115,7 +115,7 @@ buttons_width(struct widget_data *widget_data, int n,
|
||||
}
|
||||
|
||||
void
|
||||
-dlg_format_buttons(struct terminal *term,
|
||||
+dlg_format_buttons(struct terminal *term, struct dialog_data *dlg_data,
|
||||
struct widget_data *widget_data, int n,
|
||||
int x, int *y, int w, int *rw, enum format_align align, int format_only)
|
||||
{
|
||||
@@ -212,7 +212,7 @@ display_button(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
}
|
||||
|
||||
|
||||
- draw_text(term, pos->x, pos->y, BUTTON_LEFT, BUTTON_LEFT_LEN, 0, color);
|
||||
+ draw_text2(term, dlg_data, pos->x, pos->y, BUTTON_LEFT, BUTTON_LEFT_LEN, 0, color);
|
||||
if (len > 0) {
|
||||
unsigned char *text = widget_data->widget->text;
|
||||
int hk_pos = widget_data->widget->info.button.hotkey_pos;
|
||||
@@ -236,15 +236,15 @@ display_button(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
NULL);
|
||||
|
||||
if (hk_pos)
|
||||
- draw_text(term, x, pos->y,
|
||||
+ draw_text2(term, dlg_data, x, pos->y,
|
||||
text, hk_pos, 0, color);
|
||||
|
||||
- draw_text(term, x + cells_to_hk, pos->y,
|
||||
+ draw_text2(term, dlg_data, x + cells_to_hk, pos->y,
|
||||
&text[hk_pos + 1], hk_bytes,
|
||||
attr, shortcut_color);
|
||||
|
||||
if (right > 1)
|
||||
- draw_text(term, x+cells_to_hk+hk_cells,
|
||||
+ draw_text2(term, dlg_data, x+cells_to_hk+hk_cells,
|
||||
pos->y,
|
||||
&text[hk_pos + hk_bytes + 1],
|
||||
right - 1, 0, color);
|
||||
@@ -257,11 +257,11 @@ display_button(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
len - hk_width,
|
||||
NULL);
|
||||
|
||||
- draw_text(term, x, pos->y,
|
||||
+ draw_text2(term, dlg_data, x, pos->y,
|
||||
text, hk_len,
|
||||
attr, shortcut_color);
|
||||
|
||||
- draw_text(term, x + hk_width, pos->y,
|
||||
+ draw_text2(term, dlg_data, x + hk_width, pos->y,
|
||||
&text[hk_len], len_to_display,
|
||||
0, color);
|
||||
}
|
||||
@@ -271,18 +271,18 @@ display_button(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
int right = widget_data->widget->info.button.truetextlen - hk_pos - 1;
|
||||
|
||||
if (hk_pos) {
|
||||
- draw_text(term, x, pos->y, text, hk_pos, 0, color);
|
||||
+ draw_text2(term, dlg_data, x, pos->y, text, hk_pos, 0, color);
|
||||
}
|
||||
- draw_text(term, x + hk_pos, pos->y,
|
||||
+ draw_text2(term, dlg_data, x + hk_pos, pos->y,
|
||||
&text[hk_pos + 1], 1, attr, shortcut_color);
|
||||
if (right > 1) {
|
||||
- draw_text(term, x + hk_pos + 1, pos->y,
|
||||
+ draw_text2(term, dlg_data, x + hk_pos + 1, pos->y,
|
||||
&text[hk_pos + 2], right - 1, 0, color);
|
||||
}
|
||||
|
||||
} else {
|
||||
- draw_text(term, x, pos->y, text, 1, attr, shortcut_color);
|
||||
- draw_text(term, x + 1, pos->y, &text[1], len - 1, 0, color);
|
||||
+ draw_text2(term, dlg_data, x, pos->y, text, 1, attr, shortcut_color);
|
||||
+ draw_text2(term, dlg_data, x + 1, pos->y, &text[1], len - 1, 0, color);
|
||||
}
|
||||
}
|
||||
#ifdef CONFIG_UTF8
|
||||
@@ -290,15 +290,15 @@ display_button(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
int text_cells = utf8_ptr2cells(widget_data->widget->text, NULL);
|
||||
int hk = (widget_data->widget->info.button.hotkey_pos >= 0);
|
||||
|
||||
- draw_text(term, x + text_cells - hk, pos->y,
|
||||
+ draw_text2(term, dlg_data, x + text_cells - hk, pos->y,
|
||||
BUTTON_RIGHT, BUTTON_RIGHT_LEN, 0, color);
|
||||
} else
|
||||
#endif /* CONFIG_UTF8 */
|
||||
- draw_text(term, x + len, pos->y, BUTTON_RIGHT,
|
||||
+ draw_text2(term, dlg_data, x + len, pos->y, BUTTON_RIGHT,
|
||||
BUTTON_RIGHT_LEN, 0, color);
|
||||
if (sel) {
|
||||
- set_cursor(term, x, pos->y, 1);
|
||||
- set_window_ptr(dlg_data->win, pos->x, pos->y);
|
||||
+ set_cursor2(term, dlg_data, x, pos->y, 1);
|
||||
+ set_window_ptr2(dlg_data, dlg_data->win, pos->x, pos->y);
|
||||
}
|
||||
return EVENT_PROCESSED;
|
||||
}
|
||||
diff --git a/src/bfu/button.h b/src/bfu/button.h
|
||||
index e6e907d..de986c8 100644
|
||||
--- a/src/bfu/button.h
|
||||
+++ b/src/bfu/button.h
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "util/align.h"
|
||||
|
||||
struct dialog;
|
||||
+struct dialog_data;
|
||||
struct terminal;
|
||||
struct widget_data;
|
||||
|
||||
@@ -89,6 +90,6 @@ void add_dlg_button_do(struct dialog *dlg, unsigned char *text, int flags, widge
|
||||
#endif
|
||||
|
||||
extern const struct widget_ops button_ops;
|
||||
-void dlg_format_buttons(struct terminal *, struct widget_data *, int, int, int *, int, int *, enum format_align, int);
|
||||
+void dlg_format_buttons(struct terminal *, struct dialog_data *, struct widget_data *, int, int, int *, int, int *, enum format_align, int);
|
||||
|
||||
#endif
|
||||
diff --git a/src/bfu/checkbox.c b/src/bfu/checkbox.c
|
||||
index 7ed97e0..d7c974b 100644
|
||||
--- a/src/bfu/checkbox.c
|
||||
+++ b/src/bfu/checkbox.c
|
||||
@@ -36,7 +36,7 @@ add_dlg_radio_do(struct dialog *dlg, unsigned char *text,
|
||||
}
|
||||
|
||||
void
|
||||
-dlg_format_checkbox(struct terminal *term,
|
||||
+dlg_format_checkbox(struct terminal *term, struct dialog_data *dlg_data,
|
||||
struct widget_data *widget_data,
|
||||
int x, int *y, int w, int *rw,
|
||||
enum format_align align, int format_only)
|
||||
@@ -49,7 +49,7 @@ dlg_format_checkbox(struct terminal *term,
|
||||
|
||||
if (text && *text) {
|
||||
if (rw) *rw -= CHECKBOX_LS;
|
||||
- dlg_format_text_do(term, text, x + CHECKBOX_LS, y,
|
||||
+ dlg_format_text_do(term, dlg_data, text, x + CHECKBOX_LS, y,
|
||||
w - CHECKBOX_LS, rw,
|
||||
get_bfu_color(term, "dialog.checkbox-label"),
|
||||
align, format_only);
|
||||
@@ -78,11 +78,11 @@ display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
else
|
||||
text = widget_data->widget->info.checkbox.gid ? "( )" : "[ ]";
|
||||
|
||||
- draw_text(term, pos->x, pos->y, text, CHECKBOX_LEN, 0, color);
|
||||
+ draw_text2(term, dlg_data, pos->x, pos->y, text, CHECKBOX_LEN, 0, color);
|
||||
|
||||
if (selected) {
|
||||
- set_cursor(term, pos->x + 1, pos->y, 1);
|
||||
- set_window_ptr(dlg_data->win, pos->x, pos->y);
|
||||
+ set_cursor2(term, dlg_data, pos->x + 1, pos->y, 1);
|
||||
+ set_window_ptr2(dlg_data, dlg_data->win, pos->x, pos->y);
|
||||
}
|
||||
|
||||
return EVENT_PROCESSED;
|
||||
@@ -128,7 +128,6 @@ mouse_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
static widget_handler_status_T
|
||||
select_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
{
|
||||
-
|
||||
if (!widget_data->widget->info.checkbox.gid) {
|
||||
/* Checkbox. */
|
||||
int *cdata = (int *) widget_data->cdata;
|
||||
@@ -159,8 +158,8 @@ select_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
}
|
||||
widget_data->info.checkbox.checked = 1;
|
||||
}
|
||||
-
|
||||
display_widget(dlg_data, widget_data);
|
||||
+
|
||||
return EVENT_PROCESSED;
|
||||
}
|
||||
|
||||
diff --git a/src/bfu/checkbox.h b/src/bfu/checkbox.h
|
||||
index 573f1d2..b4e65ce 100644
|
||||
--- a/src/bfu/checkbox.h
|
||||
+++ b/src/bfu/checkbox.h
|
||||
@@ -2,6 +2,7 @@
|
||||
#define EL__BFU_CHECKBOX_H
|
||||
|
||||
struct dialog;
|
||||
+struct dialog_data;
|
||||
struct terminal;
|
||||
struct widget_data;
|
||||
|
||||
@@ -30,7 +31,7 @@ void add_dlg_radio_do(struct dialog *dlg, unsigned char *text, int groupid, int
|
||||
extern const struct widget_ops checkbox_ops;
|
||||
|
||||
void
|
||||
-dlg_format_checkbox(struct terminal *term,
|
||||
+dlg_format_checkbox(struct terminal *term, struct dialog_data *dlg_data,
|
||||
struct widget_data *widget_data,
|
||||
int x, int *y, int w, int *rw,
|
||||
enum format_align align, int format_only);
|
||||
diff --git a/src/bfu/dialog.c b/src/bfu/dialog.c
|
||||
index b2df9f8..414283f 100644
|
||||
--- a/src/bfu/dialog.c
|
||||
+++ b/src/bfu/dialog.c
|
||||
@@ -82,20 +82,18 @@ redraw_dialog(struct dialog_data *dlg_data, int layout)
|
||||
}
|
||||
|
||||
if (!dlg_data->dlg->layout.only_widgets) {
|
||||
- struct box box;
|
||||
-
|
||||
- set_box(&box,
|
||||
+ set_box(&dlg_data->real_box,
|
||||
dlg_data->box.x + (DIALOG_LEFT_BORDER + 1),
|
||||
dlg_data->box.y + (DIALOG_TOP_BORDER + 1),
|
||||
dlg_data->box.width - 2 * (DIALOG_LEFT_BORDER + 1),
|
||||
dlg_data->box.height - 2 * (DIALOG_TOP_BORDER + 1));
|
||||
|
||||
- draw_border(term, &box, get_bfu_color(term, "dialog.frame"), DIALOG_FRAME);
|
||||
+ draw_border(term, &dlg_data->real_box, get_bfu_color(term, "dialog.frame"), DIALOG_FRAME);
|
||||
|
||||
assert(dlg_data->dlg->title);
|
||||
|
||||
title_color = get_bfu_color(term, "dialog.title");
|
||||
- if (title_color && box.width > 2) {
|
||||
+ if (title_color && dlg_data->real_box.width > 2) {
|
||||
unsigned char *title = dlg_data->dlg->title;
|
||||
int titlelen = strlen(title);
|
||||
int titlecells = titlelen;
|
||||
@@ -107,7 +105,7 @@ redraw_dialog(struct dialog_data *dlg_data, int layout)
|
||||
&title[titlelen]);
|
||||
#endif /* CONFIG_UTF8 */
|
||||
|
||||
- titlecells = int_min(box.width - 2, titlecells);
|
||||
+ titlecells = int_min(dlg_data->real_box.width - 2, titlecells);
|
||||
|
||||
#ifdef CONFIG_UTF8
|
||||
if (term->utf8_cp)
|
||||
@@ -115,13 +113,13 @@ redraw_dialog(struct dialog_data *dlg_data, int layout)
|
||||
NULL);
|
||||
#endif /* CONFIG_UTF8 */
|
||||
|
||||
- x = (box.width - titlecells) / 2 + box.x;
|
||||
- y = box.y - 1;
|
||||
+ x = (dlg_data->real_box.width - titlecells) / 2 + dlg_data->real_box.x;
|
||||
+ y = dlg_data->real_box.y - 1;
|
||||
|
||||
|
||||
- draw_text(term, x - 1, y, " ", 1, 0, title_color);
|
||||
- draw_text(term, x, y, title, titlelen, 0, title_color);
|
||||
- draw_text(term, x + titlecells, y, " ", 1, 0,
|
||||
+ draw_text2(term, dlg_data, x - 1, y, " ", 1, 0, title_color);
|
||||
+ draw_text2(term, dlg_data, x, y, title, titlelen, 0, title_color);
|
||||
+ draw_text2(term, dlg_data, x + titlecells, y, " ", 1, 0,
|
||||
title_color);
|
||||
}
|
||||
}
|
||||
@@ -181,6 +179,23 @@ init_widget(struct dialog_data *dlg_data, int i)
|
||||
return widget_data;
|
||||
}
|
||||
|
||||
+static int
|
||||
+check_range(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
+{
|
||||
+ if (!dlg_data->dlg->layout.only_widgets) {
|
||||
+ struct box *box = &widget_data->box;
|
||||
+ struct box *dlgbox = &dlg_data->real_box;
|
||||
+ int y = box->y - dlgbox->y;
|
||||
+
|
||||
+ if ((y < dlg_data->y) || (y >= dlg_data->y + dlgbox->height)) {
|
||||
+ dlg_data->y = y / dlgbox->height * dlgbox->height;
|
||||
+ redraw_dialog(dlg_data, 0);
|
||||
+ return 1;
|
||||
+ }
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
void
|
||||
select_widget(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
{
|
||||
@@ -190,6 +205,9 @@ select_widget(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
|
||||
dlg_data->selected_widget_id = widget_data - dlg_data->widgets_data;
|
||||
|
||||
+ if (check_range(dlg_data, widget_data))
|
||||
+ return;
|
||||
+
|
||||
display_widget(dlg_data, previously_selected_widget);
|
||||
display_widget(dlg_data, widget_data);
|
||||
}
|
||||
@@ -228,6 +246,11 @@ cycle_widget_focus(struct dialog_data *dlg_data, int direction)
|
||||
} while (!widget_is_focusable(selected_widget(dlg_data))
|
||||
&& dlg_data->selected_widget_id != prev_selected);
|
||||
|
||||
+ if (check_range(dlg_data, selected_widget(dlg_data))) {
|
||||
+ redraw_from_window(dlg_data->win);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
display_widget(dlg_data, previously_selected_widget);
|
||||
display_widget(dlg_data, selected_widget(dlg_data));
|
||||
redraw_from_window(dlg_data->win);
|
||||
@@ -238,6 +261,7 @@ dialog_ev_init(struct dialog_data *dlg_data)
|
||||
{
|
||||
int i;
|
||||
|
||||
+ dlg_data->y = 0;
|
||||
/* TODO: foreachback_widget() */
|
||||
for (i = dlg_data->number_of_widgets - 1; i >= 0; i--) {
|
||||
struct widget_data *widget_data;
|
||||
@@ -421,6 +445,7 @@ dialog_ev_abort(struct dialog_data *dlg_data)
|
||||
}
|
||||
|
||||
freeml(dlg_data->ml);
|
||||
+ dlg_data->y = 0;
|
||||
}
|
||||
|
||||
/* TODO: use EVENT_PROCESSED/EVENT_NOT_PROCESSED. */
|
||||
@@ -554,17 +579,17 @@ format_widgets(struct terminal *term, struct dialog_data *dlg_data,
|
||||
switch (wdata->widget->type) {
|
||||
case WIDGET_FIELD_PASS:
|
||||
case WIDGET_FIELD:
|
||||
- dlg_format_field(term, wdata, x, y, w, rw, ALIGN_LEFT,
|
||||
+ dlg_format_field(term, dlg_data, wdata, x, y, w, rw, ALIGN_LEFT,
|
||||
format_only);
|
||||
break;
|
||||
|
||||
case WIDGET_LISTBOX:
|
||||
- dlg_format_listbox(term, wdata, x, y, w, h, rw,
|
||||
+ dlg_format_listbox(term, dlg_data, wdata, x, y, w, h, rw,
|
||||
ALIGN_LEFT, format_only);
|
||||
break;
|
||||
|
||||
case WIDGET_TEXT:
|
||||
- dlg_format_text(term, wdata, x, y, w, rw, h,
|
||||
+ dlg_format_text(term, dlg_data, wdata, x, y, w, rw, h,
|
||||
format_only);
|
||||
break;
|
||||
|
||||
@@ -583,7 +608,7 @@ format_widgets(struct terminal *term, struct dialog_data *dlg_data,
|
||||
break;
|
||||
}
|
||||
|
||||
- dlg_format_group(term, wdata, size, x, y, w, rw,
|
||||
+ dlg_format_group(term, dlg_data, wdata, size, x, y, w, rw,
|
||||
format_only);
|
||||
wdata += size - 1;
|
||||
|
||||
@@ -591,7 +616,7 @@ format_widgets(struct terminal *term, struct dialog_data *dlg_data,
|
||||
|
||||
/* No horizontal space between checkboxes belonging to
|
||||
* the same group. */
|
||||
- dlg_format_checkbox(term, wdata, x, y, w, rw,
|
||||
+ dlg_format_checkbox(term, dlg_data, wdata, x, y, w, rw,
|
||||
ALIGN_LEFT, format_only);
|
||||
if (widgets > 1
|
||||
&& group == widget_has_group(&wdata[1]))
|
||||
@@ -603,7 +628,7 @@ format_widgets(struct terminal *term, struct dialog_data *dlg_data,
|
||||
/* We assume that the buttons are all stuffed at the very end
|
||||
* of the dialog. */
|
||||
case WIDGET_BUTTON:
|
||||
- dlg_format_buttons(term, wdata, widgets,
|
||||
+ dlg_format_buttons(term, dlg_data, wdata, widgets,
|
||||
x, y, w, rw, ALIGN_CENTER, format_only);
|
||||
return;
|
||||
}
|
||||
diff --git a/src/bfu/dialog.h b/src/bfu/dialog.h
|
||||
index b0cde3b..bec914c 100644
|
||||
--- a/src/bfu/dialog.h
|
||||
+++ b/src/bfu/dialog.h
|
||||
@@ -100,6 +100,8 @@ struct dialog_data {
|
||||
struct memory_list *ml;
|
||||
|
||||
struct box box;
|
||||
+ struct box real_box;
|
||||
+ int y;
|
||||
int number_of_widgets;
|
||||
int selected_widget_id;
|
||||
struct term_event *term_event;
|
||||
diff --git a/src/bfu/group.c b/src/bfu/group.c
|
||||
index cc4c6d8..15bd827 100644
|
||||
--- a/src/bfu/group.c
|
||||
+++ b/src/bfu/group.c
|
||||
@@ -20,7 +20,7 @@
|
||||
#define CHECKBOX_LEN 3 /* "[X]" or "(X)" */
|
||||
|
||||
void
|
||||
-dlg_format_group(struct terminal *term,
|
||||
+dlg_format_group(struct terminal *term, struct dialog_data *dlg_data,
|
||||
struct widget_data *widget_data,
|
||||
int n, int x, int *y, int w, int *rw, int format_only)
|
||||
{
|
||||
@@ -87,14 +87,14 @@ dlg_format_group(struct terminal *term,
|
||||
text,
|
||||
label_length,
|
||||
NULL);
|
||||
- draw_text(term, xpos + width
|
||||
+ draw_text2(term, dlg_data, xpos + width
|
||||
+ label_padding,
|
||||
*y, text, lb, 0,
|
||||
color);
|
||||
} else
|
||||
#endif /* CONFIG_UTF8 */
|
||||
{
|
||||
- draw_text(term, xpos + width
|
||||
+ draw_text2(term, dlg_data, xpos + width
|
||||
+ label_padding,
|
||||
*y, text,
|
||||
label_length, 0,
|
||||
@@ -113,12 +113,12 @@ dlg_format_group(struct terminal *term,
|
||||
text,
|
||||
label_length,
|
||||
NULL);
|
||||
- draw_text(term, xpos, *y,
|
||||
+ draw_text2(term, dlg_data, xpos, *y,
|
||||
text, lb, 0, color);
|
||||
} else
|
||||
#endif /* CONFIG_UTF8 */
|
||||
{
|
||||
- draw_text(term, xpos, *y,
|
||||
+ draw_text2(term, dlg_data, xpos, *y,
|
||||
text, label_length,
|
||||
0, color);
|
||||
}
|
||||
@@ -155,11 +155,11 @@ group_layouter(struct dialog_data *dlg_data)
|
||||
#endif /* CONFIG_UTF8 */
|
||||
rw = int_min(w, strlen(dlg_data->dlg->title));
|
||||
|
||||
- dlg_format_group(term, dlg_data->widgets_data, n,
|
||||
+ dlg_format_group(term, dlg_data, dlg_data->widgets_data, n,
|
||||
0, &y, w, &rw, 1);
|
||||
|
||||
y++;
|
||||
- dlg_format_buttons(term, dlg_data->widgets_data + n, 2, 0, &y, w,
|
||||
+ dlg_format_buttons(term, dlg_data, dlg_data->widgets_data + n, 2, 0, &y, w,
|
||||
&rw, ALIGN_CENTER, 1);
|
||||
|
||||
w = rw;
|
||||
@@ -167,10 +167,10 @@ group_layouter(struct dialog_data *dlg_data)
|
||||
draw_dialog(dlg_data, w, y);
|
||||
|
||||
y = dlg_data->box.y + DIALOG_TB + 1;
|
||||
- dlg_format_group(term, dlg_data->widgets_data, n,
|
||||
+ dlg_format_group(term, dlg_data, dlg_data->widgets_data, n,
|
||||
dlg_data->box.x + DIALOG_LB, &y, w, NULL, 0);
|
||||
|
||||
y++;
|
||||
- dlg_format_buttons(term, dlg_data->widgets_data + n, 2,
|
||||
+ dlg_format_buttons(term, dlg_data, dlg_data->widgets_data + n, 2,
|
||||
dlg_data->box.x + DIALOG_LB, &y, w, &rw, ALIGN_CENTER, 0);
|
||||
}
|
||||
diff --git a/src/bfu/group.h b/src/bfu/group.h
|
||||
index 0de645d..9b92c2a 100644
|
||||
--- a/src/bfu/group.h
|
||||
+++ b/src/bfu/group.h
|
||||
@@ -5,7 +5,7 @@ struct dialog_data;
|
||||
struct terminal;
|
||||
struct widget_data;
|
||||
|
||||
-void dlg_format_group(struct terminal *term,
|
||||
+void dlg_format_group(struct terminal *term, struct dialog_data *dlg_data,
|
||||
struct widget_data *widget_data,
|
||||
int n, int x, int *y, int w, int *rw, int format_only);
|
||||
|
||||
diff --git a/src/bfu/inpfield.c b/src/bfu/inpfield.c
|
||||
index 4c0dcd2..0a9c63e 100644
|
||||
--- a/src/bfu/inpfield.c
|
||||
+++ b/src/bfu/inpfield.c
|
||||
@@ -103,7 +103,7 @@ check_nonempty(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
}
|
||||
|
||||
void
|
||||
-dlg_format_field(struct terminal *term,
|
||||
+dlg_format_field(struct terminal *term, struct dialog_data *dlg_data,
|
||||
struct widget_data *widget_data,
|
||||
int x, int *y, int w, int *rw, enum format_align align, int format_only)
|
||||
{
|
||||
@@ -132,7 +132,7 @@ dlg_format_field(struct terminal *term,
|
||||
if (label && *label) {
|
||||
if (!format_only) text_color = get_bfu_color(term, "dialog.text");
|
||||
|
||||
- dlg_format_text_do(term, label, x, y, w, rw, text_color, ALIGN_LEFT, format_only);
|
||||
+ dlg_format_text_do(term, dlg_data, label, x, y, w, rw, text_color, ALIGN_LEFT, format_only);
|
||||
}
|
||||
|
||||
/* XXX: We want the field and label on the same line if the terminal
|
||||
@@ -140,7 +140,7 @@ dlg_format_field(struct terminal *term,
|
||||
if (label && *label && float_label) {
|
||||
if (widget_data->widget->info.field.flags & INPFIELD_FLOAT) {
|
||||
(*y) -= INPUTFIELD_HEIGHT;
|
||||
- dlg_format_text_do(term, INPUTFIELD_FLOAT_SEPARATOR,
|
||||
+ dlg_format_text_do(term, dlg_data, INPUTFIELD_FLOAT_SEPARATOR,
|
||||
x + label_width, y, w, rw,
|
||||
text_color, ALIGN_LEFT, format_only);
|
||||
w -= INPUTFIELD_FLOAT_SEPARATOR_LEN + INPUTFIELD_FLOATLABEL_PADDING;
|
||||
@@ -312,7 +312,7 @@ display_field_do(struct dialog_data *dlg_data, struct widget_data *widget_data,
|
||||
if (term->utf8_cp)
|
||||
w = utf8_cells2bytes(text, w, NULL);
|
||||
#endif /* CONFIG_UTF8 */
|
||||
- draw_text(term, widget_data->box.x, widget_data->box.y,
|
||||
+ draw_text2(term, dlg_data, widget_data->box.x, widget_data->box.y,
|
||||
text, w, 0, color);
|
||||
} else {
|
||||
struct box box;
|
||||
@@ -763,7 +763,7 @@ input_line_layouter(struct dialog_data *dlg_data)
|
||||
- ses->status.show_status_bar
|
||||
- ses->status.show_tabs_bar;
|
||||
|
||||
- dlg_format_field(win->term, dlg_data->widgets_data, 0,
|
||||
+ dlg_format_field(win->term, dlg_data, dlg_data->widgets_data, 0,
|
||||
&y, win->term->width, NULL, ALIGN_LEFT, 0);
|
||||
}
|
||||
|
||||
diff --git a/src/bfu/inpfield.h b/src/bfu/inpfield.h
|
||||
index d45a902..fb2270e 100644
|
||||
--- a/src/bfu/inpfield.h
|
||||
+++ b/src/bfu/inpfield.h
|
||||
@@ -62,7 +62,7 @@ extern const struct widget_ops field_pass_ops;
|
||||
widget_handler_status_T check_number(struct dialog_data *, struct widget_data *);
|
||||
widget_handler_status_T check_nonempty(struct dialog_data *, struct widget_data *);
|
||||
|
||||
-void dlg_format_field(struct terminal *, struct widget_data *, int, int *, int, int *, enum format_align, int format_only);
|
||||
+void dlg_format_field(struct terminal *, struct dialog_data *, struct widget_data *, int, int *, int, int *, enum format_align, int format_only);
|
||||
|
||||
void input_field(struct terminal *, struct memory_list *, int, unsigned char *,
|
||||
unsigned char *, unsigned char *, unsigned char *, void *,
|
||||
diff --git a/src/bfu/listbox.c b/src/bfu/listbox.c
|
||||
index 7ec1b66..e4de12f 100644
|
||||
--- a/src/bfu/listbox.c
|
||||
+++ b/src/bfu/listbox.c
|
||||
@@ -41,7 +41,8 @@ get_listbox_widget_data(struct widget_data *widget_data)
|
||||
|
||||
/* Layout for generic boxes */
|
||||
void
|
||||
-dlg_format_listbox(struct terminal *term, struct widget_data *widget_data,
|
||||
+dlg_format_listbox(struct terminal *term, struct dialog_data *dlg_data,
|
||||
+ struct widget_data *widget_data,
|
||||
int x, int *y, int w, int max_height, int *rw,
|
||||
enum format_align align, int format_only)
|
||||
{
|
||||
diff --git a/src/bfu/listbox.h b/src/bfu/listbox.h
|
||||
index c3599e5..63b8be4 100644
|
||||
--- a/src/bfu/listbox.h
|
||||
+++ b/src/bfu/listbox.h
|
||||
@@ -133,7 +133,7 @@ struct listbox_item {
|
||||
|
||||
extern const struct widget_ops listbox_ops;
|
||||
|
||||
-void dlg_format_listbox(struct terminal *, struct widget_data *, int, int *, int, int, int *, enum format_align, int format_only);
|
||||
+void dlg_format_listbox(struct terminal *, struct dialog_data *, struct widget_data *, int, int *, int, int, int *, enum format_align, int format_only);
|
||||
|
||||
struct listbox_item *traverse_listbox_items_list(struct listbox_item *, struct listbox_data *, int, int, int (*)(struct listbox_item *, void *, int *), void *);
|
||||
|
||||
diff --git a/src/bfu/text.c b/src/bfu/text.c
|
||||
index e8be019..3d2895e 100644
|
||||
--- a/src/bfu/text.c
|
||||
+++ b/src/bfu/text.c
|
||||
@@ -211,7 +211,8 @@ split_lines(struct widget_data *widget_data, int max_width)
|
||||
|
||||
/* Format text according to dialog box and alignment. */
|
||||
void
|
||||
-dlg_format_text_do(struct terminal *term, unsigned char *text,
|
||||
+dlg_format_text_do(struct terminal *term, struct dialog_data *dlg_data,
|
||||
+ unsigned char *text,
|
||||
int x, int *y, int width, int *real_width,
|
||||
struct color_pair *color, enum format_align align,
|
||||
int format_only)
|
||||
@@ -255,12 +256,13 @@ dlg_format_text_do(struct terminal *term, unsigned char *text,
|
||||
|
||||
assert(cells <= width && shift < width);
|
||||
|
||||
- draw_text(term, x + shift, *y, text, line_width, 0, color);
|
||||
+ draw_text2(term, dlg_data, x + shift, *y, text, line_width, 0, color);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
-dlg_format_text(struct terminal *term, struct widget_data *widget_data,
|
||||
+dlg_format_text(struct terminal *term, struct dialog_data *dlg_data,
|
||||
+ struct widget_data *widget_data,
|
||||
int x, int *y, int width, int *real_width, int max_height,
|
||||
int format_only)
|
||||
{
|
||||
@@ -335,7 +337,7 @@ dlg_format_text(struct terminal *term, struct widget_data *widget_data,
|
||||
widget_data->info.text.current = 0;
|
||||
}
|
||||
|
||||
- dlg_format_text_do(term, text,
|
||||
+ dlg_format_text_do(term, dlg_data, text,
|
||||
x, y, width, real_width,
|
||||
get_bfu_color(term, "dialog.text"),
|
||||
widget_data->widget->info.text.align, format_only);
|
||||
@@ -395,8 +397,8 @@ display_text(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
||||
|
||||
/* Hope this is at least a bit reasonable. Set cursor
|
||||
* and window pointer to start of the first text line. */
|
||||
- set_cursor(win->term, widget_data->box.x, widget_data->box.y, 1);
|
||||
- set_window_ptr(win, widget_data->box.x, widget_data->box.y);
|
||||
+ set_cursor2(win->term, dlg_data, widget_data->box.x, widget_data->box.y, 1);
|
||||
+ set_window_ptr2(dlg_data, win, widget_data->box.x, widget_data->box.y);
|
||||
|
||||
return EVENT_PROCESSED;
|
||||
}
|
||||
@@ -423,7 +425,7 @@ format_and_display_text(struct widget_data *widget_data,
|
||||
draw_box(term, &widget_data->box, ' ', 0,
|
||||
get_bfu_color(term, "dialog.generic"));
|
||||
|
||||
- dlg_format_text(term, widget_data,
|
||||
+ dlg_format_text(term, dlg_data, widget_data,
|
||||
widget_data->box.x, &y, widget_data->box.width, NULL,
|
||||
height, 0);
|
||||
|
||||
diff --git a/src/bfu/text.h b/src/bfu/text.h
|
||||
index 8dd3365..b181c1a 100644
|
||||
--- a/src/bfu/text.h
|
||||
+++ b/src/bfu/text.h
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "util/color.h"
|
||||
|
||||
struct dialog;
|
||||
+struct dialog_data;
|
||||
struct terminal;
|
||||
|
||||
struct widget_info_text {
|
||||
@@ -45,12 +46,12 @@ void add_dlg_text(struct dialog *dlg, unsigned char *text,
|
||||
enum format_align align, int bottom_pad);
|
||||
|
||||
extern const struct widget_ops text_ops;
|
||||
-void dlg_format_text_do(struct terminal *term,
|
||||
+void dlg_format_text_do(struct terminal *term, struct dialog_data *dlg_data,
|
||||
unsigned char *text, int x, int *y, int w, int *rw,
|
||||
struct color_pair *scolor, enum format_align align, int format_only);
|
||||
|
||||
void
|
||||
-dlg_format_text(struct terminal *term, struct widget_data *widget_data,
|
||||
+dlg_format_text(struct terminal *term, struct dialog_data *dlg_data, struct widget_data *widget_data,
|
||||
int x, int *y, int dlg_width, int *real_width, int height, int format_only);
|
||||
|
||||
#define text_is_scrollable(widget_data) \
|
||||
diff --git a/src/dialogs/download.c b/src/dialogs/download.c
|
||||
index 0116578..b90f047 100644
|
||||
--- a/src/dialogs/download.c
|
||||
+++ b/src/dialogs/download.c
|
||||
@@ -157,7 +157,7 @@ download_dialog_layouter(struct dialog_data *dlg_data)
|
||||
int_lower_bound(&w, DOWN_DLG_MIN);
|
||||
}
|
||||
|
||||
- dlg_format_text_do(term, url, 0, &y, w, &rw,
|
||||
+ dlg_format_text_do(term, dlg_data, url, 0, &y, w, &rw,
|
||||
dialog_text_color, ALIGN_LEFT, 1);
|
||||
|
||||
y++;
|
||||
@@ -166,11 +166,11 @@ download_dialog_layouter(struct dialog_data *dlg_data)
|
||||
#if CONFIG_BITTORRENT
|
||||
if (bittorrent) y += 2;
|
||||
#endif
|
||||
- dlg_format_text_do(term, msg, 0, &y, w, &rw,
|
||||
+ dlg_format_text_do(term, dlg_data, msg, 0, &y, w, &rw,
|
||||
dialog_text_color, ALIGN_LEFT, 1);
|
||||
|
||||
y++;
|
||||
- dlg_format_buttons(term, dlg_data->widgets_data,
|
||||
+ dlg_format_buttons(term, dlg_data, dlg_data->widgets_data,
|
||||
dlg_data->number_of_widgets, 0, &y, w,
|
||||
&rw, ALIGN_CENTER, 1);
|
||||
|
||||
@@ -190,7 +190,7 @@ download_dialog_layouter(struct dialog_data *dlg_data)
|
||||
|
||||
y = dlg_data->box.y + DIALOG_TB + 1;
|
||||
x = dlg_data->box.x + DIALOG_LB;
|
||||
- dlg_format_text_do(term, url, x, &y, w, NULL,
|
||||
+ dlg_format_text_do(term, dlg_data, url, x, &y, w, NULL,
|
||||
dialog_text_color, ALIGN_LEFT, 0);
|
||||
|
||||
if (show_meter) {
|
||||
@@ -207,11 +207,11 @@ download_dialog_layouter(struct dialog_data *dlg_data)
|
||||
}
|
||||
#endif
|
||||
y++;
|
||||
- dlg_format_text_do(term, msg, x, &y, w, NULL,
|
||||
+ dlg_format_text_do(term, dlg_data, msg, x, &y, w, NULL,
|
||||
dialog_text_color, ALIGN_LEFT, 0);
|
||||
|
||||
y++;
|
||||
- dlg_format_buttons(term, dlg_data->widgets_data,
|
||||
+ dlg_format_buttons(term, dlg_data, dlg_data->widgets_data,
|
||||
dlg_data->number_of_widgets, x, &y, w,
|
||||
NULL, ALIGN_CENTER, 0);
|
||||
|
||||
diff --git a/src/terminal/draw.c b/src/terminal/draw.c
|
||||
index b3b3706..267d9ac 100644
|
||||
--- a/src/terminal/draw.c
|
||||
+++ b/src/terminal/draw.c
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "elinks.h"
|
||||
|
||||
+#include "bfu/dialog.h"
|
||||
#include "config/options.h"
|
||||
#include "intl/charsets.h"
|
||||
#include "terminal/color.h"
|
||||
@@ -559,6 +560,23 @@ draw_text(struct terminal *term, int x, int y,
|
||||
}
|
||||
|
||||
void
|
||||
+draw_text2(struct terminal *term, struct dialog_data *dlg_data, int x, int y,
|
||||
+ unsigned char *text, int length,
|
||||
+ enum screen_char_attr attr, struct color_pair *color)
|
||||
+{
|
||||
+ struct box *box = &dlg_data->real_box;
|
||||
+
|
||||
+ if (box->height) {
|
||||
+ int y_max = box->y + box->height;
|
||||
+
|
||||
+ y -= dlg_data->y;
|
||||
+ if (y < box->y || y >= y_max) return;
|
||||
+ }
|
||||
+ draw_text(term, x, y, text, length, attr, color);
|
||||
+}
|
||||
+
|
||||
+
|
||||
+void
|
||||
set_cursor(struct terminal *term, int x, int y, int blockable)
|
||||
{
|
||||
assert(term && term->screen);
|
||||
@@ -580,6 +598,24 @@ set_cursor(struct terminal *term, int x, int y, int blockable)
|
||||
}
|
||||
|
||||
void
|
||||
+set_cursor2(struct terminal *term, struct dialog_data *dlg_data, int x, int y, int blockable)
|
||||
+{
|
||||
+ struct box *box = &dlg_data->real_box;
|
||||
+
|
||||
+ assert(term && term->screen);
|
||||
+ if_assert_failed return;
|
||||
+
|
||||
+ if (box->height) {
|
||||
+ int y_max = box->y + box->height;
|
||||
+
|
||||
+ y -= dlg_data->y;
|
||||
+ if (y < box->y || y >= y_max) return;
|
||||
+ }
|
||||
+ set_cursor(term, x, y, blockable);
|
||||
+}
|
||||
+
|
||||
+
|
||||
+void
|
||||
clear_terminal(struct terminal *term)
|
||||
{
|
||||
struct box box;
|
||||
diff --git a/src/terminal/draw.h b/src/terminal/draw.h
|
||||
index 6dcd31a..20fba4e 100644
|
||||
--- a/src/terminal/draw.h
|
||||
+++ b/src/terminal/draw.h
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "intl/charsets.h" /* unicode_val_T */
|
||||
|
||||
struct color_pair;
|
||||
+struct dialog_data;
|
||||
struct box;
|
||||
struct terminal;
|
||||
|
||||
@@ -280,6 +281,12 @@ void draw_text(struct terminal *term, int x, int y,
|
||||
enum screen_char_attr attr,
|
||||
struct color_pair *color);
|
||||
|
||||
+/** Draws text for dialogs. */
|
||||
+void draw_text2(struct terminal *term, struct dialog_data *dlg_data, int x, int y,
|
||||
+ unsigned char *text, int length,
|
||||
+ enum screen_char_attr attr, struct color_pair *color);
|
||||
+
|
||||
+
|
||||
/** Draws @a length chars from @a line on the screen. */
|
||||
void draw_line(struct terminal *term, int x, int y, int length,
|
||||
struct screen_char *line);
|
||||
@@ -289,6 +296,9 @@ void draw_line(struct terminal *term, int x, int y, int length,
|
||||
* bottom right corner of the screen. */
|
||||
void set_cursor(struct terminal *term, int x, int y, int blockable);
|
||||
|
||||
+/* set cursor for dialogs */
|
||||
+void set_cursor2(struct terminal *term, struct dialog_data *dlg_data, int x, int y, int blockable);
|
||||
+
|
||||
/** Blanks the screen. */
|
||||
void clear_terminal(struct terminal *);
|
||||
|
||||
diff --git a/src/terminal/window.c b/src/terminal/window.c
|
||||
index 9ac7191..934207d 100644
|
||||
--- a/src/terminal/window.c
|
||||
+++ b/src/terminal/window.c
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "elinks.h"
|
||||
|
||||
+#include "bfu/dialog.h"
|
||||
#include "bfu/menu.h"
|
||||
#include "terminal/event.h"
|
||||
#include "terminal/tab.h"
|
||||
@@ -227,3 +228,17 @@ would_window_receive_keypresses(const struct window *win)
|
||||
return 1;
|
||||
}
|
||||
#endif /* CONFIG_SCRIPTING_SPIDERMONKEY */
|
||||
+
|
||||
+void
|
||||
+set_window_ptr2(struct dialog_data *dlg_data, struct window *window, int x, int y)
|
||||
+{
|
||||
+ struct box *box = &dlg_data->real_box;
|
||||
+
|
||||
+ if (box->height) {
|
||||
+ int y_max = box->y + box->height;
|
||||
+
|
||||
+ y -= dlg_data->y;
|
||||
+ if (y < box->y || y >= y_max) return;
|
||||
+ }
|
||||
+ set_window_ptr(window, x, y);
|
||||
+}
|
||||
diff --git a/src/terminal/window.h b/src/terminal/window.h
|
||||
index 8bb329d..c8250ac 100644
|
||||
--- a/src/terminal/window.h
|
||||
+++ b/src/terminal/window.h
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "util/lists.h"
|
||||
|
||||
+struct dialog_data;
|
||||
struct term_event;
|
||||
struct terminal;
|
||||
struct window;
|
||||
@@ -73,6 +74,7 @@ void add_window(struct terminal *, window_handler_T, void *);
|
||||
void delete_window(struct window *);
|
||||
void delete_window_ev(struct window *, struct term_event *ev);
|
||||
#define set_window_ptr(window, x_, y_) do { (window)->x = (x_); (window)->y = (y_); } while (0)
|
||||
+void set_window_ptr2(struct dialog_data *dlg_data, struct window *window, int x, int y);
|
||||
void get_parent_ptr(struct window *, int *, int *);
|
||||
|
||||
void add_empty_window(struct terminal *, void (*)(void *), void *);
|
||||
--
|
||||
1.7.1
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
## ELinks 0.12pre3 configuration file
|
||||
|
||||
## This is ELinks global configuration file. You can keep global ELinks
|
||||
## configuration here. Each user can also save its own ELinks configuration
|
||||
## to ~/.elinks/elinks.conf. The per user configuration file can be edited
|
||||
## by ELinks when you save options through UI.
|
||||
|
||||
## connection
|
||||
# Connection options.
|
||||
|
||||
## connection.ssl
|
||||
# SSL options.
|
||||
|
||||
## connection.ssl.cert_verify [0|1]
|
||||
# Verify the peer's SSL certificate.
|
||||
set connection.ssl.cert_verify = 1
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"elinks-0.12pre6.tar.bz2": "383646375b8a325bef5a132c8300caab90eb0b842c5f8eff68febc00e29acada",
|
||||
"elinks.conf": "39679e5f67383fb4a9fd749faf0cca09956e25dcfb9fba064bafec126525b22a"
|
||||
}
|
||||
}
|
|
@ -1,667 +0,0 @@
|
|||
%global prerel pre6
|
||||
|
||||
Name: elinks
|
||||
Summary: A text-mode Web browser
|
||||
Version: 0.12
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
URL: http://elinks.or.cz
|
||||
Source: http://elinks.or.cz/download/elinks-%{version}%{prerel}.tar.bz2
|
||||
Source2: elinks.conf
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: expat-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: krb5-devel
|
||||
BuildRequires: libidn2-devel
|
||||
BuildRequires: lua-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: zlib-devel
|
||||
Requires(preun): %{_sbindir}/alternatives
|
||||
Requires(post): coreutils
|
||||
Requires(post): %{_sbindir}/alternatives
|
||||
Requires(postun): coreutils
|
||||
Requires(postun): %{_sbindir}/alternatives
|
||||
Provides: webclient
|
||||
Provides: links = 0.97-1
|
||||
Provides: text-www-browser
|
||||
|
||||
# Prevent crash when HOME is unset (bug #90663).
|
||||
Patch0: elinks-0.11.0-ssl-noegd.patch
|
||||
|
||||
# UTF-8 by default
|
||||
Patch1: elinks-0.10.1-utf_8_io-default.patch
|
||||
|
||||
# Make getaddrinfo call use AI_ADDRCONFIG.
|
||||
Patch3: elinks-0.11.0-getaddrinfo.patch
|
||||
|
||||
# Don't put so much information in the user-agent header string (bug #97273).
|
||||
Patch4: elinks-0.11.0-sysname.patch
|
||||
|
||||
# Fix xterm terminal: "Linux" driver seems better than "VT100" (#128105)
|
||||
Patch5: elinks-0.10.1-xterm.patch
|
||||
|
||||
# fix for open macro in new glibc
|
||||
Patch7: elinks-0.11.3-macropen.patch
|
||||
|
||||
#upstream fix for out of screen dialogs
|
||||
Patch8: elinks-scroll.patch
|
||||
|
||||
# add default "ddg" dumb/smart rewrite prefixes for DuckDuckGo (#856348)
|
||||
Patch12: elinks-0.12pre5-ddg-search.patch
|
||||
|
||||
# add missing AC_LANG_PROGRAM around the first argument of AC_COMPILE_IFELSE
|
||||
Patch13: elinks-0.12pre6-autoconf.patch
|
||||
|
||||
# verify server certificate hostname with OpenSSL (#881411)
|
||||
Patch14: elinks-0.12pre6-ssl-hostname.patch
|
||||
|
||||
# let list_is_singleton() return false for an empty list (#1075415)
|
||||
Patch15: elinks-0.12pre6-list_is_singleton.patch
|
||||
|
||||
# use later versions of lua since lua50 is not available (#1098392)
|
||||
Patch16: elinks-0.12pre6-lua51.patch
|
||||
|
||||
# add support for GNU Libidn2, patch by Robert Scheck (#1098789)
|
||||
Patch17: elinks-0.12pre6-libidn2.patch
|
||||
|
||||
# make configure.ac recognize recent versions of GCC
|
||||
Patch18: elinks-0.12pre6-recent-gcc-versions.patch
|
||||
|
||||
# fix compatibility with OpenSSL 1.1 (#1423519) and ...
|
||||
# drop disablement of TLS1.0 on second attempt to connect
|
||||
Patch19: elinks-0.12pre6-openssl11.patch
|
||||
|
||||
# fix programming mistakes detected by static analysis
|
||||
Patch20: elinks-0.12pre6-static-analysis.patch
|
||||
|
||||
%description
|
||||
Elinks is a text-based Web browser. Elinks does not display any images,
|
||||
but it does support frames, tables and most other HTML tags. Elinks'
|
||||
advantage over graphical browsers is its speed--Elinks starts and exits
|
||||
quickly and swiftly displays Web pages.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}%{prerel}
|
||||
|
||||
# rename the input file of autoconf to eliminate a warning
|
||||
mv -v configure.in configure.ac
|
||||
sed -e 's/configure\.in/configure.ac/' \
|
||||
-i Makefile* acinclude.m4 doc/man/man1/Makefile
|
||||
|
||||
# remove bogus serial numbers
|
||||
sed -i 's/^# *serial [AM0-9]*$//' acinclude.m4 config/m4/*.m4
|
||||
|
||||
# recreate autotools files
|
||||
aclocal -I config/m4
|
||||
autoconf
|
||||
autoheader
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -D_GNU_SOURCE"
|
||||
%configure --without-gpm \
|
||||
--enable-256-colors \
|
||||
--enable-bittorrent \
|
||||
--with-gssapi \
|
||||
--with-lua \
|
||||
--with-openssl \
|
||||
--without-gnutls \
|
||||
--without-spidermonkey \
|
||||
--without-x
|
||||
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT V=1
|
||||
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
||||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/elinks.conf
|
||||
touch $RPM_BUILD_ROOT%{_bindir}/links
|
||||
true | gzip -c > $RPM_BUILD_ROOT%{_mandir}/man1/links.1.gz
|
||||
%find_lang elinks
|
||||
|
||||
%postun
|
||||
if [ "$1" -ge "1" ]; then
|
||||
links=`readlink %{_sysconfdir}/alternatives/links`
|
||||
if [ "$links" == "%{_bindir}/elinks" ]; then
|
||||
%{_sbindir}/alternatives --set links %{_bindir}/elinks
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%post
|
||||
#Set up alternatives files for links
|
||||
%{_sbindir}/alternatives --install %{_bindir}/links links %{_bindir}/elinks 90 \
|
||||
--slave %{_mandir}/man1/links.1.gz links-man %{_mandir}/man1/elinks.1.gz
|
||||
links=`readlink %{_sysconfdir}/alternatives/links`
|
||||
if [ "$links" == "%{_bindir}/elinks" ]; then
|
||||
%{_sbindir}/alternatives --set links %{_bindir}/elinks
|
||||
fi
|
||||
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
%{_sbindir}/alternatives --remove links %{_bindir}/elinks
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files -f elinks.lang
|
||||
%license COPYING
|
||||
%doc README
|
||||
%ghost %verify(not md5 size mtime) %{_bindir}/links
|
||||
%{_bindir}/elinks
|
||||
%ghost %verify(not md5 size mtime) %{_mandir}/man1/links.1.gz
|
||||
%config(noreplace) %{_sysconfdir}/elinks.conf
|
||||
%{_mandir}/man1/elinks.1*
|
||||
%{_mandir}/man5/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 04 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.12-2
|
||||
- Removing epoch.
|
||||
- License verified.
|
||||
|
||||
* Mon Oct 18 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.12-1
|
||||
- Converting the 'Release' tag to the '[number].[distribution]' format.
|
||||
|
||||
* Fri Jan 08 2021 Joe Schmitt <joschmit@microsoft.com> - 0.12-0.63.pre6
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Remove gpm support
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.62.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.61.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.60.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Nov 07 2018 Kamil Dudka <kdudka@redhat.com> - 0.12-0.59.pre6
|
||||
- fix programming mistakes detected by static analysis
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.58.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Feb 19 2018 Kamil Dudka <kdudka@redhat.com> - 0.12-0.57.pre6
|
||||
- add explicit BR for the gcc compiler
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.56.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Oct 11 2017 Kamil Dudka <kdudka@redhat.com> - 0.12-0.55.pre6
|
||||
- drop support for JS engine that is no longer maintained
|
||||
- always build verbosely, drop outdated doc files
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.54.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.53.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue May 02 2017 Kamil Dudka <kdudka@redhat.com> - 0.12-0.52.pre6
|
||||
- rebuild against js-devel with ABI-incompatible <js/jsval.h> (#1446545)
|
||||
|
||||
* Fri Feb 17 2017 Kamil Dudka <kdudka@redhat.com> - 0.12-0.51.pre6
|
||||
- fix compatibility with OpenSSL 1.1 (#1423519)
|
||||
- make configure.ac recognize recent versions of GCC
|
||||
- apply patches automatically to ease maintenance
|
||||
|
||||
* Fri Feb 17 2017 Tomáš Mráz <tmraz@redhat.com> - 0.12-0.50.pre6
|
||||
- drop disablement of TLS1.0 on second attempt to connect,
|
||||
it would not work correctly anyway and the code does not build
|
||||
with OpenSSL-1.1.0
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.49.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-0.48.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Tue Jul 07 2015 Kamil Dudka <kdudka@redhat.com> - 0.12-0.47.pre6
|
||||
- use the OpenSSL-provided host name check (#881399)
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.46.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon May 18 2015 Kamil Dudka <kdudka@redhat.com> - 0.12-0.45.pre6
|
||||
- remove an obsolete configuration option from /etc/elinks.conf (#1222555)
|
||||
|
||||
* Mon Mar 30 2015 Kamil Dudka <kdudka@redhat.com> - 0.12-0.44.pre6
|
||||
- use OpenSSL instead of nss_compat_ossl, which is no longer maintained
|
||||
|
||||
* Fri Jan 16 2015 Tom Callaway <spot@fedoraproject.org> - 0.12-0.43.pre6
|
||||
- rebuild for lua 5.3
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.42.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.41.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Fri May 30 2014 Kamil Dudka <kdudka@redhat.com> - 0.12-0.40.pre6
|
||||
- add support for GNU Libidn2, patch by Robert Scheck (#1098789)
|
||||
|
||||
* Wed May 21 2014 Kamil Dudka <kdudka@redhat.com> - 0.12-0.39.pre6
|
||||
- use later versions of lua since lua50 is not available (#1098392)
|
||||
|
||||
* Tue Apr 29 2014 Kamil Dudka <kdudka@redhat.com> - 0.12-0.38.pre6
|
||||
- let list_is_singleton() return false for an empty list (#1075415)
|
||||
|
||||
* Wed Sep 18 2013 Kamil Dudka <kdudka@redhat.com> - 0.12-0.37.pre6
|
||||
- verify server certificate hostname with nss_compat_ossl (#881411)
|
||||
|
||||
* Tue Sep 03 2013 Kamil Dudka <kdudka@redhat.com> - 0.12-0.36.pre6
|
||||
- remove ancient Obsoletes tag against links (#1002132)
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.35.pre6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Feb 25 2013 Kamil Dudka <kdudka@redhat.com> - 0.12-0.34.pre6
|
||||
- update to latest upstream pre-release
|
||||
- drop unneeded patches
|
||||
- fix autoconf warnings
|
||||
- explicitly disable using OpenSSL and GnuTLS
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.33.pre5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Fri Jan 04 2013 Kamil Dudka <kdudka@redhat.com> - 0.12-0.32.pre5
|
||||
- do not delegate GSSAPI credentials (CVE-2012-4545)
|
||||
|
||||
* Mon Oct 08 2012 Kamil Dudka <kdudka@redhat.com> - 0.12-0.31.pre5
|
||||
- add default "ddg" dumb/smart rewrite prefixes for DuckDuckGo (#856348)
|
||||
|
||||
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 0.12-0.30.pre5
|
||||
- fix specfile issues reported by the fedora-review script
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.29.pre5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Mar 09 2012 Kamil Dudka <kdudka@redhat.com> - 0.12-0.28.pre5
|
||||
- do not crash if add_heartbeat() returned NULL (#798103)
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.27.pre5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Fri May 06 2011 Kamil Dudka <kdudka@redhat.com> - 0.12-0.26.pre5
|
||||
- improve the js-1.8.5 patch (upstream commit 218a225)
|
||||
|
||||
* Thu Apr 21 2011 Kamil Dudka <kdudka@redhat.com> - 0.12-0.25.pre5
|
||||
- port to js-1.8.5 API (upstream commits f31cf6f and 2844f8b)
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.24.pre5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Apr 07 2010 Kamil Dudka <kdudka@redhat.com> - 0.12-0.23.pre5
|
||||
- do not print control characters to build logs
|
||||
- avoid aclocal warnings
|
||||
|
||||
* Thu Jan 07 2010 Kamil Dudka <kdudka@redhat.com> - 0.12-0.22.pre5
|
||||
- remove patch for configure script to find OpenSSL (we use NSS now)
|
||||
- remove buildrequires for nss-devel (#550770)
|
||||
|
||||
* Sun Dec 27 2009 Kamil Dudka <kdudka@redhat.com> 0.12-0.21.pre5
|
||||
- add buildrequires for js-devel (#550717) and zlib-devel
|
||||
- build support for 256 color terminal
|
||||
|
||||
* Mon Dec 14 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.20.pre5
|
||||
- Add buildrequires for gpm-devel to enable gpm support(#547064)
|
||||
|
||||
* Fri Aug 14 2009 Orion Poplawski <orion@cora.nwra.com> 0.12-0.19.pre5
|
||||
- Add Requires(post/postun): coreutils for readlink
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.18.pre5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Jul 08 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.17.pre5
|
||||
- new upstream bugfix prerelease
|
||||
|
||||
* Mon Jun 01 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.16.pre4
|
||||
- new upstream bugfix prerelease
|
||||
- defuzz patches
|
||||
|
||||
* Wed Apr 29 2009 Kamil Dudka <kdudka@redhat.com> 0.12-0.15.pre3
|
||||
- try to load default NSS root certificates if the configuration option
|
||||
connection.ssl.trusted_ca_file is set to an empty string (#497788)
|
||||
|
||||
* Tue Apr 28 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.14.pre3
|
||||
- enable certificate verification by default via configuration
|
||||
file(#495532)
|
||||
|
||||
* Tue Apr 28 2009 Kamil Dudka <kdudka@redhat.com> 0.12-0.13.pre3
|
||||
- use appropriate BuildRequires for nss_compat_ossl (#495532)
|
||||
- support for trusted CA certificates loading from file in PEM format
|
||||
|
||||
* Fri Apr 03 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.12.pre3
|
||||
- use word Elinks instead of Links in package description
|
||||
|
||||
* Mon Mar 30 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.11.pre3
|
||||
- new upstream bugfix prerelease
|
||||
- defuzz patches
|
||||
|
||||
* Wed Mar 25 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.10.pre2
|
||||
- use better obsoletes/provides for links, use alternatives for
|
||||
links manpage and binary(#470703)
|
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-0.9.pre2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> 0.12-0.8.pre2
|
||||
- rebuild with new openssl
|
||||
|
||||
* Wed Jan 14 2009 Ondrej Vasik <ovasik@redhat.com> 0.12-0.7.pre2
|
||||
- versioned obsoletes and provides for links
|
||||
|
||||
* Wed Oct 1 2008 Kamil Dudka <kdudka@redhat.com> 0.12-0.6.pre2
|
||||
- port elinks to use NSS library for cryptography (#346861)
|
||||
|
||||
* Mon Sep 29 2008 Ondrej Vasik <ovasik@redhat.com> 0.12-0.5.pre2
|
||||
- new upstream bugfix prerelease
|
||||
- Removed already applied patches for tabreload and bittorrent
|
||||
|
||||
* Mon Sep 1 2008 Ondrej Vasik <ovasik@redhat.com> 0.12-0.4.pre1
|
||||
- upstream fix for bittorrent protocol
|
||||
- upstream fix for out of screen bittorrent dialog texts
|
||||
|
||||
* Tue Jul 15 2008 Ondrej Vasik <ovasik@redhat.com> 0.12-0.3.pre1
|
||||
- get rid off fuzz in patches
|
||||
|
||||
* Tue Jul 15 2008 Ondrej Vasik <ovasik@redhat.com> 0.12-0.2.pre1
|
||||
- fix a crash when opening tab during page reload
|
||||
|
||||
* Tue Jul 1 2008 Ondrej Vasik <ovasik@redhat.com> 0.12-0.1.pre1
|
||||
- unstable elinks-0.12 pre1, solves several long-term issues
|
||||
unsolvable (or very hard to solve) in 0.11.4 (like #173411),
|
||||
in general is elinks-0.12pre1 considered better than 0.11.4
|
||||
- dropped patches negotiate-auth, chunkedgzip - included in 0.12pre1,
|
||||
modified few others due source code changes
|
||||
|
||||
* Sat Jun 21 2008 Ondrej Vasik <ovasik@redhat.com> 0.11.4-1
|
||||
- new stable upstream release
|
||||
|
||||
* Thu Mar 6 2008 Ondrej Vasik <ovasik@redhat.com> 0.11.4-0.4.rc1
|
||||
- new upstream release candidate marked stable
|
||||
|
||||
* Thu Feb 21 2008 Ondrej Vasik <ovasik@redhat.com> 0.11.4-0.3.rc0
|
||||
- fixed broken output for gzipped chunked pages(#410801)
|
||||
|
||||
* Thu Feb 07 2008 Ondrej Vasik <ovasik@redhat.com> 0.11.4-0.2.rc0
|
||||
- used -D_GNU_SOURCE instead of ugly hack/patch to
|
||||
have NI_MAXPATH defined
|
||||
|
||||
* Wed Feb 06 2008 Ondrej Vasik <ovasik@redhat.com> 0.11.4-0.1.rc0
|
||||
- new version marked stable by upstream 0.11.4rc0
|
||||
- enabled experimental bittorent support(#426702)
|
||||
|
||||
* Wed Dec 05 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-7
|
||||
- rebuilt because of new OpenSSL
|
||||
|
||||
* Thu Oct 11 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-6
|
||||
- generalized text-www-browser requirements(#174566)
|
||||
|
||||
* Tue Aug 28 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-5
|
||||
- rebuilt because of expat 2.0
|
||||
|
||||
* Wed Aug 22 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-4
|
||||
- rebuilt for F8
|
||||
- changed license tag to GPLv2
|
||||
|
||||
* Thu Aug 9 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-3
|
||||
- fix of open macro(new glibc) by Joe Orton
|
||||
|
||||
* Fri Jul 27 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-2
|
||||
- cleanup of duplicates in buildreq, added license file to doc
|
||||
- (package review by Tyler Owen(#225725))
|
||||
|
||||
* Tue Jun 5 2007 Ondrej Vasik <ovasik@redhat.com> 0.11.3-1
|
||||
- update to new upstream version
|
||||
- removed patch for #210103 , included in upstream release
|
||||
- updated patch elinks-0.11.1-negotiate.patch to pass build
|
||||
|
||||
* Mon Mar 26 2007 Karel Zak <kzak@redhat.com> 0.11.2-1
|
||||
- update to new upstream version
|
||||
- cleanup spec file
|
||||
|
||||
* Wed Oct 11 2006 Karel Zak <kzak@redhat.com> 0.11.1-5
|
||||
- fix #210103 - elinks crashes when given bad HTTP_PROXY
|
||||
|
||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.11.1-4.1
|
||||
- rebuild
|
||||
|
||||
* Mon Jun 12 2006 Karel Zak <kzak@redhat.com> 0.11.1-4
|
||||
- improved negotiate-auth patch (faster now)
|
||||
|
||||
* Fri Jun 9 2006 Karel Zak <kzak@redhat.com> 0.11.1-3
|
||||
- added negotiate-auth (GSSAPI) support -- EXPERIMENTAL!
|
||||
|
||||
* Mon May 29 2006 Karel Zak <kzak@redhat.com> 0.11.1-2
|
||||
- update to new upstream version
|
||||
|
||||
* Wed May 17 2006 Karsten Hopp <karsten@redhat.de> 0.11.0-3
|
||||
- add buildrequires bzip2-devel, expat-devel,libidn-devel
|
||||
|
||||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.11.0-2.2
|
||||
- bump again for double-long bug on ppc(64)
|
||||
|
||||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.11.0-2.1
|
||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||
|
||||
* Tue Jan 10 2006 Karel Zak <kzak@redhat.com> 0.11.0-2
|
||||
- use upstream version of srcdir.patch
|
||||
|
||||
* Tue Jan 10 2006 Karel Zak <kzak@redhat.com> 0.11.0-1
|
||||
- update to new upstream version
|
||||
- fix 0.11.0 build system (srcdir.patch)
|
||||
- regenerate patches:
|
||||
elinks-0.11.0-getaddrinfo.patch,
|
||||
elinks-0.11.0-ssl-noegd.patch,
|
||||
elinks-0.11.0-sysname.patch,
|
||||
elinks-0.11.0-union.patch
|
||||
|
||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0.10.6-2.1
|
||||
- rebuilt
|
||||
|
||||
* Wed Nov 9 2005 Karel Zak <kzak@redhat.com> 0.10.6-2
|
||||
- rebuild (against new openssl)
|
||||
|
||||
* Thu Sep 29 2005 Karel Zak <kzak@redhat.com> 0.10.6-1
|
||||
- update to new upstream version
|
||||
|
||||
* Tue May 17 2005 Karel Zak <kzak@redhat.com> 0.10.3-3
|
||||
- fix #157300 - Strange behavior on ppc64 (patch by Miloslav Trmac)
|
||||
|
||||
* Tue May 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.10.3-2
|
||||
- Fix checking for numeric command prefix (#152953, patch by Jonas Fonseca)
|
||||
- Fix invalid C causing assertion errors on ppc and ia64 (#156647)
|
||||
|
||||
* Mon Mar 21 2005 Karel Zak <kzak@redhat.com> 0.10.3-1
|
||||
- sync with upstream; stable 0.10.3
|
||||
|
||||
* Sat Mar 5 2005 Karel Zak <kzak@redhat.com> 0.10.2-2
|
||||
- rebuilt
|
||||
|
||||
* Tue Feb 8 2005 Karel Zak <kzak@redhat.com> 0.10.2-1
|
||||
- sync with upstream; stable 0.10.2
|
||||
|
||||
* Fri Jan 28 2005 Karel Zak <kzak@redhat.com> 0.10.1-1
|
||||
- sync with upstream; stable 0.10.1
|
||||
|
||||
* Thu Oct 14 2004 Karel Zak <kzak@redhat.com> 0.9.2-2
|
||||
- the "Linux" driver seems better than "VT100" for xterm (#128105)
|
||||
|
||||
* Wed Oct 6 2004 Karel Zak <kzak@redhat.com> 0.9.2-1
|
||||
- upload new upstream tarball with stable 0.9.2 release
|
||||
|
||||
* Mon Sep 20 2004 Jindrich Novy <jnovy@redhat.com> 0.9.2-0.rc7.4
|
||||
- 0.9.2rc7.
|
||||
- changed summary in spec to get rid of #41732, #61499
|
||||
|
||||
* Mon Sep 13 2004 Tim Waugh <twaugh@redhat.com> 0.9.2-0.rc4.3
|
||||
- Avoid symbol clash (bug #131170).
|
||||
|
||||
* Fri Aug 6 2004 Tim Waugh <twaugh@redhat.com> 0.9.2-0.rc4.2
|
||||
- 0.9.2rc4.
|
||||
|
||||
* Mon Jul 12 2004 Tim Waugh <twaugh@redhat.com> 0.9.2-0.rc2.2
|
||||
- Fix elinks -dump -stdin (bug #127624).
|
||||
|
||||
* Thu Jul 1 2004 Tim Waugh <twaugh@redhat.com> 0.9.2-0.rc2.1
|
||||
- 0.9.2rc2.
|
||||
|
||||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Wed Jun 2 2004 Tim Waugh <twaugh@redhat.com> 0.9.1-3
|
||||
- Build with LFS support (bug #125064).
|
||||
|
||||
* Fri May 28 2004 Tim Waugh <twaugh@redhat.com> 0.9.1-2
|
||||
- Use UTF-8 by default (bug #76445).
|
||||
|
||||
* Thu Mar 11 2004 Tim Waugh <twaugh@redhat.com> 0.9.1-1
|
||||
- 0.9.1.
|
||||
- Use %%find_lang.
|
||||
|
||||
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Mon Dec 8 2003 Tim Waugh <twaugh@redhat.com> 0.4.3-1
|
||||
- 0.4.3.
|
||||
- Updated pkgconfig patch.
|
||||
|
||||
* Mon Aug 11 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-7.1
|
||||
- Rebuilt.
|
||||
|
||||
* Mon Aug 11 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-7
|
||||
- Don't require XFree86-libs (bug #102072).
|
||||
|
||||
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.4.2-6.2
|
||||
- rebuild
|
||||
|
||||
* Thu Jun 12 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-6.1
|
||||
- Rebuilt.
|
||||
|
||||
* Thu Jun 12 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-6
|
||||
- Make getaddrinfo call use AI_ADDRCONFIG.
|
||||
- Don't put so much information in the user-agent header string (bug #97273).
|
||||
|
||||
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Mon Jun 2 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-4.1
|
||||
- Rebuild again.
|
||||
|
||||
* Mon Jun 2 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-4
|
||||
- Rebuild.
|
||||
|
||||
* Mon May 12 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-3
|
||||
- Prevent crash when HOME is unset (bug #90663).
|
||||
|
||||
* Sun May 04 2003 Florian La Roche <Florian.LaRoche@redhat.de> 0.4.2-2
|
||||
- use relative symlinks to elinks
|
||||
|
||||
* Wed Feb 5 2003 Tim Waugh <twaugh@redhat.com> 0.4.2-1
|
||||
- 0.4.2 (bug #83273).
|
||||
|
||||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 0.3.2-5
|
||||
- rebuilt
|
||||
|
||||
* Thu Jan 16 2003 Tim Waugh <twaugh@redhat.com>
|
||||
- Fix URL (bug #81987).
|
||||
|
||||
* Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-4
|
||||
- rebuild
|
||||
|
||||
* Mon Dec 23 2002 Tim Waugh <twaugh@redhat.com> 0.3.2-3
|
||||
- Fix bug #62368.
|
||||
|
||||
* Thu Dec 12 2002 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- use openssl's pkg-config data, if available
|
||||
|
||||
* Wed Nov 20 2002 Tim Powers <timp@redhat.com> 0.3.2-2
|
||||
- rebuild on all arches
|
||||
|
||||
* Tue Aug 20 2002 Jakub Jelinek <jakub@redhat.com> 0.3.2-1
|
||||
- update to 0.3.2 to fix the DNS Ctrl-C segfaults
|
||||
- update URLs, the project moved
|
||||
- include man page
|
||||
|
||||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Thu Jan 24 2002 Tim Powers <timp@redhat.com>
|
||||
- rebuilt against new openssl
|
||||
|
||||
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Wed Jan 2 2002 Preston Brown <pbrown@redhat.com> 0.96-4
|
||||
- cookie fix
|
||||
|
||||
* Thu Sep 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.96-3
|
||||
- Save some more space in rescue mode
|
||||
|
||||
* Wed Jul 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.96-2
|
||||
- Add the links manual from links.sourceforge.net (RFE #49228)
|
||||
|
||||
* Tue Jul 3 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.96-1
|
||||
- update to 0.96
|
||||
|
||||
* Fri Jun 22 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- actually run make in build phase
|
||||
|
||||
* Tue Jun 12 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- rebuild in new environment
|
||||
|
||||
* Fri Mar 2 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- rebuild in new environment
|
||||
|
||||
* Tue Jan 9 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.95
|
||||
|
||||
* Mon Jan 1 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.94 final
|
||||
|
||||
* Sun Dec 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- pre9
|
||||
|
||||
* Mon Dec 11 2000 Preston Brown <pbrown@redhat.com>
|
||||
- Upgraded to pre8.
|
||||
|
||||
* Tue Dec 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.94pre7
|
||||
- Minor fixes to the specfile (s/Copyright:/License:/)
|
||||
- merge rescue stuff
|
||||
|
||||
* Fri Nov 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.94pre5
|
||||
|
||||
* Wed Nov 15 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.94pre4
|
||||
|
||||
* Tue Oct 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.94pre1
|
||||
|
||||
* Wed Aug 2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.92 (needed - prior versions won't display XHTML properly)
|
||||
|
||||
* Thu Jul 20 2000 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- rebuild in new environment to work around bugs
|
||||
|
||||
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
||||
- automatic rebuild
|
||||
|
||||
* Thu Jun 15 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- 0.84
|
||||
|
||||
* Sun Jun 11 2000 Preston Brown <pbrown@redhat.com>
|
||||
- provides virtual package webclient.
|
||||
|
||||
* Thu Jan 6 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||
- initial RPM
|
|
@ -2,10 +2,10 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
Name: gnome-doc-utils
|
||||
Version: 0.20.10
|
||||
Release: 22%{?dist}
|
||||
Release: 24%{?dist}
|
||||
Summary: Documentation utilities for GNOME
|
||||
|
||||
License: GPLv2+ and LGPLv2+ and GFDL
|
||||
License: GPLv2+ and LGPLv2+
|
||||
URL: https://wiki.gnome.org/Projects/GnomeDocUtils
|
||||
Source: https://download.gnome.org/sources/%{name}/0.20/%{name}-%{version}.tar.xz
|
||||
#VCS: git:git://git.gnome.org/gnome-doc-utils
|
||||
|
@ -16,6 +16,7 @@ Patch2: gnome-doc-utils-0.20.10-python3.patch
|
|||
BuildArch: noarch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: libxml2-devel >= 2.6.12
|
||||
BuildRequires: libxslt-devel >= 1.1.8
|
||||
BuildRequires: python3-libxml2
|
||||
|
@ -91,6 +92,12 @@ sed -i -e '/^Requires:/d' %{buildroot}%{_datadir}/pkgconfig/xml2po.pc
|
|||
%{_datadir}/xml/mallard
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.20.10-24
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.20.10-23
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.20.10-22
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ Distribution: Mariner
|
|||
Summary: GNOME icon theme
|
||||
Name: gnome-icon-theme
|
||||
Version: 3.12.0
|
||||
License: LGPLv3+
|
||||
Release: 14%{?dist}
|
||||
License: CC-BY-SA or LGPLv3+
|
||||
Release: 16%{?dist}
|
||||
URL: http://www.gnome.org
|
||||
|
||||
#VCS: git:git://git.gnome.org/gnome-icon-theme
|
||||
|
@ -12,6 +12,7 @@ Source0: http://download.gnome.org/sources/gnome-icon-theme/3.12/%{name}-%{versi
|
|||
Source1: legacy-icon-mapping.xml
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: gtk2
|
||||
BuildRequires: icon-naming-utils >= 0.8.7
|
||||
BuildRequires: intltool
|
||||
|
@ -102,7 +103,8 @@ gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || :
|
|||
gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || :
|
||||
|
||||
%files -f files.txt
|
||||
%doc COPYING AUTHORS
|
||||
%license COPYING COPYING_CCBYSA3 COPYING_LGPL
|
||||
%doc AUTHORS
|
||||
%ghost %{_datadir}/icons/gnome/icon-theme.cache
|
||||
|
||||
%files legacy -f legacy.txt
|
||||
|
@ -111,6 +113,12 @@ gtk-update-icon-cache --force %{_datadir}/icons/gnome &>/dev/null || :
|
|||
%{_datadir}/pkgconfig/gnome-icon-theme.pc
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.12.0-16
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.12.0-15
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.12.0-14
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@ Distribution: Mariner
|
|||
|
||||
Name: gstreamer1-plugins-base
|
||||
Version: 1.16.2
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: GStreamer streaming media framework base plugins
|
||||
|
||||
License: LGPLv2+
|
||||
License: GPLv2+
|
||||
URL: http://gstreamer.freedesktop.org/
|
||||
%if 0%{?gitrel}
|
||||
# git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-base
|
||||
|
@ -28,7 +28,6 @@ BuildRequires: gobject-introspection-devel >= 1.31.1
|
|||
BuildRequires: iso-codes-devel
|
||||
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: cdparanoia-devel
|
||||
BuildRequires: libogg-devel >= 1.0
|
||||
BuildRequires: libtheora-devel >= 1.1
|
||||
BuildRequires: libvisual-devel
|
||||
|
@ -129,6 +128,7 @@ NOCONFIGURE=1 \
|
|||
--with-package-name='Fedora GStreamer-plugins-base package' \
|
||||
--with-package-origin='http://download.fedoraproject.org' \
|
||||
--enable-experimental \
|
||||
--disable-cdparanoia \
|
||||
--disable-fatal-warnings \
|
||||
--disable-silent-rules \
|
||||
--disable-gtk-doc \
|
||||
|
@ -483,6 +483,10 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-play-1.0
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.16.2-6
|
||||
- Removing BR on 'cdparanoia'.
|
||||
- License verified.
|
||||
|
||||
* Thu Oct 14 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.16.2-5
|
||||
- Converting the 'Release' tag to the '[number].[distribution]' format.
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ Distribution: Mariner
|
|||
|
||||
Name: gtkspell
|
||||
Version: 2.0.16
|
||||
Release: 21%{?dist}
|
||||
Release: 23%{?dist}
|
||||
License: GPLv2+
|
||||
Summary: On-the-fly spell checking for GtkTextView widgets
|
||||
URL: http://gtkspell.sourceforge.net/
|
||||
|
@ -13,6 +13,7 @@ Source: http://gtkspell.sourceforge.net/download/%{name}-%{version}.tar.gz
|
|||
### Build Dependencies ###
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: make
|
||||
BuildRequires: enchant-devel
|
||||
BuildRequires: gtk2-devel
|
||||
|
@ -51,7 +52,8 @@ find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \;
|
|||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README AUTHORS COPYING
|
||||
%license COPYING
|
||||
%doc README AUTHORS
|
||||
%{_libdir}/libgtkspell.so.0*
|
||||
|
||||
%files devel
|
||||
|
@ -61,6 +63,12 @@ find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \;
|
|||
%{_libdir}/pkgconfig/gtkspell-2.0.pc
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.0.16-23
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.0.16-22
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.0.16-21
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ Name: hyphen-ia
|
|||
Summary: Interlingua hyphenation rules
|
||||
%global upstreamid 20050628
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 19%{?dist}
|
||||
Release: 20%{?dist}
|
||||
Source0: http://www.ctan.org/get/language/hyphenation/iahyphen.tex
|
||||
Source1: %{name}-LICENSE.txt
|
||||
URL: http://www.ctan.org/tex-archive/help/Catalogue/entries/iahyphen.html
|
||||
|
@ -22,7 +22,7 @@ Interlingua hyphenation rules.
|
|||
%setup -T -q -c -n hyphen-ia
|
||||
cp -p %{SOURCE0} .
|
||||
%patch0 -p0 -b .clean
|
||||
%cp %{SOURCE1} ./LICENSE.txt
|
||||
cp %{SOURCE1} ./LICENSE.txt
|
||||
|
||||
%build
|
||||
substrings.pl iahyphen.tex hyph_ia.dic ISO8859-1
|
||||
|
@ -41,6 +41,9 @@ cp -p hyph_ia.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
|||
%{_datadir}/hyphen/*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.20050628-20
|
||||
- License verified.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.20050628-19
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
Name: ibus-kkc
|
||||
Version: 1.5.22
|
||||
Release: 14%{?dist}
|
||||
Release: 16%{?dist}
|
||||
Summary: Japanese Kana Kanji input method for ibus
|
||||
|
||||
License: GPLv2+
|
||||
|
@ -12,6 +12,7 @@ Patch0: ibus-kkc-content-type.patch
|
|||
Patch1: ibus-HEAD.patch
|
||||
|
||||
BuildRequires: vala
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libkkc-devel >= 0.3.4
|
||||
BuildRequires: ibus-devel
|
||||
|
@ -94,7 +95,8 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-kkc.deskt
|
|||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog README
|
||||
%{_datadir}/appdata/*.appdata.xml
|
||||
%{_datadir}/ibus-kkc
|
||||
%{_libexecdir}/ibus-*-kkc
|
||||
|
@ -103,6 +105,12 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-kkc.deskt
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.5.22-16
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.5.22-15
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.5.22-14
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ Distribution: Mariner
|
|||
|
||||
Name: ibus-libzhuyin
|
||||
Version: 1.9.1
|
||||
Release: 4%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: New Zhuyin engine based on libzhuyin for IBus
|
||||
License: GPLv2+
|
||||
URL: https://github.com/libzhuyin/ibus-libzhuyin
|
||||
|
@ -18,6 +18,7 @@ Patch0: ibus-libzhuyin-1.9.x-HEAD.patch
|
|||
%endif
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libtool
|
||||
|
@ -59,7 +60,8 @@ make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
|||
%find_lang %{name}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS COPYING README ChangeLog INSTALL NEWS
|
||||
%license COPYING
|
||||
%doc AUTHORS README ChangeLog INSTALL NEWS
|
||||
%{_datadir}/appdata/*.appdata.xml
|
||||
%{_datadir}/glib-2.0/schemas/*.gschema.xml
|
||||
%{_datadir}/applications/ibus-setup-libzhuyin.desktop
|
||||
|
@ -74,6 +76,12 @@ make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.9.1-6
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.9.1-5
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.9.1-4
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
Name: javapackages-tools-meta
|
||||
Version: 5.3.0
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
|
||||
Summary: Macros and scripts for Java packaging support
|
||||
|
||||
|
@ -12,7 +12,6 @@ License: BSD
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
URL: https://github.com/fedora-java/javapackages
|
||||
Source0: https://github.com/fedora-java/javapackages/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
|
@ -70,13 +69,15 @@ Requires: python3
|
|||
This package provides non-essential macros and scripts to support Java packaging.
|
||||
|
||||
%files -n javapackages-local
|
||||
%license LICENSE
|
||||
|
||||
%files -n maven-local
|
||||
|
||||
%files -n ivy-local
|
||||
|
||||
%changelog
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 5.3.0-11
|
||||
- Removing source tarball. This package doesn't provide or build anything, it's just a grouping of dependencies.
|
||||
|
||||
* Thu Nov 12 2020 Ruying Chen <v-ruyche@microsoft.com> - 5.3.0-10
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Create javapackages-local-bootstrap without xmvn requires.
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"5.3.0.tar.gz": "73803877c26b3e6c0440b2e1e4d78a5fadf63782a62374df400b8badb1de3046"
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
From 75a845abfe4823837e3f07274911dc275150f5a4 Mon Sep 17 00:00:00 2001
|
||||
From: seebk <mail@sebastiankraft.net>
|
||||
Date: Sat, 21 Nov 2015 09:48:41 +0000
|
||||
Subject: [PATCH 001/113] Only require glib 2.40 when tests are build, without
|
||||
tests glib 2.26 is sufficient
|
||||
|
||||
---
|
||||
CMakeLists.txt | 14 ++++++++++----
|
||||
1 file changed, 10 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ceac8fc..21f082b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -85,10 +85,16 @@ IF(WIN32)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
-# find dependencies
|
||||
-# NOTE: must be one of the macros listed in https://developer.gnome.org/glib/stable/glib-Version-Information.html
|
||||
-SET(LENSFUN_GLIB_REQUIREMENT_MACRO "GLIB_VERSION_2_40")
|
||||
-FIND_PACKAGE(GLIB2 REQUIRED 2.40)
|
||||
+
|
||||
+IF (BUILD_TESTS)
|
||||
+ # automatic tests need at least glib version 2.40
|
||||
+ # NOTE: must be one of the macros listed in https://developer.gnome.org/glib/stable/glib-Version-Information.html
|
||||
+ SET(LENSFUN_GLIB_REQUIREMENT_MACRO "GLIB_VERSION_2_40")
|
||||
+ FIND_PACKAGE(GLIB2 REQUIRED)
|
||||
+ELSE()
|
||||
+ SET(LENSFUN_GLIB_REQUIREMENT_MACRO "GLIB_VERSION_2_26")
|
||||
+ FIND_PACKAGE(GLIB2 REQUIRED)
|
||||
+ENDIF()
|
||||
|
||||
INCLUDE_DIRECTORIES(SYSTEM ${GLIB2_INCLUDE_DIRS})
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,263 +0,0 @@
|
|||
From d2c6003ca5b0116fc18505b4fd34b211484e41ca Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Kraft <mail@sebastiankraft.net>
|
||||
Date: Sat, 19 Dec 2015 20:08:24 +0100
|
||||
Subject: [PATCH 038/113] Only use proper C++ new and delete syntax for object
|
||||
creation in tests and lenstool
|
||||
|
||||
---
|
||||
apps/lenstool/lenstool.cpp | 16 ++++++++--------
|
||||
tests/test_database.cpp | 4 ++--
|
||||
tests/test_modifier.cpp | 8 +++++---
|
||||
tests/test_modifier_color.cpp | 4 ++--
|
||||
tests/test_modifier_coord_distortion.cpp | 4 ++--
|
||||
tests/test_modifier_coord_geometry.cpp | 4 ++--
|
||||
tests/test_modifier_coord_scale.cpp | 4 ++--
|
||||
tests/test_modifier_subpix.cpp | 4 ++--
|
||||
8 files changed, 25 insertions(+), 23 deletions(-)
|
||||
|
||||
diff --git a/apps/lenstool/lenstool.cpp b/apps/lenstool/lenstool.cpp
|
||||
index 0aab056..399195e 100644
|
||||
--- a/apps/lenstool/lenstool.cpp
|
||||
+++ b/apps/lenstool/lenstool.cpp
|
||||
@@ -360,7 +360,7 @@ int main (int argc, char **argv)
|
||||
lfDatabase *ldb = new lfDatabase ();
|
||||
|
||||
if (ldb->Load () != LF_NO_ERROR) {
|
||||
- ldb->Destroy();
|
||||
+ delete ldb;
|
||||
g_print ("\rERROR: Database could not be loaded\n");
|
||||
return -1;
|
||||
}
|
||||
@@ -410,7 +410,7 @@ int main (int argc, char **argv)
|
||||
|
||||
// nothing to process, so lets quit here
|
||||
if (!opts.Input) {
|
||||
- ldb->Destroy();
|
||||
+ delete ldb;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -441,22 +441,22 @@ int main (int argc, char **argv)
|
||||
if (!img->Open (opts.Input)) {
|
||||
g_print ("\rERROR: failed to open file `%s'\n", opts.Input);
|
||||
delete img;
|
||||
- ldb->Destroy();
|
||||
+ delete ldb;
|
||||
return -1;
|
||||
}
|
||||
if (!img->LoadPNG ()) {
|
||||
g_print ("\rERROR: failed to parse PNG data from file `%s'\n", opts.Input);
|
||||
delete img;
|
||||
- ldb->Destroy();
|
||||
+ delete ldb;
|
||||
return -1;
|
||||
}
|
||||
g_print ("done.\n~ Image size [%ux%u].\n", img->width, img->height);
|
||||
|
||||
- lfModifier *mod = lfModifier::Create (lens, opts.Crop, img->width, img->height);
|
||||
+ lfModifier *mod = new lfModifier (lens, opts.Crop, img->width, img->height);
|
||||
if (!mod) {
|
||||
g_print ("\rWarning: failed to create modifier\n");
|
||||
delete img;
|
||||
- ldb->Destroy();
|
||||
+ delete ldb;
|
||||
return -1;
|
||||
}
|
||||
int modflags = mod->Initialize (
|
||||
@@ -491,13 +491,13 @@ int main (int argc, char **argv)
|
||||
clock_t et = clock ();
|
||||
g_print ("done (%.3g secs)\n", double (et - st) / CLOCKS_PER_SEC);
|
||||
|
||||
- mod->Destroy ();
|
||||
+ delete mod;
|
||||
|
||||
g_print ("~ Save output as `%s'...", opts.Output);
|
||||
bool ok = img->SavePNG (opts.Output);
|
||||
|
||||
delete img;
|
||||
- ldb->Destroy ();
|
||||
+ delete ldb;
|
||||
|
||||
if (ok) {
|
||||
g_print (" done\n");
|
||||
diff --git a/tests/test_database.cpp b/tests/test_database.cpp
|
||||
index d64984a..45dc38f 100644
|
||||
--- a/tests/test_database.cpp
|
||||
+++ b/tests/test_database.cpp
|
||||
@@ -9,14 +9,14 @@ typedef struct {
|
||||
|
||||
void db_setup(lfFixture *lfFix, gconstpointer data)
|
||||
{
|
||||
- lfFix->db = lf_db_new ();
|
||||
+ lfFix->db = new lfDatabase ();
|
||||
lfFix->db->Load();
|
||||
}
|
||||
|
||||
|
||||
void db_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
{
|
||||
- lfFix->db->Destroy();
|
||||
+ delete lfFix->db;
|
||||
}
|
||||
|
||||
|
||||
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp
|
||||
index 3d091a4..f794638 100644
|
||||
--- a/tests/test_modifier.cpp
|
||||
+++ b/tests/test_modifier.cpp
|
||||
@@ -31,7 +31,6 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
|
||||
|
||||
void mod_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
{
|
||||
- lfFix->mod->Destroy();
|
||||
delete lfFix->lens;
|
||||
}
|
||||
|
||||
@@ -55,7 +54,7 @@ void test_mod_projection_center(lfFixture* lfFix, gconstpointer data)
|
||||
if(g_test_verbose())
|
||||
g_print(" ~ Conversion from %s -> %s \n", geom_names[j], geom_names[i]);
|
||||
|
||||
- lfFix->mod = lfModifier::Create (lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier (lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
lfFix->mod->Initialize (
|
||||
lfFix->lens, LF_PF_U8, 12.0f,
|
||||
6.7f, 2.0f, 1.0f, geom_types[i],
|
||||
@@ -68,6 +67,8 @@ void test_mod_projection_center(lfFixture* lfFix, gconstpointer data)
|
||||
g_assert_cmpfloat(in[0],==,res[0]);
|
||||
g_assert_cmpfloat(in[1],==,res[1]);
|
||||
}
|
||||
+
|
||||
+ delete lfFix->mod;
|
||||
i++;
|
||||
}
|
||||
j++;
|
||||
@@ -94,7 +95,7 @@ void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data)
|
||||
if(g_test_verbose())
|
||||
g_print(" ~ Conversion from %s -> %s \n", geom_names[j], geom_names[i]);
|
||||
|
||||
- lfFix->mod = lfModifier::Create (lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier (lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
lfFix->mod->Initialize (
|
||||
lfFix->lens, LF_PF_U8, 12.0f,
|
||||
6.7f, 2.0f, 1.0f, geom_types[i],
|
||||
@@ -115,6 +116,7 @@ void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data)
|
||||
g_assert_false(isnan(res[1]));
|
||||
}
|
||||
|
||||
+ delete lfFix->mod;
|
||||
i++;
|
||||
}
|
||||
j++;
|
||||
diff --git a/tests/test_modifier_color.cpp b/tests/test_modifier_color.cpp
|
||||
index 4c5e2dc..6327232 100644
|
||||
--- a/tests/test_modifier_color.cpp
|
||||
+++ b/tests/test_modifier_color.cpp
|
||||
@@ -107,7 +107,7 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
|
||||
lfFix->img_height = 300;
|
||||
lfFix->img_width = 300;
|
||||
|
||||
- lfFix->mod = lfModifier::Create(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
|
||||
lfFix->mod->Initialize(
|
||||
lfFix->lens, cTypeToLfPixelFormat<T>(),
|
||||
@@ -134,7 +134,7 @@ void mod_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
else
|
||||
lf_free_align(lfFix->image);
|
||||
|
||||
- lfFix->mod->Destroy();
|
||||
+ delete lfFix->mod;
|
||||
delete lfFix->lens;
|
||||
}
|
||||
|
||||
diff --git a/tests/test_modifier_coord_distortion.cpp b/tests/test_modifier_coord_distortion.cpp
|
||||
index 6fd6773..f463350 100644
|
||||
--- a/tests/test_modifier_coord_distortion.cpp
|
||||
+++ b/tests/test_modifier_coord_distortion.cpp
|
||||
@@ -51,7 +51,7 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
|
||||
lfFix->img_height = 300;
|
||||
lfFix->img_width = 300;
|
||||
|
||||
- lfFix->mod = lfModifier::Create(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
|
||||
lfFix->mod->Initialize(
|
||||
lfFix->lens, LF_PF_F32,
|
||||
@@ -76,7 +76,7 @@ void mod_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
else
|
||||
lf_free_align(lfFix->coordBuff);
|
||||
|
||||
- lfFix->mod->Destroy();
|
||||
+ delete lfFix->mod;
|
||||
delete lfFix->lens;
|
||||
}
|
||||
|
||||
diff --git a/tests/test_modifier_coord_geometry.cpp b/tests/test_modifier_coord_geometry.cpp
|
||||
index 6805b7d..d626ba8 100644
|
||||
--- a/tests/test_modifier_coord_geometry.cpp
|
||||
+++ b/tests/test_modifier_coord_geometry.cpp
|
||||
@@ -51,7 +51,7 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
|
||||
lfFix->img_height = 300;
|
||||
lfFix->img_width = 300;
|
||||
|
||||
- lfFix->mod = lfModifier::Create(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
|
||||
lfFix->mod->Initialize(
|
||||
lfFix->lens, LF_PF_F32,
|
||||
@@ -76,7 +76,7 @@ void mod_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
else
|
||||
lf_free_align(lfFix->coordBuff);
|
||||
|
||||
- lfFix->mod->Destroy();
|
||||
+ delete lfFix->mod;
|
||||
delete lfFix->lens;
|
||||
}
|
||||
|
||||
diff --git a/tests/test_modifier_coord_scale.cpp b/tests/test_modifier_coord_scale.cpp
|
||||
index c155ff8..84a4286 100644
|
||||
--- a/tests/test_modifier_coord_scale.cpp
|
||||
+++ b/tests/test_modifier_coord_scale.cpp
|
||||
@@ -48,7 +48,7 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
|
||||
lfFix->img_height = 300;
|
||||
lfFix->img_width = 300;
|
||||
|
||||
- lfFix->mod = lfModifier::Create(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
|
||||
lfFix->mod->Initialize(
|
||||
lfFix->lens, LF_PF_F32,
|
||||
@@ -73,7 +73,7 @@ void mod_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
else
|
||||
lf_free_align(lfFix->coordBuff);
|
||||
|
||||
- lfFix->mod->Destroy();
|
||||
+ delete lfFix->mod;
|
||||
delete lfFix->lens;
|
||||
}
|
||||
|
||||
diff --git a/tests/test_modifier_subpix.cpp b/tests/test_modifier_subpix.cpp
|
||||
index d04f36d..fa29cf6 100644
|
||||
--- a/tests/test_modifier_subpix.cpp
|
||||
+++ b/tests/test_modifier_subpix.cpp
|
||||
@@ -51,7 +51,7 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
|
||||
lfFix->img_height = 300;
|
||||
lfFix->img_width = 300;
|
||||
|
||||
- lfFix->mod = lfModifier::Create(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
+ lfFix->mod = new lfModifier(lfFix->lens, 1.0f, lfFix->img_width, lfFix->img_height);
|
||||
|
||||
lfFix->mod->Initialize(
|
||||
lfFix->lens, LF_PF_F32,
|
||||
@@ -76,7 +76,7 @@ void mod_teardown(lfFixture *lfFix, gconstpointer data)
|
||||
else
|
||||
lf_free_align(lfFix->coordBuff);
|
||||
|
||||
- lfFix->mod->Destroy();
|
||||
+ delete lfFix->mod;
|
||||
delete lfFix->lens;
|
||||
}
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
From 3f74b78e4ee9f1d400ebbf2b9093a0f9c48c6307 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Kraft <mail@sebastiankraft.net>
|
||||
Date: Sat, 9 Jan 2016 20:48:16 +0100
|
||||
Subject: [PATCH 058/113] Use database in source directory while running tests.
|
||||
Fixes bug #46.
|
||||
|
||||
---
|
||||
tests/CMakeLists.txt | 4 ++--
|
||||
tests/test_database.cpp | 2 +-
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index b79fda6..4056072 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -1,6 +1,6 @@
|
||||
ADD_EXECUTABLE(test_database test_database.cpp)
|
||||
TARGET_LINK_LIBRARIES(test_database lensfun ${COMMON_LIBS})
|
||||
-ADD_TEST(Database test_database)
|
||||
+ADD_TEST(NAME Database WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND test_database)
|
||||
|
||||
ADD_EXECUTABLE(test_modifier test_modifier.cpp)
|
||||
TARGET_LINK_LIBRARIES(test_modifier lensfun ${COMMON_LIBS})
|
||||
@@ -30,4 +30,4 @@ TARGET_LINK_LIBRARIES(test_modifier_coord_geometry lensfun ${COMMON_LIBS})
|
||||
ADD_TEST(Modifier_coord_geometry test_modifier_coord_geometry)
|
||||
|
||||
FIND_PACKAGE(PythonInterp REQUIRED)
|
||||
-ADD_TEST(NAME Database_integrity COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/check_database/check_database.py ../../data/db)
|
||||
+ADD_TEST(NAME Database_integrity COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/check_database/check_database.py ${CMAKE_SOURCE_DIR}/data/db)
|
||||
diff --git a/tests/test_database.cpp b/tests/test_database.cpp
|
||||
index 45dc38f..49a2644 100644
|
||||
--- a/tests/test_database.cpp
|
||||
+++ b/tests/test_database.cpp
|
||||
@@ -10,7 +10,7 @@ typedef struct {
|
||||
void db_setup(lfFixture *lfFix, gconstpointer data)
|
||||
{
|
||||
lfFix->db = new lfDatabase ();
|
||||
- lfFix->db->Load();
|
||||
+ lfFix->db->LoadDirectory("data/db");
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
From 9ec857bb403accc262a9b5a9c2921b5c064fc9c8 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Kraft <mail@sebastiankraft.net>
|
||||
Date: Sat, 9 Jan 2016 20:55:21 +0100
|
||||
Subject: [PATCH 059/113] Patch #47: respect DESTDIR when installing python
|
||||
stuff
|
||||
|
||||
---
|
||||
apps/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
|
||||
index 70c77fd..2f6f8f1 100644
|
||||
--- a/apps/CMakeLists.txt
|
||||
+++ b/apps/CMakeLists.txt
|
||||
@@ -42,5 +42,5 @@ IF(PYTHON)
|
||||
IF(NOT DEFINED SETUP_PY_INSTALL_PREFIX)
|
||||
SET(SETUP_PY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
ENDIF()
|
||||
- INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${SETUP_PY_INSTALL_PREFIX})")
|
||||
+ INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})")
|
||||
ENDIF(PYTHON)
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
From bba9aa37c899999fca01101a8ed271a3aa9d82b7 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Kraft <mail@sebastiankraft.net>
|
||||
Date: Sat, 16 Jan 2016 15:42:57 +0100
|
||||
Subject: [PATCH 060/113] Various CMake patches from the mailing list
|
||||
|
||||
- Add GLIB2 libray path to link directories
|
||||
- Enable -msseX compiler switch for Clang
|
||||
- Set -mseeX switch only for files with SSE code
|
||||
- Do not enable SSE optimizations on non-x86 hardware by default
|
||||
---
|
||||
CMakeLists.txt | 19 +++++++++++++------
|
||||
libs/lensfun/CMakeLists.txt | 5 +++++
|
||||
2 files changed, 18 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 21f082b..b85656c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -31,12 +31,18 @@ IF(NOT HAVE_REGEX_H)
|
||||
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/libs/regex)
|
||||
ENDIF()
|
||||
|
||||
+IF(CMAKE_SYSTEM_PROCESSOR MATCHES "[XxIi][0-9]?86|[Aa][Mm][Dd]64")
|
||||
+ SET(X86_ON ON)
|
||||
+else()
|
||||
+ SET(X86_ON OFF)
|
||||
+ENDIF()
|
||||
+
|
||||
# options controlling the build process
|
||||
OPTION(BUILD_STATIC "Build static library" OFF)
|
||||
OPTION(BUILD_TESTS "Build test suite" OFF)
|
||||
OPTION(BUILD_LENSTOOL "Build the lenstool (requires libpng)" OFF)
|
||||
-OPTION(BUILD_FOR_SSE "Build with support for SSE" ON)
|
||||
-OPTION(BUILD_FOR_SSE2 "Build with support for SSE2" ON)
|
||||
+OPTION(BUILD_FOR_SSE "Build with support for SSE" ${X86_ON})
|
||||
+OPTION(BUILD_FOR_SSE2 "Build with support for SSE2" ${X86_ON})
|
||||
OPTION(BUILD_DOC "Build documentation with doxygen" OFF)
|
||||
OPTION(INSTALL_HELPER_SCRIPTS "Install various helper scripts" ON)
|
||||
|
||||
@@ -62,14 +68,14 @@ ENDIF()
|
||||
|
||||
IF(BUILD_FOR_SSE)
|
||||
SET(VECTORIZATION_SSE 1)
|
||||
- IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
|
||||
+ IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
+ SET(VECTORIZATION_SSE_FLAGS "-msse")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(BUILD_FOR_SSE2)
|
||||
SET(VECTORIZATION_SSE2 1)
|
||||
- IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2")
|
||||
+ IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
+ SET(VECTORIZATION_SSE2_FLAGS "-msse2")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
@@ -97,6 +103,7 @@ ELSE()
|
||||
ENDIF()
|
||||
|
||||
INCLUDE_DIRECTORIES(SYSTEM ${GLIB2_INCLUDE_DIRS})
|
||||
+LINK_DIRECTORIES(${GLIB2_LIBRARY_DIRS})
|
||||
|
||||
|
||||
IF(BUILD_STATIC)
|
||||
diff --git a/libs/lensfun/CMakeLists.txt b/libs/lensfun/CMakeLists.txt
|
||||
index 6beadec..b0ca638 100644
|
||||
--- a/libs/lensfun/CMakeLists.txt
|
||||
+++ b/libs/lensfun/CMakeLists.txt
|
||||
@@ -9,6 +9,11 @@ IF(WIN32)
|
||||
LIST(APPEND LENSFUN_SRC windows/auxfun.cpp)
|
||||
ENDIF()
|
||||
|
||||
+SET_SOURCE_FILES_PROPERTIES(mod-color-sse.cpp mod-coord-sse.cpp
|
||||
+ PROPERTIES COMPILE_FLAGS "${VECTORIZATION_SSE_FLAGS}")
|
||||
+SET_SOURCE_FILES_PROPERTIES(mod-color-sse2.cpp
|
||||
+ PROPERTIES COMPILE_FLAGS "${VECTORIZATION_SSE2_FLAGS}")
|
||||
+
|
||||
IF(BUILD_STATIC)
|
||||
ADD_LIBRARY(lensfun STATIC ${LENSFUN_SRC})
|
||||
ELSE()
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
From f400d8bfb7ea754ea75128ba14d9c7a23eb0527b Mon Sep 17 00:00:00 2001
|
||||
From: Torsten Bronger <bronger@physik.rwth-aachen.de>
|
||||
Date: Sat, 15 Oct 2016 15:02:04 +0200
|
||||
Subject: [PATCH 113/113] Added "std" namespace to "isnan".
|
||||
|
||||
Fixes bug #68.
|
||||
---
|
||||
tests/test_modifier.cpp | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp
|
||||
index f794638..5a2ed0d 100644
|
||||
--- a/tests/test_modifier.cpp
|
||||
+++ b/tests/test_modifier.cpp
|
||||
@@ -102,18 +102,18 @@ void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data)
|
||||
LF_MODIFY_GEOMETRY, false);
|
||||
|
||||
if (lfFix->mod->ApplyGeometryDistortion(0,0,1,1,res)) {
|
||||
- g_assert_false(isnan(res[0]));
|
||||
- g_assert_false(isnan(res[1]));
|
||||
+ g_assert_false(std::isnan(res[0]));
|
||||
+ g_assert_false(std::isnan(res[1]));
|
||||
}
|
||||
|
||||
if (lfFix->mod->ApplyGeometryDistortion(in[0],in[1],1,1,res)) {
|
||||
- g_assert_false(isnan(res[0]));
|
||||
- g_assert_false(isnan(res[1]));
|
||||
+ g_assert_false(std::isnan(res[0]));
|
||||
+ g_assert_false(std::isnan(res[1]));
|
||||
}
|
||||
|
||||
if (lfFix->mod->ApplyGeometryDistortion(in2[0],in2[1],1,1,res)) {
|
||||
- g_assert_false(isnan(res[0]));
|
||||
- g_assert_false(isnan(res[1]));
|
||||
+ g_assert_false(std::isnan(res[0]));
|
||||
+ g_assert_false(std::isnan(res[1]));
|
||||
}
|
||||
|
||||
delete lfFix->mod;
|
||||
--
|
||||
2.7.4
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
From 034ff1bfd7c97acd793132c8a50c099af656fb15 Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Andree <matthias.andree@gmx.de>
|
||||
Date: Sat, 29 Oct 2016 13:38:27 +0200
|
||||
Subject: [PATCH 0866/1096] Pull isnan() into std:: namespace, #include
|
||||
<cmath>, not <math.h>.
|
||||
|
||||
---
|
||||
tests/test_modifier.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp
|
||||
index 9c6def6..f087917 100644
|
||||
--- a/tests/test_modifier.cpp
|
||||
+++ b/tests/test_modifier.cpp
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifdef _MSC_VER
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
-#include <math.h>
|
||||
+#include <cmath>
|
||||
#include "lensfun.h"
|
||||
|
||||
typedef struct {
|
||||
--
|
||||
1.8.3.1
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
diff -up lensfun-0.3.2/docs/CMakeLists.txt.INSTALL_HELPER_SCRIPTS lensfun-0.3.2/docs/CMakeLists.txt
|
||||
--- lensfun-0.3.2/docs/CMakeLists.txt.INSTALL_HELPER_SCRIPTS 2016-01-03 11:43:52.326346877 -0600
|
||||
+++ lensfun-0.3.2/docs/CMakeLists.txt 2016-01-03 11:44:51.628838749 -0600
|
||||
@@ -22,6 +22,7 @@ ADD_CUSTOM_TARGET(doc
|
||||
# install documentation
|
||||
INSTALL(DIRECTORY ${CMAKE_DOC_OUT}/ DESTINATION ${CMAKE_INSTALL_DOCDIR})
|
||||
|
||||
+IF(INSTALL_HELPER_SCRIPTS)
|
||||
# create and install man pages
|
||||
FIND_PROGRAM(RST2MAN_EXECUTABLE NAMES rst2man rst2man.py rst2man2 rst2man2.py)
|
||||
ADD_CUSTOM_TARGET(man ALL)
|
||||
@@ -39,3 +40,4 @@ INSTALL(FILES
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lensfun-add-adapter.1
|
||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
||||
)
|
||||
+ENDIF(INSTALL_HELPER_SCRIPTS)
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"lensfun-0.3.2.tar.gz": "ae8bcad46614ca47f5bda65b00af4a257a9564a61725df9c74cb260da544d331"
|
||||
}
|
||||
}
|
|
@ -1,380 +0,0 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
%if !0%{?bootstrap} && (0%{?fedora} || 0%{?rhel} > 6)
|
||||
%global tests 1
|
||||
%global python3 python%{python3_pkgversion}
|
||||
%endif
|
||||
|
||||
Name: lensfun
|
||||
Version: 0.3.2
|
||||
Summary: Library to rectify defects introduced by photographic lenses
|
||||
Release: 25%{?dist}
|
||||
|
||||
License: LGPLv3 and CC-BY-SA
|
||||
URL: http://lensfun.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
|
||||
## upstream patches
|
||||
Patch1: 0001-Only-require-glib-2.40-when-tests-are-build-without-.patch
|
||||
Patch38: 0038-Only-use-proper-C-new-and-delete-syntax-for-object-c.patch
|
||||
Patch58: 0058-Use-database-in-source-directory-while-running-tests.patch
|
||||
Patch59: 0059-Patch-47-respect-DESTDIR-when-installing-python-stuf.patch
|
||||
Patch60: 0060-Various-CMake-patches-from-the-mailing-list.patch
|
||||
Patch113: 0113-Added-std-namespace-to-isnan.patch
|
||||
|
||||
## upstream patches (master branch)
|
||||
Patch866: 0866-Pull-isnan-into-std-namespace-include-cmath-not-math.patch
|
||||
|
||||
## upstreamable patches
|
||||
# install manpages only when INSTALL_HELPER_SCRIPTS=ON
|
||||
Patch200: lensfun-0.3.2-INSTALL_HELPER_SCRIPTS.patch
|
||||
|
||||
BuildRequires: cmake >= 2.8
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%if 0%{?python3:1}
|
||||
BuildRequires: python3 python3-devel
|
||||
%else
|
||||
Obsoletes: lensfun-python3 < %{version}-%{release}
|
||||
Obsoletes: lensfun-tools < %{version}-%{release}
|
||||
%endif
|
||||
# for rst2man, if INSTALL_HELPER_SCRIPTS != OFF
|
||||
BuildRequires: /usr/bin/rst2man
|
||||
|
||||
%description
|
||||
The lensfun library provides an open source database of photographic lenses and
|
||||
their characteristics. It not only provides a way to read and search the
|
||||
database, but also provides a set of algorithms for correcting images based on
|
||||
detailed knowledge of lens properties. Right now lensfun is designed to correct
|
||||
distortion, transversal (also known as lateral) chromatic aberrations,
|
||||
vignetting and color contribution of a lens.
|
||||
|
||||
%package devel
|
||||
Summary: Development toolkit for %{name}
|
||||
License: LGPLv3
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
This package contains library and header files needed to build applications
|
||||
using lensfun.
|
||||
|
||||
%package tools
|
||||
Summary: Tools for managing %{name} data
|
||||
License: LGPLv3
|
||||
Requires: python3-lensfun = %{version}-%{release}
|
||||
%description tools
|
||||
This package contains tools to fetch lens database updates and manage lens
|
||||
adapters in lensfun.
|
||||
|
||||
%package -n python3-lensfun
|
||||
Summary: Python3 lensfun bindings
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%if 0%{?rhel} == 7
|
||||
## pkgname changed in epel7 from python34- to python36-
|
||||
Obsoletes: python34-lensfun < %{version}-%{release}
|
||||
%endif
|
||||
%description -n python3-lensfun
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch1 -p1 -b .0001
|
||||
%patch38 -p1 -b .0038
|
||||
%patch58 -p1 -b .0058
|
||||
%patch59 -p1 -b .0059
|
||||
%patch60 -p1 -b .0060
|
||||
%patch113 -p1 -b .0113
|
||||
|
||||
%patch866 -p1 -b .0866
|
||||
|
||||
%patch200 -p1 -b .INSTALL_HELPER_SCRIPTS
|
||||
|
||||
%if 0%{?python3:1}
|
||||
sed -i.shbang \
|
||||
-e "s|^#!/usr/bin/env python3$|#!%{__python3}|g" \
|
||||
apps/lensfun-add-adapter \
|
||||
apps/lensfun-update-data
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake} .. \
|
||||
-DBUILD_DOC:BOOL=ON \
|
||||
-DBUILD_TESTS:BOOL=%{?tests:ON}%{!?tests:OFF} \
|
||||
-DCMAKE_BUILD_TYPE:STRING=Release \
|
||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_pkgdocdir} \
|
||||
%{?!python3:-DINSTALL_HELPER_SCRIPTS:BOOL=OFF}
|
||||
popd
|
||||
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
make doc -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
# create/own /var/lib/lensfun-updates
|
||||
mkdir -p %{buildroot}/var/lib/lensfun-updates
|
||||
|
||||
## unpackaged files
|
||||
# omit g-lensfun-update-data because it needs gksudo which we don't ship
|
||||
rm -fv %{buildroot}%{_bindir}/g-lensfun-update-data \
|
||||
%{buildroot}%{_mandir}/man1/g-lensfun-update-data.*
|
||||
|
||||
|
||||
%check
|
||||
%if 0%{?tests}
|
||||
pushd %{_target_platform}
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
ctest -vv
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license docs/cc-by-sa-3.0.txt docs/lgpl-3.0.txt
|
||||
%{_datadir}/lensfun/
|
||||
%{_libdir}/liblensfun.so.%{version}
|
||||
%{_libdir}/liblensfun.so.1*
|
||||
%dir /var/lib/lensfun-updates/
|
||||
|
||||
%files devel
|
||||
%{_pkgdocdir}/*.html
|
||||
%{_pkgdocdir}/*.png
|
||||
%{_pkgdocdir}/*.css
|
||||
%{_pkgdocdir}/*.js
|
||||
%{_includedir}/lensfun/
|
||||
%{_libdir}/liblensfun.so
|
||||
%{_libdir}/pkgconfig/lensfun.pc
|
||||
|
||||
%if 0%{?python3:1}
|
||||
%files tools
|
||||
%{_bindir}/lensfun-add-adapter
|
||||
%{_bindir}/lensfun-update-data
|
||||
%{_mandir}/man1/lensfun-add-adapter.1*
|
||||
%{_mandir}/man1/lensfun-update-data.1*
|
||||
|
||||
%files -n python3-lensfun
|
||||
%{python3_sitelib}/lensfun/
|
||||
%{python3_sitelib}/lensfun*.egg-info
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 07 2021 Muhammad Falak R Wani <mwani@microsoft.com> - 0.3.2-25
|
||||
- Initial CBL-Mariner import from Fedora 31 (license: MIT).
|
||||
- Fix usage of %{python3} macro. Use python3 instead of %{python3}.
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-24
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-23
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2019 Kalev Lember <klember@redhat.com> - 0.3.2-21
|
||||
- Avoid using the bindir macro in BuildRequires
|
||||
|
||||
* Wed Jun 19 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-20
|
||||
- use %%python3_pkgversion
|
||||
- epel7: Obsoletes: python34-lensfun (#1721810)
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 20 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-18
|
||||
- BR: %_bindir/rst2man (#1604549)
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Jul 11 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-16
|
||||
- use %%make_build %%ldconfig_scriptlets (#1600022)
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-15
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Tue Feb 20 2018 Nils Philippsen <nils@tiptoe.de> 0.3.2-14
|
||||
- require gcc, gcc-c++ for building
|
||||
|
||||
* Mon Feb 12 2018 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-13
|
||||
- -tools: make buildable on epel7/python34
|
||||
|
||||
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.2-12
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Thu Jun 29 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-9
|
||||
- epel7 compatibility (#1454359)
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Tue Jan 03 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-7
|
||||
- lensfun-tools package should depend on python3-lensfun (#1409893)
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-6
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Thu Dec 01 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-5
|
||||
- more upstream fixes... from the right branch (0.3)
|
||||
|
||||
* Thu Dec 01 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-4
|
||||
- support BUILD_FOR_SSE/SSE2 on %%ix86/x86_64 (#1400481)
|
||||
- enable/fix python bindings
|
||||
- pull in upstream fixes (tests, buildsys)
|
||||
|
||||
* Tue Nov 15 2016 Germano Massullo <germano.massullo@gmail.com> - 0.3.2-3
|
||||
- Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sun Jan 03 2016 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-1
|
||||
- lensfun-0.3.2 (#1295216), %%check: enable tests
|
||||
|
||||
* Tue Jul 14 2015 Rex Dieter <rdieter@fedoraproject.org> 0.3.1-3
|
||||
- lensfun-update-data: Root privileges needed (#1242826)
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed May 13 2015 Nils Philippsen <nils@redhat.com> - 0.3.1-1
|
||||
- version 0.3.1 (with API/ABI changes)
|
||||
- fix source URL (no tar.bz2 available)
|
||||
- update patches
|
||||
|
||||
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.0-5
|
||||
- Rebuilt for GCC 5 C++11 ABI change
|
||||
|
||||
* Wed Nov 19 2014 Nils Philippsen <nils@redhat.com> 0.3.0-4
|
||||
- reenable helper scripts
|
||||
- install man pages into their correct place
|
||||
- correct typo
|
||||
|
||||
* Mon Nov 17 2014 Rex Dieter <rdieter@fedoraproject.org> 0.3.0-3
|
||||
- enable sse only in %%ix86 x86_64, sse2 on x86_64, disable elsewhere
|
||||
|
||||
* Mon Nov 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.3.0-2
|
||||
- -DINSTALL_HELPER_SCRIPTS=OFF (with patch)
|
||||
- -DCMAKE_BUILD_TYPE=Release (defaults to Debug otherwise)
|
||||
- disable SSE2 on %%ix86 (fedora base i686 platform doesn't support it)
|
||||
- use %%buildroot consistently
|
||||
|
||||
* Mon Nov 17 2014 Nils Philippsen <nils@redhat.com> - 0.3.0-1
|
||||
- version 0.3.0
|
||||
|
||||
* Tue Nov 04 2014 Nils Philippsen <nils@redhat.com> - 0.3.0-1
|
||||
- Lensfun moved from Berlios to SourceForge (#1159993)
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Mon Jan 06 2014 Rex Dieter <rdieter@fedoraproject.org> 0.2.8-1
|
||||
- 0.2.8 (#1048784)
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Tue Mar 19 2013 Rex Dieter <rdieter@fedoraproject.org> 0.2.7-1
|
||||
- 0.2.7
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Jul 25 2012 Nils Philippsen <nils@redhat.com> - 0.2.6-3
|
||||
- pkgconfig: fix cflags so lensfun.h is found
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Jun 28 2012 Rex Dieter <rdieter@fedoraproject.org>
|
||||
- 0.2.6-1
|
||||
- lensfun-0.2.6 (#836156)
|
||||
- use cmake
|
||||
- use pkgconfig-style deps
|
||||
|
||||
* Thu Jun 21 2012 Nils Philippsen <nils@redhat.com> - 0.2.5-8
|
||||
- don't modify doxygen configuration anymore as doxygen carries fixes now
|
||||
(#831399)
|
||||
|
||||
* Fri Jun 15 2012 Nils Philippsen <nils@redhat.com> - 0.2.5-7
|
||||
- multilib: don't embed creation dates in generated docs (#831399)
|
||||
|
||||
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 0.2.5-6
|
||||
- rebuild for gcc 4.7
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Sep 29 2010 jkeating - 0.2.5-4
|
||||
- Rebuilt for gcc bug 634757
|
||||
|
||||
* Mon Sep 20 2010 Nils Philippsen <nils@redhat.com> 0.2.5-3
|
||||
- backport cpuid fixes (#631674)
|
||||
|
||||
* Mon Jul 26 2010 Dan Horák <dan[at]danny.cz> 0.2.5-2
|
||||
- disable SSE vectorization on non x86 arches
|
||||
|
||||
* Mon Jun 07 2010 Nils Philippsen <nils@redhat.com> 0.2.5-1
|
||||
- lensfun-0.2.5
|
||||
- add CC-BY-SA to main package license tag for lens data
|
||||
- don't ship GPLv3 text as nothing is licensed under it currently
|
||||
- mark documentation files as such
|
||||
- shorten summaries, expand package descriptions
|
||||
|
||||
* Sun Oct 18 2009 Rex Dieter <rdieter@fedoraproject.orG> 0.2.4-1
|
||||
- lensfun-0.2.4 (#529506)
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-3
|
||||
- rebuild for pkgconfig deps
|
||||
|
||||
* Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-2
|
||||
- -devel: Requires: pkgconfig
|
||||
|
||||
* Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-1
|
||||
- lensfun-0.2.3
|
||||
- fix SOURCE Url
|
||||
- configure --target=..generic
|
||||
|
||||
* Mon Oct 13 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-3
|
||||
- BR: doxygen
|
||||
|
||||
* Mon Oct 13 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-2
|
||||
- fix subpkg deps
|
||||
|
||||
* Sun Sep 28 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-1
|
||||
- adapt for fedora
|
||||
|
||||
* Tue Jun 24 2008 Helio Chissini de Castro <helio@mandriva.com> 0.2.2b-1mdv2009.0
|
||||
+ Revision: 228769
|
||||
- Added missing buildrequires
|
||||
- import lensfun
|
|
@ -1,10 +0,0 @@
|
|||
--- configure~ 2011-05-24 09:42:29.000000000 -0500
|
||||
+++ configure 2012-11-06 11:59:30.799643285 -0600
|
||||
@@ -4016,7 +4016,6 @@
|
||||
-Wformat-security \
|
||||
-Wformat-nonliteral \
|
||||
-Wno-format-y2k \
|
||||
--Wcast-align \
|
||||
-Wno-unused-value"
|
||||
|
||||
CFLAGS="$CFLAGS $CC_WARNINGS -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE"
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"libcmpiutil-0.5.7.tar.gz": "ca0391fe2188dcc25c963f4fa5758744e6525252867c91dea6356c169c0e1deb"
|
||||
}
|
||||
}
|
|
@ -1,167 +0,0 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
# -*- rpm-spec -*-
|
||||
|
||||
Summary: CMPI Utility Library
|
||||
Name: libcmpiutil
|
||||
Version: 0.5.7
|
||||
Release: 16%{?dist}
|
||||
License: LGPLv2+
|
||||
# Source0: https://github.com/libvirt/libcmpiutil/archive/refs/tags/v0.5.7.tar.gz
|
||||
Source: https://github.com/libvirt/libcmpiutil/archive/refs/tags/libcmpiutil-%{version}.tar.gz
|
||||
Patch0: libcmpiutil-0.5.6-cast-align.patch
|
||||
URL: https://github.com/libvirt/libcmpiutil
|
||||
BuildRequires: gcc
|
||||
BuildRequires: tog-pegasus-devel
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
BuildRequires: libxml2-devel
|
||||
BuildConflicts: sblim-cmpi-devel
|
||||
|
||||
%description
|
||||
Libcmpiutil is a library of utility functions for CMPI providers.
|
||||
The goal is to reduce the amount of repetitive work done in
|
||||
most CMPI providers by encapsulating common procedures with more
|
||||
"normal" APIs. This extends from operations like getting typed
|
||||
instance properties to standardizing method dispatch and argument checking.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries, includes, etc. to use the CMPI utility library
|
||||
Requires: tog-pegasus-devel
|
||||
Requires: pkgconfig
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Includes and documentations for the CMPI utility library
|
||||
The goal is to reduce the amount of repetitive work done in
|
||||
most CMPI providers by encapsulating common procedures with more
|
||||
"normal" APIs. This extends from operations like getting typed
|
||||
instance properties to standardizing method dispatch and argument checking.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
chmod -x *.c *.y *.h *.l
|
||||
|
||||
%patch0 -p0
|
||||
|
||||
%build
|
||||
# FIXME: Package has c11 inline compatibility issues.
|
||||
# Work-around by appending -std=gnu89 to CFLAGS.
|
||||
# Proper fix would be to fix the sources.
|
||||
%configure --enable-static=no --disable-silent-rules CFLAGS="${RPM_OPT_FLAGS} -std=gnu89"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc doc/doxygen.conf doc/mainpage README
|
||||
%license COPYING
|
||||
%{_libdir}/lib*.so.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/lib*.so
|
||||
%dir %{_includedir}/libcmpiutil
|
||||
%{_includedir}/libcmpiutil/*.h
|
||||
%{_libdir}/pkgconfig/libcmpiutil.pc
|
||||
|
||||
%doc doc/SubmittingPatches
|
||||
|
||||
%changelog
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.5.7-16
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Thu Aug 13 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.5.7-6
|
||||
- Append -std=gnu89 to CFLAGS (Address F23FTBFS, RHBZ#1239639).
|
||||
- Add %%license.
|
||||
- Modernize spec.
|
||||
- Make building verbose.
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Apr 15 2013 Daniel Veillard <veillard@redhat.com> 0.5.7-1
|
||||
- update to 0.5.7 upstream release
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.6-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Tue Nov 06 2012 Jon Ciesla <limburgher@gmail.com> - 0.5.6-4
|
||||
- Remove cast-align to fix FTBFS on ARM, 872543.
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Wed Jul 6 2011 Daniel Veillard <veillard@redhat.com> - 0.5.6-1
|
||||
- Update to new upstream release 0.5.6
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Sun Jan 17 2010 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5.1-1
|
||||
- Updated to official 0.5.1 source release
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Jul 15 2009 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5-1
|
||||
- Updated to official 0.5 source release
|
||||
|
||||
* Tue May 20 2008 Dan Smith <danms@us.ibm.com> - 0.4-1
|
||||
- Updated to official 0.4 source release
|
||||
|
||||
* Fri Feb 29 2008 Dan Smith <danms@us.ibm.com> - 0.3-1
|
||||
- Updated to official 0.3 source release
|
||||
|
||||
* Wed Feb 13 2008 Dan Smith <danms@us.ibm.com> - 0.2-1
|
||||
- Updated to official 0.2 source release
|
||||
|
||||
* Fri Nov 30 2007 Dan Smith <danms@us.ibm.com> - 0.1-6
|
||||
- Updated to official 0.1 source release
|
||||
- Added Source0 URL
|
||||
|
||||
* Fri Oct 26 2007 Daniel Veillard <veillard@redhat.com> - 0.1-1
|
||||
- created
|
|
@ -11,13 +11,13 @@ Distribution: Mariner
|
|||
|
||||
Name: libdbusmenu
|
||||
Version: %{ubuntu_release}.0
|
||||
Release: 16%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Summary: Library for passing menus over DBus
|
||||
|
||||
# All files installed in final rpms use C sources with dual licensing headers.
|
||||
# Tests compiled in the build process are licensed GPLv3
|
||||
|
||||
License: LGPLv3 or LGPLv2 and GPLv3
|
||||
License: LGPLv3 or LGPLv2+ and GPLv3
|
||||
URL: https://launchpad.net/libdbusmenu
|
||||
Source0: https://launchpad.net/libdbusmenu/%{ubuntu_release}/%{version}/+download/%{name}-%{version}.tar.gz
|
||||
|
||||
|
@ -25,6 +25,7 @@ Source0: https://launchpad.net/libdbusmenu/%{ubuntu_release}/%{version}/+down
|
|||
Patch0: 00-no-werror.patch
|
||||
|
||||
BuildRequires: atk-devel
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gettext
|
||||
|
@ -262,6 +263,12 @@ done
|
|||
%{_datadir}/%{name}/json/test-gtk-label.json
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 16.04.0-18
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 16.04.0-17
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 16.04.0-16
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ Distribution: Mariner
|
|||
|
||||
Name: libkkc
|
||||
Version: 0.3.5
|
||||
Release: 19%{?dist}
|
||||
Release: 21%{?dist}
|
||||
Summary: Japanese Kana Kanji conversion library
|
||||
|
||||
License: GPLv3+
|
||||
|
@ -17,6 +17,7 @@ Patch1: libkkc-POT.skip.patch
|
|||
Patch2: libkkc-vala-abstract-create.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: marisa-devel
|
||||
BuildRequires: vala
|
||||
BuildRequires: pkgconfig(gee-0.8)
|
||||
|
@ -92,7 +93,8 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README data/rules/README.rules COPYING
|
||||
%license COPYING
|
||||
%doc README data/rules/README.rules
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/girepository-1.0/*.typelib
|
||||
|
||||
|
@ -112,6 +114,12 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.3.5-21
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.3.5-20
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Mon Nov 01 2021 Muhammad Falak <mwani@microsft.com> - 0.3.5-19
|
||||
- Remove epoch from libkkc-data
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"liblouis-3.12.0.tar.gz": "87d9bad6d75916270bad14bb22fa5f487c7edee4774878c04bef82833bc9467d"
|
||||
}
|
||||
}
|
|
@ -1,354 +0,0 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
# Turn off the brp-python-bytecompile script
|
||||
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
||||
|
||||
%bcond_with docs
|
||||
|
||||
Name: liblouis
|
||||
Version: 3.12.0
|
||||
Release: 4%{?dist}
|
||||
Summary: Braille translation and back-translation library
|
||||
|
||||
License: LGPLv3+
|
||||
URL: http://liblouis.org
|
||||
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: gcc
|
||||
BuildRequires: help2man
|
||||
BuildRequires: libyaml-devel
|
||||
BuildRequires: texinfo
|
||||
%if %{with docs}
|
||||
BuildRequires: texinfo-tex
|
||||
BuildRequires: texlive-eurosym
|
||||
BuildRequires: texlive-xetex
|
||||
%endif
|
||||
BuildRequires: python3-devel
|
||||
|
||||
Provides: bundled(gnulib)
|
||||
|
||||
%description
|
||||
Liblouis is an open-source braille translator and back-translator named in
|
||||
honor of Louis Braille. It features support for computer and literary braille,
|
||||
supports contracted and uncontracted translation for many languages and has
|
||||
support for hyphenation. New languages can easily be added through tables that
|
||||
support a rule- or dictionary based approach. Liblouis also supports math
|
||||
braille (Nemeth and Marburg).
|
||||
|
||||
Liblouis has features to support screen-reading programs. This has led to its
|
||||
use in two open-source screen readers, NVDA and Orca. It is also used in some
|
||||
commercial assistive technology applications for example by ViewPlus.
|
||||
|
||||
Liblouis is based on the translation routines in the BRLTTY screen reader for
|
||||
Linux. It has, however, gone far beyond these routines.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package utils
|
||||
Summary: Command-line utilities to test %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
License: GPLv3+
|
||||
|
||||
%description utils
|
||||
Six test programs are provided as part of the liblouis package. They
|
||||
are intended for testing liblouis and for debugging tables. None of
|
||||
them is suitable for braille transcription.
|
||||
|
||||
|
||||
%package -n python3-louis
|
||||
Summary: Python 3 language bindings for %{name}
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python3 < 2.6.2-3
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Provides: %{name}-python3 = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-louis}
|
||||
|
||||
%description -n python3-louis
|
||||
This package provides Python 3 language bindings for %{name}.
|
||||
|
||||
%if %{with docs}
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
This package provides the documentation for liblouis.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --disable-static --enable-ucs4
|
||||
# parallel builds fail
|
||||
make
|
||||
%if %{with docs}
|
||||
cd doc; xetex %{name}.texi
|
||||
%endif
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}/%{_infodir}/dir
|
||||
rm -f %{buildroot}/%{_libdir}/%{name}.la
|
||||
rm -rf %{buildroot}/%{_bindir}/lou_maketable*
|
||||
rm -rf %{buildroot}/%{_defaultdocdir}/%{name}/
|
||||
cd python/louis
|
||||
|
||||
install -d %{buildroot}%{python3_sitelib}/louis
|
||||
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
||||
|
||||
# Remove Rpaths from the executables. We must do that in the %%install section
|
||||
# because, otherwise, the test suite wouldn't build.
|
||||
for f in %{buildroot}%{_bindir}/lou_* ; do
|
||||
chrpath --delete $f
|
||||
done
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%doc README AUTHORS NEWS ChangeLog TODO
|
||||
%license COPYING.LESSER
|
||||
%{_libdir}/%{name}.so.*
|
||||
%{_datadir}/%{name}/
|
||||
%{_infodir}/%{name}.info*
|
||||
|
||||
%files devel
|
||||
%doc HACKING
|
||||
%{_includedir}/%{name}/
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/%{name}.so
|
||||
|
||||
%files utils
|
||||
%license COPYING
|
||||
%{_bindir}/lou_*
|
||||
%{_mandir}/man1/lou_*.1*
|
||||
|
||||
%files -n python3-louis
|
||||
%{python3_sitelib}/louis/
|
||||
|
||||
%if %{with docs}
|
||||
%files doc
|
||||
%doc doc/%{name}.{html,txt,pdf}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Jul 14 2021 Muhammad Falak Wani <mwani@microsoft.com> - 3.12.0-4
|
||||
- Add an explicit provides for liblouis-python
|
||||
|
||||
* Tue Jun 15 2021 Thomas Crain <thcrain@microsoft.com> - 3.12.0-3
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Conditionally build tex-based documentation (off by default)
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Mon Jan 20 2020 Martin Gieseking <martin.gieseking@uos.de> - 3.12.0-1
|
||||
- Updated to 3.12.0.
|
||||
- Dropped date from Provides(gnulib).
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.10.0-4
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.10.0-3
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Mon Jun 03 2019 Martin Gieseking <martin.gieseking@uos.de> - 3.10.0-1
|
||||
- Updated to 3.10.0.
|
||||
- Use %%license tag to add the file containing the license text.
|
||||
|
||||
* Mon Mar 04 2019 Martin Gieseking <martin.gieseking@uos.de> - 3.9.0-1
|
||||
- Updated to 3.9.0.
|
||||
- Dropped GCC 9 related patch since changes have been applied upstream.
|
||||
|
||||
* Fri Feb 08 2019 Martin Gieseking <martin.gieseking@uos.de> - 3.8.0-3
|
||||
- Fixed memory issue introduced with GCC 9 (changed semantics of block scope compound literals).
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Mon Dec 10 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.8.0-1
|
||||
- Updated to 3.8.0
|
||||
|
||||
* Sat Oct 13 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.7.0-2
|
||||
- Dropped Python 2 language bindings according to
|
||||
https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
- Dropped Python dependency from utils package because it doesn't contain Python scripts any longer
|
||||
- Added BR:libyaml-devel to enable YAML support
|
||||
|
||||
* Wed Sep 26 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.7.0-1
|
||||
- Updated to 3.7.0, fixes CVE-2018-17294 (BZ #1632834).
|
||||
|
||||
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 3.6.0-4
|
||||
- Rebuild with fixed binutils
|
||||
|
||||
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.0-3
|
||||
- Replace obsolete scriptlets
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Jul 09 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.6.0-1
|
||||
- Updated to 3.6.0.
|
||||
- Added patch to fix CVE-2018-12085.
|
||||
- Create liblouis.pdf with XeTeX rather than texi2pdf to prevent build errors.
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.2-16
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.6.2-14
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.6.2-13
|
||||
- Python 2 binary package renamed to python2-louis
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
|
||||
* Fri Nov 03 2017 Martin Gieseking <martin.gieseking@uos.de> - 2.6.2-12
|
||||
- Applied security fixes from EL 7.4 (CVE-2014-8184, CVE-2017-13738, CVE-2017-13740, CVE-2017-13741, CVE-2017-13742, CVE-2017-13743, CVE-2017-13744)
|
||||
- Dropped redundant parts of the spec file.
|
||||
- Updated URL.
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Wed Feb 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.6.2-9
|
||||
- Rebuild for brp-python-bytecompile
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.6.2-7
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-6
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||
|
||||
* Sun Aug 23 2015 Kalev Lember <klember@redhat.com> - 2.6.2-3
|
||||
- Rename liblouis-python3 to python3-louis, as per latest packaging guidelines
|
||||
- Fix the build with texinfo 6.0
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Apr 08 2015 Martin Gieseking <martin.gieseking@uos.de> 2.6.2-1
|
||||
- Updated to new upstream release.
|
||||
|
||||
* Tue Sep 16 2014 Martin Gieseking <martin.gieseking@uos.de> 2.6.0-1
|
||||
- Updated to new upstream release.
|
||||
|
||||
* Mon Aug 18 2014 Martin Gieseking <martin.gieseking@uos.de> 2.5.4-5
|
||||
- Fixed check for ELF binaries to prevent chrpath from failing.
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
||||
|
||||
* Tue May 13 2014 Martin Gieseking <martin.gieseking@uos.de> 2.5.4-1
|
||||
- Updated to new upstream release.
|
||||
- Activated the bundled test suite which has been adapted to work correctly with the recent release.
|
||||
- Remove Rpaths from the utility programs.
|
||||
- Updated the description according to the upstream website.
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Jul 22 2013 Martin Gieseking <martin.gieseking@uos.de> - 2.5.3-1
|
||||
- Update to new upstream release.
|
||||
|
||||
* Thu Jul 18 2013 Matthias Clasen <mclasen@redhat.com> - 2.5.2-7
|
||||
- Tighten dependencies between subpackages (pointed out by rpmdiff)
|
||||
|
||||
* Tue Apr 16 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-6
|
||||
- Restrict exclusion of Python 3 packages to RHEL <= 7.
|
||||
|
||||
* Mon Apr 15 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-5
|
||||
- Restrict exclusion of Python 3 packages to RHEL < 7.
|
||||
|
||||
* Mon Apr 15 2013 Rui Matos <rmatos@redhat.com> - 2.5.2-4
|
||||
- Don't depend on python3 in RHEL.
|
||||
|
||||
* Tue Feb 26 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-3
|
||||
- Added Python 3 language bindings.
|
||||
|
||||
* Fri Feb 22 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-2
|
||||
- Moved documentation to doc subpackage.
|
||||
|
||||
* Wed Feb 06 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-1
|
||||
- Updated to new upstream release.
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Mar 10 2012 Martin Gieseking <martin.gieseking@uos.de> 2.4.1-1
|
||||
- Updated to upstream release 2.4.1.
|
||||
- Made the devel package's dependency on the base package arch specific.
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Mon Dec 12 2011 Martin Gieseking <martin.gieseking@uos.de> 2.4.0-1
|
||||
- Updated to upstream release 2.4.0.
|
||||
|
||||
* Fri May 20 2011 Martin Gieseking <martin.gieseking@uos.de> 2.3.0-1
|
||||
- Updated to upstream release 2.3.0.
|
||||
|
||||
* Mon Feb 28 2011 Martin Gieseking <martin.gieseking@uos.de> - 2.2.0-2
|
||||
- Added release date of bundled gnulib to Provides.
|
||||
- Use %%{name} macro consistently.
|
||||
|
||||
* Tue Feb 15 2011 Martin Gieseking <martin.gieseking@uos.de> - 2.2.0-1
|
||||
- Updated to upstream release 2.2.0.
|
||||
- Added Python bindings.
|
||||
|
||||
* Mon Jul 5 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.9.0-2
|
||||
- In advice from Martin Gieseking: Removed some garbage from the file section, and added a PDF version of the liblouis documentation. See <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
|
||||
|
||||
* Wed Jun 30 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.9.0-1
|
||||
- A new version was up to day. At the same time, fixed a minor spec issue according to a comment from Martin Gieseking, see <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
|
||||
|
||||
* Sun Jun 20 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.8.0-3
|
||||
- Fixed some small problems, among them wrong destination directory for documentation. See <https://bugzilla.redhat.com/show_bug.cgi?id=597597> for further details.
|
||||
|
||||
* Thu Jun 17 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> 1.8.0-2
|
||||
- Created the tools sub package and did a lot of clean ups, see <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
|
||||
|
||||
* Sat May 29 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> 1.8.0-1
|
||||
- Create the RPM for Fedora.
|
|
@ -12,10 +12,10 @@ Distribution: Mariner
|
|||
|
||||
Name: libomp
|
||||
Version: 10.0.1
|
||||
Release: 4%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: OpenMP runtime for clang
|
||||
|
||||
License: NCSA
|
||||
License: ASL 2.0 and MIT and NCSA
|
||||
URL: http://openmp.llvm.org
|
||||
%if 0%{?rc_ver:1}
|
||||
Source0: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{libomp_srcdir}.tar.xz
|
||||
|
@ -32,6 +32,8 @@ Patch0: 0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch
|
|||
Patch1: 99b03c1c18.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: elfutils-libelf-devel
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-Data-Dumper
|
||||
|
@ -135,6 +137,12 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
|||
%{_libexecdir}/tests/libomp/
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 10.0.1-6
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 10.0.1-5
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Thu Oct 14 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 10.0.1-4
|
||||
- Converting the 'Release' tag to the '[number].[distribution]' format.
|
||||
|
||||
|
|
|
@ -2,20 +2,26 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
Name: orangefs
|
||||
Version: 2.9.7
|
||||
Release: 7%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Parallel network file system client
|
||||
URL: http://www.orangefs.org/
|
||||
# ASL 2.0 src/client/jni
|
||||
# BSD (2 clause) maint/config/ssl.m4
|
||||
# BSD (3 clause) src/client/usrint/fts.c
|
||||
# BSD (3 clause) src/client/usrint/fts.h
|
||||
# MIT maint/config/install-sh
|
||||
# zlib src/common/misc/md5.c
|
||||
# zlib src/common/misc/md5.h
|
||||
# GPLv2 src/kernel
|
||||
# LGPLv2 src/apps/admin/pvfs2-config.in
|
||||
# LGPLv2 src/common/dotconf/dotconf.c
|
||||
# LGPLv2+ remainder
|
||||
License: LGPLv2+ and LGPLv2 and BSD and MIT and zlib
|
||||
# MIT maint/config/install-sh
|
||||
# OpenLDAP src/apps/devel/lmdb and src/common/lmdb
|
||||
# Public Domain src/common/hash/murmur3.c
|
||||
# zlib src/common/misc/md5.c
|
||||
# zlib src/common/misc/md5.h
|
||||
License: ASL 2.0 and BSD and GPLv2 and LGPLv2+ and LGPLv2 and MIT and OpenLDAP and Public Domain and zlib
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Term::ReadLine)
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison flex libattr-devel openssl-devel
|
||||
BuildRequires: perl(Math::BigInt) perl(Getopt::Long)
|
||||
|
@ -26,7 +32,7 @@ BuildRequires: lmdb-devel fuse-devel
|
|||
BuildRequires: libibverbs-devel
|
||||
%endif
|
||||
|
||||
Source0: https://s3.amazonaws.com/download.orangefs.org/current/source/orangefs-%version.tar.gz
|
||||
Source0: https://s3.amazonaws.com/download.orangefs.org/releases/2.9.7/source/orangefs-%version.tar.gz
|
||||
Source1: orangefs-server.service
|
||||
Source2: orangefs-client.service
|
||||
Source3: orangefs.conf
|
||||
|
@ -94,7 +100,7 @@ install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/orangefs
|
|||
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}
|
||||
|
||||
%files
|
||||
|
||||
%license COPYING
|
||||
%config(noreplace) %{_sysconfdir}/pvfs2tab
|
||||
%{_bindir}/pvfs2-check-server
|
||||
%{_bindir}/pvfs2-chmod
|
||||
|
@ -248,6 +254,12 @@ This package contains the FUSE client.
|
|||
%{_bindir}/pvfs2fuse
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.9.7-9
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.9.7-8
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Jan 08 2021 Ruying Chen <v-ruyche@microsoft.com> - 2.9.7-7
|
||||
- Initial CBL-Mariner import from Fedora 31 (license: MIT).
|
||||
- Build without docs and remove related build requirements.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Name: realmd
|
||||
Version: 0.16.3
|
||||
Release: 23%{?dist}
|
||||
Release: 25%{?dist}
|
||||
Summary: Kerberos realm enrollment service
|
||||
License: LGPLv2+
|
||||
Vendor: Microsoft Corporation
|
||||
|
@ -33,6 +33,7 @@ Patch15: 0001-tests-ignore-order-in-test_update_domain.patch
|
|||
Patch16: 0001-Remove-support-for-deprecated-gtester-format.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: automake
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: intltool pkgconfig
|
||||
|
@ -83,7 +84,8 @@ make install DESTDIR=%{buildroot}
|
|||
%find_lang realmd
|
||||
|
||||
%files -f realmd.lang
|
||||
%doc AUTHORS COPYING NEWS README
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README
|
||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.realmd.conf
|
||||
%{_sbindir}/realm
|
||||
%dir %{_prefix}/lib/realmd
|
||||
|
@ -100,6 +102,12 @@ make install DESTDIR=%{buildroot}
|
|||
%doc ChangeLog
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.16.3-25
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.16.3-24
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Dec 11 2020 Ruying Chen <v-ruyche@microsoft.com> - 0.16.3-23
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Add e2fsprogs-devel buildrequirement for missing header file.
|
||||
|
|
|
@ -2,7 +2,7 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
Name: seahorse-sharing
|
||||
Version: 3.8.0
|
||||
Release: 19%{?dist}
|
||||
Release: 21%{?dist}
|
||||
Summary: Sharing of PGP public keys via DNS-SD and HKP
|
||||
# daemon is GPLv2+
|
||||
# libegg is LGPLv2+
|
||||
|
@ -13,6 +13,7 @@ Source0: http://ftp.gnome.org/pub/gnome/sources/seahorse-sharing/3.8/%{na
|
|||
Provides: bundled(egglib)
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gnupg2
|
||||
|
@ -58,6 +59,12 @@ desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/%{name}.deskto
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.8.0-21
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.8.0-20
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.8.0-19
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ Distribution: Mariner
|
|||
Summary: Analysis plugins for use with setroubleshoot
|
||||
Name: setroubleshoot-plugins
|
||||
Version: 3.3.12
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
Release: 4%{?dist}
|
||||
License: GPLv3
|
||||
URL: https://github.com/fedora-selinux/setroubleshoot
|
||||
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
|
||||
# git format-patch -N setroubleshoot-plugins-<version> -- plugins
|
||||
|
@ -19,6 +19,7 @@ BuildArch: noarch
|
|||
# gcc is needed only for ./configure
|
||||
# Remove it when the build process is fixed
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildRequires: intltool gettext python3-devel
|
||||
# Introduction of get_package_nvr functions
|
||||
|
@ -46,10 +47,17 @@ make DESTDIR=%{buildroot} PYTHON=%{__python3} pkgdocdir=%{_pkgdocdir} install
|
|||
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/setroubleshoot/plugins
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license COPYING
|
||||
%doc %{_pkgdocdir}
|
||||
%{_datadir}/setroubleshoot/plugins
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.3.12-4
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.3.12-3
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.3.12-2
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Distribution: Mariner
|
|||
Summary: Helps troubleshoot SELinux problems
|
||||
Name: setroubleshoot
|
||||
Version: 3.3.24
|
||||
Release: 3%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://pagure.io/setroubleshoot
|
||||
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
|
||||
|
@ -15,6 +15,7 @@ Source1: %{name}.tmpfiles
|
|||
# i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
|
||||
Patch0001: 0001-framework-Update-translations.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: intltool gettext python3 python3-devel
|
||||
BuildRequires: desktop-file-utils dbus-glib-devel gtk2-devel libnotify-devel audit-libs-devel libselinux-devel polkit-devel
|
||||
|
@ -123,6 +124,8 @@ getent passwd %{username} >/dev/null || useradd -r -U -s /usr/sbin/nologin -d %{
|
|||
chown -R setroubleshoot:setroubleshoot %{pkgvardatadir}
|
||||
|
||||
%files server -f %{name}.lang
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog DBUS.md NEWS README TODO
|
||||
%{_bindir}/sealert
|
||||
%{_sbindir}/sedispatch
|
||||
%{_sbindir}/setroubleshootd
|
||||
|
@ -187,7 +190,6 @@ chown -R setroubleshoot:setroubleshoot %{pkgvardatadir}
|
|||
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
|
||||
%attr(0644,root,root) %{_tmpfilesdir}/%{name}.conf
|
||||
%attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot
|
||||
%doc AUTHORS COPYING ChangeLog DBUS.md NEWS README TODO
|
||||
|
||||
%package legacy
|
||||
Summary: SELinux troubleshoot legacy applet
|
||||
|
@ -202,6 +204,12 @@ SELinux troubleshoot legacy applet
|
|||
%{_bindir}/seappletlegacy
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.3.24-5
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.3.24-4
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Tue Jun 22 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.3.24-3
|
||||
- Replacing dependency on 'rpm-python3' with 'python3-rpm'.
|
||||
|
||||
|
|
|
@ -2,14 +2,15 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
Name: sound-theme-freedesktop
|
||||
Version: 0.8
|
||||
Release: 14%{?dist}
|
||||
Release: 16%{?dist}
|
||||
Summary: freedesktop.org sound theme
|
||||
Source0: http://people.freedesktop.org/~mccann/dist/sound-theme-freedesktop-%{version}.tar.bz2
|
||||
# For details on the licenses used, see CREDITS
|
||||
License: GPLv2+ and LGPLv2+ and CC-BY-SA and CC-BY
|
||||
License: CC-BY-SA and CC-BY and GPLv2+
|
||||
Url: http://www.freedesktop.org/wiki/Specifications/sound-theme-spec
|
||||
BuildArch: noarch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: gettext
|
||||
BuildRequires: intltool >= 0.40
|
||||
Requires(post): coreutils
|
||||
|
@ -43,6 +44,12 @@ touch --no-create %{_datadir}/sounds/freedesktop %{_datadir}/sounds
|
|||
%{_datadir}/sounds/freedesktop/stereo/*.oga
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.8-16
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.8-15
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.8-14
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
Red Hat SSL configuration for tog-pegasus
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The Red Hat tog-pegasus package is built with support for SSL
|
||||
(the Secure Socket Layer).
|
||||
Note: the upstream documentation for SSL is located here:
|
||||
/usr/share/doc/tog-pegasus/PegasusSSLGuidelines.htm
|
||||
However, because the upstream documentation for SSL is not up-to-date
|
||||
(it was last updated in March, 2006, around the time of the
|
||||
OpenPegasus-2.5.1 release), nor accurate, we are providing this short
|
||||
description of how to configure SSL, as well as how it should be used.
|
||||
|
||||
Hard-Coded Build-Time Constants:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Here is the list of constants which are hard-coded during build time:
|
||||
|
||||
PEGASUS_CONFIG_DIR = /etc/Pegasus
|
||||
|
||||
PEGASUS_PEM_DIR = /etc/pki/Pegasus
|
||||
|
||||
PEGASUS_SSL_KEY_FILE = file.pem
|
||||
PEGASUS_SSL_KEY_FILE_PATH = $(PEGASUS_PEM_DIR)/$(PEGASUS_SSL_KEY_FILE)
|
||||
(= /etc/pki/Pegasus/file.pem)
|
||||
o Contains the private key for the CIM Server SSL Certificate.
|
||||
|
||||
PEGASUS_SSL_CERT_FILE = server.pem
|
||||
PEGASUS_SSL_CERT_FILE_PATH = $(PEGASUS_PEM_DIR)/$(PEGASUS_SSL_CERT_FILE)
|
||||
(= /etc/pki/Pegasus/server.pem)
|
||||
o Contains the CIM Server SSL Certificate.
|
||||
|
||||
PEGASUS_SSL_TRUSTSTORE = client.pem
|
||||
PEGASUS_SSL_CLIENT_TRUSTSTORE = $(PEGASUS_PEM_DIR)/$(PEGASUS_SSL_TRUSTSTORE)
|
||||
(= /etc/pki/Pegasus/client.pem)
|
||||
PEGASUS_SSL_SERVER_TRUSTSTORE = $(PEGASUS_PEM_DIR)/cimserver_trust
|
||||
(= /etc/pki/Pegasus/cimserver_trust)
|
||||
o Specifies the location of the OpenSSL truststore. Consistent with the
|
||||
OpenSSL implementation, a truststore can be either a file or directory.
|
||||
If the truststore is a directory, then all certificates within the
|
||||
directory are considered trusted.
|
||||
|
||||
PEGASUS_SSL_SERVER_CRL = $(PEGASUS_PEM_DIR)/crl
|
||||
(= /etc/pki/Pegasus/crl)
|
||||
o This is where the CRL (Certificate Revocation List) store resides.
|
||||
|
||||
Tips Following Package Installation:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
o CIM Server default SSL certificates are generated when you run the
|
||||
tog-pegasus daemon (for example, by issuing the command
|
||||
"systemctl start tog-pegasus") for the first time, which includes the
|
||||
following files, which are created in /etc/pki/Pegasus: ca.crt, ca.srl,
|
||||
client.pem, file.pem, server.pem and in /etc/Pegasus: ssl-ca.cnf,
|
||||
ssl-service.cnf.
|
||||
Important: simply running the "cimserver" binary (/usr/sbin/cimserver)
|
||||
does NOT create the certificates or abovementioned files.
|
||||
Note: if you want to use your own certificates, simply overwrite the ones
|
||||
in /etc/pki/Pegasus.
|
||||
|
||||
o to enable/disable HTTPS port 5989 (the official WBEM secure port),
|
||||
use cimconfig.
|
||||
|
||||
o the wbemcli command (from the sblim-wbemcli package)
|
||||
uses /etc/pki/Pegasus/client.pem by default (see man wbemcli).
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
Red Hat Security Enhancements for tog-pegasus
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Access to the Pegasus services:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By default, with the configuration as shipped, the upstream Open Group Pegasus
|
||||
release allowed any user with an account on the machine (including root) to
|
||||
use the network HTTPS port 5989 (by default) and HTTP port 5988 services.
|
||||
On authentication failures, though there was the standard PAM authentication
|
||||
failure delay, no messages were logged to syslog. This meant that potentially
|
||||
a long-running cracker process could try millions of root passwords over the
|
||||
network and could possibly discover the root password . If users were unwise
|
||||
enough to enable the HTTP service on port 5988, then root passwords could be
|
||||
sent unencrypted over the network.
|
||||
|
||||
This situation was deemed unacceptable by Red Hat RHEL QA test and Security
|
||||
Response team engineers.
|
||||
|
||||
So for the Red Hat tog-pegasus release, PAM access control was enabled, to
|
||||
remove these vulnerabilities. There is now a "pegasus" user created during
|
||||
install, and users are recommended to use only that user to invoke CIM
|
||||
operations over the network.
|
||||
|
||||
By default:
|
||||
|
||||
o root password authentication for CIM operations invoked over the network
|
||||
HTTPS/HTTP services is denied - the root user is unable to invoke pegasus
|
||||
services over the network - only the "pegasus" user may do so.
|
||||
|
||||
o the root user may invoke CIM operations over the HTTPS/HTTP ports on the
|
||||
local machine.
|
||||
|
||||
o any user other than "pegasus" or "root" may not invoke pegasus services
|
||||
over the HTTPS/HTTP ports at all.
|
||||
|
||||
o any PAM authentication failure will be logged to syslog
|
||||
|
||||
NOTE: after installation, you must set the password for the pegasus user -
|
||||
issue this command as root :
|
||||
# passwd pegasus
|
||||
- to enable CIM operation network service, if the pegasus user is
|
||||
a local system user.
|
||||
|
||||
Note also that even though a non-root user's password is used to authenticate
|
||||
with the cimserver, the cimserver and all CIM Operation Providers run as root.
|
||||
This was another reason to restrict use of CIM Operations to only one user.
|
||||
|
||||
The "pegasus" user may of course be a NIS, Kerberos, or LDAP user, which
|
||||
could be used as configured in /etc/nsswitch.conf or with the PAM stack.
|
||||
|
||||
You may configure this differently, and at your own risk, by modifying the
|
||||
pam_access configuration file /etc/Pegasus/access.conf, or by removing the
|
||||
line:
|
||||
account required pam_access.so accessfile=/etc/Pegasus/access.conf
|
||||
from /etc/pam.d/wbem - then tog-pegasus' authentication behaviour would
|
||||
be the same as that of the upstream release.
|
||||
|
||||
SELinux
|
||||
~~~~~~~
|
||||
There is an SELinux policy for tog-pegasus shipped in selinux-policy-targeted-1.17.30-2.110+ .
|
||||
When SELinux is enabled in enforcing mode, the cimserver and providers are restricted to the
|
||||
operations allowed to the 'pegasus_t' security context. Also only the pegasus_exec_t context
|
||||
may modify the repository, and only the pegasus_exec_conf_t context may modify the pegasus
|
||||
configuration files which are of pegasus_conf_t file context.
|
||||
|
||||
It is also possible to have separate SELinux policy for each provider. Create wrapper
|
||||
in '/usr/libexec/pegasus' with its own specific SELinux label for each confined provider.
|
||||
The wrapper file name has to be in specific format '$MODULE-cimprovagt' (where $MODULE is
|
||||
value of PG_ProviderModule.ModuleGroupName as set during registration of the provider).
|
||||
|
||||
Original Pegasus's cimprovagt binary was moved to '/usr/libexec/pegasus/cimprovagt',
|
||||
'/usr/sbin/cimprovagt' is simple shell script now, which passes all arguments to provider specific
|
||||
wrapper if it exists or directly to original cimprovagt in other cases.
|
||||
|
||||
See example wrapper for Operating System Provider from sblim-cmpi-base package (which instruments
|
||||
Linux_OperatingSystem class):
|
||||
cmpiOSBase_OperatingSystemProvider-cimprovagt.example
|
||||
|
||||
ExecShield
|
||||
~~~~~~~~~~
|
||||
All tog-pegasus binary executables are compiled with ExecShield enabled, which make it nearly
|
||||
impossible to modify them or to poke executable code into them.
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
##############################################################################
|
||||
# Pegasus WBEM HTTP/HTTPS Network Service User Access Control Table:
|
||||
#
|
||||
# This file controls access to the Pegasus WBEM Network services by users
|
||||
# with the PAM pam_access module .
|
||||
#
|
||||
# The format of the access control table is three fields separated by a
|
||||
# ":" character:
|
||||
#
|
||||
# permission : users : origins
|
||||
#
|
||||
# The first field should be a "+" (access granted) or "-" (access denied)
|
||||
# character.
|
||||
#
|
||||
# The second field should be a list of one or more login names, group
|
||||
# names, or ALL (always matches). A pattern of the form user@host is
|
||||
# matched when the login name matches the "user" part, and when the
|
||||
# "host" part matches the local machine name.
|
||||
#
|
||||
# If you run NIS you can use @netgroupname in host or user patterns; this
|
||||
# even works for @usergroup@@hostgroup patterns. Weird.
|
||||
#
|
||||
# The EXCEPT operator makes it possible to write very compact rules.
|
||||
#
|
||||
# The group file is searched only when a name does not match that of the
|
||||
# logged-in user. Both the user's primary group is matched, as well as
|
||||
# groups in which users are explicitly listed.
|
||||
#
|
||||
# The third field must be 'wbemNetwork', to control access by users from
|
||||
# remote hosts, or 'wbemLocal', to control access by users from the local host.
|
||||
##############################################################################
|
||||
#
|
||||
# Pegasus PAM Access Rules:
|
||||
# 1. The Remote host user access rule:
|
||||
# By default, ONLY the pegasus user can use remote network HTTP/S service:
|
||||
#
|
||||
-: ALL EXCEPT pegasus:wbemNetwork
|
||||
#
|
||||
#
|
||||
# 2. The Local host user access rule:
|
||||
# By default, ONLY the pegasus and root users can use pegasus local HTTP/S service:
|
||||
#
|
||||
-: ALL EXCEPT pegasus root:wbemLocal
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# simple wrapper for Pegasus's cimprovagt
|
||||
# which allows providers to have separate
|
||||
# SELinux policy
|
||||
# see README.RedHat.Security for more info
|
||||
|
||||
provcimprovagt=/usr/libexec/pegasus/"$5"-cimprovagt
|
||||
|
||||
if [[ -x "$provcimprovagt" ]]
|
||||
then
|
||||
"$provcimprovagt" "$@"
|
||||
else
|
||||
/usr/libexec/pegasus/cimprovagt "$@"
|
||||
fi
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/libexec/pegasus/cimprovagt "$@"
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash
|
||||
cd /etc/Pegasus
|
||||
|
||||
if [ ! -e /etc/Pegasus/ssl-ca.cnf ] || [ ! -e /etc/Pegasus/ssl-service.cnf ] || [ ! -e /etc/pki/Pegasus/server.pem ] ||
|
||||
[ ! -e /etc/pki/Pegasus/file.pem ] || [ ! -e /etc/pki/Pegasus/client.pem ]; then
|
||||
if [ -x /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts ]; then
|
||||
# Create self-signed certificates for initial usage
|
||||
/usr/share/Pegasus/scripts/genOpenPegasusSSLCerts
|
||||
# Add the self-signed certificate to the local trust store
|
||||
cp /etc/pki/Pegasus/ca.crt \
|
||||
/etc/pki/ca-trust/source/anchors/localhost-pegasus.pem
|
||||
/usr/bin/update-ca-trust extract
|
||||
fi;
|
||||
fi;
|
|
@ -1,11 +0,0 @@
|
|||
diff -up pegasus/mak/config-linux.mak.orig pegasus/mak/config-linux.mak
|
||||
--- pegasus/mak/config-linux.mak.orig 2015-03-31 15:25:23.735154221 +0200
|
||||
+++ pegasus/mak/config-linux.mak 2015-03-31 15:26:29.349434918 +0200
|
||||
@@ -127,6 +127,7 @@ else
|
||||
# appeared in the 3.0 series of compilers.
|
||||
#
|
||||
ifeq ($(COMPILER), gnu)
|
||||
+ FLAGS += -g
|
||||
# disable the strict aliasing
|
||||
ifeq ($(shell expr $(GCC_VERSION) '>=' 3.0), 1)
|
||||
PEGASUS_EXTRA_CXX_FLAGS += -fno-enforce-eh-specs -fno-strict-aliasing
|
|
@ -1,22 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.orig pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h
|
||||
--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.orig 2013-08-27 15:26:50.593740210 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h 2013-08-27 15:27:12.543825109 +0200
|
||||
@@ -90,4 +90,7 @@
|
||||
# define PEGASUS_HAS_GETIFADDRS
|
||||
#endif
|
||||
|
||||
+/* use POSIX read-write locks on this platform */
|
||||
+#define PEGASUS_USE_POSIX_RWLOCK
|
||||
+
|
||||
#endif /* Pegasus_Platform_LINUX_SPARC64_GNU_h */
|
||||
diff -up pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.orig pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h
|
||||
--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.orig 2013-08-27 15:25:59.601542527 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h 2013-08-27 15:26:33.232672955 +0200
|
||||
@@ -90,4 +90,7 @@
|
||||
# define PEGASUS_HAS_GETIFADDRS
|
||||
#endif
|
||||
|
||||
+/* use POSIX read-write locks on this platform */
|
||||
+#define PEGASUS_USE_POSIX_RWLOCK
|
||||
+
|
||||
#endif /* Pegasus_Platform_LINUX_SPARCV9_GNU_h */
|
|
@ -1,514 +0,0 @@
|
|||
diff -up pegasus/Schemas/Pegasus/Internal/Makefile.orig pegasus/Schemas/Pegasus/Internal/Makefile
|
||||
--- pegasus/Schemas/Pegasus/Internal/Makefile.orig 2015-04-02 12:28:55.974227490 +0200
|
||||
+++ pegasus/Schemas/Pegasus/Internal/Makefile 2015-04-02 12:47:48.912641222 +0200
|
||||
@@ -48,12 +48,13 @@ all:
|
||||
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading Core$(CIM_SCHEMA_VER)_Qualifiers.mof into $(INTERNALNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTERNALNS)" "$(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTERNALNS)" "$(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof"
|
||||
@ $(ECHO) +++++ Loading PG_InternalSchema$(PG_SCHEMA_VER).mof into $(INTERNALNS) namespace...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTERNALNS)" "$(PG_MOF_PATH)/PG_InternalSchema$(PG_SCHEMA_VER).mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTERNALNS)" "$(PG_MOF_PATH)/PG_InternalSchema$(PG_SCHEMA_VER).mof"
|
||||
ifeq ($(PEGASUS_ENABLE_SLP),true)
|
||||
@ $(ECHO) +++++ Loading PG_SLPTemplate.mof into $(INTERNALNS) namespace...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTERNALNS)" "$(PG_MOF_PATH)/PG_SLPTemplate.mof"
|
||||
+ @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTERNALNS)" "$(PG_MOF_PATH)/PG_SLPTemplate.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTERNALNS)" "$(PG_MOF_PATH)/PG_SLPTemplate.mof"
|
||||
endif
|
||||
|
||||
|
||||
diff -up pegasus/Schemas/Pegasus/InterOp/Makefile.orig pegasus/Schemas/Pegasus/InterOp/Makefile
|
||||
--- pegasus/Schemas/Pegasus/InterOp/Makefile.orig 2015-04-02 12:48:17.347745936 +0200
|
||||
+++ pegasus/Schemas/Pegasus/InterOp/Makefile 2015-04-02 12:51:35.167484347 +0200
|
||||
@@ -44,30 +44,30 @@ all:
|
||||
|
||||
repository:
|
||||
@$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof"
|
||||
@$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof"
|
||||
#
|
||||
ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
|
||||
@$(ECHO) +++++ Loading CIM_Interop$(CIM_SCHEMA_VER) into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Interop$(CIM_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Interop$(CIM_SCHEMA_VER).mof"
|
||||
endif
|
||||
#
|
||||
@$(ECHO) +++++ Loading PG_InterOpSchema$(PG_INTEROP_SCHEMA_VER).mof into $(INTEROPNS) namespace...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_INTEROP_MOF_PATH)/PG_InterOpSchema$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_INTEROP_MOF_PATH)/PG_InterOpSchema$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
#
|
||||
# Bug 1222
|
||||
# The following code is temporary. These classes should be incorporated into PG_InteropSchema
|
||||
# however, this cannot be done now because we cannot conditionally compile MOF.
|
||||
ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
|
||||
@$(ECHO) +++++ Loading PG_CIMXMLCommunicationMechanism$(PG_INTEROP_SCHEMA_VER) into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_INTEROP_MOF_PATH)/PG_CIMXMLCommunicationMechanism$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_INTEROP_MOF_PATH)/PG_CIMXMLCommunicationMechanism$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
@$(ECHO) +++++ Loading PG_Namespace$(PG_INTEROP_SCHEMA_VER) into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_INTEROP_MOF_PATH)/PG_Namespace$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_INTEROP_MOF_PATH)/PG_Namespace$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
@$(ECHO) +++++ Loading Computer System schema into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_COMPUTERSYSTEM_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_COMPUTERSYSTEM_MOF_PATH)/PG_ComputerSystem$(PG_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_COMPUTERSYSTEM_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_COMPUTERSYSTEM_MOF_PATH)/PG_ComputerSystem$(PG_SCHEMA_VER).mof"
|
||||
@$(ECHO) +++++ Loading PG_ServerProfile schema into $(INTEROPNS) namespace ...
|
||||
- @$(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_INTEROP_MOF_PATH)/PG_ServerProfile$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
+ @$(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(INTEROPNS)" $(ALLOW_EXPERIMENTAL) "$(PG_INTEROP_MOF_PATH)/PG_ServerProfile$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
|
||||
endif
|
||||
|
||||
diff -up pegasus/Schemas/Pegasus/ManagedSystem/Makefile.orig pegasus/Schemas/Pegasus/ManagedSystem/Makefile
|
||||
--- pegasus/Schemas/Pegasus/ManagedSystem/Makefile.orig 2015-04-02 12:51:58.257571054 +0200
|
||||
+++ pegasus/Schemas/Pegasus/ManagedSystem/Makefile 2015-04-02 12:54:31.759930745 +0200
|
||||
@@ -66,33 +66,33 @@ endif
|
||||
ifeq ($(MANAGEDSYSTEM_NS_SUPPORTED),true)
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(MANAGEDSYSTEMNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(MANAGEDSYSTEMNS)" $(ALLOW_EXPERIMENTAL) "$(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof"
|
||||
@ $(ECHO) +++++ Loading PG_Events$(PG_INTEROP_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof"
|
||||
@ $(ECHO) +++++ Loading PG_ManagedSystemSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
||||
ifndef SET_USER_CONTEXT_TO_REQUESTOR
|
||||
@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema$(PG_SCHEMA_VER) ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
||||
else
|
||||
@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema21R ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema21R.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemSchema21R.mof"
|
||||
endif
|
||||
ifeq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),false)
|
||||
@ $(ECHO) +++++ Loading PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof"
|
||||
@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER)R.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER)R.mof"
|
||||
endif
|
||||
ifeq ($(EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED),true)
|
||||
@ $(ECHO) +++++ Loading platform specific class definitions in $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER).mof"
|
||||
@ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof"
|
||||
endif
|
||||
ifeq ($(PEGASUS_ENABLE_SLP),true)
|
||||
@ $(ECHO) +++++ Registering the SLPProvider in $(MANAGEDSYSTEMNS) namespace ...
|
||||
- @ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_SLPProvider$(PG_SCHEMA_VER)R.mof"
|
||||
+ @ $(CIMMOFCLI) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" "$(PG_MOF_PATH)/PG_SLPProvider$(PG_SCHEMA_VER)R.mof"
|
||||
endif
|
||||
|
||||
repositoryServer:
|
||||
diff -up pegasus/src/Clients/benchmarkTest/Load/Makefile.orig pegasus/src/Clients/benchmarkTest/Load/Makefile
|
||||
--- pegasus/src/Clients/benchmarkTest/Load/Makefile.orig 2015-04-02 12:54:48.848927271 +0200
|
||||
+++ pegasus/src/Clients/benchmarkTest/Load/Makefile 2015-04-02 12:56:27.679228240 +0200
|
||||
@@ -46,12 +46,12 @@ CIMMOFL = cimmofl
|
||||
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(PROVIDERNS) namespace ...
|
||||
- @ $(CIMMOFL) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" \
|
||||
+ @ $(CIMMOFL) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" \
|
||||
"-n$(PROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading $(BenchmarkMOF_NAME) class definitions into $(PROVIDERNS) namespace ...
|
||||
- @ $(CIMMOFL) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(PROVIDERNS)" $(BenchmarkMOF_NAME).mof
|
||||
+ @ $(CIMMOFL) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(PROVIDERNS)" $(BenchmarkMOF_NAME).mof
|
||||
@ $(ECHO) +++++ Registering benchmark Provider ...
|
||||
- @ $(CIMMOFL) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" $(BenchmarkMOF_NAME)R.mof
|
||||
+ @ $(CIMMOFL) "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" $(BenchmarkMOF_NAME)R.mof
|
||||
|
||||
repositoryServer:
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(PROVIDERNS) namespace ...
|
||||
diff -up pegasus/src/Providers/sample/Load/Makefile.orig pegasus/src/Providers/sample/Load/Makefile
|
||||
--- pegasus/src/Providers/sample/Load/Makefile.orig 2015-04-02 12:56:41.488278412 +0200
|
||||
+++ pegasus/src/Providers/sample/Load/Makefile 2015-04-02 13:01:24.078286449 +0200
|
||||
@@ -44,52 +44,52 @@ SAMPLEPROVIDERNS=root/SampleProvider
|
||||
# Load the sample MOF with the local compiler.
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Physical$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Physical$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Physical$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_System$(CIM_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_System$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_System$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading PG_Events$(PG_INTEROP_SCHEMA_VER) into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(SAMPLEPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading SampleProvider class definitions into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" SampleProviderSchema.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" AssociationProvider.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" ClientTest.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" SampleProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" AssociationProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" ClientTest.mof
|
||||
@ $(ECHO) +++++ Registering Sample Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" SampleProviderSchemaR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" SampleProviderSchemaR.mof
|
||||
ifdef PEGASUS_ENABLE_EXECQUERY
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" InstanceQueryProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" InstanceQueryProviderR.mof
|
||||
endif
|
||||
ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
||||
@ $(ECHO) +++++ Installing the MOF file for CMPI Providers
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" CWS_FilesAndDir.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" CWS_FilesAndDir.mof
|
||||
@ $(ECHO) +++++ Registering FilesAndDir schema Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CWS_FilesAndDirR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CWS_FilesAndDirR.mof
|
||||
|
||||
@ $(ECHO) +++++ Installing the MOF file for CMPI ProcessIndication Provider
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" RT_Sample.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" RT_Sample.mof
|
||||
@ $(ECHO) +++++ Registering CMPI ProcessIndication Provider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" RT_SampleR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" RT_SampleR.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering FilesAndDir CXX schema Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CWS_FilesAndDir_CXX_R.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CWS_FilesAndDir_CXX_R.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering TestCMPI_CXX schema Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" TestCMPI_CXX.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_CXX_R.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" TestCMPI_CXX.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_CXX_R.mof
|
||||
|
||||
@ $(ECHO) +++++ Installing the MOF file for SampleClass CMPI Provider
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" CMPISampleClass.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" CMPISampleClass.mof
|
||||
@ $(ECHO) +++++ Registering CMPI SampleClass Provider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CMPISampleClassR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CMPISampleClassR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading CMPI Sample Provider class definitions into $(SAMPLEPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" CMPISampleProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(SAMPLEPROVIDERNS)" CMPISampleProviderSchema.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering CMPI Sample Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CMPISampleProviderSchemaR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CMPISampleProviderSchemaR.mof
|
||||
endif
|
||||
|
||||
# Load the sample mof through the Client interface compiler.
|
||||
diff -up pegasus/src/Providers/TestProviders/Load/Makefile.orig pegasus/src/Providers/TestProviders/Load/Makefile
|
||||
--- pegasus/src/Providers/TestProviders/Load/Makefile.orig 2015-04-02 13:01:53.265389867 +0200
|
||||
+++ pegasus/src/Providers/TestProviders/Load/Makefile 2015-04-02 13:18:57.613079600 +0200
|
||||
@@ -67,160 +67,160 @@ EI_STATIC_TEST_NAMESPACE = test/Embedded
|
||||
##
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading Core$(CIM_SCHEMA_VER)_Qualifiers.mof into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(TESTPROVIDERNS) $(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(TESTPROVIDERNS) $(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Physical$(CIM_SCHEMA_VER) into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Physical$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Physical$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_System$(CIM_SCHEMA_VER) into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_System$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_System$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Interop$(CIM_SCHEMA_VER) into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Interop$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Interop$(CIM_SCHEMA_VER).mof
|
||||
|
||||
@ $(ECHO) +++++ Loading PG_Events$(PG_INTEROP_SCHEMA_VER) into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(PG_INTEROP_MOF_PATH)" "-n$(TESTPROVIDERNS)" $(ALLOW_EXPERIMENTAL) $(PG_INTEROP_MOF_PATH)/PG_Events$(PG_INTEROP_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading TestInstanceProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestInstanceProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestInstanceProviderSchema.mof
|
||||
@ $(ECHO) +++++ Loading TestChunkingStressProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestChunkingStressProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestChunkingStressProviderSchema.mof
|
||||
@ $(ECHO) +++++ Loading IndicationStressTest class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" IndicationStressTestProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" IndicationStressTestProviderSchema.mof
|
||||
@ $(ECHO) +++++ Loading TestFaultyProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestFaultyProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestFaultyProviderSchema.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering TestInstanceProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestInstanceProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestInstanceProviderRegistration.mof
|
||||
@ $(ECHO) +++++ Registering TestChunkingStressProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestChunkingStressProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestChunkingStressProviderRegistration.mof
|
||||
@ $(ECHO) +++++ Registering IndicationStressTest Provider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" IndicationStressTestProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" IndicationStressTestProviderR.mof
|
||||
@ $(ECHO) +++++ Registering IndicationStressTestConsumer Provider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" IndicationStressTestConsumerR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" IndicationStressTestConsumerR.mof
|
||||
@ $(ECHO) +++++ Registering ProviderLifecycleIndicationConsumer Provider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" ProviderLifecycleIndicationConsumerR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" ProviderLifecycleIndicationConsumerR.mof
|
||||
@ $(ECHO) +++++ Registering TestFaultyProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestFaultyProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestFaultyProviderRegistration.mof
|
||||
@ $(ECHO) +++++ Registering TestGoodInstanceProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestGoodInstanceProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestGoodInstanceProviderRegistration.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading DeliveryRetryTest class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" DeliveryRetryTestProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" DeliveryRetryTestProviderSchema.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering DeliveryRetryTest Provider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" DeliveryRetryTestProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" DeliveryRetryTestProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering IndicationStressTestConsumer Provider ...
|
||||
@ $(ECHO) +++++ Loading IndicationTestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" IndicationTestProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" IndicationTestProvider.mof
|
||||
@ $(ECHO) +++++ Registering IndicationTestProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" IndicationTestProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" IndicationTestProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading MethodTestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" MethodTestProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" MethodTestProvider.mof
|
||||
@ $(ECHO) +++++ Loading GroupMethodProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" GroupMethodProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" GroupMethodProvider.mof
|
||||
@ $(ECHO) +++++ Loading ProviderLifecycleIndicationProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" ProviderLifecycleIndicationProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" ProviderLifecycleIndicationProvider.mof
|
||||
@ $(ECHO) +++++ Registering MethodTestProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" MethodTestProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" MethodTestProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading CLITestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" CLITestProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" CLITestProvider.mof
|
||||
@ $(ECHO) +++++ Registering CLITestProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CLITestProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CLITestProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading TestCIM_ErrorProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestCIM_ErrorProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestCIM_ErrorProvider.mof
|
||||
@ $(ECHO) +++++ Registering TestCIM_ErrorProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCIM_ErrorProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCIM_ErrorProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Installing the Family MOF file for the association provider
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TST_Family.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TST_Family.mof
|
||||
@ $(ECHO) +++++ Registering FamilyProvider schema Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" FamilyProviderSchemaR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" FamilyProviderSchemaR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading CIMOMHandleTestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" CIMOMHandleTestProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" CIMOMHandleTestProviderSchema.mof
|
||||
@ $(ECHO) +++++ Registering CIMOMHandleTestProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CIMOMHandleTestProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CIMOMHandleTestProviderRegistration.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading TestAggregationOutputProvider.mof into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestAggregationOutputProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestAggregationOutputProvider.mof
|
||||
@ $(ECHO) +++++ Registering TestAggregationOutputProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestAggregationOutputProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestAggregationOutputProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading LocalizedProvider.mof into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" LocalizedProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" LocalizedProvider.mof
|
||||
@ $(ECHO) +++++ Registering LocalizedProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" LocalizedProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" LocalizedProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading ResponseStressTest class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" ResponseStressTest.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" ResponseStressTest.mof
|
||||
@ $(ECHO) +++++ Registering ResponseStressTestProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" ResponseStressTestProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" ResponseStressTestProviderRegistration.mof
|
||||
|
||||
ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
||||
@ $(ECHO) +++++ Loading TestCMPI_ProviderSchema class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestCMPI_ProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestCMPI_ProviderSchema.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering TestCMPI_ProviderRegistration ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_ProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_ProviderRegistration.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading TestCMPI_Association class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestCMPI_AssociationProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestCMPI_AssociationProvider.mof
|
||||
@ $(ECHO) +++++ Registering TestCMPI_AssociationProviderRegistration ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_AssociationProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_AssociationProviderR.mof
|
||||
|
||||
@ $(ECHO) +++++ Loading CMPIPerf_TestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" CMPIPerf_TestProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" CMPIPerf_TestProviderSchema.mof
|
||||
@ $(ECHO) +++++ Registering CMPIPerf_TestProviderRegistration ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CMPIPerf_TestProviderRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" CMPIPerf_TestProviderRegistration.mof
|
||||
|
||||
ifdef PEGASUS_ENABLE_EXECQUERY
|
||||
@ $(ECHO) +++++ Registering TestCMPI_ProviderExecQueryRegistration ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_ProviderExecQueryRegistration.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestCMPI_ProviderExecQueryRegistration.mof
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifndef PEGASUS_DISABLE_PROV_USERCTXT
|
||||
@ $(ECHO) +++++ Loading UserContextTestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" UserContextTestProvider.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" UserContextTestProvider.mof
|
||||
|
||||
@ $(ECHO) +++++ Registering UserContextTestProvider ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextRequestorR.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextPrivilegedR.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextDesignatedR.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextCIMServerR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextRequestorR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextPrivilegedR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextDesignatedR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" UserContextCIMServerR.mof
|
||||
endif
|
||||
@ $(ECHO) +++++ Loading OOPModuleFailureTestProvider class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" FailureTestIndication.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" FailureTestIndication.mof
|
||||
|
||||
ifdef PEGASUS_BUILD_INTEROP
|
||||
@ $(ECHO) +++++ Loading TestServerProfile class definitions into $(TESTPROVIDERNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestServerProfileSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTPROVIDERNS)" TestServerProfileSchema.mof
|
||||
@ $(ECHO) +++++ Registering TestServerProfile Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestServerProfileR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" TestServerProfileR.mof
|
||||
endif
|
||||
|
||||
@ $(ECHO) +++++ EmbeddedInstanceTest provider class definitions into $(EI_DYNAMIC_TEST_NAMESPACE) and $(EI_STATIC_TEST_NAMESPACE) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(EI_DYNAMIC_TEST_NAMESPACE) $(EI_SCHEMA_DIR)/Core_Qualifiers.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" CIMError.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Core.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Event.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Interop.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" EmbeddedInstanceProviderSchema.mof
|
||||
-
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(EI_STATIC_TEST_NAMESPACE) $(EI_SCHEMA_DIR)/Core_Qualifiers.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" CIMError.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Core.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Event.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Interop.mof
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" EmbeddedInstanceProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(EI_DYNAMIC_TEST_NAMESPACE) $(EI_SCHEMA_DIR)/Core_Qualifiers.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" CIMError.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Core.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Event.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Interop.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_DYNAMIC_TEST_NAMESPACE)" "-aE" EmbeddedInstanceProviderSchema.mof
|
||||
+
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(EI_STATIC_TEST_NAMESPACE) $(EI_SCHEMA_DIR)/Core_Qualifiers.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" CIMError.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Core.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Event.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" $(EI_SCHEMA_DIR)/CIM_Interop.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(EI_SCHEMA_DIR)" "-n$(EI_STATIC_TEST_NAMESPACE)" "-aE" EmbeddedInstanceProviderSchema.mof
|
||||
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" EmbeddedInstanceProviderR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(INTEROPNS)" EmbeddedInstanceProviderR.mof
|
||||
# create remote namespace for Remote CMPI test providers
|
||||
ifdef PEGASUS_ENABLE_REMOTE_CMPI
|
||||
@ echo +++++ Creating remote namespace ...
|
||||
@@ -231,28 +231,28 @@ endif
|
||||
## Indication filter source namespaces testing
|
||||
##
|
||||
@ $(ECHO) +++++ Loading Core$(CIM_SCHEMA_VER)_Qualifiers.mof into $(TESTINDSRCNS1) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(TESTINDSRCNS1) $(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(TESTINDSRCNS1) $(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(TESTINDSRCNS1) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS1)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS1)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(TESTINDSRCNS1) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS1)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS1)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading IndicationStressTest class definition into $(TESTINDSRCNS1) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS1)" IndicationStressTestProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS1)" IndicationStressTestProviderSchema.mof
|
||||
ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
||||
@ $(ECHO) +++++ Loading TestCMPI_ProviderSchema class definitions into $(TESTINDSRCNS1) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS1)" TestCMPI_ProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS1)" TestCMPI_ProviderSchema.mof
|
||||
endif
|
||||
@ $(ECHO) +++++ Loading Core$(CIM_SCHEMA_VER)_Qualifiers.mof into $(TESTINDSRCNS2) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(TESTINDSRCNS2) $(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(TESTINDSRCNS2) $(CIM_SCHEMA_DIR)/Core$(CIM_SCHEMA_VER)_Qualifiers.mof
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(TESTINDSRCNS2) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS2)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS2)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(TESTINDSRCNS2) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS2)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(TESTINDSRCNS2)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading IndicationStressTest class definition into $(TESTINDSRCNS2) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS2)" IndicationStressTestProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS2)" IndicationStressTestProviderSchema.mof
|
||||
ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
||||
@ $(ECHO) +++++ Loading TestCMPI_ProviderSchema class definitions into $(TESTINDSRCNS2) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS2)" TestCMPI_ProviderSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(TESTINDSRCNS2)" TestCMPI_ProviderSchema.mof
|
||||
endif
|
||||
|
||||
|
||||
diff -up pegasus/test/wetest/static/Load/Makefile.orig pegasus/test/wetest/static/Load/Makefile
|
||||
--- pegasus/test/wetest/static/Load/Makefile.orig 2015-04-02 13:19:28.925192771 +0200
|
||||
+++ pegasus/test/wetest/static/Load/Makefile 2015-04-02 13:20:21.994384585 +0200
|
||||
@@ -42,14 +42,14 @@ STATICTESTNS=test/static
|
||||
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(STATICTESTNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" -n$(STATICTESTNS) \
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" -n$(STATICTESTNS) \
|
||||
$(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading WET_Schema into $(STATICTESTNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(STATICTESTNS) WET_Schema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(STATICTESTNS) WET_Schema.mof
|
||||
@ $(ECHO) +++++ Loading Static Test Schema into $(STATICTESTNS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(STATICTESTNS) StaticTestSchema.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(STATICTESTNS) StaticTestSchema.mof
|
||||
@ $(ECHO) +++++ Registering Static Tests Schema Providers ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(INTEROPNS) StaticTestSchemaR.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -n$(INTEROPNS) StaticTestSchemaR.mof
|
||||
|
||||
repositoryServer:
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(STATICTESTNS) namespace ...
|
||||
diff -up pegasus/test/wetest/wsman/Load/Makefile.orig pegasus/test/wetest/wsman/Load/Makefile
|
||||
--- pegasus/test/wetest/wsman/Load/Makefile.orig 2015-04-02 13:40:54.714859175 +0200
|
||||
+++ pegasus/test/wetest/wsman/Load/Makefile 2015-04-02 13:41:33.960003910 +0200
|
||||
@@ -46,9 +46,9 @@ WSM_TEST_NS=test/WsmTest
|
||||
# NOTE: I believe that the remove is duplicated for some reason.
|
||||
repository:
|
||||
@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(WSM_TEST_NS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(WSM_TEST_NS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(WSM_TEST_NS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
|
||||
@ $(ECHO) +++++ Loading Wsm test class definitions into $(WSM_TEST_NS) namespace ...
|
||||
- @ cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(WSM_TEST_NS)" WsmTest.mof
|
||||
+ @ cimmofl "-aE" "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-n$(WSM_TEST_NS)" WsmTest.mof
|
||||
|
||||
# Load the sample mof through the Client interface compiler but do not
|
||||
# clean out the existing version.
|
|
@ -1,30 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/ProviderManager2/CMPI/CMPISCMOUtilities.cpp.orig pegasus/src/Pegasus/ProviderManager2/CMPI/CMPISCMOUtilities.cpp
|
||||
--- pegasus/src/Pegasus/ProviderManager2/CMPI/CMPISCMOUtilities.cpp.orig 2015-03-31 15:28:05.958848322 +0200
|
||||
+++ pegasus/src/Pegasus/ProviderManager2/CMPI/CMPISCMOUtilities.cpp 2015-03-31 15:29:13.253136407 +0200
|
||||
@@ -349,13 +349,6 @@ CMPIrc CMPISCMOUtilities::scmoValue2CMPI
|
||||
data->value.uint64 = 0;
|
||||
data->state = CMPI_goodValue;
|
||||
|
||||
- //Check for NULL CIMValue
|
||||
- if( scmoValue == 0 )
|
||||
- {
|
||||
- data->state = CMPI_nullValue;
|
||||
- return CMPI_RC_OK;
|
||||
- }
|
||||
-
|
||||
if (type & CMPI_ARRAY)
|
||||
{
|
||||
// Get the type of the element of the CMPIArray
|
||||
@@ -389,6 +382,12 @@ CMPIrc CMPISCMOUtilities::scmoValue2CMPI
|
||||
}
|
||||
else
|
||||
{
|
||||
+ //Check for NULL CIMValue
|
||||
+ if( scmoValue == 0 )
|
||||
+ {
|
||||
+ data->state = CMPI_nullValue;
|
||||
+ return CMPI_RC_OK;
|
||||
+ }
|
||||
// Check for encpsulated type, which need special handling
|
||||
if (type&CMPI_ENC)
|
||||
{
|
|
@ -1,27 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_Enumeration.cpp.null_value pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_Enumeration.cpp
|
||||
--- pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_Enumeration.cpp.null_value 2012-10-22 19:24:19.593698102 +0200
|
||||
+++ pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_Enumeration.cpp 2012-10-22 19:28:19.190897537 +0200
|
||||
@@ -167,6 +167,7 @@ extern "C"
|
||||
(new CMPI_Object(
|
||||
new SCMOInstance((*ia)[ie->cursor++]),
|
||||
CMPI_Object::ObjectTypeInstance));
|
||||
+ data.state = CMPI_goodValue;
|
||||
CMSetStatus(rc, CMPI_RC_OK);
|
||||
}
|
||||
else
|
||||
@@ -185,6 +186,7 @@ extern "C"
|
||||
(new CMPI_Object(
|
||||
new SCMOInstance((*ia)[ie->cursor++]),
|
||||
CMPI_Object::ObjectTypeInstance));
|
||||
+ data.state = CMPI_goodValue;
|
||||
CMSetStatus(rc, CMPI_RC_OK);
|
||||
}
|
||||
else
|
||||
@@ -203,6 +205,7 @@ extern "C"
|
||||
(new CMPI_Object(
|
||||
new SCMOInstance((*opa)[oe->cursor++]),
|
||||
CMPI_Object::ObjectTypeObjectPath));
|
||||
+ data.state = CMPI_goodValue;
|
||||
CMSetStatus(rc, CMPI_RC_OK);
|
||||
}
|
||||
else
|
|
@ -1,126 +0,0 @@
|
|||
diff -up pegasus/Schemas/CIM238/CIM_Core.mof.orig pegasus/Schemas/CIM238/CIM_Core.mof
|
||||
--- pegasus/Schemas/CIM238/CIM_Core.mof.orig 2015-04-07 15:24:25.280804943 +0200
|
||||
+++ pegasus/Schemas/CIM238/CIM_Core.mof 2015-04-07 15:24:25.321805120 +0200
|
||||
@@ -146,11 +146,14 @@
|
||||
#pragma include ("DMTF/Core/CIM_SpareGroup.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StatusCollection.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StorageAllocationSettingData.mof")
|
||||
+#pragma include ("DMTF/User/CIM_Identity.mof")
|
||||
+#pragma include ("DMTF/User/CIM_StorageHardwareID.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StorageHardwareIDElementSettingData.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StorageRedundancyGroup.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SystemSetting.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SystemSettingContext.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SystemSpecificCollection.mof")
|
||||
+#pragma include ("DMTF/System/CIM_VirtualSystemSettingData.mof")
|
||||
#pragma include ("DMTF/Core/CIM_VirtualEthernetSwitchSettingData.mof")
|
||||
#pragma include ("DMTF/Core/CIM_VirtualSystemManagementCapabilities.mof")
|
||||
#pragma include ("DMTF/Core/CIM_VirtualSystemSnapshotCapabilities.mof")
|
||||
@@ -185,6 +188,8 @@
|
||||
#pragma include ("DMTF/Core/CIM_ScopedSetting.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StatisticsCollection.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StorageRedundancySet.mof")
|
||||
+#pragma include ("DMTF/Interop/CIM_Message.mof")
|
||||
+#pragma include ("DMTF/Interop/CIM_Error.mof")
|
||||
#pragma include ("DMTF/Core/CIM_ConcreteJob.mof")
|
||||
#pragma include ("DMTF/Core/CIM_DefaultSetting.mof")
|
||||
#pragma include ("DMTF/Core/CIM_EnabledLogicalElement.mof")
|
||||
@@ -214,6 +219,7 @@
|
||||
#pragma include ("DMTF/Core/CIM_AdminDomain.mof")
|
||||
#pragma include ("DMTF/Core/CIM_BasedOn.mof")
|
||||
#pragma include ("DMTF/Core/CIM_BasicExecutionService.mof")
|
||||
+#pragma include ("DMTF/System/CIM_ComputerSystem.mof")
|
||||
#pragma include ("DMTF/Core/CIM_ComputerSystemElementSettingData.mof")
|
||||
#pragma include ("DMTF/Core/CIM_ConfigurationForSystem.mof")
|
||||
#pragma include ("DMTF/Core/CIM_ContainedDomain.mof")
|
||||
@@ -245,6 +251,8 @@
|
||||
#pragma include ("DMTF/Core/CIM_SettingForSystem.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SoftwareIdentityResource.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SystemDeviceView.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_ProtocolController.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_SCSIProtocolController.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SystemSCSIProtocolController.mof")
|
||||
#pragma include ("DMTF/Core/CIM_VirtualSystemManagementService.mof")
|
||||
#pragma include ("DMTF/Core/CIM_VirtualSystemSnapshotService.mof")
|
||||
@@ -258,6 +266,13 @@
|
||||
#pragma include ("DMTF/Core/CIM_ProtocolService.mof")
|
||||
#pragma include ("DMTF/Core/CIM_ProvidesEndpoint.mof")
|
||||
#pragma include ("DMTF/Core/CIM_RemotePort.mof")
|
||||
+#pragma include ("DMTF/User/CIM_SecurityService.mof")
|
||||
+#pragma include ("DMTF/User/CIM_AuthenticationService.mof")
|
||||
+#pragma include ("DMTF/User/CIM_IdentityManagementService.mof")
|
||||
+#pragma include ("DMTF/User/CIM_StorageHardwareIDManagementService.mof")
|
||||
#pragma include ("DMTF/Core/CIM_StorageHardwareIDManagementServiceDependency.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_LogicalPort.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_NetworkPort.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_FCPort.mof")
|
||||
#pragma include ("DMTF/Core/CIM_SystemFCPort.mof")
|
||||
|
||||
diff -up pegasus/Schemas/CIM238/CIM_Event.mof.orig pegasus/Schemas/CIM238/CIM_Event.mof
|
||||
--- pegasus/Schemas/CIM238/CIM_Event.mof.orig 2015-04-07 15:24:25.283804956 +0200
|
||||
+++ pegasus/Schemas/CIM238/CIM_Event.mof 2015-04-07 15:24:25.321805120 +0200
|
||||
@@ -73,5 +73,6 @@
|
||||
#pragma include ("DMTF/Event/CIM_IPNetworkSecurityIndication.mof")
|
||||
#pragma include ("DMTF/Event/CIM_IPPacketFilterIndication.mof")
|
||||
#pragma include ("DMTF/Event/CIM_IndicationService.mof")
|
||||
+#pragma include ("DMTF/System/CIM_Log.mof")
|
||||
#pragma include ("DMTF/Event/CIM_LogOfIndication.mof")
|
||||
|
||||
diff -up pegasus/Schemas/CIM238/CIM_Interop.mof.orig pegasus/Schemas/CIM238/CIM_Interop.mof
|
||||
--- pegasus/Schemas/CIM238/CIM_Interop.mof.orig 2015-04-07 15:24:25.285804965 +0200
|
||||
+++ pegasus/Schemas/CIM238/CIM_Interop.mof 2015-04-07 15:24:25.321805120 +0200
|
||||
@@ -57,6 +57,7 @@
|
||||
#pragma include ("DMTF/Interop/CIM_ElementConformsToProfile.mof")
|
||||
#pragma include ("DMTF/Interop/CIM_ReferencedProfile.mof")
|
||||
#pragma include ("DMTF/Interop/CIM_SubProfileRequiresProfile.mof")
|
||||
+#pragma include ("DMTF/Network/CIM_ProtocolServiceCapabilities.mof")
|
||||
#pragma include ("DMTF/Interop/CIM_WBEMProtocolServiceCapabilities.mof")
|
||||
#pragma include ("DMTF/Interop/CIM_WSManagementCapabilities.mof")
|
||||
#pragma include ("DMTF/Interop/CIM_CIMXMLCapabilities.mof")
|
||||
diff -up pegasus/Schemas/CIM238/CIM_System.mof.orig pegasus/Schemas/CIM238/CIM_System.mof
|
||||
--- pegasus/Schemas/CIM238/CIM_System.mof.orig 2015-04-07 15:24:25.290804986 +0200
|
||||
+++ pegasus/Schemas/CIM238/CIM_System.mof 2015-04-07 15:24:25.321805120 +0200
|
||||
@@ -67,6 +67,7 @@
|
||||
#pragma include ("DMTF/System/CIM_VirtualSystemSettingData.mof")
|
||||
#pragma include ("DMTF/System/CIM_AttachedElement.mof")
|
||||
#pragma include ("DMTF/System/CIM_BatchJobGroup.mof")
|
||||
+#pragma include ("DMTF/User/CIM_Credential.mof")
|
||||
#pragma include ("DMTF/System/CIM_BIOSServiceCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_BootServiceCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_ComputerSystemNodeCapabilities.mof")
|
||||
@@ -86,8 +87,10 @@
|
||||
#pragma include ("DMTF/System/CIM_FileImportCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemConfigurationCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemSettingData.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_StatisticsCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemStatisticsCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemStatisticsManifestCollection.mof")
|
||||
+#pragma include ("DMTF/User/CIM_Privilege.mof")
|
||||
#pragma include ("DMTF/System/CIM_ImportedFileShareSetting.mof")
|
||||
#pragma include ("DMTF/System/CIM_ImportedShareRoot.mof")
|
||||
#pragma include ("DMTF/System/CIM_LogEntry.mof")
|
||||
@@ -147,8 +150,10 @@
|
||||
#pragma include ("DMTF/System/CIM_ExportedFileShareCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_FCHBADiagnosticTest.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystem.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_StorageSetting.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemCapabilities.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemConfigurationService.mof")
|
||||
+#pragma include ("DMTF/Device/CIM_StatisticsService.mof")
|
||||
#pragma include ("DMTF/System/CIM_FileSystemStatisticsService.mof")
|
||||
#pragma include ("DMTF/System/CIM_HelpService.mof")
|
||||
#pragma include ("DMTF/System/CIM_HelpServiceAvailableToFile.mof")
|
||||
diff -up pegasus/Schemas/CIM238/DMTF/qualifiers.mof.orig pegasus/Schemas/CIM238/DMTF/qualifiers.mof
|
||||
--- pegasus/Schemas/CIM238/DMTF/qualifiers.mof.orig 2013-08-12 11:34:14.000000000 +0200
|
||||
+++ pegasus/Schemas/CIM238/DMTF/qualifiers.mof 2015-04-07 15:24:25.321805120 +0200
|
||||
@@ -152,8 +152,8 @@ Qualifier PUnit : string = null,
|
||||
Qualifier Read : boolean = true,
|
||||
Scope(property);
|
||||
|
||||
-Qualifier Reference : string = null,
|
||||
- Scope(property);
|
||||
+//Qualifier Reference : string = null,
|
||||
+// Scope(property);
|
||||
|
||||
Qualifier Required : boolean = false,
|
||||
Scope(property, reference, method, parameter),
|
|
@ -1,24 +0,0 @@
|
|||
diff -up pegasus/rpm/manLinux/man8.Z/cimconfig.8.orig pegasus/rpm/manLinux/man8.Z/cimconfig.8
|
||||
--- pegasus/rpm/manLinux/man8.Z/cimconfig.8.orig 2014-01-07 14:51:40.841757649 +0100
|
||||
+++ pegasus/rpm/manLinux/man8.Z/cimconfig.8 2014-01-07 14:52:03.415820767 +0100
|
||||
@@ -161,7 +161,7 @@ and listener destination instances other
|
||||
is required.
|
||||
.PD 0
|
||||
.IP
|
||||
-.BR "Default Value: " False
|
||||
+.BR "Default Value: " True
|
||||
.IP
|
||||
.BR Dynamic: \0No
|
||||
.PD
|
||||
diff -up pegasus/src/Pegasus/Config/SecurityPropertyOwner.cpp.orig pegasus/src/Pegasus/Config/SecurityPropertyOwner.cpp
|
||||
--- pegasus/src/Pegasus/Config/SecurityPropertyOwner.cpp.orig 2014-01-07 14:48:14.377180640 +0100
|
||||
+++ pegasus/src/Pegasus/Config/SecurityPropertyOwner.cpp 2014-01-07 14:51:30.760729464 +0100
|
||||
@@ -121,7 +121,7 @@ static struct ConfigPropertyRow properti
|
||||
#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_OS_LINUX)
|
||||
# ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
||||
{"enableSubscriptionsForNonprivilegedUsers",
|
||||
- "false", IS_STATIC, IS_VISIBLE},
|
||||
+ "true", IS_STATIC, IS_VISIBLE},
|
||||
# else
|
||||
{"enableSubscriptionsForNonprivilegedUsers", "true", IS_STATIC, IS_VISIBLE},
|
||||
# endif
|
|
@ -1,23 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/ControlProviders/InteropProvider/ElementConformsToProfile.cpp.orig pegasus/src/Pegasus/ControlProviders/InteropProvider/ElementConformsToProfile.cpp
|
||||
--- pegasus/src/Pegasus/ControlProviders/InteropProvider/ElementConformsToProfile.cpp.orig 2015-02-10 15:00:48.660891308 +0100
|
||||
+++ pegasus/src/Pegasus/ControlProviders/InteropProvider/ElementConformsToProfile.cpp 2015-02-10 15:02:01.811194154 +0100
|
||||
@@ -129,6 +129,7 @@ Array<CIMInstance> InteropProvider::enum
|
||||
Array<CIMInstance> InteropProvider::enumElementConformsToProfileInstances(
|
||||
const OperationContext & opContext, const CIMNamespaceName & opNamespace)
|
||||
{
|
||||
+ const Uint32 PEGASUS_DYNAMIC_LEN(PEGASUS_DYNAMIC.size());
|
||||
CIMClass elementConformsClass = repository->getClass(
|
||||
PEGASUS_NAMESPACENAME_INTEROP,
|
||||
PEGASUS_CLASSNAME_PG_ELEMENTCONFORMSTOPROFILE,
|
||||
diff -up pegasus/src/Pegasus/ControlProviders/InteropProvider/InteropConstants.h.orig pegasus/src/Pegasus/ControlProviders/InteropProvider/InteropConstants.h
|
||||
--- pegasus/src/Pegasus/ControlProviders/InteropProvider/InteropConstants.h.orig 2015-02-10 14:43:34.168607514 +0100
|
||||
+++ pegasus/src/Pegasus/ControlProviders/InteropProvider/InteropConstants.h 2015-02-10 14:43:44.165648967 +0100
|
||||
@@ -150,7 +150,7 @@ const String PEGASUS_INTERNAL_PROVIDER_T
|
||||
const String PEGASUS_INTERNAL_SERVICE_TYPE(
|
||||
"Internal Service");
|
||||
const String PEGASUS_DYNAMIC("__DYNAMIC_");
|
||||
-const Uint32 PEGASUS_DYNAMIC_LEN(PEGASUS_DYNAMIC.size());
|
||||
+// const Uint32 PEGASUS_DYNAMIC_LEN(PEGASUS_DYNAMIC.size());
|
||||
const CIMNamespaceName PEGASUS_NAMESPACENAME_ROOT("root");
|
||||
|
||||
#define thisProvider "InteropProvider"
|
|
@ -1,28 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/Common/Message.cpp.orig pegasus/src/Pegasus/Common/Message.cpp
|
||||
--- pegasus/src/Pegasus/Common/Message.cpp.orig 2015-03-14 14:56:48.000000000 +0100
|
||||
+++ pegasus/src/Pegasus/Common/Message.cpp 2015-04-08 10:02:47.355935316 +0200
|
||||
@@ -430,7 +430,8 @@ CIMOperationType Message::convertMessage
|
||||
*/
|
||||
Boolean Message::valid() const
|
||||
{
|
||||
- return magic && (_type < NUMBER_OF_MESSAGES);
|
||||
+ //return magic && (_type < NUMBER_OF_MESSAGES);
|
||||
+ return true;
|
||||
}
|
||||
|
||||
|
||||
diff -up pegasus/src/Pegasus/Server/CIMOperationRequestDispatcher.cpp.orig pegasus/src/Pegasus/Server/CIMOperationRequestDispatcher.cpp
|
||||
--- pegasus/src/Pegasus/Server/CIMOperationRequestDispatcher.cpp.orig 2015-03-14 14:56:48.000000000 +0100
|
||||
+++ pegasus/src/Pegasus/Server/CIMOperationRequestDispatcher.cpp 2015-04-08 10:02:47.357935317 +0200
|
||||
@@ -1008,9 +1008,11 @@ Boolean CIMOperationRequestDispatcher::_
|
||||
}
|
||||
else
|
||||
{
|
||||
+/*
|
||||
EnumerationContext* ent = _enumerationContextTable->find(
|
||||
poA->_contextId);
|
||||
PEGASUS_DEBUG_ASSERT(ent == en);
|
||||
+*/
|
||||
}
|
||||
|
||||
PEGASUS_DEBUG_ASSERT(poA->_contextId == en->getContextId());
|
|
@ -1,46 +0,0 @@
|
|||
diff -up pegasus/rpm/manLinux/man8.Z/cimconfig.8.orig pegasus/rpm/manLinux/man8.Z/cimconfig.8
|
||||
--- pegasus/rpm/manLinux/man8.Z/cimconfig.8.orig 2015-09-17 14:29:03.519331559 +0200
|
||||
+++ pegasus/rpm/manLinux/man8.Z/cimconfig.8 2015-09-17 15:02:37.993855252 +0200
|
||||
@@ -211,7 +211,7 @@ configuration.
|
||||
.PP
|
||||
.B fullyQualifiedHostName
|
||||
.IP
|
||||
-.BR Description: " Can be used to override the local system supplied
|
||||
+.BR Description: " Can be used to override the local system supplied
|
||||
fully qualified hostname (with domain) the CIM Server is using to build objects.
|
||||
If not set, querying this configuration option will report the system
|
||||
supplied fully qualified hostname and behavior is not changed.
|
||||
@@ -220,7 +220,8 @@ value will force the server to assume th
|
||||
name with domain. Setting this allows the administrator to set the name that
|
||||
indication operations and the CIM_ObjectManager assume for SystemName returned
|
||||
as instance and key properties.
|
||||
-.IP In common setups it is not recommended to explicitly set this value.
|
||||
+.IP
|
||||
+In common setups it is not recommended to explicitly set this value.
|
||||
Some scenarios scenarios in which changing the default value makes sense include:
|
||||
.IP
|
||||
- The case where what the CIM Server shall return to clients for host name
|
||||
@@ -516,6 +517,23 @@ by the pegasus webserver.
|
||||
.BR Dynamic: \0No
|
||||
.PD
|
||||
.PP
|
||||
+.B httpSessionTimeout
|
||||
+.IP
|
||||
+.BR Description: " If set to a positive integer, this value specifies a HTTP session lifetime
|
||||
+in seconds. After initial authentication using standard HTTP mechanisms (HTTP Basic or Negotiate
|
||||
+authentication), the server generates a cookie and sends it back to the client, as described in
|
||||
+RFC 6265. The client can then use the cookie in subsequent requests to skip the usual HTTP
|
||||
+authentication. The cookie is valid only for period of time specified by this configuration option.
|
||||
+If set to zero, session management is turned off and CIM server will not issue cookies.
|
||||
+This option is available only when Pegasus was compiled with PEGASUS_ENABLE_SESSION_COOKIES set
|
||||
+to 'true'.
|
||||
+.PD 0
|
||||
+.IP
|
||||
+.BR "Default Value: " 0
|
||||
+.IP
|
||||
+.BR Dynamic: \0Yes
|
||||
+.PD
|
||||
+.PP
|
||||
|
||||
|
||||
If both the
|
|
@ -1,19 +0,0 @@
|
|||
diff -up pegasus/mak/config-linux.mak.orig pegasus/mak/config-linux.mak
|
||||
diff -up pegasus/mak/SDKMakefile.orig pegasus/mak/SDKMakefile
|
||||
--- pegasus/mak/SDKMakefile.orig 2015-10-06 13:05:36.418021720 +0200
|
||||
+++ pegasus/mak/SDKMakefile 2015-10-06 13:08:41.135869147 +0200
|
||||
@@ -482,6 +482,13 @@ ifeq ($(RUNTIME_PLATFORM_TEST_NEEDED), t
|
||||
@$(ECHO-E) " endif" \
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
|
||||
+ @$(ECHO-E) " ifeq (\044(shell uname -i),ppc64le)" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " PEGASUS_PLATFORM = LINUX_PPC64_GNU" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " endif" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+
|
||||
@$(ECHO-E) " ifeq (\044(shell uname -i),s390)" \
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
@$(ECHO-E) " PEGASUS_PLATFORM = LINUX_ZSERIES_GNU" \
|
||||
diff -up pegasus/src/SDK/samples/mak/config.mak.orig pegasus/src/SDK/samples/mak/config.mak
|
|
@ -1,67 +0,0 @@
|
|||
diff -up pegasus/src/SDK/samples/Providers/Load/Makefile.orig pegasus/src/SDK/samples/Providers/Load/Makefile
|
||||
--- pegasus/src/SDK/samples/Providers/Load/Makefile.orig 2012-05-14 11:12:20.000000000 +0200
|
||||
+++ pegasus/src/SDK/samples/Providers/Load/Makefile 2015-05-26 13:47:11.475608966 +0200
|
||||
@@ -37,7 +37,7 @@ else
|
||||
ifeq ($(PEGASUS_INTEROP_NAMESPACE),interop)
|
||||
INTEROPNS=interop
|
||||
else
|
||||
-INTEROPNS=root/PG_InterOp
|
||||
+INTEROPNS=root/interop
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -48,20 +48,20 @@ createCXXrepository:
|
||||
@$(ECHO) "+++++ Creating $(SAMPLECXXPROVIDERNS) namespace ..."
|
||||
@$(ECHO) "+++++ Loading SDK_CIM_Schema.mof into" \
|
||||
"$(SAMPLECXXPROVIDERNS) namespace ..."
|
||||
- @$(PEGASUS_BIN_DIR)/cimmof -I$(PEGASUS_CIM_SCHEMA_DIR) \
|
||||
+ @$(PEGASUS_BIN_DIR)/cimmof "-aE" -I$(PEGASUS_CIM_SCHEMA_DIR) \
|
||||
-n$(SAMPLECXXPROVIDERNS) SDK_CIM_Schema.mof
|
||||
@ $(ECHO) "+++++ Loading class definitions into " \
|
||||
"$(SAMPLECXXPROVIDERNS) namespace ..."
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(SAMPLECXXPROVIDERNS) \
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(SAMPLECXXPROVIDERNS) \
|
||||
SampleProviderSchema.mof
|
||||
|
||||
createCMPIrepository:
|
||||
@$(ECHO) "+++++ Creating $(SAMPLECMPIPROVIDERNS) namespace ..."
|
||||
@$(ECHO) "+++++ Loading SDK_CIM_Schema.mof into" \
|
||||
"$(SAMPLECMPIPROVIDERNS) namespace ..."
|
||||
- @$(PEGASUS_BIN_DIR)/cimmof -I$(PEGASUS_CIM_SCHEMA_DIR) \
|
||||
+ @$(PEGASUS_BIN_DIR)/cimmof "-aE" -I$(PEGASUS_CIM_SCHEMA_DIR) \
|
||||
-n$(SAMPLECMPIPROVIDERNS) SDK_CIM_Schema.mof
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(SAMPLECMPIPROVIDERNS) CWS_FilesAndDir.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(SAMPLECMPIPROVIDERNS) CWS_FilesAndDir.mof
|
||||
|
||||
createrepository: createCXXrepository createCMPIrepository
|
||||
@$(ECHO) "+++++ Repository created."
|
||||
@@ -69,12 +69,12 @@ createrepository: createCXXrepository cr
|
||||
registerproviders:
|
||||
@ $(ECHO) "+++++ Registering providers for" \
|
||||
"$(SAMPLECXXPROVIDERNS) namespace ..."
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(INTEROPNS) InstanceProviderR.mof
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(INTEROPNS) MethodProviderR.mof
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(INTEROPNS) IndicationProviderR.mof
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(INTEROPNS) SimpleDisplayConsumerR.mof
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(INTEROPNS) CWS_FilesAndDirR.mof
|
||||
- @ $(PEGASUS_BIN_DIR)/cimmof -n$(INTEROPNS) AssociationProviderR.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(INTEROPNS) InstanceProviderR.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(INTEROPNS) MethodProviderR.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(INTEROPNS) IndicationProviderR.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(INTEROPNS) SimpleDisplayConsumerR.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(INTEROPNS) CWS_FilesAndDirR.mof
|
||||
+ @ $(PEGASUS_BIN_DIR)/cimmof "-aE" -n$(INTEROPNS) AssociationProviderR.mof
|
||||
|
||||
deregisterproviders:
|
||||
@ $(ECHO) "+++++ Deregistering SDKInstanceProviderModule ..."
|
||||
diff -up pegasus/src/SDK/samples/Providers/Load/SDK_CIM_Schema.mof.orig pegasus/src/SDK/samples/Providers/Load/SDK_CIM_Schema.mof
|
||||
--- pegasus/src/SDK/samples/Providers/Load/SDK_CIM_Schema.mof.orig 2008-12-16 19:58:05.000000000 +0100
|
||||
+++ pegasus/src/SDK/samples/Providers/Load/SDK_CIM_Schema.mof 2015-05-26 13:47:48.406767875 +0200
|
||||
@@ -45,6 +45,7 @@
|
||||
#pragma include ("DMTF/Core/CIM_ManagedElement.mof")
|
||||
#pragma include ("DMTF/Core/CIM_ManagedSystemElement.mof")
|
||||
#pragma include ("DMTF/Core/CIM_LogicalElement.mof")
|
||||
+#pragma include ("DMTF/Core/CIM_AbstractComponent.mof")
|
||||
#pragma include ("DMTF/Core/CIM_Component.mof")
|
||||
#pragma include ("DMTF/Event/CIM_Indication.mof")
|
||||
#pragma include ("DMTF/System/CIM_LogicalFile.mof")
|
|
@ -1,96 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/Common/SSLContext.cpp.orig pegasus/src/Pegasus/Common/SSLContext.cpp
|
||||
--- pegasus/src/Pegasus/Common/SSLContext.cpp.orig 2017-02-28 14:39:49.497066327 +0100
|
||||
+++ pegasus/src/Pegasus/Common/SSLContext.cpp 2017-03-01 10:56:06.726453475 +0100
|
||||
@@ -225,27 +225,31 @@ int SSLCallback::verificationCRLCallback
|
||||
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL4, buf);
|
||||
|
||||
//initialize the CRL store
|
||||
- X509_STORE_CTX crlStoreCtx;
|
||||
- X509_STORE_CTX_init(&crlStoreCtx, sslCRLStore, NULL, NULL);
|
||||
+ X509_STORE_CTX* crlStoreCtx;
|
||||
+ crlStoreCtx = X509_STORE_CTX_new();
|
||||
+ X509_STORE_CTX_init(crlStoreCtx, sslCRLStore, NULL, NULL);
|
||||
|
||||
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL4,
|
||||
"---> SSL: Initialized CRL store");
|
||||
|
||||
//attempt to get a CRL issued by the certificate's issuer
|
||||
- X509_OBJECT obj;
|
||||
+ X509_OBJECT* obj;
|
||||
+ obj = X509_OBJECT_new();
|
||||
if (X509_STORE_get_by_subject(
|
||||
- &crlStoreCtx, X509_LU_CRL, issuerName, &obj) <= 0)
|
||||
+ crlStoreCtx, X509_LU_CRL, issuerName, obj) <= 0)
|
||||
{
|
||||
- X509_STORE_CTX_cleanup(&crlStoreCtx);
|
||||
+ X509_OBJECT_free(obj);
|
||||
+ X509_STORE_CTX_cleanup(crlStoreCtx);
|
||||
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL3,
|
||||
"---> SSL: No CRL by that issuer");
|
||||
PEG_METHOD_EXIT();
|
||||
return 0;
|
||||
}
|
||||
- X509_STORE_CTX_cleanup(&crlStoreCtx);
|
||||
+ X509_STORE_CTX_cleanup(crlStoreCtx);
|
||||
|
||||
//get CRL
|
||||
- X509_CRL* crl = obj.data.crl;
|
||||
+ X509_CRL* crl;
|
||||
+ crl = X509_OBJECT_get0_X509_CRL(obj);
|
||||
if (crl == NULL)
|
||||
{
|
||||
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL4, "---> SSL: CRL is null");
|
||||
@@ -272,18 +276,18 @@ int SSLCallback::verificationCRLCallback
|
||||
{
|
||||
revokedCert = sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), i);
|
||||
//a matching serial number indicates revocation
|
||||
- if (ASN1_INTEGER_cmp(revokedCert->serialNumber, serialNumber) == 0)
|
||||
+ if (ASN1_INTEGER_cmp(X509_REVOKED_get0_serialNumber(revokedCert), serialNumber) == 0)
|
||||
{
|
||||
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL2,
|
||||
"---> SSL: Certificate is revoked");
|
||||
X509_STORE_CTX_set_error(ctx, X509_V_ERR_CERT_REVOKED);
|
||||
- X509_CRL_free(crl);
|
||||
+ X509_OBJECT_free(obj);
|
||||
PEG_METHOD_EXIT();
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
- X509_CRL_free(crl);
|
||||
+ X509_OBJECT_free(obj);
|
||||
|
||||
PEG_TRACE_CSTRING(TRC_SSL, Tracer::LEVEL4,
|
||||
"---> SSL: Certificate is not revoked at this level");
|
||||
diff -up pegasus/src/Pegasus/Common/SSLContextRep.h.orig pegasus/src/Pegasus/Common/SSLContextRep.h
|
||||
--- pegasus/src/Pegasus/Common/SSLContextRep.h.orig 2017-02-28 14:32:44.379013979 +0100
|
||||
+++ pegasus/src/Pegasus/Common/SSLContextRep.h 2017-02-28 14:36:38.088039077 +0100
|
||||
@@ -104,7 +104,11 @@ public:
|
||||
|
||||
//important as per following site for
|
||||
//http://www.openssl.org/support/faq.html#PROG
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
CRYPTO_malloc_init();
|
||||
+#else
|
||||
+ OPENSSL_malloc_init();
|
||||
+#endif
|
||||
SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
}
|
||||
diff -up pegasus/src/Pegasus/ControlProviders/CertificateProvider/CertificateProvider.cpp.orig pegasus/src/Pegasus/ControlProviders/CertificateProvider/CertificateProvider.cpp
|
||||
--- pegasus/src/Pegasus/ControlProviders/CertificateProvider/CertificateProvider.cpp.orig 2017-03-01 10:34:19.367952613 +0100
|
||||
+++ pegasus/src/Pegasus/ControlProviders/CertificateProvider/CertificateProvider.cpp 2017-03-01 10:36:18.003931270 +0100
|
||||
@@ -531,11 +531,11 @@ inline CIMInstance _getCRLInstance(X509_
|
||||
for (int i = 0; i < numRevoked; i++)
|
||||
{
|
||||
r = sk_X509_REVOKED_value(revoked, i);
|
||||
- rawSerialNumber = ASN1_INTEGER_get(r->serialNumber);
|
||||
+ rawSerialNumber = ASN1_INTEGER_get(X509_REVOKED_get0_serialNumber(r));
|
||||
sprintf(serial, "%lu", (unsigned long)rawSerialNumber);
|
||||
revokedSerialNumbers.append(String(serial));
|
||||
|
||||
- revocationDate = getDateTime(r->revocationDate);
|
||||
+ revocationDate = getDateTime(X509_REVOKED_get0_revocationDate(r));
|
||||
revocationDates.append(revocationDate);
|
||||
}
|
||||
|
|
@ -1,359 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.cpp.orig pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.cpp
|
||||
--- pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.cpp.orig 2013-01-21 06:00:43.000000000 +0100
|
||||
+++ pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.cpp 2015-05-25 15:11:02.368906571 +0200
|
||||
@@ -228,9 +228,138 @@ void snmpDeliverTrap_netsnmp::_createSes
|
||||
(const char*)targetHostCStr,
|
||||
portNumber);
|
||||
}
|
||||
+ }
|
||||
+
|
||||
+ switch (snmpVersion)
|
||||
+ {
|
||||
+ case _SNMPv1_TRAP:
|
||||
+ {
|
||||
+ snmpSession.version = SNMP_VERSION_1;
|
||||
+ _addCommunity(snmpSession,securityName);
|
||||
+ break;
|
||||
+ }
|
||||
+ case _SNMPv2C_TRAP:
|
||||
+ {
|
||||
+ snmpSession.version = SNMP_VERSION_2c;
|
||||
+ _addCommunity(snmpSession,securityName);
|
||||
+ break;
|
||||
+ }
|
||||
+#ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
+ case _SNMPv3_TRAP:
|
||||
+ {
|
||||
+ snmpSession.version = SNMP_VERSION_3;
|
||||
+ CString securityNameCStr = securityName.getCString();
|
||||
+ size_t securityNameLen = strlen(securityNameCStr);
|
||||
+ SNMP_FREE(snmpSession.securityName);
|
||||
+ snmpSession.securityName = (char *)calloc(1,securityNameLen+1);
|
||||
+ snmpSession.securityNameLen = securityNameLen;
|
||||
+ memcpy(snmpSession.securityName, (const char*)securityNameCStr,
|
||||
+ securityNameLen);
|
||||
+
|
||||
+ CString engineIdCStr = engineID.getCString();
|
||||
+ size_t engineIdHexLen = strlen(engineIdCStr);
|
||||
+ size_t engineIdBinLen = 0;
|
||||
+ u_char *engineIdBin = (u_char *)calloc(1,engineIdHexLen);
|
||||
+ free(snmpSession.securityEngineID);
|
||||
+ if(!snmp_hex_to_binary(&engineIdBin, &engineIdHexLen,
|
||||
+ &engineIdBinLen, 1,engineIdCStr))
|
||||
+ {
|
||||
+ PEG_TRACE_CSTRING(TRC_DISCARDED_DATA, Tracer::LEVEL2,
|
||||
+ "Snmp Indication Handler failed to generate binary"
|
||||
+ " engine ID for sending the SNMPv3 trap.");
|
||||
+ throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,
|
||||
+ MessageLoaderParms(
|
||||
+ "Handler.snmpIndicationHandler."
|
||||
+ "snmpIndicationHandler."
|
||||
+ "FAILED_TO_DELIVER_TRAP",
|
||||
+ "Failed to deliver trap."));
|
||||
+ }
|
||||
+ snmpSession.securityEngineIDLen = engineIdBinLen;
|
||||
+ snmpSession.securityEngineID = engineIdBin;
|
||||
+
|
||||
+ switch(snmpSecLevel)
|
||||
+ {
|
||||
+ case 1:
|
||||
+ snmpSession.securityLevel = SNMP_SEC_LEVEL_NOAUTH;
|
||||
+ break;
|
||||
+ case 2:
|
||||
+ snmpSession.securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;
|
||||
+ break;
|
||||
+ case 3:
|
||||
+ snmpSession.securityLevel = SNMP_SEC_LEVEL_AUTHPRIV;
|
||||
+ break;
|
||||
+ default:
|
||||
+ //use the dedault in the net-snmp conf file.
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ SNMP_FREE(snmpSession.securityAuthProto);
|
||||
+ if(snmpSecAuthProto == 1) // MD5
|
||||
+ {
|
||||
+ snmpSession.securityAuthProto = snmp_duplicate_objid(
|
||||
+ usmHMACMD5AuthProtocol,
|
||||
+ USM_AUTH_PROTO_MD5_LEN);
|
||||
+ snmpSession.securityAuthProtoLen = USM_AUTH_PROTO_MD5_LEN;
|
||||
+ }
|
||||
+ else if(snmpSecAuthProto == 2)// SHA
|
||||
+ {
|
||||
+ snmpSession.securityAuthProto = snmp_duplicate_objid(
|
||||
+ usmHMACSHA1AuthProtocol,
|
||||
+ USM_AUTH_PROTO_SHA_LEN);
|
||||
+ snmpSession.securityAuthProtoLen = USM_AUTH_PROTO_SHA_LEN;
|
||||
+ }
|
||||
+ // use the default in net-snmp conf files.
|
||||
|
||||
- sessionHandle = snmp_sess_open(&snmpSession);
|
||||
+ if(snmpSecAuthKey.size() > 0)
|
||||
+ {
|
||||
+ for(Uint32 i=0;i<snmpSecAuthKey.size();i++)
|
||||
+ {
|
||||
+ snmpSession.securityAuthKey[i] = snmpSecAuthKey[i];
|
||||
+ }
|
||||
+ snmpSession.securityAuthKeyLen = snmpSecAuthKey.size();
|
||||
+ }
|
||||
+
|
||||
+ SNMP_FREE(snmpSession.securityPrivProto);
|
||||
+ //Privacy
|
||||
+ if(snmpSecPrivProto == 1) //DES
|
||||
+ {
|
||||
+ snmpSession.securityPrivProto = snmp_duplicate_objid(
|
||||
+ usmDESPrivProtocol,
|
||||
+ USM_PRIV_PROTO_DES_LEN);
|
||||
+ snmpSession.securityPrivProtoLen = USM_PRIV_PROTO_DES_LEN;
|
||||
+ }
|
||||
+ else if(snmpSecPrivProto == 2) // AES
|
||||
+ {
|
||||
+ snmpSession.securityPrivProto = snmp_duplicate_objid(
|
||||
+ usmAESPrivProtocol,
|
||||
+ USM_PRIV_PROTO_AES_LEN);
|
||||
+ snmpSession.securityPrivProtoLen = USM_PRIV_PROTO_AES_LEN;
|
||||
+ }
|
||||
+ // use the defaults in net-snmp conf files
|
||||
+
|
||||
+ // Privacy Key
|
||||
+ if(snmpSecPrivKey.size() > 0)
|
||||
+ {
|
||||
+ for(Uint32 j=0;j<snmpSecPrivKey.size();j++)
|
||||
+ {
|
||||
+ snmpSession.securityPrivKey[j] = snmpSecPrivKey[j];
|
||||
+ }
|
||||
+ snmpSession.securityPrivKeyLen = snmpSecPrivKey.size();
|
||||
+ }
|
||||
+ break;
|
||||
+ }
|
||||
+#endif // ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
+ default:
|
||||
+ {
|
||||
+ PEG_METHOD_EXIT();
|
||||
+ throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,
|
||||
+ MessageLoaderParms(
|
||||
+ _MSG_VERSION_NOT_SUPPORTED_KEY,
|
||||
+ _MSG_VERSION_NOT_SUPPORTED));
|
||||
+ }
|
||||
}
|
||||
+
|
||||
+ sessionHandle = snmp_sess_open(&snmpSession);
|
||||
|
||||
if (sessionHandle == NULL)
|
||||
{
|
||||
@@ -244,6 +373,12 @@ void snmpDeliverTrap_netsnmp::_createSes
|
||||
free(errStr);
|
||||
|
||||
free(snmpSession.peername);
|
||||
+ free(snmpSession.community);
|
||||
+
|
||||
+#ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
+ free(snmpSession.securityName);
|
||||
+ free(snmpSession.securityEngineID);
|
||||
+#endif // ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
|
||||
PEG_METHOD_EXIT();
|
||||
|
||||
@@ -267,6 +402,12 @@ void snmpDeliverTrap_netsnmp::_createSes
|
||||
free(errStr);
|
||||
|
||||
free(snmpSession.peername);
|
||||
+ free(snmpSession.community);
|
||||
+
|
||||
+#ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
+ free(snmpSession.securityName);
|
||||
+ free(snmpSession.securityEngineID);
|
||||
+#endif // ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
|
||||
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, MessageLoaderParms(
|
||||
_MSG_GET_SESSION_POINTER_FAILED_KEY,
|
||||
@@ -274,136 +415,12 @@ void snmpDeliverTrap_netsnmp::_createSes
|
||||
}
|
||||
|
||||
free(snmpSession.peername);
|
||||
+ free(snmpSession.community);
|
||||
|
||||
- switch (snmpVersion)
|
||||
- {
|
||||
- case _SNMPv1_TRAP:
|
||||
- {
|
||||
- sessionPtr->version = SNMP_VERSION_1;
|
||||
- _addCommunity(sessionPtr,securityName);
|
||||
- break;
|
||||
-
|
||||
- }
|
||||
- case _SNMPv2C_TRAP:
|
||||
- {
|
||||
- sessionPtr->version = SNMP_VERSION_2c;
|
||||
- _addCommunity(sessionPtr,securityName);
|
||||
- break;
|
||||
- }
|
||||
-#ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
- case _SNMPv3_TRAP:
|
||||
- {
|
||||
- sessionPtr->version = SNMP_VERSION_3;
|
||||
- CString securityNameCStr = securityName.getCString();
|
||||
- size_t securityNameLen = strlen(securityNameCStr);
|
||||
- SNMP_FREE(sessionPtr->securityName);
|
||||
- sessionPtr->securityName = (char *)calloc(1,securityNameLen+1);
|
||||
- sessionPtr->securityNameLen = securityNameLen;
|
||||
- memcpy(sessionPtr->securityName, (const char*)securityNameCStr,
|
||||
- securityNameLen);
|
||||
-
|
||||
- CString engineIdCStr = engineID.getCString();
|
||||
- size_t engineIdHexLen = strlen(engineIdCStr);
|
||||
- size_t engineIdBinLen = 0;
|
||||
- u_char *engineIdBin = (u_char *)calloc(1,engineIdHexLen);
|
||||
- free(sessionPtr->securityEngineID);
|
||||
- if(!snmp_hex_to_binary(&engineIdBin, &engineIdHexLen,
|
||||
- &engineIdBinLen, 1,engineIdCStr))
|
||||
- {
|
||||
- PEG_TRACE_CSTRING(TRC_DISCARDED_DATA, Tracer::LEVEL2,
|
||||
- "Snmp Indication Handler failed to generate binary"
|
||||
- " engine ID for sending the SNMPv3 trap.");
|
||||
- throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,
|
||||
- MessageLoaderParms(
|
||||
- "Handler.snmpIndicationHandler."
|
||||
- "snmpIndicationHandler."
|
||||
- "FAILED_TO_DELIVER_TRAP",
|
||||
- "Failed to deliver trap."));
|
||||
- }
|
||||
- sessionPtr->securityEngineIDLen = engineIdBinLen;
|
||||
- sessionPtr->securityEngineID = engineIdBin;
|
||||
-
|
||||
- switch(snmpSecLevel)
|
||||
- {
|
||||
- case 1:
|
||||
- sessionPtr->securityLevel = SNMP_SEC_LEVEL_NOAUTH;
|
||||
- break;
|
||||
- case 2:
|
||||
- sessionPtr->securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;
|
||||
- break;
|
||||
- case 3:
|
||||
- sessionPtr->securityLevel = SNMP_SEC_LEVEL_AUTHPRIV;
|
||||
- break;
|
||||
- default:
|
||||
- //use the dedault in the net-snmp conf file.
|
||||
- break;
|
||||
- }
|
||||
-
|
||||
- SNMP_FREE(sessionPtr->securityAuthProto);
|
||||
- if(snmpSecAuthProto == 1) // MD5
|
||||
- {
|
||||
- sessionPtr->securityAuthProto = snmp_duplicate_objid(
|
||||
- usmHMACMD5AuthProtocol,
|
||||
- USM_AUTH_PROTO_MD5_LEN);
|
||||
- sessionPtr->securityAuthProtoLen = USM_AUTH_PROTO_MD5_LEN;
|
||||
- }
|
||||
- else if(snmpSecAuthProto == 2)// SHA
|
||||
- {
|
||||
- sessionPtr->securityAuthProto = snmp_duplicate_objid(
|
||||
- usmHMACSHA1AuthProtocol,
|
||||
- USM_AUTH_PROTO_SHA_LEN);
|
||||
- sessionPtr->securityAuthProtoLen = USM_AUTH_PROTO_SHA_LEN;
|
||||
- }
|
||||
- // use the default in net-snmp conf files.
|
||||
-
|
||||
- if(snmpSecAuthKey.size() > 0)
|
||||
- {
|
||||
- for(Uint32 i=0;i<snmpSecAuthKey.size();i++)
|
||||
- {
|
||||
- sessionPtr->securityAuthKey[i] = snmpSecAuthKey[i];
|
||||
- }
|
||||
- sessionPtr->securityAuthKeyLen = snmpSecAuthKey.size();
|
||||
- }
|
||||
-
|
||||
- SNMP_FREE(sessionPtr->securityPrivProto);
|
||||
- //Privacy
|
||||
- if(snmpSecPrivProto == 1) //DES
|
||||
- {
|
||||
- sessionPtr->securityPrivProto = snmp_duplicate_objid(
|
||||
- usmDESPrivProtocol,
|
||||
- USM_PRIV_PROTO_DES_LEN);
|
||||
- sessionPtr->securityPrivProtoLen = USM_PRIV_PROTO_DES_LEN;
|
||||
- }
|
||||
- else if(snmpSecPrivProto == 2) // AES
|
||||
- {
|
||||
- sessionPtr->securityPrivProto = snmp_duplicate_objid(
|
||||
- usmAESPrivProtocol,
|
||||
- USM_PRIV_PROTO_AES_LEN);
|
||||
- sessionPtr->securityPrivProtoLen = USM_PRIV_PROTO_AES_LEN;
|
||||
- }
|
||||
- // use the defaults in net-snmp conf files
|
||||
-
|
||||
- // Privacy Key
|
||||
- if(snmpSecPrivKey.size() > 0)
|
||||
- {
|
||||
- for(Uint32 j=0;j<snmpSecPrivKey.size();j++)
|
||||
- {
|
||||
- sessionPtr->securityPrivKey[j] = snmpSecPrivKey[j];
|
||||
- }
|
||||
- sessionPtr->securityPrivKeyLen = snmpSecPrivKey.size();
|
||||
- }
|
||||
- break;
|
||||
- }
|
||||
+#ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
+ free(snmpSession.securityName);
|
||||
+ free(snmpSession.securityEngineID);
|
||||
#endif // ifdef PEGASUS_ENABLE_NET_SNMPV3
|
||||
- default:
|
||||
- {
|
||||
- PEG_METHOD_EXIT();
|
||||
- throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,
|
||||
- MessageLoaderParms(
|
||||
- _MSG_VERSION_NOT_SUPPORTED_KEY,
|
||||
- _MSG_VERSION_NOT_SUPPORTED));
|
||||
- }
|
||||
- }
|
||||
|
||||
}
|
||||
catch (...)
|
||||
@@ -418,7 +435,7 @@ void snmpDeliverTrap_netsnmp::_createSes
|
||||
}
|
||||
|
||||
void snmpDeliverTrap_netsnmp::_addCommunity(
|
||||
- struct snmp_session*& sessionPtr,
|
||||
+ struct snmp_session& snmpSession,
|
||||
const String& securityName)
|
||||
{
|
||||
PEG_METHOD_ENTER(TRC_IND_HANDLER,
|
||||
@@ -435,17 +452,17 @@ void snmpDeliverTrap_netsnmp::_addCommun
|
||||
communityName = securityName;
|
||||
}
|
||||
|
||||
- free(sessionPtr->community);
|
||||
+ free(snmpSession.community);
|
||||
|
||||
CString communityNameCStr = communityName.getCString();
|
||||
size_t communityNameLen = strlen(communityNameCStr);
|
||||
|
||||
- sessionPtr->community = (u_char*)calloc(1,communityNameLen+1);
|
||||
+ snmpSession.community = (u_char*)calloc(1,communityNameLen+1);
|
||||
|
||||
- memcpy(sessionPtr->community, (const char*)communityNameCStr,
|
||||
+ memcpy(snmpSession.community, (const char*)communityNameCStr,
|
||||
communityNameLen);
|
||||
|
||||
- sessionPtr->community_len = communityNameLen;
|
||||
+ snmpSession.community_len = communityNameLen;
|
||||
PEG_METHOD_EXIT();
|
||||
}
|
||||
|
||||
diff -up pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.h.orig pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.h
|
||||
--- pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.h.orig 2010-12-22 13:19:06.000000000 +0100
|
||||
+++ pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.h 2015-05-25 15:12:24.908290090 +0200
|
||||
@@ -200,12 +200,11 @@ private:
|
||||
/**
|
||||
Add the community string to the snmp session for V1 and V2C
|
||||
|
||||
- @param sessionPtr the SNMP session pointer to its associated
|
||||
- struct snmp_session
|
||||
+ @param snmpSession struct snmp_session
|
||||
@param securityName the human readable community name
|
||||
*/
|
||||
void _addCommunity(
|
||||
- struct snmp_session*& sessionPtr,
|
||||
+ struct snmp_session& snmpSession,
|
||||
const String& securityName);
|
||||
|
||||
/**
|
|
@ -1,12 +0,0 @@
|
|||
diff -up pegasus/env_var_Linux.status.orig pegasus/env_var_Linux.status
|
||||
--- pegasus/env_var_Linux.status.orig 2016-02-18 12:06:51.571515464 +0100
|
||||
+++ pegasus/env_var_Linux.status 2016-02-18 12:07:02.946568247 +0100
|
||||
@@ -133,7 +133,7 @@ PEGASUS_LOCAL_DOMAIN_SOCKET_DIR = $(PEGA
|
||||
PEGASUS_LOCAL_DOMAIN_SOCKET_PATH = \
|
||||
$(PEGASUS_LOCAL_DOMAIN_SOCKET_DIR)/cimxml.socket
|
||||
|
||||
-PEGASUS_PEM_DIR = $(PEGASUS_CONFIG_DIR)
|
||||
+PEGASUS_PEM_DIR = /etc/pki/Pegasus
|
||||
PEGASUS_SSL_KEY_FILE = file.pem
|
||||
PEGASUS_SSL_KEY_FILE_PATH = $(PEGASUS_PEM_DIR)/$(PEGASUS_SSL_KEY_FILE)
|
||||
PEGASUS_SSL_CERT_FILE = server.pem
|
|
@ -1,11 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/Server/tests/TLSv_1_2_Support/TestTLSv1_2_Support.cpp.orig pegasus/src/Pegasus/Server/tests/TLSv_1_2_Support/TestTLSv1_2_Support.cpp
|
||||
--- pegasus/src/Pegasus/Server/tests/TLSv_1_2_Support/TestTLSv1_2_Support.cpp.orig 2015-05-19 13:49:59.100133630 +0200
|
||||
+++ pegasus/src/Pegasus/Server/tests/TLSv_1_2_Support/TestTLSv1_2_Support.cpp 2015-05-19 13:50:40.665309444 +0200
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
|
||||
#ifdef PEGASUS_HAS_SSL
|
||||
+# include <openssl/ssl.h>
|
||||
# include <openssl/tls1.h>
|
||||
#endif
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
diff -up pegasus/src/Clients/benchmarkTest/Load/Makefile.orig pegasus/src/Clients/benchmarkTest/Load/Makefile
|
||||
--- pegasus/src/Clients/benchmarkTest/Load/Makefile.orig 2015-10-12 13:19:57.029090805 +0200
|
||||
+++ pegasus/src/Clients/benchmarkTest/Load/Makefile 2015-10-12 13:20:43.379003285 +0200
|
||||
@@ -33,11 +33,7 @@ include $(ROOT)/mak/configschema.mak
|
||||
include $(ROOT)/mak/test.mak
|
||||
include $(ROOT)/mak/commands.mak
|
||||
|
||||
-ifdef TESTID
|
||||
- BenchmarkMOF_NAME = benchmarkProvider_$(TESTID)
|
||||
-else
|
||||
- BenchmarkMOF_NAME = benchmarkProvider
|
||||
-endif
|
||||
+BenchmarkMOF_NAME = benchmarkProvider
|
||||
|
||||
PROVIDERNS=root/benchmark
|
||||
PROVIDERNSDIRECTORY=$(REPOSITORY_ROOT)/root\#benchmark
|
||||
@@ -74,11 +70,7 @@ unregisterproviders:
|
||||
changeconfig:
|
||||
$(MAKE) -i cimstart
|
||||
$(MAKE) unregister
|
||||
-ifdef TESTID
|
||||
- $(MAKE) repositoryServer TESTID=$(TESTID)
|
||||
-else
|
||||
$(MAKE) repositoryServer
|
||||
-endif
|
||||
|
||||
|
||||
depend:
|
|
@ -1,22 +0,0 @@
|
|||
--- pegasus/rpm/wbem.pam-wbem 2006-01-17 14:17:43.000000000 -0500
|
||||
+++ pegasus/rpm/wbem 2006-04-05 19:26:46.000000000 -0400
|
||||
@@ -1,13 +1,7 @@
|
||||
#%PAM-1.0
|
||||
-auth required $ISA/pam_env.so
|
||||
-auth sufficient $ISA/pam_unix.so nullok
|
||||
-auth required $ISA/pam_deny.so
|
||||
-
|
||||
-account required $ISA/pam_unix.so
|
||||
-
|
||||
-password required $ISA/pam_cracklib.so retry=3 type=
|
||||
-password sufficient $ISA/pam_unix.so nullok use_authtok md5 shadow
|
||||
-password required $ISA/pam_deny.so
|
||||
-
|
||||
-session required $ISA/pam_limits.so
|
||||
-session required $ISA/pam_unix.so
|
||||
+auth include password-auth
|
||||
+account required pam_access.so accessfile=/etc/Pegasus/access.conf
|
||||
+account include password-auth
|
||||
+password include password-auth
|
||||
+session required pam_loginuid.so
|
||||
+session include password-auth
|
|
@ -1,132 +0,0 @@
|
|||
diff -up pegasus/src/Clients/cimauth/Makefile_orig pegasus/src/Clients/cimauth/Makefile
|
||||
--- pegasus/src/Clients/cimauth/Makefile_orig 2011-05-17 15:03:15.822670486 +0200
|
||||
+++ pegasus/src/Clients/cimauth/Makefile 2011-05-17 15:03:26.893426279 +0200
|
||||
@@ -34,6 +34,8 @@ DIR = Clients/cimauth
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegcliutils \
|
||||
pegclient \
|
||||
diff -up pegasus/src/Clients/cimconfig/Makefile_orig pegasus/src/Clients/cimconfig/Makefile
|
||||
--- pegasus/src/Clients/cimconfig/Makefile_orig 2011-05-17 15:01:19.759266385 +0200
|
||||
+++ pegasus/src/Clients/cimconfig/Makefile 2011-05-17 15:01:37.629099999 +0200
|
||||
@@ -34,6 +34,8 @@ DIR = Clients/cimconfig
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegcliutils \
|
||||
pegclient \
|
||||
diff -up pegasus/src/Clients/cimprovider/Makefile_orig pegasus/src/Clients/cimprovider/Makefile
|
||||
--- pegasus/src/Clients/cimprovider/Makefile_orig 2011-05-17 15:01:55.278898872 +0200
|
||||
+++ pegasus/src/Clients/cimprovider/Makefile 2011-05-17 15:02:09.021077534 +0200
|
||||
@@ -34,6 +34,8 @@ DIR = Clients/cimprovider
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegcliutils \
|
||||
pegclient \
|
||||
diff -up pegasus/src/Clients/cimuser/Makefile_orig pegasus/src/Clients/cimuser/Makefile
|
||||
--- pegasus/src/Clients/cimuser/Makefile_orig 2011-05-17 15:02:18.991658613 +0200
|
||||
+++ pegasus/src/Clients/cimuser/Makefile 2011-05-17 15:02:38.476748769 +0200
|
||||
@@ -34,6 +34,8 @@ DIR = Clients/cimuser
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegcliutils \
|
||||
pegclient \
|
||||
diff -up pegasus/src/Clients/osinfo/Makefile_orig pegasus/src/Clients/osinfo/Makefile
|
||||
--- pegasus/src/Clients/osinfo/Makefile_orig 2011-05-17 15:03:57.952350916 +0200
|
||||
+++ pegasus/src/Clients/osinfo/Makefile 2011-05-17 15:04:08.622043080 +0200
|
||||
@@ -33,6 +33,8 @@ PEGASUS_ZOS_PROGRAM_OBJECT = yes
|
||||
DIR = Clients/osinfo
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegcliutils \
|
||||
peggetoopt \
|
||||
diff -up pegasus/src/Clients/repupgrade/Makefile_orig pegasus/src/Clients/repupgrade/Makefile
|
||||
--- pegasus/src/Clients/repupgrade/Makefile_orig 2011-05-17 15:03:36.222905432 +0200
|
||||
+++ pegasus/src/Clients/repupgrade/Makefile 2011-05-17 15:03:48.013774882 +0200
|
||||
@@ -34,6 +34,8 @@ DIR = Clients/repupgrade
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
|
||||
|
||||
LIBRARIES = \
|
||||
diff -up pegasus/src/Clients/wbemexec/Makefile_orig pegasus/src/Clients/wbemexec/Makefile
|
||||
--- pegasus/src/Clients/wbemexec/Makefile_orig 2011-05-17 15:02:46.254981788 +0200
|
||||
+++ pegasus/src/Clients/wbemexec/Makefile 2011-05-17 15:02:59.917148729 +0200
|
||||
@@ -34,6 +34,8 @@ DIR = Clients/wbemexec
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
|
||||
|
||||
LIBRARIES = \
|
||||
diff -up pegasus/src/Pegasus/Compiler/cmdline/cimmofl/Makefile_orig pegasus/src/Pegasus/Compiler/cmdline/cimmofl/Makefile
|
||||
--- pegasus/src/Pegasus/Compiler/cmdline/cimmofl/Makefile_orig 2011-05-17 14:59:20.270319135 +0200
|
||||
+++ pegasus/src/Pegasus/Compiler/cmdline/cimmofl/Makefile 2011-05-17 14:59:55.019829684 +0200
|
||||
@@ -30,6 +30,8 @@ ROOT = ../../../../..
|
||||
DIR = Pegasus/Compiler/cmdline/cimmofl
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
|
||||
|
||||
PROGRAM = cimmofl
|
||||
diff -up pegasus/src/Pegasus/Compiler/cmdline/cimmof/Makefile_orig pegasus/src/Pegasus/Compiler/cmdline/cimmof/Makefile
|
||||
--- pegasus/src/Pegasus/Compiler/cmdline/cimmof/Makefile_orig 2011-05-17 14:58:44.334620532 +0200
|
||||
+++ pegasus/src/Pegasus/Compiler/cmdline/cimmof/Makefile 2011-05-17 14:59:10.555778484 +0200
|
||||
@@ -32,6 +32,8 @@ include $(ROOT)/mak/config.mak
|
||||
|
||||
LOCAL_DEFINES = -DPEGASUS_CMDLINE_INTERNAL -DPEGASUS_INTERNALONLY
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegcompiler \
|
||||
pegclient \
|
||||
diff -up pegasus/src/Pegasus/ProviderManagerService/ProviderAgent/Makefile_orig pegasus/src/Pegasus/ProviderManagerService/ProviderAgent/Makefile
|
||||
--- pegasus/src/Pegasus/ProviderManagerService/ProviderAgent/Makefile_orig 2011-05-17 14:58:03.166092772 +0200
|
||||
+++ pegasus/src/Pegasus/ProviderManagerService/ProviderAgent/Makefile 2011-05-17 14:58:22.652182571 +0200
|
||||
@@ -32,6 +32,8 @@ DIR = Pegasus/ProviderManagerService/Pro
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
LIBRARIES = \
|
||||
pegpmrouter \
|
||||
pegprovidermanager \
|
||||
diff -up pegasus/src/Pegasus/Server/Makefile_orig pegasus/src/Pegasus/Server/Makefile
|
||||
--- pegasus/src/Pegasus/Server/Makefile_orig 2011-05-17 14:57:08.349400296 +0200
|
||||
+++ pegasus/src/Pegasus/Server/Makefile 2011-05-17 14:57:33.724424287 +0200
|
||||
@@ -32,6 +32,8 @@ DIR = Pegasus/Server
|
||||
|
||||
include $(ROOT)/mak/config.mak
|
||||
|
||||
+FLAGS := $(FLAGS:-fPIC=-fPIE)
|
||||
+
|
||||
EXTRA_INCLUDES = $(SYS_INCLUDES)
|
||||
|
||||
LOCAL_DEFINES = -DPEGASUS_SERVER_INTERNAL -DPEGASUS_INTERNALONLY
|
|
@ -1,50 +0,0 @@
|
|||
diff -up pegasus/Makefile.ReleaseTest.orig pegasus/Makefile.ReleaseTest
|
||||
--- pegasus/Makefile.ReleaseTest.orig 2013-07-01 12:55:50.000000000 +0200
|
||||
+++ pegasus/Makefile.ReleaseTest 2015-05-18 14:28:22.642686363 +0200
|
||||
@@ -128,6 +128,7 @@ POSTSTARTTEST_CMDS = \
|
||||
$(PEGASUS_TEST_DIR)/bin/TestIndicationStressTest@@IndicationStressTestClass@@test/TestProvider@@cleanup
|
||||
|
||||
ifeq ($(PEGASUS_USE_NET_SNMP),true)
|
||||
+ POSTSTARTTEST_CMDS_NO_SNMP := $(POSTSTARTTEST_CMDS)
|
||||
POSTSTARTTEST_CMDS += \
|
||||
$(PEGASUS_TEST_DIR)/bin/TestSnmpHandler@@setup@@WQL \
|
||||
$(PEGASUS_TEST_DIR)/bin/TestSnmpHandler@@run@@4@@2 \
|
||||
@@ -212,10 +213,21 @@ createMakefile_poststarttests:
|
||||
@$(ECHO-E) "poststarttests:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@$(MAKE) -s poststarttests_internal\n" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "poststarttests_internal:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ifeq ($(PEGASUS_USE_NET_SNMP),true)
|
||||
+ @$(foreach i, $(POSTSTARTTEST_CMDS_NO_SNMP), $(ECHO-E) "\t$(subst @@, ,$(i))" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile;)
|
||||
+else
|
||||
@$(foreach i, $(POSTSTARTTEST_CMDS), $(ECHO-E) "\t$(subst @@, ,$(i))" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile;)
|
||||
@$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+endif
|
||||
|
||||
createMakefile_tests:
|
||||
+ifeq ($(PEGASUS_USE_NET_SNMP),true)
|
||||
+ @$(ECHO-E) "\t/usr/share/Pegasus/test/bin/TestSnmpHandler setup WQL" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t/usr/share/Pegasus/test/bin/TestSnmpHandler run 4 2" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t/usr/share/Pegasus/test/bin/TestSnmpHandler cleanup" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t/usr/share/Pegasus/test/bin/TestSnmpHandler removelog" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+endif
|
||||
@$(ECHO-E) "###############################################################################" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "# The tests target stops the cimserver, runs the unit tests, starts the" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "# cimserver, and runs the poststarttests and local TestClient." >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@@ -276,6 +288,8 @@ createMakefile_setupTEST:
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@mv $(PEGASUS_TEST_REPOSITORY_DIR)/$(PEGASUS_TEST_REPOSITORY_NAME) $(PEGASUS_REPOSITORY_PARENT_DIR)/repository" \
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@mv /etc/snmp/snmptrapd.conf /etc/snmp/snmptrapd.conf.bak" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@cp /usr/share/Pegasus/test/snmptrapd.conf /etc/snmp/snmptrapd.conf" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@make cimstart" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@make create_providerlinks" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "else" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@@ -293,6 +307,7 @@ createMakefile_unsetupTEST:
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@mv $(PEGASUS_REPOSITORY_PARENT_DIR)/repository.bak $(PEGASUS_REPOSITORY_PARENT_DIR)/repository" \
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@mv /etc/snmp/snmptrapd.conf.bak /etc/snmp/snmptrapd.conf" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "endif" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@make remove_providerlinks" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
@ -1,13 +0,0 @@
|
|||
diff -up pegasus/src/Pegasus/Config/FixedPropertyTableLinux.h_orig pegasus/src/Pegasus/Config/FixedPropertyTableLinux.h
|
||||
--- pegasus/src/Pegasus/Config/FixedPropertyTableLinux.h_orig 2011-05-17 15:13:43.331172383 +0200
|
||||
+++ pegasus/src/Pegasus/Config/FixedPropertyTableLinux.h 2011-05-17 15:15:34.672827232 +0200
|
||||
@@ -60,8 +60,7 @@
|
||||
{"crlStore", PEGASUS_SSL_SERVER_CRL},
|
||||
# endif
|
||||
{"repositoryDir", PEGASUS_REPOSITORY_DIR},
|
||||
- {"providerDir", PEGASUS_EXTRA_PROVIDER_LIB_DIR PEGASUS_PROVIDER_LIB_DIR
|
||||
- ":/usr/" PEGASUS_ARCH_LIB "/cmpi"},
|
||||
+ {"providerDir", PEGASUS_PROVIDER_LIB_DIR ":" PEGASUS_DEST_LIB_DIR "/cmpi"},
|
||||
{"providerManagerDir", PEGASUS_PROVIDER_MANAGER_LIB_DIR},
|
||||
# else /* PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS */
|
||||
{"traceFilePath", "/var/opt/tog-pegasus/cache/trace/cimserver.trc"},
|
|
@ -1,535 +0,0 @@
|
|||
diff -up pegasus/src/Executor/Messages.h.orig pegasus/src/Executor/Messages.h
|
||||
--- pegasus/src/Executor/Messages.h.orig 2015-03-31 14:49:58.125082973 +0200
|
||||
+++ pegasus/src/Executor/Messages.h 2015-03-31 14:50:29.243214138 +0200
|
||||
@@ -199,6 +199,7 @@ struct ExecutorAuthenticatePasswordReque
|
||||
{
|
||||
char username[EXECUTOR_BUFFER_SIZE];
|
||||
char password[EXECUTOR_BUFFER_SIZE];
|
||||
+ Boolean isRemoteUser;
|
||||
};
|
||||
|
||||
struct ExecutorAuthenticatePasswordResponse
|
||||
diff -up pegasus/src/Executor/PAMAuth.h.orig pegasus/src/Executor/PAMAuth.h
|
||||
--- pegasus/src/Executor/PAMAuth.h.orig 2015-03-31 14:50:48.589295683 +0200
|
||||
+++ pegasus/src/Executor/PAMAuth.h 2015-03-31 14:57:25.561982718 +0200
|
||||
@@ -49,6 +49,9 @@
|
||||
#include <Executor/Defines.h>
|
||||
#include <Executor/Socket.h>
|
||||
|
||||
+#include <syslog.h>
|
||||
+typedef bool Boolean;
|
||||
+
|
||||
#ifdef PEGASUS_FLAVOR
|
||||
# define PAM_CONFIG_FILE "wbem" PEGASUS_FLAVOR
|
||||
#else
|
||||
@@ -397,7 +400,7 @@ static int PAMValidateUserCallback(
|
||||
*/
|
||||
|
||||
static int PAMAuthenticateInProcess(
|
||||
- const char* username, const char* password)
|
||||
+ const char* username, const char* password, const Boolean isRemoteUser)
|
||||
{
|
||||
PAMData data;
|
||||
struct pam_conv pconv;
|
||||
@@ -412,24 +415,54 @@ static int PAMAuthenticateInProcess(
|
||||
/* intentionally for testing purposes */
|
||||
/* return PAM_SERVICE_ERR; */
|
||||
|
||||
- pam_rc = pam_start(PAM_CONFIG_FILE, username, &pconv, &handle);
|
||||
+ // NOTE: if any pam call should log anything, our syslog socket will be redirected
|
||||
+ // to the AUTH facility, so we need to redirect it back after each pam call.
|
||||
+
|
||||
+ if ((pam_rc = pam_start(PAM_CONFIG_FILE, username, &pconv, &handle)) != PAM_SUCCESS)
|
||||
+ {
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_start failed: %s", pam_strerror(handle, pam_rc));
|
||||
+ syslog(LOG_ERR, "PAM authentication failed for %s user: %s",
|
||||
+ isRemoteUser ? "remote" : "local", username);
|
||||
+ return -1;
|
||||
+ }
|
||||
|
||||
- if (pam_rc != PAM_SUCCESS)
|
||||
+ if ((pam_rc = pam_set_item(handle, PAM_TTY, isRemoteUser ? "wbemNetwork" : "wbemLocal")) != PAM_SUCCESS)
|
||||
{
|
||||
- return pam_rc;
|
||||
+ pam_end(handle, 0);
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_set_item(PAM_TTY=wbem) failed: %s", pam_strerror(handle, pam_rc));
|
||||
+ syslog(LOG_ERR, "PAM authentication failed for %s user: %s",
|
||||
+ isRemoteUser ? "remote" : "local", username);
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
- pam_rc = pam_authenticate(handle, 0);
|
||||
- if (pam_rc != PAM_SUCCESS)
|
||||
+ if ((pam_rc = pam_authenticate(handle, 0)) != PAM_SUCCESS)
|
||||
{
|
||||
pam_end(handle, 0);
|
||||
- return pam_rc;
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_authenticate failed: %s",pam_strerror(handle, pam_rc));
|
||||
+ syslog(LOG_ERR, "PAM authentication failed for %s user: %s",
|
||||
+ isRemoteUser ? "remote" : "local", username);
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
- pam_rc = pam_acct_mgmt(handle, 0);
|
||||
+ if ((pam_rc = pam_acct_mgmt(handle, 0)) != PAM_SUCCESS)
|
||||
+ {
|
||||
+ pam_end(handle, 0);
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_acct_mgmt failed: %s",pam_strerror(handle, pam_rc));
|
||||
+ syslog(LOG_ERR, "PAM authentication failed for %s user: %s",
|
||||
+ isRemoteUser ? "remote" : "local", username);
|
||||
+ return -1;
|
||||
+ }
|
||||
|
||||
pam_end(handle, 0);
|
||||
- return pam_rc;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -452,16 +485,34 @@ static int PAMValidateUserInProcess(cons
|
||||
pconv.conv = PAMValidateUserCallback;
|
||||
pconv.appdata_ptr = &data;
|
||||
|
||||
- pam_rc = pam_start(PAM_CONFIG_FILE, username, &pconv, &phandle);
|
||||
- if (pam_rc != PAM_SUCCESS)
|
||||
+ if ((pam_rc = pam_start(PAM_CONFIG_FILE, username, &pconv, &phandle)) != PAM_SUCCESS)
|
||||
+ {
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_start() failed: %s", pam_strerror(phandle, pam_rc));
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ if ((pam_rc = pam_set_item(phandle, PAM_TTY, "wbemLocal")) != PAM_SUCCESS)
|
||||
{
|
||||
- return pam_rc;
|
||||
+ pam_end(phandle, 0);
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_set_item(PAM_TTY=wbemLocal) failed: %s", pam_strerror(phandle, pam_rc));
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
- pam_rc = pam_acct_mgmt(phandle, 0);
|
||||
+ if ((pam_rc = pam_acct_mgmt(phandle, 0)) != PAM_SUCCESS)
|
||||
+ {
|
||||
+ pam_end(phandle, 0);
|
||||
+ closelog();
|
||||
+ openlog("cimserver", LOG_PID, LOG_DAEMON);
|
||||
+ syslog(LOG_ERR, "pam_acct_mgmt() failed: %s", pam_strerror(phandle, pam_rc));
|
||||
+ return -1;
|
||||
+ }
|
||||
|
||||
pam_end(phandle, 0);
|
||||
- return pam_rc;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -474,12 +525,12 @@ static int PAMValidateUserInProcess(cons
|
||||
**==============================================================================
|
||||
*/
|
||||
|
||||
-static int PAMAuthenticate(const char* username, const char* password)
|
||||
+static int PAMAuthenticate(const char* username, const char* password, const Boolean isRemoteUser)
|
||||
{
|
||||
#ifdef PEGASUS_USE_PAM_STANDALONE_PROC
|
||||
return CimserveraProcessOperation("authenticate", username, password);
|
||||
#else
|
||||
- return PAMAuthenticateInProcess(username, password);
|
||||
+ return PAMAuthenticateInProcess(username, password, isRemoteUser);
|
||||
#endif
|
||||
}
|
||||
|
||||
diff -up pegasus/src/Executor/Parent.c.orig pegasus/src/Executor/Parent.c
|
||||
--- pegasus/src/Executor/Parent.c.orig 2015-03-31 14:57:37.595034076 +0200
|
||||
+++ pegasus/src/Executor/Parent.c 2015-03-31 14:58:11.034176796 +0200
|
||||
@@ -634,7 +634,7 @@ static void HandleAuthenticatePasswordRe
|
||||
|
||||
#if defined(PEGASUS_PAM_AUTHENTICATION)
|
||||
|
||||
- status = PAMAuthenticate(request.username, request.password);
|
||||
+ status = PAMAuthenticate(request.username, request.password, request.isRemoteUser);
|
||||
|
||||
if (status == PAM_SUCCESS)
|
||||
{
|
||||
diff -up pegasus/src/Executor/tests/PAMAuth/TestExecutorPAMAuth.c.orig pegasus/src/Executor/tests/PAMAuth/TestExecutorPAMAuth.c
|
||||
--- pegasus/src/Executor/tests/PAMAuth/TestExecutorPAMAuth.c.orig 2015-03-31 14:58:30.460259707 +0200
|
||||
+++ pegasus/src/Executor/tests/PAMAuth/TestExecutorPAMAuth.c 2015-03-31 14:58:55.882368210 +0200
|
||||
@@ -49,7 +49,7 @@ int main()
|
||||
sprintf(prompt, "Enter password for %s: ", PEGASUS_CIMSERVERMAIN_USER);
|
||||
pw = getpass(prompt);
|
||||
|
||||
- if (PAMAuthenticate(PEGASUS_CIMSERVERMAIN_USER, pw) == 0)
|
||||
+ if (PAMAuthenticate(PEGASUS_CIMSERVERMAIN_USER, pw, 0) == 0)
|
||||
printf("Correct password\n");
|
||||
else
|
||||
printf("Wrong password\n");
|
||||
diff -up pegasus/src/Pegasus/Common/AuthenticationInfo.h.orig pegasus/src/Pegasus/Common/AuthenticationInfo.h
|
||||
--- pegasus/src/Pegasus/Common/AuthenticationInfo.h.orig 2015-03-31 14:59:10.875432201 +0200
|
||||
+++ pegasus/src/Pegasus/Common/AuthenticationInfo.h 2015-03-31 15:00:03.130655230 +0200
|
||||
@@ -348,6 +348,22 @@ public:
|
||||
_rep->setAuthHandle(authHandle);
|
||||
}
|
||||
|
||||
+ /** Indicate whether the user is Remote
|
||||
+ */
|
||||
+ Boolean isRemoteUser() const
|
||||
+ {
|
||||
+ CheckRep(_rep);
|
||||
+ return _rep->isRemoteUser();
|
||||
+ }
|
||||
+
|
||||
+ /** Set the Remote User flag
|
||||
+ */
|
||||
+ void setRemoteUser(Boolean isRemoteUser)
|
||||
+ {
|
||||
+ CheckRep(_rep);
|
||||
+ _rep->setRemoteUser(isRemoteUser);
|
||||
+ }
|
||||
+
|
||||
AuthHandle getAuthHandle()
|
||||
{
|
||||
CheckRep(_rep);
|
||||
diff -up pegasus/src/Pegasus/Common/AuthenticationInfoRep.cpp.orig pegasus/src/Pegasus/Common/AuthenticationInfoRep.cpp
|
||||
--- pegasus/src/Pegasus/Common/AuthenticationInfoRep.cpp.orig 2015-03-31 15:00:26.267753980 +0200
|
||||
+++ pegasus/src/Pegasus/Common/AuthenticationInfoRep.cpp 2015-03-31 15:01:53.018124238 +0200
|
||||
@@ -48,6 +48,7 @@ const String AuthenticationInfoRep::AUTH
|
||||
AuthenticationInfoRep::AuthenticationInfoRep()
|
||||
: _connectionAuthenticated(false),
|
||||
_wasRemotePrivilegedUserAccessChecked(false),
|
||||
+ _isRemoteUser(true),
|
||||
_authHandle(),
|
||||
_isExpiredPassword(false)
|
||||
#ifdef PEGASUS_ENABLE_SESSION_COOKIES
|
||||
@@ -86,6 +87,16 @@ AuthenticationInfoRep::~AuthenticationIn
|
||||
|
||||
PEG_METHOD_EXIT();
|
||||
}
|
||||
+
|
||||
+void AuthenticationInfoRep::setRemoteUser(Boolean isRemoteUser)
|
||||
+{
|
||||
+ PEG_METHOD_ENTER(TRC_AUTHENTICATION,
|
||||
+ "AuthenticationInfoRep::setRemoteUser");
|
||||
+
|
||||
+ _isRemoteUser = isRemoteUser;
|
||||
+
|
||||
+ PEG_METHOD_EXIT();
|
||||
+}
|
||||
|
||||
void AuthenticationInfoRep::setConnectionAuthenticated(
|
||||
Boolean connectionAuthenticated)
|
||||
diff -up pegasus/src/Pegasus/Common/AuthenticationInfoRep.h.orig pegasus/src/Pegasus/Common/AuthenticationInfoRep.h
|
||||
--- pegasus/src/Pegasus/Common/AuthenticationInfoRep.h.orig 2015-03-31 15:02:17.868230300 +0200
|
||||
+++ pegasus/src/Pegasus/Common/AuthenticationInfoRep.h 2015-03-31 15:03:53.065636608 +0200
|
||||
@@ -148,6 +148,13 @@ public:
|
||||
}
|
||||
#endif //PEGASUS_NEGOTIATE_AUTHENTICATION
|
||||
|
||||
+ Boolean isRemoteUser() const
|
||||
+ {
|
||||
+ return _isRemoteUser;
|
||||
+ }
|
||||
+
|
||||
+ void setRemoteUser(Boolean isRemoteUser);
|
||||
+
|
||||
Array<SSLCertificateInfo*> getClientCertificateChain()
|
||||
{
|
||||
return _clientCertificate;
|
||||
@@ -233,6 +240,8 @@ private:
|
||||
|
||||
Array<SSLCertificateInfo*> _clientCertificate;
|
||||
|
||||
+ Boolean _isRemoteUser;
|
||||
+
|
||||
AuthHandle _authHandle;
|
||||
String _userRole;
|
||||
Boolean _isExpiredPassword;
|
||||
diff -up pegasus/src/Pegasus/Common/Executor.cpp.orig pegasus/src/Pegasus/Common/Executor.cpp
|
||||
--- pegasus/src/Pegasus/Common/Executor.cpp.orig 2015-03-31 15:04:10.843712487 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Executor.cpp 2015-03-31 15:08:16.953762900 +0200
|
||||
@@ -126,7 +126,8 @@ public:
|
||||
|
||||
virtual int authenticatePassword(
|
||||
const char* username,
|
||||
- const char* password) = 0;
|
||||
+ const char* password,
|
||||
+ Boolean isRemoteUser) = 0;
|
||||
|
||||
virtual int validateUser(
|
||||
const char* username) = 0;
|
||||
@@ -562,9 +563,10 @@ public:
|
||||
#if defined(PEGASUS_PAM_AUTHENTICATION)
|
||||
virtual int authenticatePassword(
|
||||
const char* username,
|
||||
- const char* password)
|
||||
+ const char* password,
|
||||
+ Boolean isRemoteUser)
|
||||
{
|
||||
- return PAMAuthenticate(username, password);
|
||||
+ return PAMAuthenticate(username, password, isRemoteUser);
|
||||
}
|
||||
|
||||
virtual int validateUser(
|
||||
@@ -912,7 +914,8 @@ public:
|
||||
|
||||
virtual int authenticatePassword(
|
||||
const char* username,
|
||||
- const char* password)
|
||||
+ const char* password,
|
||||
+ Boolean isRemoteUser)
|
||||
{
|
||||
AutoMutex autoMutex(_mutex);
|
||||
|
||||
@@ -930,6 +933,7 @@ public:
|
||||
memset(&request, 0, sizeof(request));
|
||||
Strlcpy(request.username, username, EXECUTOR_BUFFER_SIZE);
|
||||
Strlcpy(request.password, password, EXECUTOR_BUFFER_SIZE);
|
||||
+ request.isRemoteUser = isRemoteUser;
|
||||
|
||||
if (SendBlock(_sock, &request, sizeof(request)) != sizeof(request))
|
||||
return -1;
|
||||
@@ -1181,10 +1185,11 @@ int Executor::reapProviderAgent(
|
||||
|
||||
int Executor::authenticatePassword(
|
||||
const char* username,
|
||||
- const char* password)
|
||||
+ const char* password,
|
||||
+ Boolean isRemoteUser)
|
||||
{
|
||||
once(&_executorImplOnce, _initExecutorImpl);
|
||||
- return _executorImpl->authenticatePassword(username, password);
|
||||
+ return _executorImpl->authenticatePassword(username, password, isRemoteUser);
|
||||
}
|
||||
|
||||
int Executor::validateUser(
|
||||
diff -up pegasus/src/Pegasus/Common/Executor.h.orig pegasus/src/Pegasus/Common/Executor.h
|
||||
--- pegasus/src/Pegasus/Common/Executor.h.orig 2015-03-31 15:08:26.668804365 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Executor.h 2015-03-31 15:08:46.535889158 +0200
|
||||
@@ -184,7 +184,8 @@ public:
|
||||
*/
|
||||
static int authenticatePassword(
|
||||
const char* username,
|
||||
- const char* password);
|
||||
+ const char* password,
|
||||
+ Boolean isRemoteUser);
|
||||
|
||||
/** Check whether the given user is valid for the underlying authentcation
|
||||
mechanism.
|
||||
diff -up pegasus/src/Pegasus/Common/HTTPConnection.cpp.orig pegasus/src/Pegasus/Common/HTTPConnection.cpp
|
||||
--- pegasus/src/Pegasus/Common/HTTPConnection.cpp.orig 2015-03-31 15:09:05.706970982 +0200
|
||||
+++ pegasus/src/Pegasus/Common/HTTPConnection.cpp 2015-03-31 15:10:08.472238867 +0200
|
||||
@@ -2295,6 +2295,70 @@ void HTTPConnection::_handleReadEvent()
|
||||
message->contentLanguages = contentLanguages;
|
||||
message->dest = _outputMessageQueue->getQueueId();
|
||||
|
||||
+ // Allow authenticators to differentiate Remote and Local users:
|
||||
+ struct sockaddr_storage sin_peer, sin_svr;
|
||||
+ socklen_t slen1 = sizeof (struct sockaddr_storage), slen2 = sizeof (struct sockaddr_storage);
|
||||
+ uint32_t sock = _socket.get()->getSocket() ;
|
||||
+ memset(&sin_peer,'\0',slen1);
|
||||
+ memset(&sin_svr, '\0',slen2);
|
||||
+ if ( ( ::getpeername( sock, (struct sockaddr*)&sin_peer, &slen1) == 0 )
|
||||
+ ||( ::getsockname( sock, (struct sockaddr*)&sin_svr, &slen2) == 0 )
|
||||
+ )
|
||||
+ {
|
||||
+ PEG_TRACE((TRC_HTTP, Tracer::LEVEL4,
|
||||
+ "sin_peer.ss_family: %d",
|
||||
+ sin_peer.ss_family));
|
||||
+ if( sin_peer.ss_family == AF_INET )
|
||||
+ {
|
||||
+ struct sockaddr_in *s = (struct sockaddr_in *)&sin_peer;
|
||||
+ if( ((ntohl( s->sin_addr.s_addr ) >> 24) & 0xff) == 127 )
|
||||
+ // message was sent FROM localhost interface
|
||||
+ message->isFromRemoteHost = false;
|
||||
+ }
|
||||
+ if( sin_peer.ss_family == AF_INET6 )
|
||||
+ {
|
||||
+ char straddr[INET6_ADDRSTRLEN];
|
||||
+ struct sockaddr_in6 *s = (struct sockaddr_in6 *)&sin_peer;
|
||||
+ static const unsigned char localhost_bytes[] =
|
||||
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
|
||||
+ inet_ntop(AF_INET6, &s->sin6_addr, straddr, sizeof(straddr));
|
||||
+ PEG_TRACE((TRC_HTTP, Tracer::LEVEL4,
|
||||
+ "Peer IP address: %s",
|
||||
+ straddr));
|
||||
+ if(memcmp(s->sin6_addr.s6_addr, localhost_bytes, 16) == 0)
|
||||
+ // message was sent FROM localhost interface
|
||||
+ message->isFromRemoteHost = false;
|
||||
+ }
|
||||
+ PEG_TRACE((TRC_HTTP, Tracer::LEVEL4,
|
||||
+ "sin_svr.ss_family: %d",
|
||||
+ sin_svr.ss_family));
|
||||
+ if( sin_svr.ss_family == AF_INET )
|
||||
+ {
|
||||
+ struct sockaddr_in *s = (struct sockaddr_in *)&sin_svr;
|
||||
+ if( ((ntohl( s->sin_addr.s_addr ) >> 24) & 0xff) == 127 )
|
||||
+ // message was sent TO localhost interface
|
||||
+ message->isFromRemoteHost = false;
|
||||
+ }
|
||||
+ if( sin_svr.ss_family == AF_INET6 )
|
||||
+ {
|
||||
+ char straddr[INET6_ADDRSTRLEN];
|
||||
+ struct sockaddr_in6 *s = (struct sockaddr_in6 *)&sin_svr;
|
||||
+ static const unsigned char localhost_bytes[] =
|
||||
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
|
||||
+ inet_ntop(AF_INET6, &s->sin6_addr, straddr, sizeof(straddr));
|
||||
+ PEG_TRACE((TRC_HTTP, Tracer::LEVEL4,
|
||||
+ "svr IP address: %s",
|
||||
+ straddr));
|
||||
+ if(memcmp(s->sin6_addr.s6_addr, localhost_bytes, 16) == 0)
|
||||
+ // message was sent TO localhost interface
|
||||
+ message->isFromRemoteHost = false;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ PEG_TRACE((TRC_HTTP, Tracer::LEVEL4,
|
||||
+ "isFromRemoteHost: %d",
|
||||
+ message->isFromRemoteHost));
|
||||
+
|
||||
//
|
||||
// The _closeConnection method sets the _connectionClosePending flag.
|
||||
// If we are executing on the client side and the
|
||||
diff -up pegasus/src/Pegasus/Common/HTTPMessage.cpp.orig pegasus/src/Pegasus/Common/HTTPMessage.cpp
|
||||
--- pegasus/src/Pegasus/Common/HTTPMessage.cpp.orig 2015-03-31 15:10:32.186340162 +0200
|
||||
+++ pegasus/src/Pegasus/Common/HTTPMessage.cpp 2015-03-31 15:11:00.008459185 +0200
|
||||
@@ -133,7 +133,8 @@ HTTPMessage::HTTPMessage(
|
||||
authInfo(0),
|
||||
acceptLanguagesDecoded(false),
|
||||
contentLanguagesDecoded(false),
|
||||
- binaryResponse(false)
|
||||
+ binaryResponse(false),
|
||||
+ isFromRemoteHost(true)
|
||||
{
|
||||
if (cimException_)
|
||||
cimException = *cimException_;
|
||||
diff -up pegasus/src/Pegasus/Common/HTTPMessage.h.orig pegasus/src/Pegasus/Common/HTTPMessage.h
|
||||
--- pegasus/src/Pegasus/Common/HTTPMessage.h.orig 2015-03-31 15:11:13.706517786 +0200
|
||||
+++ pegasus/src/Pegasus/Common/HTTPMessage.h 2015-03-31 15:11:33.528602586 +0200
|
||||
@@ -73,6 +73,7 @@ public:
|
||||
ContentLanguageList contentLanguages;
|
||||
Boolean acceptLanguagesDecoded;
|
||||
Boolean contentLanguagesDecoded;
|
||||
+ Boolean isFromRemoteHost;
|
||||
CIMException cimException;
|
||||
bool binaryResponse;
|
||||
|
||||
diff -up pegasus/src/Pegasus/Common/tests/Executor/TestExecutor.cpp.orig pegasus/src/Pegasus/Common/tests/Executor/TestExecutor.cpp
|
||||
--- pegasus/src/Pegasus/Common/tests/Executor/TestExecutor.cpp.orig 2015-03-31 15:11:50.617675692 +0200
|
||||
+++ pegasus/src/Pegasus/Common/tests/Executor/TestExecutor.cpp 2015-03-31 15:12:49.031925589 +0200
|
||||
@@ -76,7 +76,7 @@ void testExecutorLoopbackImpl()
|
||||
#endif
|
||||
|
||||
PEGASUS_TEST_ASSERT(Executor::authenticatePassword(
|
||||
- "xnonexistentuserx", "wrongpassword") != 0);
|
||||
+ "xnonexistentuserx", "wrongpassword", true) != 0);
|
||||
PEGASUS_TEST_ASSERT(Executor::validateUser("xnonexistentuserx") != 0);
|
||||
|
||||
char challengeFilePath[EXECUTOR_BUFFER_SIZE];
|
||||
@@ -115,7 +115,7 @@ void testExecutorSocketImpl()
|
||||
PEGASUS_TEST_ASSERT(Executor::reapProviderAgent(123) == 0);
|
||||
|
||||
PEGASUS_TEST_ASSERT(Executor::authenticatePassword(
|
||||
- "xnonexistentuserx", "wrongpassword") == -1);
|
||||
+ "xnonexistentuserx", "wrongpassword", true) == -1);
|
||||
PEGASUS_TEST_ASSERT(Executor::validateUser("xnonexistentuserx") == -1);
|
||||
|
||||
char challengeFilePath[EXECUTOR_BUFFER_SIZE];
|
||||
diff -up pegasus/src/Pegasus/Security/Authentication/BasicAuthenticationHandler.cpp.orig pegasus/src/Pegasus/Security/Authentication/BasicAuthenticationHandler.cpp
|
||||
--- pegasus/src/Pegasus/Security/Authentication/BasicAuthenticationHandler.cpp.orig 2015-03-31 15:12:58.057964203 +0200
|
||||
+++ pegasus/src/Pegasus/Security/Authentication/BasicAuthenticationHandler.cpp 2015-03-31 15:13:19.591056322 +0200
|
||||
@@ -159,6 +159,7 @@ AuthenticationStatus BasicAuthentication
|
||||
_basicAuthenticator->authenticate(
|
||||
userName,
|
||||
password,
|
||||
+ authInfo->isRemoteUser(),
|
||||
authInfo);
|
||||
|
||||
// Log audit message.
|
||||
diff -up pegasus/src/Pegasus/Security/Authentication/BasicAuthenticator.h.orig pegasus/src/Pegasus/Security/Authentication/BasicAuthenticator.h
|
||||
--- pegasus/src/Pegasus/Security/Authentication/BasicAuthenticator.h.orig 2015-03-31 15:13:32.889113211 +0200
|
||||
+++ pegasus/src/Pegasus/Security/Authentication/BasicAuthenticator.h 2015-03-31 15:13:51.240191720 +0200
|
||||
@@ -65,6 +65,7 @@ public:
|
||||
virtual AuthenticationStatus authenticate(
|
||||
const String& userName,
|
||||
const String& password,
|
||||
+ Boolean isRemoteUser,
|
||||
AuthenticationInfo* authInfo) = 0;
|
||||
|
||||
/** Construct and return the HTTP Basic authentication challenge header
|
||||
diff -up pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticator.h.orig pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticator.h
|
||||
--- pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticator.h.orig 2015-03-31 15:14:04.185247096 +0200
|
||||
+++ pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticator.h 2015-03-31 15:14:20.391316426 +0200
|
||||
@@ -54,6 +54,7 @@ public:
|
||||
AuthenticationStatus authenticate(
|
||||
const String& userName,
|
||||
const String& password,
|
||||
+ Boolean isRemoteUser,
|
||||
AuthenticationInfo* authInfo);
|
||||
|
||||
AuthenticationStatus validateUser(
|
||||
diff -up pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorStub.cpp.orig pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorStub.cpp
|
||||
--- pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorStub.cpp.orig 2015-03-31 15:14:32.937370098 +0200
|
||||
+++ pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorStub.cpp 2015-03-31 15:14:52.631454350 +0200
|
||||
@@ -74,6 +74,7 @@ PAMBasicAuthenticator::~PAMBasicAuthenti
|
||||
AuthenticationStatus PAMBasicAuthenticator::authenticate(
|
||||
const String& userName,
|
||||
const String& password,
|
||||
+ Boolean isRemoteUser,
|
||||
AuthenticationInfo* authInfo)
|
||||
{
|
||||
PEG_METHOD_ENTER(TRC_AUTHENTICATION,
|
||||
diff -up pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorUnix.cpp.orig pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorUnix.cpp
|
||||
--- pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorUnix.cpp.orig 2015-03-31 15:15:08.521522327 +0200
|
||||
+++ pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorUnix.cpp 2015-03-31 15:15:49.255696589 +0200
|
||||
@@ -66,6 +66,7 @@ PAMBasicAuthenticator::~PAMBasicAuthenti
|
||||
AuthenticationStatus PAMBasicAuthenticator::authenticate(
|
||||
const String& userName,
|
||||
const String& password,
|
||||
+ Boolean isRemoteUser,
|
||||
AuthenticationInfo* authInfo)
|
||||
{
|
||||
PEG_METHOD_ENTER(TRC_AUTHENTICATION,
|
||||
@@ -74,7 +75,8 @@ AuthenticationStatus PAMBasicAuthenticat
|
||||
int pam_rc =
|
||||
Executor::authenticatePassword(
|
||||
userName.getCString(),
|
||||
- password.getCString());
|
||||
+ password.getCString(),
|
||||
+ isRemoteUser);
|
||||
|
||||
// return code of -1 will be translated to AUTHSC_UNAUTHORIZED
|
||||
AuthenticationStatus authStatus = _getAuthStatusFromPAM_RC(pam_rc);
|
||||
diff -up pegasus/src/Pegasus/Security/Authentication/SecureBasicAuthenticator.cpp.orig pegasus/src/Pegasus/Security/Authentication/SecureBasicAuthenticator.cpp
|
||||
--- pegasus/src/Pegasus/Security/Authentication/SecureBasicAuthenticator.cpp.orig 2015-03-31 15:16:03.097755805 +0200
|
||||
+++ pegasus/src/Pegasus/Security/Authentication/SecureBasicAuthenticator.cpp 2015-03-31 15:16:24.758848473 +0200
|
||||
@@ -239,7 +239,7 @@ AuthenticationStatus SecureBasicAuthenti
|
||||
if (Executor::detectExecutor() == 0)
|
||||
{
|
||||
if (Executor::authenticatePassword(
|
||||
- userName.getCString(), password.getCString()) == 0)
|
||||
+ userName.getCString(), password.getCString(), true) == 0)
|
||||
{
|
||||
authenticated = true;
|
||||
}
|
||||
diff -up pegasus/src/Pegasus/Server/HTTPAuthenticatorDelegator.cpp.orig pegasus/src/Pegasus/Server/HTTPAuthenticatorDelegator.cpp
|
||||
--- pegasus/src/Pegasus/Server/HTTPAuthenticatorDelegator.cpp.orig 2015-03-31 15:16:39.848913028 +0200
|
||||
+++ pegasus/src/Pegasus/Server/HTTPAuthenticatorDelegator.cpp 2015-03-31 15:17:21.079089410 +0200
|
||||
@@ -431,6 +431,9 @@ void HTTPAuthenticatorDelegator::handleH
|
||||
Tracer::LEVEL3,
|
||||
"HTTPAuthenticatorDelegator - Authentication processing start");
|
||||
|
||||
+ // Let Authenticators know whether this user is Local or Remote:
|
||||
+ httpMessage->authInfo->setRemoteUser( httpMessage->isFromRemoteHost );
|
||||
+
|
||||
//
|
||||
// Handle authentication:
|
||||
//
|
|
@ -1,62 +0,0 @@
|
|||
diff -up pegasus/mak/program-unix.mak.orig pegasus/mak/program-unix.mak
|
||||
--- pegasus/mak/program-unix.mak.orig 2012-10-08 12:19:55.965024675 +0200
|
||||
+++ pegasus/mak/program-unix.mak 2012-10-08 12:21:02.378355115 +0200
|
||||
@@ -28,19 +28,10 @@
|
||||
#//////////////////////////////////////////////////////////////////////////
|
||||
INCLUDES = -I$(ROOT)/src $(EXTRA_INCLUDES)
|
||||
|
||||
-ifndef LINK_RPATH
|
||||
- LINK_RPATH = -Xlinker -rpath
|
||||
-endif
|
||||
-
|
||||
LINK_DEST_LIB = -Xlinker $(PEGASUS_DEST_LIB_DIR)
|
||||
|
||||
LINK_LIB_DIR = -Xlinker $(LIB_DIR)
|
||||
|
||||
-ifndef LINK_RPATH_LINK
|
||||
- LINK_RPATH_LINK = -Xlinker -rpath-link
|
||||
-endif
|
||||
-
|
||||
-
|
||||
TMP_OBJECTS = $(foreach i,$(SOURCES),$(OBJ_DIR)/$i)
|
||||
|
||||
S_OBJECTS = $(TMP_OBJECTS:.s=.o)
|
||||
@@ -52,15 +43,9 @@ FULL_PROGRAM=$(BIN_DIR)/$(PROGRAM)$(EXE)
|
||||
EXE_OUTPUT = $(EXE_OUT) $(FULL_PROGRAM)
|
||||
|
||||
ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
||||
- ifdef PEGASUS_USE_RELEASE_DIRS
|
||||
- EXTRA_LINK_FLAGS += $(LINK_RPATH) $(LINK_DEST_LIB) $(LINK_RPATH_LINK) $(LINK_LIB_DIR)
|
||||
- else
|
||||
- EXTRA_LINK_FLAGS += $(LINK_RPATH) $(LINK_LIB_DIR)
|
||||
- endif
|
||||
-
|
||||
ifeq ($(HAS_ICU_DEPENDENCY),true)
|
||||
ifdef ICU_INSTALL
|
||||
- EXTRA_LINK_FLAGS += $(LINK_RPATH) -Xlinker ${ICU_INSTALL}/lib
|
||||
+ EXTRA_LINK_FLAGS += -Xlinker ${ICU_INSTALL}/lib
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
diff -up pegasus/mak/shared-library-unix.mak.orig pegasus/mak/shared-library-unix.mak
|
||||
--- pegasus/mak/shared-library-unix.mak.orig 2012-10-08 12:21:15.279419276 +0200
|
||||
+++ pegasus/mak/shared-library-unix.mak 2012-10-08 12:22:32.715804612 +0200
|
||||
@@ -98,15 +98,14 @@ ifeq ($(COMPILER),gnu)
|
||||
ifneq ($(OS),darwin)
|
||||
ifdef PEGASUS_USE_RELEASE_DIRS
|
||||
LINK_COMMAND = $(CXX) -shared $(LINK_MACHINE_OPTIONS)
|
||||
- LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) -Xlinker -rpath \
|
||||
- -Xlinker $(PEGASUS_DEST_LIB_DIR) $(EXTRA_LINK_ARGUMENTS)
|
||||
+ LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) $(EXTRA_LINK_ARGUMENTS)
|
||||
else
|
||||
LINK_COMMAND = $(CXX) -shared $(LINK_MACHINE_OPTIONS)
|
||||
- LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) -Xlinker -rpath -Xlinker $(LIB_DIR) $(EXTRA_LINK_ARGUMENTS)
|
||||
+ LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) $(EXTRA_LINK_ARGUMENTS)
|
||||
endif
|
||||
else
|
||||
LINK_COMMAND = $(CXX) -dynamiclib
|
||||
- LINK_ARGUMENTS = --helplib$(LIBRARY)$(LIB_SUFFIX) -ldl
|
||||
+ LINK_ARGUMENTS = --helplib$(LIBRARY)$(LIB_SUFFIX) -ldl $(EXTRA_LINK_ARGUMENTS)
|
||||
endif
|
||||
ifeq ($(PEGASUS_PLATFORM), SOLARIS_SPARC_GNU)
|
||||
LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) -Xlinker -L$(LIB_DIR) $(EXTRA_LINK_ARGUMENTS)
|
|
@ -1,38 +0,0 @@
|
|||
diff -up pegasus/env_var_Linux.status.redhat-config pegasus/env_var_Linux.status
|
||||
--- pegasus/env_var_Linux.status.redhat-config 2015-04-01 00:41:07.000000000 +0200
|
||||
+++ pegasus/env_var_Linux.status 2015-05-26 13:05:21.021110656 +0200
|
||||
@@ -25,18 +25,21 @@ PEGASUS_HAS_SSL=yes
|
||||
PEGASUS_USE_SSL_RANDOMFILE=false
|
||||
PEGASUS_NOASSERTS=yes
|
||||
PEGASUS_PAM_AUTHENTICATION=true
|
||||
-PEGASUS_USE_PAM_STANDALONE_PROC=true
|
||||
PEGASUS_USE_RELEASE_CONFIG_OPTIONS=true
|
||||
PEGASUS_USE_RELEASE_DIRS=true
|
||||
PEGASUS_USE_SYSLOGS=true
|
||||
-PEGASUS_CIM_SCHEMA=CIM241
|
||||
+PEGASUS_CIM_SCHEMA=CIM238
|
||||
PEGASUS_USE_NET_SNMP=true
|
||||
-PEGASUS_ENABLE_PRIVILEGE_SEPARATION=true
|
||||
+PEGASUS_ENABLE_PRIVILEGE_SEPARATION=false
|
||||
+
|
||||
+PEGASUS_ENABLE_EXECQUERY=true
|
||||
+PEGASUS_DEFAULT_ENABLE_OOP=true
|
||||
+PEGASUS_INTEROP_NAMESPACE=root/interop
|
||||
|
||||
PEGASUS_ENABLE_INTEROP_PROVIDER=true
|
||||
PEGASUS_ENABLE_PROTOCOL_WSMAN=true
|
||||
|
||||
-PEGASUS_ENABLE_SLP=false
|
||||
+PEGASUS_ENABLE_SLP=true
|
||||
ifeq ($(PEGASUS_ENABLE_SLP), true)
|
||||
PEGASUS_SLP_REG_TIMEOUT=1090
|
||||
PEGASUS_USE_EXTERNAL_SLP=openslp
|
||||
@@ -126,7 +129,7 @@ PEGASUS_INSTALL_LOG = $(PEGASUS_LOG_DIR)
|
||||
|
||||
PEGASUS_CIMSERVER_START_FILE = $(PEGASUS_VARRUN_DIR)/cimserver.pid
|
||||
PEGASUS_CIMSERVER_START_LOCK_FILE = $(PEGASUS_VARRUN_DIR)/cimserver_start.lock
|
||||
-PEGASUS_LOCAL_DOMAIN_SOCKET_DIR = $(PEGASUS_VARRUN_DIR)/socket
|
||||
+PEGASUS_LOCAL_DOMAIN_SOCKET_DIR = $(PEGASUS_VARRUN_DIR)
|
||||
PEGASUS_LOCAL_DOMAIN_SOCKET_PATH = \
|
||||
$(PEGASUS_LOCAL_DOMAIN_SOCKET_DIR)/cimxml.socket
|
||||
|
|
@ -1,460 +0,0 @@
|
|||
diff -up pegasus/mak/config-linux.mak.orig pegasus/mak/config-linux.mak
|
||||
--- pegasus/mak/config-linux.mak.orig 2013-08-27 14:26:51.229234756 +0200
|
||||
+++ pegasus/mak/config-linux.mak 2013-08-27 14:27:23.467354043 +0200
|
||||
@@ -176,6 +176,9 @@ ifndef PEGASUS_ARCH_LIB
|
||||
ifeq ($(PEGASUS_PLATFORM),LINUX_X86_64_CLANG)
|
||||
PEGASUS_ARCH_LIB = lib64
|
||||
endif
|
||||
+ ifeq ($(PEGASUS_PLATFORM),LINUX_SPARC64_GNU)
|
||||
+ PEGASUS_ARCH_LIB = lib64
|
||||
+ endif
|
||||
PEGASUS_ARCH_LIB = lib
|
||||
endif
|
||||
DEFINES += -DPEGASUS_ARCH_LIB=\"$(PEGASUS_ARCH_LIB)\"
|
||||
diff -up pegasus/mak/platform_LINUX_SPARC64_GNU.mak.orig pegasus/mak/platform_LINUX_SPARC64_GNU.mak
|
||||
--- pegasus/mak/platform_LINUX_SPARC64_GNU.mak.orig 2013-08-27 14:27:56.748477172 +0200
|
||||
+++ pegasus/mak/platform_LINUX_SPARC64_GNU.mak 2013-08-27 14:28:42.522646515 +0200
|
||||
@@ -0,0 +1,36 @@
|
||||
+#//%2006////////////////////////////////////////////////////////////////////////
|
||||
+#//
|
||||
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
||||
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
||||
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation, The Open Group.
|
||||
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
||||
+#//
|
||||
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+#// of this software and associated documentation files (the "Software"), to
|
||||
+#// deal in the Software without restriction, including without limitation the
|
||||
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
+#// sell copies of the Software, and to permit persons to whom the Software is
|
||||
+#// furnished to do so, subject to the following conditions:
|
||||
+#//
|
||||
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
||||
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
||||
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+#//
|
||||
+#//==============================================================================
|
||||
+# Platform Configuration for Linux on PPC
|
||||
+# If you have generic Linux config options, please place them in config-linux.mak
|
||||
+
|
||||
+include $(ROOT)/mak/config-linux.mak
|
||||
+
|
||||
+ARCHITECTURE = sparc
|
||||
diff -up pegasus/mak/platform_LINUX_SPARCV9_GNU.mak.orig pegasus/mak/platform_LINUX_SPARCV9_GNU.mak
|
||||
--- pegasus/mak/platform_LINUX_SPARCV9_GNU.mak.orig 2013-08-27 14:29:02.011718625 +0200
|
||||
+++ pegasus/mak/platform_LINUX_SPARCV9_GNU.mak 2013-08-27 14:29:28.282815781 +0200
|
||||
@@ -0,0 +1,36 @@
|
||||
+#//%2006////////////////////////////////////////////////////////////////////////
|
||||
+#//
|
||||
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
||||
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
||||
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation, The Open Group.
|
||||
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
||||
+#//
|
||||
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+#// of this software and associated documentation files (the "Software"), to
|
||||
+#// deal in the Software without restriction, including without limitation the
|
||||
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
+#// sell copies of the Software, and to permit persons to whom the Software is
|
||||
+#// furnished to do so, subject to the following conditions:
|
||||
+#//
|
||||
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
||||
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
||||
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+#//
|
||||
+#//==============================================================================
|
||||
+# Platform Configuration for Linux on PPC
|
||||
+# If you have generic Linux config options, please place them in config-linux.mak
|
||||
+
|
||||
+include $(ROOT)/mak/config-linux.mak
|
||||
+
|
||||
+ARCHITECTURE = sparc
|
||||
diff -up pegasus/mak/SDKMakefile.orig pegasus/mak/SDKMakefile
|
||||
--- pegasus/mak/SDKMakefile.orig 2013-08-27 14:29:46.108881720 +0200
|
||||
+++ pegasus/mak/SDKMakefile 2013-08-27 14:32:18.170444052 +0200
|
||||
@@ -510,6 +510,18 @@ ifeq ($(RUNTIME_PLATFORM_TEST_NEEDED), t
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
@$(ECHO-E) " endif" \
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " ifeq (\044(shell uname -i),sparc)" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " PEGASUS_PLATFORM = LINUX_SPARCV9_GNU" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " endif" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " ifeq (\044(shell uname -i),sparc64)" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " PEGASUS_PLATFORM = LINUX_SPARC64_GNU" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " endif" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
else
|
||||
$(error This SDK has been defined to include the following \
|
||||
platforms: $(PACKAGED_PLATFORM_FILES). \
|
||||
@@ -594,6 +606,18 @@ ifeq ($(RUNTIME_PLATFORM_TEST_NEEDED), t
|
||||
@$(ECHO-E) "endif" \
|
||||
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
|
||||
+ @$(ECHO-E) "ifeq (\044(PEGASUS_PLATFORM),LINUX_SPARCV9_GNU)" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " PEGASUS_ARCH_LIB = lib" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) "endif" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) "ifeq (\044(PEGASUS_PLATFORM),LINUX_SPARC64_GNU)" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) " PEGASUS_ARCH_LIB = lib64" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
+ @$(ECHO-E) "endif" \
|
||||
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
||||
else
|
||||
$(error This SDK has been defined to include the following \
|
||||
platforms: $(PACKAGED_PLATFORM_FILES). \
|
||||
diff -up pegasus/src/Pegasus/Common/Config.h.orig pegasus/src/Pegasus/Common/Config.h
|
||||
--- pegasus/src/Pegasus/Common/Config.h.orig 2013-08-27 14:32:34.763505395 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Config.h 2013-08-27 14:33:05.402618625 +0200
|
||||
@@ -82,6 +82,10 @@
|
||||
# include <Pegasus/Common/Platform_LINUX_PPC64_GNU.h>
|
||||
#elif defined (PEGASUS_PLATFORM_LINUX_PPC_E500_GNU)
|
||||
# include <Pegasus/Common/Platform_LINUX_PPC_E500_GNU.h>
|
||||
+#elif defined (PEGASUS_PLATFORM_LINUX_SPARCV9_GNU)
|
||||
+# include <Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h>
|
||||
+#elif defined (PEGASUS_PLATFORM_LINUX_SPARC64_GNU)
|
||||
+# include <Pegasus/Common/Platform_LINUX_SPARC64_GNU.h>
|
||||
#elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES_GNU)
|
||||
# include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h>
|
||||
#elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU)
|
||||
diff -up pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.orig pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h
|
||||
--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.orig 2013-08-27 14:33:28.186702833 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h 2013-08-27 14:34:45.833989895 +0200
|
||||
@@ -0,0 +1,93 @@
|
||||
+/*
|
||||
+//%2006////////////////////////////////////////////////////////////////////////
|
||||
+//
|
||||
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
||||
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
||||
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+// IBM Corp.; EMC Corporation, The Open Group.
|
||||
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+// EMC Corporation; Symantec Corporation; The Open Group.
|
||||
+//
|
||||
+// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+// of this software and associated documentation files (the "Software"), to
|
||||
+// deal in the Software without restriction, including without limitation the
|
||||
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
+// sell copies of the Software, and to permit persons to whom the Software is
|
||||
+// furnished to do so, subject to the following conditions:
|
||||
+//
|
||||
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
||||
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
||||
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+//
|
||||
+//==============================================================================
|
||||
+//
|
||||
+//%/////////////////////////////////////////////////////////////////////////////
|
||||
+*/
|
||||
+
|
||||
+#ifndef Pegasus_Platform_LINUX_SPARC64_GNU_h
|
||||
+#define Pegasus_Platform_LINUX_SPARC64_GNU_h
|
||||
+
|
||||
+#include <stddef.h>
|
||||
+
|
||||
+#define PEGASUS_OS_TYPE_UNIX
|
||||
+
|
||||
+#ifndef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
||||
+#define PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
||||
+#endif
|
||||
+
|
||||
+#define PEGASUS_OS_LINUX
|
||||
+
|
||||
+#define PEGASUS_POINTER_64BIT
|
||||
+
|
||||
+#define PEGASUS_COMPILER_GNU
|
||||
+
|
||||
+#define PEGASUS_UINT64 unsigned long long
|
||||
+
|
||||
+#define PEGASUS_SINT64 long long
|
||||
+
|
||||
+#define PEGASUS_HAVE_NAMESPACES
|
||||
+
|
||||
+#define PEGASUS_HAVE_FOR_SCOPE
|
||||
+
|
||||
+#define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
|
||||
+
|
||||
+#ifndef _GNU_SOURCE
|
||||
+#define _GNU_SOURCE
|
||||
+#endif
|
||||
+#ifndef _REENTRANT
|
||||
+#define _REENTRANT
|
||||
+#endif
|
||||
+#define _THREAD_SAFE
|
||||
+#include <features.h>
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <sys/param.h> /* For MAXHOSTNAMELEN */
|
||||
+#include <limits.h> /* _POSIX_HOST_NAME_MAX */
|
||||
+
|
||||
+#if (__GNUC__ >= 4)
|
||||
+# define PEGASUS_EXPORT __attribute__ ((visibility("default")))
|
||||
+# define PEGASUS_IMPORT __attribute__ ((visibility("default")))
|
||||
+# define PEGASUS_HIDDEN_LINKAGE __attribute__((visibility("hidden")))
|
||||
+#endif
|
||||
+
|
||||
+#define PEGASUS_HAVE_PTHREADS
|
||||
+
|
||||
+#define PEGASUS_HAVE_NANOSLEEP
|
||||
+
|
||||
+#define PEGASUS_HAS_SIGNALS
|
||||
+
|
||||
+/* getifaddrs() avilable in gcc version >= 3.4 */
|
||||
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))
|
||||
+# define PEGASUS_HAS_GETIFADDRS
|
||||
+#endif
|
||||
+
|
||||
+#endif /* Pegasus_Platform_LINUX_SPARC64_GNU_h */
|
||||
diff -up pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.orig pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h
|
||||
--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.orig 2013-08-27 14:35:15.787100560 +0200
|
||||
+++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h 2013-08-27 14:36:22.937348657 +0200
|
||||
@@ -0,0 +1,93 @@
|
||||
+/*
|
||||
+//%2006////////////////////////////////////////////////////////////////////////
|
||||
+//
|
||||
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
||||
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
||||
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+// IBM Corp.; EMC Corporation, The Open Group.
|
||||
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+// EMC Corporation; Symantec Corporation; The Open Group.
|
||||
+//
|
||||
+// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+// of this software and associated documentation files (the "Software"), to
|
||||
+// deal in the Software without restriction, including without limitation the
|
||||
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
+// sell copies of the Software, and to permit persons to whom the Software is
|
||||
+// furnished to do so, subject to the following conditions:
|
||||
+//
|
||||
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
||||
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
||||
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+//
|
||||
+//==============================================================================
|
||||
+//
|
||||
+//%/////////////////////////////////////////////////////////////////////////////
|
||||
+*/
|
||||
+
|
||||
+#ifndef Pegasus_Platform_LINUX_SPARCV9_GNU_h
|
||||
+#define Pegasus_Platform_LINUX_SPARCV9_GNU_h
|
||||
+
|
||||
+#include <stddef.h>
|
||||
+
|
||||
+#define PEGASUS_OS_TYPE_UNIX
|
||||
+
|
||||
+#ifndef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
||||
+#define PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
||||
+#endif
|
||||
+
|
||||
+#define PEGASUS_OS_LINUX
|
||||
+
|
||||
+#define PEGASUS_ARCHITECTURE_SPARC
|
||||
+
|
||||
+#define PEGASUS_COMPILER_GNU
|
||||
+
|
||||
+#define PEGASUS_UINT64 unsigned long long
|
||||
+
|
||||
+#define PEGASUS_SINT64 long long
|
||||
+
|
||||
+#define PEGASUS_HAVE_NAMESPACES
|
||||
+
|
||||
+#define PEGASUS_HAVE_FOR_SCOPE
|
||||
+
|
||||
+#define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
|
||||
+
|
||||
+#ifndef _GNU_SOURCE
|
||||
+#define _GNU_SOURCE
|
||||
+#endif
|
||||
+#ifndef _REENTRANT
|
||||
+#define _REENTRANT
|
||||
+#endif
|
||||
+#define _THREAD_SAFE
|
||||
+#include <features.h>
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <sys/param.h> /* For MAXHOSTNAMELEN */
|
||||
+#include <limits.h> /* _POSIX_HOST_NAME_MAX */
|
||||
+
|
||||
+#if (__GNUC__ >= 4)
|
||||
+# define PEGASUS_EXPORT __attribute__ ((visibility("default")))
|
||||
+# define PEGASUS_IMPORT __attribute__ ((visibility("default")))
|
||||
+# define PEGASUS_HIDDEN_LINKAGE __attribute__((visibility("hidden")))
|
||||
+#endif
|
||||
+
|
||||
+#define PEGASUS_HAVE_PTHREADS
|
||||
+
|
||||
+#define PEGASUS_HAVE_NANOSLEEP
|
||||
+
|
||||
+#define PEGASUS_HAS_SIGNALS
|
||||
+
|
||||
+/* getifaddrs() avilable in gcc version >= 3.4 */
|
||||
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))
|
||||
+# define PEGASUS_HAS_GETIFADDRS
|
||||
+#endif
|
||||
+
|
||||
+#endif /* Pegasus_Platform_LINUX_SPARCV9_GNU_h */
|
||||
diff -up pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak.orig pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak
|
||||
--- pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak.orig 2013-08-27 14:37:02.458494760 +0200
|
||||
+++ pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak 2013-08-27 14:37:36.121619044 +0200
|
||||
@@ -0,0 +1,55 @@
|
||||
+#//%2006////////////////////////////////////////////////////////////////////////
|
||||
+#//
|
||||
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
||||
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
||||
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation, The Open Group.
|
||||
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
||||
+#//
|
||||
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+#// of this software and associated documentation files (the "Software"), to
|
||||
+#// deal in the Software without restriction, including without limitation the
|
||||
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
+#// sell copies of the Software, and to permit persons to whom the Software is
|
||||
+#// furnished to do so, subject to the following conditions:
|
||||
+#//
|
||||
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
||||
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
||||
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+#//
|
||||
+#//==============================================================================
|
||||
+
|
||||
+ECHO = echo
|
||||
+MKDIRHIER = mkdir -p
|
||||
+RM = rm -f
|
||||
+TOUCH = touch
|
||||
+
|
||||
+COMPILE_CXX_COMMAND = g++
|
||||
+COMPILE_C_COMMAND = gcc
|
||||
+LIBRARY_LINK_COMMAND = $(COMPILE_CXX_COMMAND) -shared
|
||||
+PROGRAM_LINK_COMMAND = $(COMPILE_CXX_COMMAND)
|
||||
+
|
||||
+SYS_LIBS = -ldl -lpthread -lcrypt
|
||||
+
|
||||
+OBJ_SUFFIX=.o
|
||||
+
|
||||
+DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
|
||||
+PROGRAM_COMPILE_OPTIONS = -O2 -W -Wall -Wno-unused -D_GNU_SOURCE \
|
||||
+ -DTHREAD_SAFE -D_REENTRANT -fPIC
|
||||
+LIBRARY_COMPILE_OPTIONS = $(PROGRAM_COMPILE_OPTIONS)
|
||||
+
|
||||
+PROGRAM_LINK_OPTIONS = -Xlinker -rpath -Xlinker $(PEGASUS_DEST_LIB_DIR)
|
||||
+LIBRARY_LINK_OPTIONS = $(PROGRAM_LINK_OPTIONS)
|
||||
+LINK_OUT = -o
|
||||
+SYM_LINK_LIB = $(PEGASUS_PROVIDER_LIB_DIR)/lib$(LIBRARY)
|
||||
+PLATFORM_LIB_SUFFIX = so
|
||||
diff -up pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak.orig pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak
|
||||
--- pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak.orig 2013-08-27 14:38:00.233708183 +0200
|
||||
+++ pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak 2013-08-27 14:38:37.113844321 +0200
|
||||
@@ -0,0 +1,55 @@
|
||||
+#//%2006////////////////////////////////////////////////////////////////////////
|
||||
+#//
|
||||
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
||||
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
||||
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation, The Open Group.
|
||||
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
||||
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
||||
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
||||
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
||||
+#//
|
||||
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+#// of this software and associated documentation files (the "Software"), to
|
||||
+#// deal in the Software without restriction, including without limitation the
|
||||
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
+#// sell copies of the Software, and to permit persons to whom the Software is
|
||||
+#// furnished to do so, subject to the following conditions:
|
||||
+#//
|
||||
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
||||
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
||||
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+#//
|
||||
+#//==============================================================================
|
||||
+
|
||||
+ECHO = echo
|
||||
+MKDIRHIER = mkdir -p
|
||||
+RM = rm -f
|
||||
+TOUCH = touch
|
||||
+
|
||||
+COMPILE_CXX_COMMAND = g++
|
||||
+COMPILE_C_COMMAND = gcc
|
||||
+LIBRARY_LINK_COMMAND = $(COMPILE_CXX_COMMAND) -shared
|
||||
+PROGRAM_LINK_COMMAND = $(COMPILE_CXX_COMMAND)
|
||||
+
|
||||
+SYS_LIBS = -ldl -lpthread -lcrypt
|
||||
+
|
||||
+OBJ_SUFFIX=.o
|
||||
+
|
||||
+DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
|
||||
+PROGRAM_COMPILE_OPTIONS = -O2 -W -Wall -Wno-unused -D_GNU_SOURCE \
|
||||
+ -DTHREAD_SAFE -D_REENTRANT -fPIC
|
||||
+LIBRARY_COMPILE_OPTIONS = $(PROGRAM_COMPILE_OPTIONS)
|
||||
+
|
||||
+PROGRAM_LINK_OPTIONS = -Xlinker -rpath -Xlinker $(PEGASUS_DEST_LIB_DIR)
|
||||
+LIBRARY_LINK_OPTIONS = $(PROGRAM_LINK_OPTIONS)
|
||||
+LINK_OUT = -o
|
||||
+SYM_LINK_LIB = $(PEGASUS_PROVIDER_LIB_DIR)/lib$(LIBRARY)
|
||||
+PLATFORM_LIB_SUFFIX = so
|
|
@ -1,66 +0,0 @@
|
|||
diff -up pegasus/src/Providers/ManagedSystem/Process/Process_Linux.cpp_old pegasus/src/Providers/ManagedSystem/Process/Process_Linux.cpp
|
||||
--- pegasus/src/Providers/ManagedSystem/Process/Process_Linux.cpp_old 2010-01-14 15:06:36.757941652 +0100
|
||||
+++ pegasus/src/Providers/ManagedSystem/Process/Process_Linux.cpp 2010-01-14 15:08:12.113962655 +0100
|
||||
@@ -539,7 +539,7 @@ NOTES :
|
||||
*/
|
||||
Boolean Process::getRealText(Uint64& i64) const
|
||||
{
|
||||
- i64 = pInfo.pst_tsize * getpagesize() / 1024;
|
||||
+ i64 = pInfo.pst_tsize * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ NOTES :
|
||||
*/
|
||||
Boolean Process::getRealData(Uint64& i64) const
|
||||
{
|
||||
- i64 = pInfo.pst_dsize * getpagesize() / 1024;
|
||||
+ i64 = pInfo.pst_dsize * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -603,7 +603,7 @@ NOTES :
|
||||
*/
|
||||
Boolean Process::getVirtualData(Uint64& i64) const
|
||||
{
|
||||
- i64 = pInfo.pst_vdsize * getpagesize() / 1024;
|
||||
+ i64 = pInfo.pst_vdsize * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -619,7 +619,7 @@ NOTES :
|
||||
*/
|
||||
Boolean Process::getVirtualStack(Uint64& i64) const
|
||||
{
|
||||
- i64 = pInfo.pst_vssize * getpagesize() / 1024;
|
||||
+ i64 = pInfo.pst_vssize * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -635,7 +635,7 @@ NOTES :
|
||||
*/
|
||||
Boolean Process::getVirtualMemoryMappedFileSize(Uint64& i64) const
|
||||
{
|
||||
- i64 = pInfo.pst_vmmsize * getpagesize() / 1024;
|
||||
+ i64 = pInfo.pst_vmmsize * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -651,7 +651,7 @@ NOTES :
|
||||
*/
|
||||
Boolean Process::getVirtualSharedMemory(Uint64& i64) const
|
||||
{
|
||||
- i64 = pInfo.pst_vshmsize * getpagesize() / 1024;
|
||||
+ i64 = pInfo.pst_vshmsize * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -721,7 +721,7 @@ Boolean Process::getRealSpace(Uint64& i6
|
||||
i64 = (pInfo.pst_dsize + // real data
|
||||
pInfo.pst_tsize) // real text may need to figure out how to get
|
||||
// realStackSize
|
||||
- * getpagesize() / 1024;
|
||||
+ * sysconf(_SC_PAGESIZE) / 1024;
|
||||
return true;
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
# Example configuration file for snmptrapd
|
||||
#
|
||||
# No traps are handled by default, you must edit this file!
|
||||
#
|
||||
|
||||
# SNMPv3
|
||||
createUser -e 0x80001f88808a67e858ee38ec4c sahana MD5 setup_passphrase DES setup_passphrase
|
||||
authUser log,execute,net sahana
|
||||
|
||||
# SNMPv2
|
||||
authCommunity log,execute,net public
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
[Unit]
|
||||
Description=OpenPegasus CIM Server
|
||||
After=syslog.target slpd.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/usr/share/Pegasus/scripts/generate-certs
|
||||
ExecStart=/usr/sbin/cimserver
|
||||
PIDFile=/var/run/tog-pegasus/cimserver.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"README.RedHat.SSL": "f80998d8cfd165bb6180ac1970aacc76d96f322c8f03cf49d3b921d58f33d5b8",
|
||||
"README.RedHat.Security": "3166eba0a71867ca86671a821dc26ba6acc50c89b2dfae33cd58dd40e08f6a38",
|
||||
"access.conf": "87ed661f402bed0425d7fb97a9e2367d3914dd93eea94b3f7133410b1332c563",
|
||||
"cim_schema_2.38.0Experimental-MOFs.zip": "c1f4a0e1a5ac470ba543c59c499d2f1691890b9caa6e3c37bd7ee6e43b57650e",
|
||||
"cimprovagt-wrapper.sh": "7906161eb05d404b2b43b3cfe212214f37cc71dd11196346162122fb88d4a519",
|
||||
"cmpiOSBase_OperatingSystemProvider-cimprovagt.example": "fcedda34baf295b3e15976677dd44c80f50b0867537e8430da7b5eaec18561d4",
|
||||
"generate-certs": "37c7beb1dc7bf756a87a7228142e2b5a61ff71a840d09d78325af37f1dd9807d",
|
||||
"pegasus-2.14.1.tar.gz": "9f2f13a35da218f3cb6e8478246ff7c4d3010560bb4d5de9cbf4272d48e353fb",
|
||||
"repupgrade.1.gz": "e23652b6db0a5a864268894d89275a179a5ff8fa226d3cd98b82df9c69212491",
|
||||
"snmptrapd.conf": "465291512aa215e5048cce7f57c0e5a654addd3cfba654f88c656467cb871bc5",
|
||||
"tog-pegasus.service": "789d53b948902d89aa53da49c015b7ac3b77a37b62d3c46b4f23454e1c9cfc3c",
|
||||
"tog-pegasus.tmpfiles": "b1beb02536cdeccfdbb9275e373a03ed450c10358d217ef89114bbc190035466"
|
||||
}
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1 +0,0 @@
|
|||
d /var/run/tog-pegasus 1750 root pegasus -
|
|
@ -3,7 +3,7 @@ Distribution: Mariner
|
|||
Summary: Tools for certain user account management tasks
|
||||
Name: usermode
|
||||
Version: 1.112
|
||||
Release: 10%{?dist}
|
||||
Release: 12%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://pagure.io/usermode/
|
||||
Source: https://releases.pagure.org/usermode/usermode-%{version}.autotoolized.tar.xz
|
||||
|
@ -20,6 +20,7 @@ Patch2: selinux_deprecated.patch
|
|||
Requires: pam, passwd, util-linux
|
||||
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/IJFYI5Q2BYZKIGDFS2WLOBDUSEGWHIKV/
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: desktop-file-utils, gettext, glib2-devel, gtk2-devel, intltool
|
||||
BuildRequires: libblkid-devel, libSM-devel, libselinux-devel, libuser-devel
|
||||
BuildRequires: pam-devel, perl-XML-Parser, startup-notification-devel
|
||||
|
@ -79,7 +80,8 @@ done
|
|||
%find_lang %{name}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc COPYING ChangeLog NEWS README
|
||||
%license COPYING
|
||||
%doc ChangeLog NEWS README
|
||||
%attr(4711,root,root) /usr/sbin/userhelper
|
||||
%{_bindir}/consolehelper
|
||||
%{_mandir}/man8/userhelper.8*
|
||||
|
@ -104,6 +106,12 @@ done
|
|||
%{_datadir}/applications/*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.112-12
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.112-11
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.112-10
|
||||
- Initial CBL-Mariner import from Fedora 33 (license: MIT).
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
Name: vino
|
||||
Version: 3.22.0
|
||||
Release: 18%{?dist}
|
||||
Release: 20%{?dist}
|
||||
Summary: A remote desktop system for GNOME
|
||||
|
||||
License: GPLv2+
|
||||
|
@ -17,6 +17,7 @@ Patch3: Prevent-monitoring-all-interfaces-after-change-of-ot.patch
|
|||
Patch4: Properly-remove-watches-when-changing-server-props.patch
|
||||
|
||||
BuildRequires: pkgconfig(avahi-client)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: pkgconfig(avahi-glib)
|
||||
BuildRequires: pkgconfig(gnutls)
|
||||
BuildRequires: pkgconfig(gtk+-x11-3.0)
|
||||
|
@ -95,6 +96,12 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/vino-server.desktop
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 16 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.22.0-20
|
||||
- License verified.
|
||||
|
||||
* Tue Feb 15 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.22.0-19
|
||||
- Adding missing BRs on Perl modules.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.22.0-18
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче